[MacPorts] #56756: Build doesn't honor --bindir, --libexecdir, etc.

MacPorts noreply at macports.org
Sun Jul 1 21:51:18 UTC 2018

#56756: Build doesn't honor --bindir, --libexecdir, etc.
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  base        |    Version:  2.5.2
 Keywords:              |       Port:
 `./configure --help` advertises these standard autoconf flags:

   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   --bindir=DIR            user executables [EPREFIX/bin]
   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   --libexecdir=DIR        program executables [EPREFIX/libexec]
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   --datarootdir=DIR       read-only arch.-independent data root
   --datadir=DIR           read-only architecture-independent data
   --infodir=DIR           info documentation [DATAROOTDIR/info]
   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   --mandir=DIR            man documentation [DATAROOTDIR/man]

 But the MacPorts build doesn't work correctly if these flags are set to
 non-default values.

 For example, if I specify `--prefix=/prefix --bindir=/prefix/bindir`, the
 build doesn't have an error, but the directory /prefix/bindir is not
 created, and the daemondo executable is installed as /prefix/bindir; all
 other binaries are installed in /prefix/bin.

 Or if I specify `--prefix=/prefix --libexecdir=/prefix/libexecdir`, then
 the build fails with
 chmod: ...vendor/vendor-destroot/prefix/libexec/macports/lib/tcllib*: No
 such file or directory
 make[1]: *** [destroot-tcllib] Error 1

Ticket URL: <https://trac.macports.org/ticket/56756>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list