Opened 10 years ago
Last modified 10 years ago
#43913 assigned defect
gtkimageview missing library dependence - broken binary
Reported by: | p-bro | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | gtkimageview |
Description
Installing the binary package of gtkimageview results in a broken library, which cannot be fixed by reinstalling.
gtkimageview provides the library /opt/local/lib/libgtkimageview.0.0.0.dylib, which depends on the libraries /opt/local/lib/libg[dt]k-x11-2.0.0.dylib, but it does not require the library to be present. The missing libraries are found in the rev-update phase:
Could not open /opt/local/lib/libgdk-x11-2.0.0.dylib: Error opening or reading file (referenced from /opt/local/lib/libgtkimageview.0.0.0.dylib) DEBUG: Marking /opt/local/lib/libgtkimageview.0.0.0.dylib as broken DEBUG: Marking /opt/local/lib/libgtkimageview.0.0.0.dylib as broken Could not open /opt/local/lib/libgtk-x11-2.0.0.dylib: Error opening or reading file (referenced from /opt/local/lib/libgtkimageview.0.0.0.dylib)
A rebuild of gtkimageview fails (probably for the same reasons, but I did not check that).
libg[dt]k-x11 are provided by the x11 variant of gtk2, but not of the quartz variant, which is installed on my system. Both gtk2 and gtkimageview are rdeps of the gimp package, which I requested in the quartz variant. gtk2+quartz was installed to fulfill the requirements of inkscape+quartz.
If need be, I can provide a debug log file of the failed transaction.
Attachments (1)
Change History (8)
comment:1 Changed 10 years ago by p-bro
comment:2 Changed 10 years ago by dbevans (David B. Evans)
Keywords: | gtkimageview removed |
---|---|
Owner: | changed from macports-tickets@… to devans@… |
Port: | gtkimageview added |
Status: | new → assigned |
Version: | 2.3.0 |
Changed 10 years ago by p-bro
Attachment: | install_gtkimageview added |
---|
Failed install of gtkimageview binary package.
comment:4 Changed 10 years ago by p-bro
Side remark: Ticket #43919 contains a bug report for the rebuild issue.
comment:5 Changed 10 years ago by dbevans (David B. Evans)
I can't reproduce the initially reported problem. The port depends on gtk2 and a clean install of the binary results in all dependencies being loaded and rev-upgrade reports no broken files. What versions of gtk2 do you have installed? I'm guessing gtk2 +quartz.
In my case
$ port installed gtk2 The following ports are currently installed: gtk2 @2.24.23_0+x11 (active)
comment:6 Changed 10 years ago by p-bro
Indeed.
$ port installed gtk2 The following ports are currently installed: gtk2 @2.24.23_0+quartz (active)
comment:7 Changed 10 years ago by dbevans (David B. Evans)
Right. Ticket #43919 has been fixed so now you should be able to build from source with gtk2 and its dependents cairo, pango, gdk-pixbuf2 installed with +quartz -x11 (actually only -x11 for gdk-pixbuf2).
sudo port install cairo +quartz -x11 sudo port install pango +quartz -x11 sudo port install gdk-pixbuf2 -x11 sudo port -ns upgrade --force gtkimageview
I'll go ahead and fix the port so this happens automatically in the normal course of events.
A followup: rebuilding gtkimageview does not fail due to the lack of libg[dt]k, but due to a lack of gnome-common, which is a build requirement. I'll submit a separate bug/patch for this.
Also, I may have put the port name into the keyword field. If somebody could correct this mistake, I'd be grateful. Sorry for that.