[MacPorts] #49382: qt3: error: ranlib: file: /opt/local/lib/libqassistantclient.a is not writable (Operation not permitted) (was: qt3 and port 1)
MacPorts
noreply at macports.org
Fri Oct 23 05:57:15 PDT 2015
#49382: qt3: error: ranlib: file: /opt/local/lib/libqassistantclient.a is not
writable (Operation not permitted)
---------------------------------+--------------------------------
Reporter: chiara.giroletti@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Resolution: | Keywords:
Port: qt3 |
---------------------------------+--------------------------------
Changes (by ryandesign@…):
* cc: ryandesign@… (added)
Comment:
Thanks. The log says the problem is:
{{{
:debug:build Executing proc-pre-org.macports.build-build-1
:info:build error: ranlib: file: /opt/local/lib/libqassistantclient.a is
not writable (Operation not permitted)
}}}
This happens because the portfile contains this block of code:
{{{
#workaround for upgrade problem.
pre-build {
if {[file exists ${prefix}/lib/libqassistantclient.a]} {
system "ranlib ${prefix}/lib/libqassistantclient.a"
}
}
}}}
This was added in r16914, back in 2006. Since that time, MacPorts has
changed, and no longer permits ports to modify files outside of their own
work directory during a build, which is what this block is trying to do.
I'm going to hope that whatever "upgrade problem" prompted the addition of
this code (the commit message does not elaborate) no longer exists, so
I've removed this block in r141611. Wait 30 minutes, then you can receive
the fix by running:
{{{
sudo port selfupdate
}}}
The problem began for you when MacPorts determined that the qt3 port you
have installed is broken, and tried to rebuild it. Ports should not be
broken, so that might be a separate problem, and I'd like to know why
MacPorts thinks qt3 is broken on your system. The following command will
try again to rebuild qt3 and any other broken ports, which will hopefully
succeed, and will generate a log file "rev-upgrade.log" on your desktop
which you could please attach to this ticket; it might explain why the
port was broken in the first place.
{{{
sudo port -d rev-upgrade 2>&1 | tee ~/Desktop/rev-upgrade.log
}}}
If the file is large, please compress it prior to attaching.
--
Ticket URL: <https://trac.macports.org/ticket/49382#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list