#13005 closed defect (fixed)
ginstall (coreutils) doesn't work properly on Leopard
Reported by: | johan@… | Owned by: | pipping@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) johan@… pipping@… jmpalacios (Juan Manuel Palacios) takanori@… | |
Port: |
Description (last modified by jmpalacios (Juan Manuel Palacios))
A clean leopard install and a fresh macports:
$ sudo port -d install expat [....] DEBUG: Executing org.macports.destroot (expat) DEBUG: Environment: DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1" && gnumake install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot' /bin/sh ./conftools/mkinstalldirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/include /bin/sh ./libtool --mode=install /opt/local/bin/ginstall -c libexpat.la /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib/libexpat.la /opt/local/bin/ginstall -c .libs/libexpat.1.5.2.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib/libexpat.1.5.2.dylib /opt/local/bin/ginstall: `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib/libexpat.1.5.2.dylib': Invalid argument gnumake: *** [installlib] Error 1 Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/expat-2.0.1" && gnumake install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot " returned error 2 Command output: /bin/sh ./conftools/mkinstalldirs /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/include /bin/sh ./libtool --mode=install /opt/local/bin/ginstall -c libexpat.la /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib/libexpat.la /opt/local/bin/ginstall -c .libs/libexpat.1.5.2.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib/libexpat.1.5.2.dylib /opt/local/bin/ginstall: `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/work/destroot/opt/local/lib/libexpat.1.5.2.dylib': Invalid argument gnumake: *** [installlib] Error 1 Warning: the following items did not execute (for expat): org.macports.activate org.macports.destroot org.macports.install Error: Status 1 encountered during processing.
Change History (12)
comment:1 Changed 17 years ago by johan@…
comment:2 Changed 17 years ago by takanori@…
Cc: | ryandesign@… added; ryandesign@… openmaintainer@… removed |
---|---|
Owner: | changed from macports-dev@… to pipping@… |
Summary: | expat fails to destroot on leopard → ginstall (coreutils) doesn't work properly on Leopard |
Version: | 1.5.0 |
Seems that this is ginstall's problem.
comment:3 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)
Description: | modified (diff) |
---|
What's the real problem here and what's at fault? Is it a base or ports bug? Not sure why I was Cc'd...
-jmpp
comment:4 Changed 17 years ago by takanori@…
What's the real problem here and what's at fault? Is it a base or ports bug?
It's a port bug. ginstall breaks lots of ports installation, like:
Not sure why I was Cc'd...
Since you committed a related change in r27063, I cc'd you just in case. (But that was maybe not so proper..)
comment:5 Changed 17 years ago by afb@…
The ginstall
problem is due to it not working with the Leopard version of ACL...
Moving ginstall aside (or unintalling coreutils) works around the install problem. Using the MacPorts 1.6 base from trunk also works, since it uses /usr/bin/install.
comment:6 Changed 17 years ago by afb@…
Milestone: | → Port Bugs |
---|
comment:7 Changed 17 years ago by afb@…
#include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/acl.h> int main() { acl_t acl = acl_from_text("u::rw-,g::---,o::---"); if (acl == NULL) fprintf(stderr,"acl_from_text: %s\n", strerror(errno)); return 0; }
comment:8 Changed 17 years ago by afb@…
Suggestion: disable ACL for coreutils.
platform darwin 9 { configure.env-append jm_cv_func_svid_putenv=yes configure.env-append ac_cv_header_sys_acl_h=no }
comment:9 Changed 17 years ago by jeffmcclure@…
I encountered the same issue with ginstall after a new install of Leopard.
Steps to install latest MacPorts from subversion source:
$ svn checkout http://svn.macosforge.org/repository/macports/trunk/base macports-trunk
$ cd macports-trunk
$ ./configure
$ make
$ sudo rm -rf /opt/local
$ sudo make install
$ sudo port sync
$ sudo port install <package of your choice>
comment:10 Changed 17 years ago by afb@…
Patch was applied in r30465. (Trac refused to save this comment)
comment:11 Changed 17 years ago by afb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Revision increased in r30529, didn't do that earlier.
Flagging as "fixed" for now, ACL can be fixed "later".
using the builtin ginstall (/usr/bin/ginstall) instead of the one in /opt and every port, so far, destroots fine