Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#30397 closed defect (fixed)

qt3 @3.3.8_11 (upgrading from @3.3.8_10) build fails on 10.5.8, ranlib gets Permission Denied

Reported by: gthb (Gunnlaugur Thor Briem) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: Cc: mkae (Marko Käning), drkp (Dan Ports)
Port: qt3

Description

Upgrading qt3 from 3.3.8_10 to _11 fails with:

sudo port upgrade outdated
--->  Computing dependencies for qt3
--->  Building qt3
Error: Target org.macports.build returned: shell command failed (see log for details)

with the main.log file containing:

:notice:build --->  Building qt3
:debug:build Executing proc-pre-org.macports.build-build-0
:info:build ranlib: file: /opt/local/lib/libqassistantclient.a is not writable (Permission denied)
:info:build shell command "ranlib /opt/local/lib/libqassistantclient.a" returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)

Attaching full main.log.

Mac OS X version: 10.5.8

Xcode version: 3.1.4

gcc --version: i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)

ranlib -V: Apple Computer, Inc. version cctools-698.1

Attachments (1)

qt3-main.log (3.2 KB) - added by gthb (Gunnlaugur Thor Briem) 13 years ago.
main.log from failed qt3 upgrade

Download all attachments as: .zip

Change History (9)

Changed 13 years ago by gthb (Gunnlaugur Thor Briem)

Attachment: qt3-main.log added

main.log from failed qt3 upgrade

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Port: qt3-mac added

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

Owner: changed from macports-tickets@… to blair@…

Please remember to cc the maintainer.

comment:3 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from blair@… to macports-tickets@…
Port: qt3 added; qt3-mac removed

... except of course that's not the right port name that mf2k added for you. So amend that to "Please remember to fill in the Port field." :-)

comment:4 Changed 13 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:5 Changed 13 years ago by drkp (Dan Ports)

Resolution: fixed
Status: newclosed

qt3's build phase must run as root in order to run that ranlib in pre-build. Fixed in r81275. See also #30430.

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Cc: dports@… added

Won't that unnecessarily make it impossible for non-root installations to install this port?

comment:7 Changed 13 years ago by drkp (Dan Ports)

It's quite possible that the ranlib isn't even necessary. I don't know why it's there, but I see it's been there since r16914, so five years later we might not need it.

I didn't want to muck with it without knowing what's going on, and this seemed like the easiest solution...

comment:8 Changed 13 years ago by jmroot (Joshua Root)

Fixed better in r81413.

Note: See TracTickets for help on using tickets.