New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13005 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

ginstall (coreutils) doesn't work properly on Leopard

Reported by: johan@… Owned by: pipping@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ryandesign@…
Port:

Description (last modified by jmpp@…) (diff)

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

Changed 4 years ago by johan@…

using the builtin ginstall (/usr/bin/ginstall) instead of the one in /opt and every port, so far, destroots fine

Changed 4 years ago by takanori@…

  • owner changed from macports-dev@… to pipping@…
  • cc ryandesign@… added; ryandesign@…, openmaintainer@… removed
  • version 1.5.0 deleted
  • summary changed from expat fails to destroot on leopard to ginstall (coreutils) doesn't work properly on Leopard

Seems that this is ginstall's problem.

Changed 4 years ago by jmpp@…

  • 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

Changed 4 years ago by takanori@…

Changed 4 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.

Changed 4 years ago by afb@…

  • milestone set to Port Bugs

Changed 4 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;
}

Changed 4 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
}

Changed 4 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>

Changed 4 years ago by afb@…

Patch was applied in r30465. (Trac refused to save this comment)

Changed 4 years ago by afb@…

  • status changed from new to closed
  • resolution set to fixed

Revision increased in r30529, didn't do that earlier.

Flagging as "fixed" for now, ACL can be fixed "later".

Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.