FS#78761 - [perl][db][db-5.3] Depend on only one db

Attached to Project: Arch Linux
Opened by loqs (loqs) - Sunday, 11 June 2023, 15:03 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:15 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
perl 5.36.1-2 added db to depends without removing db5.3 which it was switched to due to licensing issues when db was updated to an AGPL3 licensed release.
I believe the changes in the attached diffs will allow building perl with db-5.3 without db.
[1] Creates library symlinks in /usr/lib/db5.3/ it also removes static libs which were left in /usr/lib.
[2] Adds /usr/lib/db5.3/ to Configure's library search path so it can find -ldb. Also add matching include path /usr/include/db5.3.

Additional info:
* perl 5.36.1-2
* db5.3 5.3.28-2
* db 6.2.32-1
[1] PKGBUILD.db6.3.diff
[2] PKGBUILD.perl.diff
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:15 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/perl/issues/2
Comment by Toolybird (Toolybird) - Sunday, 11 June 2023, 21:57 GMT
Yeah, I also raised an eyebrow when seeing this go through...but the PM likely has good reasons...
Comment by loqs (loqs) - Monday, 12 June 2023, 13:51 GMT
Updated PKGBUILD.perl.diff dropping db_config.in as the values passed by Configure are now correct.
Comment by loqs (loqs) - Wednesday, 09 August 2023, 21:47 GMT
Could freswa be added to this issue to review the suggested changes to db5.3 or should I open a new issue?
Comment by freswa (frederik) - Wednesday, 09 August 2023, 21:55 GMT
@loqs, it seems to me, like the symlink to `../libdb_cxx.so` is wrong? That file belongs to the db pkg.
Is there a reason to disable static libs? Iirc there were some pkgs using the static version.
Comment by loqs (loqs) - Wednesday, 09 August 2023, 23:51 GMT
> @loqs, it seems to me, like the symlink to `../libdb_cxx.so` is wrong? That file belongs to the db pkg.
Good spot
> Is there a reason to disable static libs? Iirc there were some pkgs using the static version.
Symmetry with the db package which does not provide it and it did not when that package was on 5.3. I just checked on the web interface all the packages depending on db5.3:
389-ds-base libdb-5.3.so
bitcoin-daemon libdb_cxx-5.3.so
bitcoin-qt libdb_cxx-5.3.so
bogofilter libdb-5.3.so
inn libdb-5.3.so
jack2 libdb-5.3.so
jnettop libdb-5.3.so
perl libdb-5.3.so
perl-berkeleydb libdb-5.3.so
reprepro libdb-5.3.so
swi-prolog libdb-5.3.so
iproute2 (optional) libdb-5.3.so

Missing its dependency on db5.3:
bitcoin-tx libdb_cxx-5.3.so

Edit:
I forgot to attach the updated PKGBUILD.diff
Edit2:
Another point with respect to the static libs libdb.a libdb_cxx.a libdb_stl.a lack the -5.3 suffix so would not for example match -ldb-5.3.
Comment by freswa (frederik) - Thursday, 10 August 2023, 17:39 GMT
Implemented for db5.3

Loading...