-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make install
installs files outside of prefix (leading to build failure)
#1668
Comments
Wondering now how our CI does it on linux. OTOH maybe passes the configure parameters for systemd paths (by default detects them from OS tools...) and probably you forget to add DESTDIR to make install? Or we forget to handle it here? |
|
Did you configure the path options for systemd pieces? Prefix is default for parts of the software project. However integrations with third party layout (systemd, augeas, udev, etc.) require installing into their known paths, or the files may as well not exist otherwise - won't be found by that other software in random locations. |
Also if you want to make an installation for e.g. "proto area" before packaging, you use layout (prefix, sysconfdir, ...) like on target OS and a DESTDIR to where you can write the isolated set of files. |
BTW, out of curiosity - what packaging is that? Distro-agnostic Homebrew built for arbitrary Linux (like pkgsrc and many other sidekicks)? |
In relation to #1708 now extending the NUT configuration reports to clarify where it plans to make a mess for third-party integrations. |
Configuring nut 2.8.0 with:
leads to
make install
trying to install files outside of the prefix:This fails because
/usr/lib
is not user-writable.make install
should not install files outside of the--prefix
path passed toconfigure
.Seen in Homebrew CI: Homebrew/homebrew-core#101035
The text was updated successfully, but these errors were encountered: