Git Product home page Git Product logo

Comments (7)

troglobit avatar troglobit commented on August 26, 2024

Hmm, odd ... should be controlled by --prefix, but you're right the defaults should be sane. I'll look into it, thanks!

from finit.

mkmkme avatar mkmkme commented on August 26, 2024

I got this issue while adding finit package to the buildroot, if this info can help you somehow. And I build it via simpe $(eval $(autotools-package))

from finit.

troglobit avatar troglobit commented on August 26, 2024

Aha, well that's for general packages I guess. Do they have any init packages, other than systemd, that use autoconf?

Anyway, I think it can be fixed by tweaking the GNU defaults a bit. I'll look at it tonight, CET.

from finit.

troglobit avatar troglobit commented on August 26, 2024

OK, I've looked into this now and it must be Buildroot overriding the Finit configure defaults.
I have explicitly added the following to configure.ac:

# Change default prefix, we're PID 1 after all ...
AC_PREFIX_DEFAULT([])

So if you run configure without any arguments it does the right thing:

./configure
make clean; make -j5
DESTDIR=/tmp/staging make install
    ...
tree /tmp/staging
 ~/Troglobit/finit  ⑂ master +  $  tree /tmp/staging
/tmp/staging
├── include
│   └── finit
│       ├── cond.h
│       ├── finit.h
│       ├── helpers.h
│       ├── inetd.h
│       ├── plugin.h
│       └── svc.h
├── lib
│   └── finit
│       └── plugins
│           ├── bootmisc.so
│           ├── hwclock.so
│           ├── initctl.so
│           ├── netlink.so
│           ├── pidfile.so
│           ├── procps.so
│           ├── tty.so
│           └── urandom.so
├── sbin
│   ├── finit
│   ├── halt -> reboot
│   ├── init -> finit
│   ├── initctl
│   ├── poweroff -> reboot
│   ├── reboot
│   ├── service
│   ├── shutdown -> reboot
│   ├── suspend -> reboot
│   └── telinit -> finit
└── share
    └── doc
        └── finit
            ├── finit.conf
            ├── LICENSE
            └── README.md

The DESTDIR trick is used by, e.g. Debian/RedHat, when creating packages. Useful to verify the
resulting root of a package.

Anyway, not sure I can help more than this. Terrybly sorry, but you have to check with Buildroot how to tell their build scripts to not change --prefix.

from finit.

troglobit avatar troglobit commented on August 26, 2024

@reverendhomer Any comments, or can we close this issue?

from finit.

mkmkme avatar mkmkme commented on August 26, 2024

Sorry for the delay, I could not recheck it and haven't solved it yet, but I agree that this is not a finit issue. Thanks for your support! :)

from finit.

troglobit avatar troglobit commented on August 26, 2024

@reverendhomer No problem mate, good luck! :)

from finit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.