Bug 263981 - graphics/inkscape ld-elf.so.1: Shared object "libpoppler.so.120" not found, required by "inkscape"
Summary: graphics/inkscape ld-elf.so.1: Shared object "libpoppler.so.120" not found, r...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-15 11:13 UTC by Graham Perrin
Modified: 2024-01-05 22:38 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2022-05-15 11:13:19 UTC
After locking inkscape (to prevent deinstallation at pkg upgrade time), then upgrading packages: 

% inkscape
ld-elf.so.1: Shared object "libpoppler.so.120" not found, required by "inkscape"
% pkg -vv | grep -e url -e enabled
    url             : "pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest",
    enabled         : yes,
    url             : "https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest",
    enabled         : no,
    url             : "file:///usr/local/poudriere/data/packages/main-default",
    enabled         : yes,
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #11 main-n255588-01235012e5b-dirty: Thu May 12 21:45:43 BST 2022     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1400058 1400058
% pkg provides libpoppler.so
Name    : poppler-22.05.0
Desc    : PDF rendering library
Repo    : FreeBSD
Filename: usr/local/lib/libpoppler.so.117.0.0
          usr/local/lib/libpoppler.so.117
          usr/local/lib/libpoppler.so
Name    : poppler-22.05.0
Desc    : PDF rendering library
Repo    : poudriere
Filename: usr/local/lib/libpoppler.so.117.0.0
          usr/local/lib/libpoppler.so.117
          usr/local/lib/libpoppler.so
%
Comment 1 rkoberman 2022-05-15 22:48:03 UTC
This is rather baffling to me as poppler was updated 2022-05-09 16:47:40 +0000 and inkscape at 2022-05-09 16:48:47, about a minute later, so the build run that built the latest inkscape should have depended on libpoppler.so.120 (as it was), but, somehow, poppler was not updated in the repo, leaving the old 117 version.

That should not be possible.

I build from source, and everything looks fine to me. I'd look at the build logs, but they are only accessible via IPv6 and I am traveling and the hotel network does not support IPv6.

Is there any chance that poppler is locked on your system? Yes, I'm grasping at straws.
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2022-05-28 18:59:08 UTC
(In reply to rkoberman from comment #1)

I was similarly puzzled (but lacked your insight) – thanks. 

I'll now try a build with    POPPLER=on
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-05-30 04:38:54 UTC
(In reply to Graham Perrin from comment #2)

Local build succeeded. 

If I'm not mistaken, there's no easy way to tell the dates of the 212 builds at <http://beefy18.nyi.freebsd.org/jail.html?mastername=main-amd64-default>, so I reckon, let's close this (overcome by events) … 

… unless rkoberman your curiosity about the build failure is burning :-)
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-05-30 04:50:12 UTC
(In reply to Graham Perrin from comment #3)

> … If I'm not mistaken, there's no easy way to tell the dates of the 212 …

Correction: 

1. <https://pkg-status.freebsd.org/?type=package&all=1>
2. search (filter for) main-amd64
3. use the 'Started (UTC)' column to sort, if required.

<https://pkg-status.freebsd.org/builds/default:default:main-amd64:pf0c279ef0f2b_s5326ebfd05:beefy18#new_failed> (started 2022-05-12 01:19) I see that py-numpy failed, and so, inkscape was skipped. If that helps.
Comment 5 Tatsuki Makino 2022-05-30 20:53:23 UTC
(In reply to Graham Perrin)

>% pkg -vv | grep -e url -e enabled
>    url             : "pkg+http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest",
>    enabled         : yes,
>    url             : "https://alpha.pkgbase.live/current/FreeBSD:14:amd64/latest",
>    enabled         : no,
>    url             : "file:///usr/local/poudriere/data/packages/main-default",
>    enabled         : yes,

I think you mean that you are using a mixture of packages built by official poudriere and packages built by individual poudriere.
Individual poudriere can start building immediately with the latest portstree.
The official poudriere builds all packages, so updates to the latest portstree are somewhat delayed.
poudriere usually deletes all packages that depend on poppler when poppler is updated.
So, in the official poudriere, the packages of the ports close to the nodes of the tree leaves, such as inkscape, are often old or non-existent.
Well, back to the point, such a discrepancy occurs when you finish updating poppler in your poudriere.
Comment 6 Graham Perrin freebsd_committer freebsd_triage 2022-05-31 04:54:05 UTC
(In reply to Tatsuki Makino from comment #5)

> … such a discrepancy occurs when you finish updating poppler 
> in your poudriere.

I don't ever recall allowing installation of poppler from my poudriere repo, if that's what you mean. 

At the time of writing: 

% pkg query '%R %n' | grep "poudriere "
poudriere festlex-oald
poudriere gpu-firmware-radeon-kmod-btc
poudriere gpu-firmware-radeon-kmod-sumo
poudriere gpu-firmware-radeon-kmod-turks
poudriere linux-wps-office
poudriere openzfs
poudriere pkg
poudriere pulseaudio
%
Comment 7 Tatsuki Makino 2022-05-31 07:56:40 UTC
(In reply to Graham Perrin from comment #6)

Hmmm :)

A poppler with SHLIB_VER=117 has a DISTVERSION of 22.01.0.
This appears to be the package that the 2022Q2 tree will build.
poppler-22.05.0 has a SHLIB_VER=121.
The inkscape to link with this SHLIB_VER=121 is 1.1.2_5 or later or 1.1.2_4 built with e0a1f4a4f2772ab78d3c5ddc61a084649e5c37cd tree.

There may have been an element of mixing those versions somewhere :)
Freshports shows that there is an inkscape-1.2 for FreeBSD:14:amd64, so if we update now, there should be no consistency issues.
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2024-01-02 13:30:06 UTC
Close this?