Opened 11 years ago
Last modified 3 years ago
#42193 reopened defect
c2html @0.9.6 tries to skip destroot and install directly into prefix
Reported by: | cooljeanius (Eric Gallager) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | tobypeterson, seanfarley (Sean Farley) | |
Port: | c2html |
Description
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
Change History (10)
comment:1 follow-up: 2 Changed 11 years ago by cooljeanius (Eric Gallager)
comment:2 follow-up: 3 Changed 11 years ago by seanfarley (Sean Farley)
Replying to 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 settingSeeing 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.
comment:3 follow-up: 4 Changed 11 years ago by seanfarley (Sean Farley)
Replying to sean@…:
Replying to 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 settingSeeing 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.
comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)
Replying to sean@…:
Replying to sean@…:
Replying to 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 settingSeeing 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!
Edit: this ticket can be closed now.
comment:5 Changed 11 years ago by jmroot (Joshua Root)
Cc: | sean@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:6 follow-up: 7 Changed 11 years ago by jmroot (Joshua Root)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Wait, the unregistered files still need to be deleted in pre-activate. Grep the ports tree for registry_file_registered
for examples.
comment:7 follow-up: 8 Changed 11 years ago by cooljeanius (Eric Gallager)
comment:8 follow-up: 9 Changed 11 years ago by seanfarley (Sean Farley)
comment:9 Changed 11 years ago by seanfarley (Sean Farley)
Replying to sean@…:
Replying to egall@…:
Replying to 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.
after
autoreconf
-ing, the configure script adds the following warning which could possibly be related:Seeing as the port already patches the Makefile.in here, perhaps it could also add this: