Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914869 - net-print/cups-2.4.7 does not compile with USE=-ssl - …/ld: ../cups/libcups.so: undefined reference to `gnutls_hash*
Summary: net-print/cups-2.4.7 does not compile with USE=-ssl - …/ld: ../cups/libcups.s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-27 22:16 UTC by Christian Bricart
Modified: 2023-10-04 15:33 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,40.97 KB, text/x-log)
2023-09-27 22:16 UTC, Christian Bricart
Details
emerge --info (emerge-info.txt,6.66 KB, text/plain)
2023-09-27 22:16 UTC, Christian Bricart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Bricart 2023-09-27 22:16:22 UTC
Created attachment 871617 [details]
build.log

=net-print/cups-2.4.7 fails to merge with USE=-ssl

(has not happend and merged just fine with net-print/cups-2.4.6)
Comment 1 Christian Bricart 2023-09-27 22:16:48 UTC
Created attachment 871618 [details]
emerge --info
Comment 2 Christian Bricart 2023-09-27 22:25:00 UTC
FYI: additionally, it's failing with linking to gnutls_* refs both with USE=openssl and USE-openssl
Comment 3 Christian Bricart 2023-09-27 22:36:05 UTC
…might have been introduced by upstream implementing https://github.com/OpenPrinting/cups/issues/762 // https://github.com/OpenPrinting/cups/commit/b5b1418da7
Comment 4 tdr 2023-09-27 22:40:52 UTC
testing configure options

./configure supports 3 options for tls use:

  --with-tls=... use cdsa (macOS), gnutls, or openssl for TLS support


Ebuild does not suppport passing --without-tls but ./configure script does support that option
Comment 5 tdr 2023-09-27 23:03:01 UTC
passing --without-tls  manually to ./configure still produces undefined refs to gnutls during linking.

tls support no longer optional?
Comment 6 Alfred Wingate 2023-10-02 07:58:37 UTC
It looks TLS will be definitely required in the next version, so it breaking in advance probably won't be a priority...

https://github.com/OpenPrinting/cups/commit/123baa03a4e09047cfa25e003a0a9db8cc8fc363

https://github.com/OpenPrinting/cups/blob/ebc4f87473126966551026d7486e6ffc0569e6a7/CHANGES.md

"Building with TLS support is now required - CUPS supports OpenSSL, GNUTLS and LibreSSL"
Comment 7 bagas 2023-10-04 15:29:05 UTC
Hello.
What is the current solution to the problem?
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-04 15:30:02 UTC
(In reply to bagas from comment #7)
> Hello.
> What is the current solution to the problem?

The bug will be updated when there's a fix.

(In reply to Alfred Wingate from comment #6)
> It looks TLS will be definitely required in the next version, so it breaking
> in advance probably won't be a priority...
> 
> https://github.com/OpenPrinting/cups/commit/
> 123baa03a4e09047cfa25e003a0a9db8cc8fc363
> 
> https://github.com/OpenPrinting/cups/blob/
> ebc4f87473126966551026d7486e6ffc0569e6a7/CHANGES.md
> 
> "Building with TLS support is now required - CUPS supports OpenSSL, GNUTLS
> and LibreSSL"

Yeah, time to require it then. Thanks.
Comment 9 Larry the Git Cow gentoo-dev 2023-10-04 15:33:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=517e978ef861d2037bf46f4d96e78c2bacbcef3b

commit 517e978ef861d2037bf46f4d96e78c2bacbcef3b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-10-04 15:32:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-04 15:32:27 +0000

    net-print/cups: require SSL
    
    Upstream have started to require SSL on master and the --disable-tls build
    broke in 2.4.7. There's no point in fighting it given master now
    requires it, see https://github.com/OpenPrinting/cups/commit/123baa03a4e09047cfa25e003a0a9db8cc8fc363.
    
    Closes: https://bugs.gentoo.org/914869
    Signed-off-by: Sam James <sam@gentoo.org>

 net-print/cups/{cups-2.4.7.ebuild => cups-2.4.7-r1.ebuild} | 12 ++++--------
 net-print/cups/cups-9999.ebuild                            | 12 ++++--------
 2 files changed, 8 insertions(+), 16 deletions(-)