-
Notifications
You must be signed in to change notification settings - Fork 14
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
./configure --prefix=/usr tries to install logs in /usr/var/log, fails installation ("missing operand") #35
Comments
The issue in Makefile (unfortunately I can't speak autotools):
|
That's because in some autotools version, |
`runstatedir` is only available in Autoconf 2.70, but unless the distribution is a bleeding edge system, it most likely uses Autoconf 2.69. That said, several major distributions have backported runstatedir support to the older versions, hiding the issue. See #35. This change replaces all references to runstatedir to use $localstatedir/run instead, which is what is recommended by the autoconf manual. This also updates the build instructions to add --localstatedir and --sysconfdir. This is because the lack of the options would have them default to `$(prefix)/var` and `$(prefix)/etc` respectively, and with prefix set to `/usr`, these would be the bogus directories `/usr/var` and `/usr/etc`.
Thank you for the bug report. I've pushed a fix to the |
For what it's worth, autoconf defaults |
I confirm that the issue is no longer present in |
Fix merged to |
Describe the bug
When configuring with
--prefix=/usr
, the Makefile is set up in a way that will try to create the log directory in/usr/var/log
rather than/var/log
. It will also fail (see output).To Reproduce
Steps to reproduce the behavior:
./configure --prefix=/usr
make
sudo make install
Expected behavior
Installation should finish and not try to create bogus directories.
Environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: