Comments (7)
Hmm, odd ... should be controlled by --prefix, but you're right the defaults should be sane. I'll look into it, thanks!
from finit.
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.
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.
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.
@reverendhomer Any comments, or can we close this issue?
from finit.
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.
@reverendhomer No problem mate, good luck! :)
from finit.
Related Issues (20)
- Does finit start rc.local and gettys too early? HOT 2
- unexpected service restart on initctl reload, notify-related? HOT 4
- dbus and runparts not working
- Finit v4.5 drops all but first word in sourced service environment
- All internal conditions get stuck in flux after initctl reload
- Explicit declaration of PID style readiness notification
- Variables declared with `set NAME=VAL` set in environment with leading `set `
- Build error using clang 17 on musl (call to undeclared function 'basename') HOT 1
- Processes depends on notify:pid did not stop when their parent process was killed HOT 3
- tmpfiles.d feature does not work for statically-linked Finit et al. HOT 2
- dBus server HOT 3
- finit hangs during system shutting down HOT 6
- Spell out unsupported command or change to initctl error string
- Mounting filesystems from /etc/finit "OK" even though mount call fails HOT 3
- sysctl with complex values fails HOT 1
- initctl touch does not respect -n flag
- initctl touch does not support template services
- Possible undefined behavior when --with-fstab=no is set HOT 3
- Parsing active consoles fails HOT 2
- initctl: extend timeout (2 -> 30 sec)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finit.