Opened 12 years ago

Closed 12 years ago

#36422 closed defect (fixed)

ige-mac-integration installs during destroot

Reported by: nerdling (Jeremy Lavergne) Owned by: mike@…
Priority: Normal Milestone:
Component: ports Version: 2.1.99
Keywords: sandbox Cc: ryandesign (Ryan Carsten Schmidt)
Port: ige-mac-integration

Description

ige-mac-integration attempts to install files during destroot phase. The new sandboxing code in trunk caught this, forcing it to error out.

DEBUG: Executing org.macports.destroot (ige-mac-integration)
...
Making install in strings
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ige-mac-integration/ige-mac-integration/work/ige-mac-integration-0.9.8/strings'
/bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ige-mac-integration/ige-mac-integration/work/ige-mac-integration-0.9.8/install-sh -d /opt/local/share/strings; \
        for file in GtkOSXApplication.strings.ca GtkOSXApplication.strings.cs GtkOSXApplication.strings.da GtkOSXApplication.strings.de GtkOSXApplication.strings.en GtkOSXApplication.strings.es GtkOSXApplication.strings.eu GtkOSXApplication.strings.fa GtkOSXApplication.strings.fi GtkOSXApplication.strings.fr GtkOSXApplication.strings.he GtkOSXApplication.strings.hu GtkOSXApplication.strings.it GtkOSXApplication.strings.ja GtkOSXApplication.strings.ko GtkOSXApplication.strings.lt GtkOSXApplication.strings.lv_LV GtkOSXApplication.strings.nb GtkOSXApplication.strings.nl GtkOSXApplication.strings.pl GtkOSXApplication.strings.pt GtkOSXApplication.strings.ro GtkOSXApplication.strings.ru GtkOSXApplication.strings.sk GtkOSXApplication.strings.sv GtkOSXApplication.strings.tr GtkOSXApplication.strings.uk GtkOSXApplication.strings.vi GtkOSXApplication.strings.zh_CN GtkOSXApplication.strings.zh_TW; do \
          dir_pref=`echo $file | cut -f 3 -d '.' -`; \
          dest_dir=/opt/local/share/strings/$dir_pref.lproj; \
          dest_name=`echo $file | cut -f 1 -f 2 -d '.' -`; \
          /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ige-mac-integration/ige-mac-integration/work/ige-mac-integration-0.9.8/install-sh -d $dest_dir; \
          /bin/sh /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ige-mac-integration/ige-mac-integration/work/ige-mac-integration-0.9.8/install-sh $file $dest_dir/$dest_name; \
        done
cp: /opt/local/share/strings/ca.lproj/_inst.50630_: Operation not permitted
cp: /opt/local/share/strings/cs.lproj/_inst.50649_: Operation not permitted
cp: /opt/local/share/strings/da.lproj/_inst.50668_: Operation not permitted

Attachments (2)

main.log (131.2 KB) - added by nerdling (Jeremy Lavergne) 12 years ago.
ige-mac-integration full log
ige-mac-integration.diff (863 bytes) - added by nerdling (Jeremy Lavergne) 12 years ago.
changes

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by nerdling (Jeremy Lavergne)

Attachment: main.log added

ige-mac-integration full log

comment:1 Changed 12 years ago by nerdling (Jeremy Lavergne)

It looks like ${worksrcpath}/strings/Makefile doesn't account for a destroot, instead installing directly to prefix. This simple fix got the package to install for me:

post-configure {
    reinplace "s|prefix = ${prefix}|prefix = ${destroot}${prefix}|g" ${worksrcpath}/strings/Makefile
}

The files previously installed and not registered will need to be addressed, however. Should this be done by deleting the files in pre-activate?

Last edited 12 years ago by nerdling (Jeremy Lavergne) (previous) (diff)

Changed 12 years ago by nerdling (Jeremy Lavergne)

Attachment: ige-mac-integration.diff added

changes

comment:2 Changed 12 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: newclosed

Updated in r98545. maintainer timeout.

Note: See TracTickets for help on using tickets.