Opened 11 years ago

Closed 11 years ago

#20461 closed defect (fixed)

${destroot} is not set to correct value in pre-destroot

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.0
Component: base Version: 1.8.0
Keywords: Cc: jmroot (Joshua Root)
Port:

Description

My /opt/local/var/macports/build was a dead symlink, so ~/.macports was used instead. This worked for most cases, but not destroot in pre-destroot:

pre-destroot {
               xinstall -d -o root -g admin -m 775 ${destroot}${prefix}/var/lock
}

${destroot} was still /opt/local/var/macports/build/... instead of ~/.macports/opt/local/var/macports/build/...

 /usr/bin/install -c -m 644 'README.windows' '/Users/jeremy/.macports/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_graphics_sane-backends/work/destroot/opt/local/share/doc/sane-backends/README.windows'
 /usr/bin/install -c -m 644 'README.zeta' '/Users/jeremy/.macports/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_graphics_sane-backends/work/destroot/opt/local/share/doc/sane-backends/README.zeta'
Error: Target org.macports.destroot returned: xinstall: mkdir /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_graphics_sane-backends/work/destroot/opt/local/var/lock, File exists
Warning: the following items did not execute (for sane-backends): org.macports.destroot

Change History (2)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Cc: jmr@… added

Should hopefully be fixed by r54706, please test.

comment:2 Changed 11 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

It's been a fortnight, and it's fixed AFAICT.

Note: See TracTickets for help on using tickets.