How to fix "broken ports"?

Marko Käning MK-MacPorts at techno.ms
Sun May 20 23:01:50 PDT 2012


Hi Clemens,

> Feel free to Cc me on any of these tickets if you need clarification as
> to why rev-upgrade thinks a binary is broken.


I am back to this problem. And of course I have questions left. :-)

1) OK, I would like to know how rev-upgrade determines that certain files are "broken" which is why some ports need a rebuild.

2) Secondly I'd like to learn how to avoid these broken files. You wrote that some ports do not use install_name_tool, but the question is how to fix this.

3) Some of the broken ports are not maintained by me, so I'd do as you say and simply file a ticket.

4) The ports which belong to me I have to learn to fix myself and I hope you can give me some directions.



Here is my starting situation after having upgraded all my ports on my test installation (I have switched off the automatic rev-upgrade procedure, since I know that it is a circular thing):
---
[ MP-devel ] :~ marko$ port rev-upgrade 
--->  Scanning binaries for linking errors: 63.1%
Warning: Error parsing file /opt/macports-test/libexec/dbus-daemon-launch-helper: Error opening or reading file
--->  Scanning binaries for linking errors: 100.0%
--->  Found 23 broken file(s), matching files to ports
--->  Found 7 broken port(s):
     kde4-runtime @4.8.3 
         /opt/macports-test/Applications/KDE4/khelpcenter.app/Contents/MacOS/khelpcenter
         /opt/macports-test/Applications/KDE4/knotify4.app/Contents/MacOS/knotify4
         /opt/macports-test/lib/kde4/libkmanpart.so
         /opt/macports-test/lib/libkdeinit4_khelpcenter.dylib
     kmymoney4-devel @4.6-20120521 +no_x11
         /opt/macports-test/Applications/KDE4/kmymoney.app/Contents/MacOS/kmymoney
         /opt/macports-test/lib/kde4/kcm_kmm_printcheck.so
         /opt/macports-test/lib/kde4/kmm_printcheck.so
         /opt/macports-test/lib/kde4/kmm_reconciliationreport.so
     libdmtx @0.7.2 
         /opt/macports-test/bin/dmtxread
         /opt/macports-test/bin/dmtxwrite
     kdelibs4 @4.8.3 
         /opt/macports-test/lib/kde4/kfileaudiopreview.so
         /opt/macports-test/lib/kde4/khtmlimagepart.so
         /opt/macports-test/lib/kde4/libkhtmlpart.so
         /opt/macports-test/lib/libkhtml.5.8.0.dylib
         /opt/macports-test/lib/libknotifyconfig.4.8.0.dylib
         /opt/macports-test/lib/libplasma.3.0.0.dylib
     kdepimlibs4 @4.8.3 
         /opt/macports-test/lib/libakonadi-calendar.4.8.0.dylib
         /opt/macports-test/lib/libakonadi-contact.4.8.0.dylib
     phonon @4.6.0 
         /opt/macports-test/lib/libphononexperimental.4.6.0.dylib
         /opt/macports-test/lib/qt4/plugins/designer/libphononwidgets.so
     strigi @0.7.5 +debug
         /opt/macports-test/lib/strigi/strigiea_jpeg.so
[ MP-devel ] :~ marko$ 
---

As you can see there are quite a few ports to fix in my installation. The question is now how to proceed.
Funnily enough e.g. for kmymoney4-devel the libs in PREFIX/lib/ ARE FOUND by the application, although port tells me the stuff is broken. How can that be?

I hope you can enlighten me a little.

Greets,
Marko


More information about the macports-dev mailing list