Skip to content

exec_prefix is set to / for prefix=/usr #1229

Open
@zeha

Description

@zeha

configure.ac contains these "hacks":

dnl Some hacks...
test "$prefix" = "NONE" && prefix="/usr"
test "$prefix" = "/usr" && exec_prefix=""

At least the last of the three lines should IMO go away. src/Makefile.am has these lines:

ubindir = ${prefix}/bin
usbindir = ${prefix}/sbin
...

# XXX why are login and su in /bin anyway (other than for
# historical reasons)?
#
# if the system is screwed so badly that it can't mount /usr,
# you can (hopefully) boot single user, and then you're root
# so you don't need these programs for recovery.
#
# also /lib/libshadow.so.x.xx (if any) could be moved to /usr/lib
# and installation would be much simpler (just two directories,
# $prefix/bin and $prefix/sbin, no install-data hacks...)

bin_PROGRAMS   = login
sbin_PROGRAMS  = nologin
ubin_PROGRAMS  = faillog chage chfn chsh expiry gpasswd newgrp passwd

...

I agree with the comment. IMO all of this (exec_)prefix trickery should go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions