[MacPorts] #42193: c2html @0.9.6 tries to skip destroot and install directly into prefix
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ---------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: c2html ---------------------+-------------------------------- I am on a new machine on which I can re-enable sandboxing for MacPorts, and while re-installing my ports, the sandbox caught this: {{{ DEBUG: Executing org.macports.destroot (c2html) DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/c2html-0.9.6" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/destroot' DEBUG: Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/c2html-0.9.6" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/destroot make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/c2html-0.9.6' mkdir -p /opt/local/share/man/man1 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/destroot/opt/local/share/doc /usr/bin/install -c -m 644 ./c2html.1 /opt/local/share/man/man1/c2html.1 install: /opt/local/share/man/man1/c2html.1: Operation not permitted make: *** [install-doc] Error 71 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/c2html-0.9.6' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/c2html-0.9.6" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_c2html/c2html/work/destroot Exit code: 2 Error: org.macports.destroot for port c2html returned: command execution failed DEBUG: Error code: CHILDSTATUS 22919 2 }}} -- Ticket URL: <https://trac.macports.org/ticket/42193> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Comment (by egall@…): after `autoreconf`-ing, the configure script adds the following warning which could be related: {{{ config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting }}} Seeing as the port already patches the Makefile.in here, perhaps it could also add this: {{{ datarootdir = @datarootdir@ }}} -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Comment (by sean@…): Replying to [comment:1 egall@…]:
after `autoreconf`-ing, the configure script adds the following warning which could be related: {{{ config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting }}} Seeing as the port already patches the Makefile.in here, perhaps it could also add this: {{{ datarootdir = @datarootdir@ }}}
Since I was the last one to touch this port, I can do this. -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Comment (by sean@…): Replying to [comment:2 sean@…]:
Replying to [comment:1 egall@…]:
after `autoreconf`-ing, the configure script adds the following warning which could be related: {{{ config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting }}} Seeing as the port already patches the Makefile.in here, perhaps it could also add this: {{{ datarootdir = @datarootdir@ }}}
Since I was the last one to touch this port, I can do this.
Fixed in r116154. -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Comment (by egall@…): Replying to [comment:3 sean@…]:
Replying to [comment:2 sean@…]:
Replying to [comment:1 egall@…]:
after `autoreconf`-ing, the configure script adds the following warning which could be related: {{{ config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting }}} Seeing as the port already patches the Makefile.in here, perhaps it could also add this: {{{ datarootdir = @datarootdir@ }}}
Since I was the last one to touch this port, I can do this.
Fixed in r116154.
That worked, thanks! -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: c2html | ----------------------+-------------------------------- Changes (by jmr@…): * cc: sean@… (added) * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Changes (by jmr@…): * status: closed => reopened * resolution: fixed => Comment: Wait, the unregistered files still need to be deleted in pre-activate. Grep the ports tree for `registry_file_registered` for examples. -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Comment (by egall@…): Replying to [comment:6 jmr@…]:
Wait, the unregistered files still need to be deleted in pre-activate. Grep the ports tree for `registry_file_registered` for examples.
Or just look at r116136 as a recent example that I remember... -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Comment (by sean@…): Replying to [comment:7 egall@…]:
Replying to [comment:6 jmr@…]:
Wait, the unregistered files still need to be deleted in pre-activate. Grep the ports tree for `registry_file_registered` for examples.
Or just look at r116136 as a recent example that I remember...
Ah, thanks for the tip. I'll push this soon. -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#42193: c2html @0.9.6 tries to skip destroot and install directly into prefix ----------------------+-------------------------------- Reporter: egall@… | Owner: macports-tickets@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: c2html | ----------------------+-------------------------------- Comment (by sean@…): Replying to [comment:8 sean@…]:
Replying to [comment:7 egall@…]:
Replying to [comment:6 jmr@…]:
Wait, the unregistered files still need to be deleted in pre- activate. Grep the ports tree for `registry_file_registered` for examples.
Or just look at r116136 as a recent example that I remember...
Ah, thanks for the tip. I'll push this soon.
Hopefully r116177 fixes this. -- Ticket URL: <https://trac.macports.org/ticket/42193#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts