Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883361 - sys-apps/coreutils-9.1-r1: automagic openssl dependency
Summary: sys-apps/coreutils-9.1-r1: automagic openssl dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: openssl-3.0
  Show dependency tree
 
Reported: 2022-11-27 22:36 UTC by Arsen Arsenović
Modified: 2023-01-20 23:30 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arsen Arsenović gentoo-dev 2022-11-27 22:36:10 UTC
coreutils a few uses crypto/* gnulib modules for a few things, leading to openssl being linked in without coreutils declaring that, leading to a break on an openssl 1 -> 3 migration in my case.

 * VDB: detected possibly incorrect RDEPEND (sys-apps/coreutils-9.1-r1)
 *  > dev-libs/openssl:=

I haven't examined whether this dependency can be avoided yet.
Comment 1 Ionen Wolkens gentoo-dev 2022-11-27 22:39:28 UTC
As far as I can tell the default is:

  --with-openssl=auto-gpl-compat

Which checks if openssl is gpl compatible, and uses it if so. My own sort(1) is not using it, so probably need some flags on openssl or something (haven't looked closer).
Comment 2 Arsen Arsenović gentoo-dev 2022-11-27 22:41:35 UTC
I think OpenSSL 3 gained GPL compatibility by default, so that'd explain why I'm seeing this now maybe?
Comment 3 Ionen Wolkens gentoo-dev 2022-11-27 22:48:13 UTC
(In reply to Arsen Arsenovic from comment #2)
> I think OpenSSL 3 gained GPL compatibility by default, so that'd explain why
> I'm seeing this now maybe?
Yeah, I tried to rebuild (hadn't since migrated to openssl-3), and now it's using it.

Option has a few choices anyhow:

  --with-openssl[=ARG]    use libcrypto hash routines for the hash functions
                          MD5, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512.
                          Valid ARGs are:
                            'yes',
                            'no',
                            'auto' => use if any version available,
                            'auto-gpl-compat' => use if GPL compatible version
                                                 available,
                            'optional' => use if available
                                          and warn if not available;
                          Default is 'auto-gpl-compat'.
Comment 4 Larry the Git Cow gentoo-dev 2022-11-27 23:17:52 UTC
The bug has been referenced in the following commit(s):

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

commit e314cba7526798250763ecde0769b16a4b58495d
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2022-11-27 23:17:05 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2022-11-27 23:17:41 +0000

    sys-apps/coreutils: Revbump with openssl useflag, unkeyworded
    
    Bug: https://bugs.gentoo.org/883361
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-apps/coreutils/coreutils-9.1-r2.ebuild | 251 +++++++++++++++++++++++++++++
 sys-apps/coreutils/metadata.xml            |   1 +
 2 files changed, 252 insertions(+)
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2022-11-27 23:20:50 UTC
I'll leave 9.1-r2 unkeyworded until I have a few more opinions from @base if that's the right way to go.
Comment 6 Larry the Git Cow gentoo-dev 2022-11-28 02:50:45 UTC
The bug has been referenced in the following commit(s):

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

commit e12555e5e81966a3e8113735c4c6927b7b3eb81f
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2022-11-28 02:48:06 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-11-28 02:49:35 +0000

    sys-apps/coreutils: utilize use_with function for openssl
    
    --with-openssl is equivalent to --with-openssl=yes.
    --without-openssl is equivalent to --with-openssl=no.
    
    Bug: https://bugs.gentoo.org/883361
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/coreutils/coreutils-9.1-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-28 02:52:46 UTC
I remember bringing this up in -base back when 9.0 first landed and we had some ambiguity for a reason I don't recall. I'll check logs when I'm back. The OpenSSL 3 thing might've been it!