Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888687 - [guru] app-crypt/clevis-18 fails to compile: ld: libjose.so: undefined reference to EVP_PKEY_decrypt_init@OPENSSL_1_1_0
Summary: [guru] app-crypt/clevis-18 fails to compile: ld: libjose.so: undefined refere...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Julien Roy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-28 06:41 UTC by Agostino Sarubbo
Modified: 2023-01-22 08:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,102.32 KB, text/plain)
2022-12-28 06:41 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-28 06:41:20 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-crypt/clevis-18 fails to compile.
Discovered on: amd64 (internal ref: guru_ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-28 06:41:22 UTC
Created attachment 845289 [details]
build.log

build log and emerge --info
Comment 2 Julien Roy 2023-01-15 04:19:32 UTC
I was finally able to reproduce this bug.

Build dev-libs/jose under dev-libs/openssl-1.1.*
Upgrade to >=dev-libs/openssl-3
Do NOT emerge @preserved-rebuild
Manually remove /usr/lib64/libcrypto.so.1.1
Emerge app-crypt/clevis

Linking fails because it links against libjose.so which links against libcrypto.so.1.1 which is missing.
[...]/bin/ld: warning: libcrypto.so.1.1, needed by /usr/lib64/libjose.so, not found (try using -rpath or -rpath-link)

Since dev-libs/jose gets flagged in @preserved-rebuild on openssl upgrade, I really don't know why this bug even got created in the first place.
I also don't know how to fix the ebuild to prevent this.

!!! existing preserved libs:
>>> package: dev-libs/openssl-3.0.7-r2
 *  - /usr/lib64/libcrypto.so.1.1
 *      used by /usr/lib64/libjose.so.0.0.0 (dev-libs/jose-11)
Use emerge @preserved-rebuild to rebuild packages using these libraries
Comment 3 Viorel Munteanu gentoo-dev 2023-01-15 08:41:17 UTC
This means dev-libs/jose depends on dev-libs/openssl:=, you need to add that to RDEPEND.
Comment 4 Larry the Git Cow gentoo-dev 2023-01-22 08:21:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c7c686bede3adea700627844e0fdab29cc22ec6

commit 9c7c686bede3adea700627844e0fdab29cc22ec6
Author:     Julien Roy <julien@jroy.ca>
AuthorDate: 2023-01-15 16:02:47 +0000
Commit:     Julien Roy <julien@jroy.ca>
CommitDate: 2023-01-15 16:02:47 +0000

    dev-libs/jose: add openssl RDEPEND
    
    Closes: https://bugs.gentoo.org/888687
    Signed-off-by: Julien Roy <julien@jroy.ca>

 dev-libs/jose/jose-11.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)