-
Notifications
You must be signed in to change notification settings - Fork 246
configure.ac, src/Makefile.am: Follow GNU coding standards regarding directory variables #1231
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
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 ()
.
8d0eb98
to
51b0e9f
Compare
@@ -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.
As it is now, the patch does not break anything in the fedora packaging. |
Self answer: I still get this. @thesamesam , do you know why? |
It's due to this line: Line 106 in b4beda8
But is that line bad? How should one use |
cc9e79c
to
b28fb39
Compare
e471ea0
to
a7585cb
Compare
…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]>
Closes: #1229
Reported-by: @zeha
Cc: @thesamesam
Is this okay?
Revisions:
v2
v3
${}
by$()
in surrounding code. [@thesamesam ]v3b
v3c
v3d
v3e
v3f
v3g
v3h
v3i
v3j
v3k
v3l
v3m
v3n