-
Notifications
You must be signed in to change notification settings - Fork 241
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.ac, src/Makefile.am: Follow GNU coding standards regarding directory variables #1231
base: master
Are you sure you want to change the base?
Conversation
I bail out; too much autotools for me. @thesamesam please help. :-) |
I'll look but probably tomorrow. |
8840d0e
to
6f4e5d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK with that one change for {}
vs ()
.
…directory variables According to Sam, if we just remove the definitions, autotools will provide the right values. Note that this changes the default from /usr to /usr/local, which is the right value according to the GNU conding standards (and also what the BSDs prefer, according to one conversation I had with Ingo Schwarze from OpenBSD). Closes: <shadow-maint#1229> Link: <https://www.gnu.org/software/autoconf/manual/autoconf-2.72/html_node/Default-Prefix.html> Reported-by: Chris Hofstaedtler <[email protected]> Cc: Sam James <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
Some code was using $() and other ${}. Use the same everywhere. Reported-by: Sam James <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
@@ -2,13 +2,13 @@ | |||
EXTRA_DIST = \ | |||
.indent.pro | |||
|
|||
ubindir = ${prefix}/bin | |||
usbindir = ${prefix}/sbin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the current state of MR, the same exec_prefix will be used for ubindir
&& bindir
- https://www.gnu.org/software/automake/manual/html_node/Standard-Directory-Variables.html
So with the current state of MRubindir
==bindir
andusbindir
==sbindir
.
Do we keepubindir
and usbindir
in such case?
Or they are intentionally separate in Makefile.am so one can use make variables to have different values for ubindir
and bindir
e.g.
make install ubindir=/tmp/bin usbindir=/tmp/sbin
Otherwise LGTM and +1 for removing hacks :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to remove them, but in a separate PR. I'd say even in a separate release, just to make sure we don't break anything at some point.
Closes: #1229
Reported-by: @zeha
Cc: @thesamesam
Is this okay?
Revisions:
v2
v3
${}
by$()
in surrounding code. [@thesamesam ]v3b
v3c