[MacPorts] #20748: Remove +with_default_names and use a specific path for unprefixed binaries
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Several ports have the +with_default_names variant to provide binaries which aren't prefixed by '''g''' (or similar). This has caused issues over time (the ones in MacPorts' base should be mostly fixed in 1.8.0) including some ports failing to build properly (#19431 and #20275 found with a quick search). Instead of +with_default_names I propose we always install the g-prefixed versions in ${prefix}/bin (as would happen without +with_default_names), but also install the unprefixed versions into a special bin path for such things. For example, ${prefix}/gnubin could be used. Then anyone who really wants these binaries to override their system equivalents would simply need to add ${prefix}/gnubin to their PATH, but anything else build with port would not see them. -- Ticket URL: <http://trac.macports.org/ticket/20748> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by blair@…): Let's discuss this on the mailing list first before implementing it. -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by blb@…): [http://lists.macosforge.org/pipermail/macports- dev/2009-August/009625.html The start of the thread on -dev]. -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by toby@…): Why not just instruct users to make appropriate shell aliases if they so desire? -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by blair@…): Shell aliases don't work in scripts. -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by toby@…): Seems to me that, if you're using a script and want the GNU junk, you should have to modify the script. -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by blb@…): mww updated gnutar in r57932. -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by mww@…): As discussed on macports-dev@, we will use {{{${prefix}/libexec/gnubin}}} as the directory for un-prefixed GNU executables. -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by vinc17@…): Replying to [comment:11 mww@…]:
As discussed on macports-dev@, we will use {{{${prefix}/libexec/gnubin}}} as the directory for un-prefixed GNU executables.
IMHO, this choice would not be a good idea, because {{{${prefix}/libexec}}} and its subdirectories shouldn't be in the user's path. Also this wouldn't solve the problem of man pages. How about {{{${prefix}/gnu/bin}}} and {{{${prefix}/gnu/share/man}}} for the binaries and the man pages respectively? -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by ryandesign@…): We have been discussing several possibilities in the thread on the mailing list. Replying to [comment:13 vinc17@…]:
IMHO, this choice would not be a good idea, because {{{${prefix}/libexec}}} and its subdirectories shouldn't be in the user's path. Why would this be a problem?
Also this wouldn't solve the problem of man pages. How about {{{${prefix}/gnu/bin}}} and {{{${prefix}/gnu/share/man}}} for the binaries and the man pages respectively? We discussed this possibility. I think it's ok with me. It has the possible disadvantage of violating the mtree.
-- Ticket URL: <http://trac.macports.org/ticket/20748#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by nox@…): So… when do we do the move? We may want to create a GNU port group which would handle the creation of the various symlinks itself. -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries ------------------------------+--------------------------------------------- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: gnu | Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed ------------------------------+--------------------------------------------- Comment(by ryandesign@…): Let's make the change now. This variant is causing too many bizarre problems. (#21060, #21149, #24118) -- Ticket URL: <http://trac.macports.org/ticket/20748#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries --------------------------------------------------------------------------+- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: gnu Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed | --------------------------------------------------------------------------+- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r73585 -- Ticket URL: <https://trac.macports.org/ticket/20748#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries --------------------------------------------------------------------------+- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: gnu Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed | --------------------------------------------------------------------------+- Comment(by blair@…): I'm unable to compile the new coreutils: {{{ ---> Configuring coreutils autoreconf: Entering directory `.' autoreconf: running: autopoint --force Copying file build-aux/config.rpath Copying file m4/glibc2.m4 Copying file m4/iconv.m4 Copying file m4/intdiv0.m4 Copying file m4/intl.m4 Copying file m4/intldir.m4 Copying file m4/intmax.m4 Copying file m4/lcmessage.m4 Copying file m4/printf-posix.m4 Copying file m4/uintmax_t.m4 Copying file m4/visibility.m4 Copying file po/Makefile.in.in Copying file po/Makevars.template autoreconf: running: aclocal --force -I m4 autom4te: need GNU m4 1.4 or later: /opt/local/bin/m4 aclocal: /opt/local/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_coreutils/work/coreutils-8.5" && autoreconf --install -fvi " returned error 1 Error: Target org.macports.configure returned: autoreconf failure: shell command failed }}} The error is odd in that the system's m4 is 1.4.6. Any idea what's going on? -- Ticket URL: <https://trac.macports.org/ticket/20748#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries --------------------------------------------------------------------------+- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: gnu Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed | --------------------------------------------------------------------------+- Comment(by kirk.kelsey@…): If you installed autoconf (which includes autom4te) when m4 was still in /opt/local/bin/ it won't be able to find it now in /opt/local/libexec/gnubin. Reinstalling autoconf should take care of the problem. -- Ticket URL: <https://trac.macports.org/ticket/20748#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20748: Remove +with_default_names and use a specific path for unprefixed binaries --------------------------------------------------------------------------+- Reporter: blb@… | Owner: macports-tickets@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: gnu Port: gnutar m4 gnetcat coreutils diffutils findutils gwhich gsed | --------------------------------------------------------------------------+- Comment(by blair@…): Thanks, that did it. I bumped autoconf's revision in r73682 so no one else has this issue. -- Ticket URL: <https://trac.macports.org/ticket/20748#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts