Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902829 - dev-libs/openssl: sys-apps/coreutils[openssl,split-usr] needs shared libcrypto in /lib
Summary: dev-libs/openssl: sys-apps/coreutils[openssl,split-usr] needs shared libcrypt...
Status: RESOLVED WONTFIX
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: 398051
  Show dependency tree
 
Reported: 2023-03-23 17:39 UTC by Guillermo D. H.
Modified: 2024-02-15 03:39 UTC (History)
3 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 Guillermo D. H. 2023-03-23 17:39:53 UTC
sys-apps/coreutils[openssl,split-usr] installs the sort program in /bin, sort links to libcrypto, and libcrypto is installed in /usr.

$ ldd /bin/sort 
	linux-vdso.so.1 (0x00007fff0a3c7000)
	libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x00007f385eb30000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f385e960000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f385ee17000)

Therefore, dev-libs/openssl should install libcrypto in /$(get_libdir) if the split-usr USE flag is set.
Comment 1 Mike Gilbert gentoo-dev 2023-03-23 17:57:53 UTC
By council decision, Gentoo requires that you have /usr mounted in early boot, so it doesn't really matter that libcrypto lives in /usr/lib.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-23 18:18:35 UTC
I also summarise the problem at https://bugs.gentoo.org/868306#c10.
Comment 4 Guillermo D. H. 2023-03-23 18:25:18 UTC
(In reply to Mike Gilbert from comment #1)
> By council decision, Gentoo requires that you have /usr mounted in early
> boot, [...]

Yes,but we still keep the consistency with /{bin,sbin} <--> /lib, and /usr/{bin,sbin} <--> /ust/link, don't we?
Comment 5 Guillermo D. H. 2023-03-23 18:28:22 UTC
(In reply to Guillermo D. H. from comment #4)
> 
> /usr/{bin,sbin} <--> /ust/link

That should be /usr/lib...
Comment 6 Guillermo D. H. 2023-03-23 18:31:39 UTC
(In reply to Sam James from comment #3)
> I also summarise the problem at https://bugs.gentoo.org/868306#c10.

Yes. I'm doing exactly what you say in the second paragraph, testing and alerting via a bug report.
Comment 7 Mike Gilbert gentoo-dev 2023-03-23 19:01:06 UTC
I don't think it makes sense to move additional libraries to /lib if the only benefit is consistency between /bin and /lib. It doesn't solve any real problems.
Comment 8 Guillermo D. H. 2023-03-23 19:33:27 UTC
(In reply to Mike Gilbert from comment #7)
> I don't think it makes sense to move additional libraries to /lib if the
> only benefit is consistency between /bin and /lib. It doesn't solve any real
> problems.

Things like this have been fixed before:

https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-libs/libpcre2?id=853ffc254e93646e53de72c0b5db8b2b04521941

I also see bug #398053 open, which is of a similar type, so I still consider this a QA issue.

Mike, I get that you and others are volunteers and don't necessarily like to test things like this. That's fine, there's people like me willing to do that for you.

So, anyone here other than Mike willing to commit a fix? I can fix OpenSSL's packaging on my computer with a local ebuild repository, but that will only benefit myself.
Comment 9 Mike Gilbert gentoo-dev 2023-03-23 21:03:11 UTC
(In reply to Guillermo D. H. from comment #8)
> I also see bug #398053 open, which is of a similar type, so I still consider
> this a QA issue.

Bug 398053 is over 10 years old, and predates the council decision to stop supporting this.
Comment 10 Mike Gilbert gentoo-dev 2023-03-24 02:46:40 UTC
> So, anyone here other than Mike willing to commit a fix?

If someone else wants to move the openssl libs to /lib via get_usr_ldscript, I have no strong objection.
Comment 11 Larry the Git Cow gentoo-dev 2024-01-05 04:10:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=114a15884faf88f202073de48812613b264f49e0

commit 114a15884faf88f202073de48812613b264f49e0
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-01-02 04:04:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-05 04:10:37 +0000

    2024-01-05-usr-initramfs: add news item
    
    Revival of commit a79dd69b0cca439bc0c483c9193c79e0554819d0.
    
    Bug: https://bugs.gentoo.org/868306#c10
    Bug: https://bugs.gentoo.org/902829
    Bug: https://bugs.gentoo.org/915379
    Bug: https://bugs.gentoo.org/825078
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../2024-01-05-usr-initramfs.en.txt                | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)
Comment 12 vernakuhlman 2024-02-15 01:33:42 UTC Comment hidden (spam)