Opened 3 years ago

Closed 3 years ago

#63594 closed defect (fixed)

librsvg @2.52.0_0 +quartz does not install

Reported by: MaurizioLoreti Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: dbevans (David B. Evans)
Port: librsvg

Description

librsvg 2.52.0_0 +quartz does not build. The log file mentions /usr/local/lib/libgio-2.0.0.dylib ; /opt/local/lib/libgio... is installed, however

Attachments (4)

main.log (568.9 KB) - added by MaurizioLoreti 3 years ago.
log file
main.2.log (5.2 MB) - added by MaurizioLoreti 3 years ago.
ffmpeg log file
pc.txt (5.9 KB) - added by MaurizioLoreti 3 years ago.
Output of the "port contents glib2 | grep dylib | xargs otool -L" command
report.txt (54.5 KB) - added by MaurizioLoreti 3 years ago.
GIMP crash report

Change History (30)

Changed 3 years ago by MaurizioLoreti

Attachment: main.log added

log file

comment:1 Changed 3 years ago by MaurizioLoreti

Similar errors building gegl @0.4.32_0+quartz , gtk2 @2.24.33_0+quartz , py27-pygtk @2.24.0_5 +quartz , gimp2 @2.10.28_0+quartz . Did not create other tickets for these ports.

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Port: librsvg added
Summary: librsvg 2.52.0_0 +quartz does not installlibrsvg @2.52.0_0 +quartz does not install

Remove what you have installed in /usr/local; it is interfering with MacPorts. After doing so, you may have to rebuild whichever ports were affected by the presence what you had in /usr/local, and certainly clean any incomplete builds before trying again.

comment:3 Changed 3 years ago by MaurizioLoreti

In /usr/local there is *nothing*. The installer is looking there for libraries I don’t know why. But, I repeat, there is *nothing* in /usr/local.

Last edited 3 years ago by MaurizioLoreti (previous) (diff)

comment:4 Changed 3 years ago by MaurizioLoreti

$ ls -al /usr/local/lib
total 304
drwxrw-rw-   8 loreti  wheel    256 Oct  9 08:06 .
drwxr-xr-x  12 root    wheel    384 Sep 15 15:12 ..
-rw-r--r--@  1 loreti  wheel   6148 Jul  9  2020 .DS_Store
drwxrwxrwx   6 root    wheel    192 Mar 27  2019 audacity
-rwxr-xr-x   1 root    wheel  87368 May 14 06:48 libdvdcss.2.dylib
-rw-r--r--   1 root    wheel  49648 May 14 06:48 libdvdcss.a
lrwxr-xr-x   1 root    wheel     17 May 14 06:48 libdvdcss.dylib -> libdvdcss.2.dylib
-rwxr-xr-x   1 root    wheel    936 May 14 06:48 libdvdcss.la

comment:5 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Then this may just be the same as #63592.

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

Cc: mascguy added

comment:7 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy removed
Owner: set to mascguy
Status: newassigned

comment:8 Changed 3 years ago by mascguy (Christopher Nielsen)

Can you try installing the default version (via sudo port -N install librsvg), without +quartz, to see if that installs successfully? That might give us some more clues.

Also, do you absolutely need the Quartz variant? I ask, as it's possible that everything will simply work without it. (Can't guarantee that 100%, but there's a reasonable possibility...)

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:9 Changed 3 years ago by MaurizioLoreti

Christopher, I could try, but:

  • librsvg is installed with the +quartz variant as a dependence from the installation of gimp +quartz, and I STRONGLY would like to have gimp without the X11 interface.
  • others dependecies were installed in order to have gimp +quartz on my computer; I mentioned gegl, gtk2, py27-pygtk, and gimp2. The complete list of +quartz modules installed is here:
MLO@tyrfing 9 $ port installed | grep quartz
  cairo @1.17.4_0+quartz+x11 (active)
  gegl @0.4.26_2+quartz (active)
  gimp @2.10.28_1+quartz (active)
  gimp-lqr-plugin @0.7.2_3+quartz (active)
  gimp2 @2.10.22_3+python27+quartz (active)
  glib2 @2.62.6_2+quartz (active)
  gtk2 @2.24.32_0+quartz (active)
  gtk3 @3.24.23_0+quartz
  gtkimageview @1.6.4_7+quartz (active)
  gutenprint @5.3.3_0+quartz (active)
  libglade2 @2.6.4_8+quartz (active)
  librsvg @2.50.5_0+quartz (active)
  pango @1.48.9_0+quartz+x11 (active)
  py27-cairo @1.18.2_0+quartz+x11 (active)
  py27-gobject @2.28.7_2+quartz (active)
  py27-pygtk @2.24.0_3+quartz (active)
  py38-cairo @1.20.1_0+quartz (active)
  py39-cairo @1.20.1_0+quartz (active)
MLO@tyrfing 10 $ 
  • I have an old MacBook pro running Catalina, and on this computer gimp+quartz has been installed with all its dependencies, librsvg included. This is a Big Sur bug only.
  • I don't see why some MacPorts packages can have a +quartz variant, if +quartz cannot be installed. Drop the +quartz support you, don't ask me to do that.

Said that, I will try the port install you suggested, and I'll let you know.

comment:10 Changed 3 years ago by MaurizioLoreti

MLO@tyrfing 15 $ sudo port clean librsvg
--->  Cleaning librsvg
MLO@tyrfing 16 $ sudo port -N install librsvg
--->  Computing dependencies for librsvg
--->  Fetching archive for librsvg
--->  Attempting to fetch librsvg-2.52.0_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/librsvg
--->  Attempting to fetch librsvg-2.52.0_0.darwin_20.x86_64.tbz2.rmd160 from https://packages.macports.org/librsvg
--->  Installing librsvg @2.52.0_0
--->  Deactivating librsvg @2.50.5_0+quartz
--->  Cleaning librsvg
--->  Activating librsvg @2.52.0_0
--->  Cleaning librsvg
--->  Scanning binaries for linking errors
--->  Found 1 broken file, matching files to ports       
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     gimp2 @2.10.22_3+python27+quartz
--->  Computing dependencies for ffmpeg
--->  Fetching archive for ffmpeg
--->  Attempting to fetch ffmpeg-4.4_4+gpl2+nonfree.darwin_20.x86_64.tbz2 from https://packages.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-4.4_4+gpl2+nonfree.darwin_20.x86_64.tbz2 from https://fra.de.packages.macports.org/ffmpeg
--->  Attempting to fetch ffmpeg-4.4_4+gpl2+nonfree.darwin_20.x86_64.tbz2 from https://nue.de.packages.macports.org/ffmpeg
--->  Building ffmpeg
Error: Failed to build ffmpeg: command execution failed  
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_ffmpeg/ffmpeg/main.log for details.
Error: rev-upgrade failed: Error rebuilding gimp2
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
MLO@tyrfing 16 $ 

Please, help.

comment:11 Changed 3 years ago by mascguy (Christopher Nielsen)

I've been using the Quartz variant of MacPorts GIMP for several years now, across multiple version upgrades. And while virtually every other dependency is installed with +quartz, librsvg has never been. And there's never been a problem.

To be fair, perhaps I've simply never exercised enough GIMP functionality, to encounter an issue. But I've used quite a bit of it, without an issue. And I've certainly never had any broken ports... not GIMP, nor anything else. (And I explicitly run port rev-upgrade, whenever installing or updating ports.)

I'd be curious if others have any experience with this setup.

Ignoring the librsvg topic for the moment, the fact that ffmpeg is failing to build, is highly suspicious: You're using the non-X11 version, which should build successfully against the non-Quartz librsvg. (It should build successfully against the Quartz variant too, for that matter.)

Net-Net, the fact that ffmpeg is failing to build, suggests there's a more fundamental issue with your MacPorts installation. (As Ryan alluded to earlier.)

Can you kindly post the main.log from the ffmpeg build attempt?

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:12 Changed 3 years ago by mascguy (Christopher Nielsen)

Also, can you please run sudo port diagnose, and post the output?

Changed 3 years ago by MaurizioLoreti

Attachment: main.2.log added

ffmpeg log file

comment:13 Changed 3 years ago by MaurizioLoreti

This is the ffmpeg log file. The errors have nothing to do with my problems, and there is a ticket already: #63482.

comment:14 Changed 3 years ago by MaurizioLoreti

MLO@tyrfing 28 $ sudo port diagnose
Error: currently installed version of Xcode, 13.0, is not supported by MacPorts.  For your currently installed system, only the following versions of Xcode are supported:  12.5.1 12.5 12.4 12.3 12.2
Warning: found dylibs in your /usr/local/lib directory. These are known to cause problems. We'd recommend  you remove them.
MLO@tyrfing 28 $ 

My system is macOS 11.6 (20G165), Darwin 20.6.0. xcodebuild -version gives 13.0, build 13A233. Command line tools are 13.0.0.0.1.1630607135.

Last edited 3 years ago by MaurizioLoreti (previous) (diff)

comment:15 Changed 3 years ago by mascguy (Christopher Nielsen)

It might be worth uninstalling Xcode and the Command-Line Tools, and installing versions 12.5.1.

comment:16 Changed 3 years ago by MaurizioLoreti

No, please. This is the official Apple release, and I like better to have a modern Xcode/CLT than a modern GIMP.

comment:17 Changed 3 years ago by mascguy (Christopher Nielsen)

Josh/Ryan/Anyone, given the error from port diagnose, could the use of Xcode/CLT 13.0 be the root cause of these issues?

comment:18 Changed 3 years ago by mascguy (Christopher Nielsen)

Otherwise, I'm out of ideas at the moment. (At least until I dive in, and learn more about the intricacies of this port.)

So if anyone has any thoughts, please chime in. Could use some help on this one...

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)

comment:19 Changed 3 years ago by kencu (Ken)

this:

info:build dyld: Library not loaded: @rpath/libgio-2.0.0.dylib

comment:20 Changed 3 years ago by kencu (Ken)

so something is going on, as yet to be completely sorted out, where certain people are building glib2 and getting @rpath references for the library names such as this, whereas every time I build it, or the buildbots build it, there are fully-referenced pathnames for the libraries.

Something is doing this -- what it is is to be discovered. For the original poster, please try uninstalling your current version of glib2 (which is obviously broken) and then try reinstalling it from source, like this:

sudo port -f uninstall glib2
sudo port -v -s install glib2

then after you do that, please post up your library references like this:

port contents glib2 | grep dylib | xargs otool -L

and we'll see if they have any @rpath references in there.

If they _do_ then that is what we need to sort out and fix, somehow.

if they _do_not_ then you should be good to go, go ahead and try to install librsvg, and with any luck at all, you should be fine.

Last edited 3 years ago by kencu (Ken) (previous) (diff)

comment:21 Changed 3 years ago by MaurizioLoreti

Hi there, this is the OP speaking... I uninstalled and reinstalled glib2; that port reinstalled OK, then the software found 1 broken file (gimp2), tried to build ffmpeg and died with the usual ffmpeg errors (see #63482). I ran the port contents command, the output is in the attached file and I don't see any rpath reference in it.

Hope that helps... Next step will be again

port update outdated

I'll let you know later (it's 3 am here...)

Last edited 3 years ago by MaurizioLoreti (previous) (diff)

Changed 3 years ago by MaurizioLoreti

Attachment: pc.txt added

Output of the "port contents glib2 | grep dylib | xargs otool -L" command

comment:22 Changed 3 years ago by kencu (Ken)

well, you appear to now have a proper build of glib2 as you say, without any @rpath references:

/opt/local/lib/libgio-2.0.0.dylib:
        /opt/local/lib/libgio-2.0.0.dylib (compatibility version 6201.0.0, current version 6201.6.0)

which seems to be a nice step in the right direction.

Now that you have an intact glib2, in this ticket you wanted to build librsvg. So try that next, I think, and let's try to ignore whatever is wrong with ffmpeg for the moment, if we can:

sudo port clean librsvg
sudo port -v install librsvg

IF it fails to install librsvg again, then try it from source:

sudo port clean librsvg
sudo port -v -s install librsvg

hopefully one of those two installs will work, and if so please report back success or failure with librsvg (and leave ffmpeg out of this ticket for now, otherwise we will get absolutely nowhere sorting you out).

comment:23 Changed 3 years ago by MaurizioLoreti

Ok, Ken; the second suggestion worked, and I installed librsvg +quartz. The port upgrade command built gegl, gtk2, py27-pygtk and gimp2. Then I tried to launch /Applications/MacPorts/GIMP.app and the executable barfed, the first lines of the crash report being

Process:               gimp-2.10 [28006]
Path:                  /Applications/MacPorts/GIMP.app/Contents/MacOS/GIMP
Identifier:            org.gimp.gimp-2.10:
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           gimp-2.10 [28006]
User ID:               501

Date/Time:             2021-10-11 07:08:50.867 +0200
OS Version:            macOS 11.6 (20G165)
Report Version:        12
Anonymous UUID:        F1156E0E-54C8-8232-5BEC-41075EA84BD6


Time Awake Since Boot: 14000 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  dyld: Using shared cache: F0A21792-ED7E-33A3-A0DD-24B063378C1E
Library not loaded: @rpath/libgio-2.0.0.dylib
  Referenced from: /opt/local/lib/libgtkmacintegration-gtk2.4.dylib
  Reason: image not found

I can attach the whole crash report, if you need it. Now I uninstalled -f gimp and gimp2, and I am currently reinstalling them. I'll let you know what will happen later. Thank you VERY MUCH for the help :D

comment:24 Changed 3 years ago by MaurizioLoreti

gimp and gimp2 +quartz reinstalled, same behaviour. Where that bloody libgtkmacintegration-gtk2.4.dylib lives? Later - uninstalled and reinstalled gtk2 +quartz; same behaviour. I am attaching the whole later crash report, hoping in some other suggestions.

Last edited 3 years ago by MaurizioLoreti (previous) (diff)

Changed 3 years ago by MaurizioLoreti

Attachment: report.txt added

GIMP crash report

comment:25 Changed 3 years ago by MaurizioLoreti

(When everything else fails, read the manual)

MLO@tyrfing 42 $ port provides /opt/local/lib/libgtkmacintegration-gtk2.4.dylib
...
MLO@tyrfing 43 $ sudo port uninstall -f gtk-osx-application-gtk2
...
MLO@tyrfing 44 $ sudo port install gtk-osx-application-gtk2
...
MLO@tyrfing 45 $ open /Applications/MacPorts/GIMP.app
<Everything OK>

😜

Thank you to all the folks who helped. And thank you for maintaining MacPorts. I think this ticket may be closed...

Last edited 3 years ago by MaurizioLoreti (previous) (diff)

comment:26 Changed 3 years ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: assignedclosed

Beautiful, glad it's working!

Note: See TracTickets for help on using tickets.