Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835833 - net-libs/glib-networking-2.72.0: certificate.c:(.text.startup+0x127): undefined reference to `gnutls_pkcs11_add_provider
Summary: net-libs/glib-networking-2.72.0: certificate.c:(.text.startup+0x127): undefin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-23 07:47 UTC by Michał Górny
Modified: 2022-03-23 17:07 UTC (History)
5 users (show)

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


Attachments
net-libs:glib-networking-2.72.0:20220323-074341.log (net-libs:glib-networking-2.72.0:20220323-074341.log,48.91 KB, text/plain)
2022-03-23 07:47 UTC, Michał Górny
Details
emerge --info (emerge-info.txt,7.65 KB, text/plain)
2022-03-23 07:48 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-23 07:47:47 UTC
Created attachment 767621 [details]
net-libs:glib-networking-2.72.0:20220323-074341.log

FAILED: tls/tests/certificate-gnutls 
x86_64-pc-linux-gnu-gcc -m32  -o tls/tests/certificate-gnutls tls/tests/certificate-gnutls.p/certificate.c.o -Wl,--as-needed -Wl,--no-undefined -march=znver2 --param=l1-cache-size=32 --param=l1-cache-line-size=64 -O2 -pipe -frecord-gcc-switches -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--start-group /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so -Wl,--export-dynamic /usr/lib/libgmodule-2.0.so -pthread /usr/lib/libgnutls.so -Wl,--end-group
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: tls/tests/certificate-gnutls.p/certificate.c.o: in function `main':
certificate.c:(.text.startup+0xde): undefined reference to `gnutls_pkcs11_init'
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: certificate.c:(.text.startup+0x127): undefined reference to `gnutls_pkcs11_add_provider
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-23 07:48:03 UTC
Created attachment 767622 [details]
emerge --info
Comment 2 Maxim Britov 2022-03-23 08:56:05 UTC
Same for me
It wants USE='pkcs11' emerge net-libs/gnutls
Then builds fine
Comment 3 Ionen Wolkens gentoo-dev 2022-03-23 10:13:45 UTC
Seems there's been:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7068209eac9441762c2ad3ba1fe64d392e22e68b

Albeit that pkcs11 is not a default may be an annoyance for a lot of users now.
Comment 4 Matt Turner gentoo-dev 2022-03-23 16:02:20 UTC
Reopening to remind me to fix the pkcs11-related things not touched by that commit.
Comment 5 Larry the Git Cow gentoo-dev 2022-03-23 17:06:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d58cdc65e555a187b0a511e222748e94a023fd2

commit 9d58cdc65e555a187b0a511e222748e94a023fd2
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2022-03-23 17:00:57 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2022-03-23 17:06:28 +0000

    net-libs/glib-networking: Avoid gnutls[pkcs11] dep without USE=test
    
    Commit 7068209eac9 ("net-libs/glib-networking: gnutls needs pkcs11
    support") added a USE dependency on net-libs/gnutls[pkcs11] in response
    to a build problem. The appropriate fix was to double check the sed in
    src_prepare() whose purpose is clearly noted as avoiding the pkcs11
    dependence. It turns out the `subdir` line it attempted to modify had
    been moved. With that resolved, we can continue avoiding the pkcs11
    dependence.
    
    Also revbump as required when runtime dependencies change, as should
    have been done in the aforementioned commit.
    
    Revert "net-libs/glib-networking: gnutls needs pkcs11 support"
    
    This reverts commit 7068209eac9441762c2ad3ba1fe64d392e22e68b.
    
    Closes: https://bugs.gentoo.org/835833
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 ...glib-networking-2.72.0.ebuild => glib-networking-2.72.0-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)