Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753245 - sys-fs/zfs needs subslot
Summary: sys-fs/zfs needs subslot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-05 19:40 UTC by Daniel M. Weeks
Modified: 2020-11-06 16:14 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 Daniel M. Weeks 2020-11-05 19:40:06 UTC
Between the 2.0.0_rc4 and 2.0.0_rc5, the soname of many libraries changed, ex:

/lib64/libnvpair.so.1 -> /lib64/libnvpair.so.3
/lib64/libzfs.so.1 -> /lib64/libzfs.so.3

(See also upstream commit: https://github.com/openzfs/zfs/commit/1f442afa419568ce98013edaea692328df183870)

I don't have an example of preserved libs from a package in the tree but I did run into an issue with a package I have that links against libzfs (below). I imagine there are packages in the tree that link against libzfs that will run into a similar issue.

!!! existing preserved libs:
>>> package: sys-fs/zfs-2.0.0_rc5
 *  - /lib64/libnvpair.so.1
 *  - /lib64/libnvpair.so.1.0.1
 *      used by /usr/lib64/python2.7/site-packages/libzfs/_libzfs.so (dev-python/libzfs-python-0_p20170717)
 *  - /lib64/libuutil.so.1
 *  - /lib64/libuutil.so.1.0.1
 *  - /lib64/libzfs.so.2
 *  - /lib64/libzfs.so.2.0.0
 *      used by /usr/lib64/python2.7/site-packages/libzfs/_libzfs.so (dev-python/libzfs-python-0_p20170717)
 *  - /lib64/libzfs_core.so.1
 *  - /lib64/libzfs_core.so.1.0.0
 *  - /lib64/libzpool.so.2
 *  - /lib64/libzpool.so.2.0.0
 *      used by /usr/lib64/python2.7/site-packages/libzfs/_libzfs.so (dev-python/libzfs-python-0_p20170717)

Reproducible: Always
Comment 1 Georgy Yakovlev archtester gentoo-dev 2020-11-05 21:48:07 UTC
sure I can a subslot, it changes very rarely though.

grub is a high-profile package that links to it, I imagine it can be semi-broken as well with USE=libzfs
Comment 2 Larry the Git Cow gentoo-dev 2020-11-06 02:45:13 UTC
The bug has been closed via the following commit(s):

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

commit cd2f0f5b00482b3deeb58c9931c11d83e403c43f
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-11-06 02:38:25 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-11-06 02:39:51 +0000

    sys-fs/zfs: revbump 2.0.0_rc5, add subslot
    
    SLOT="0/4"
    just libzfs soname major for now.
    possible candidates: libuutil, libzpool, libnvpair
    
    Closes: https://bugs.gentoo.org/753245
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sys-fs/zfs/{zfs-2.0.0_rc5.ebuild => zfs-2.0.0_rc5-r1.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

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

commit 5e5f1666fcb43c985ca3f610b36da25ce14ba979
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-11-06 02:41:41 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-11-06 02:43:56 +0000

    sys-boot/grub: add subslot dep on zfs in live ebuild
    
    Bug: https://bugs.gentoo.org/753245
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sys-boot/grub/grub-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 48e4896c01f41fc34ca9f948f095597e7de2180b
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-11-06 02:39:06 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-11-06 02:39:52 +0000

    sys-fs/zfs: sync live ebuild
    
    Bug: https://bugs.gentoo.org/753245
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sys-fs/zfs/zfs-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 Georgy Yakovlev archtester gentoo-dev 2020-11-06 02:48:58 UTC
I think libzfs major will be good enough for starters.

can add more libbraries later if needed.
Comment 4 Larry the Git Cow gentoo-dev 2020-11-06 16:14:44 UTC
The bug has been referenced in the following commit(s):

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

commit b1d47ca57faef307d738f83004fc27b32e252b93
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-11-06 16:13:14 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-11-06 16:13:14 +0000

    sys-boot/grub: apply libzfs slot-operator to all ebuilds
    
    Bug: https://bugs.gentoo.org/753245
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-boot/grub/{grub-2.04-r1.ebuild => grub-2.04-r2.ebuild}              | 2 +-
 ...grub-2.05_alpha20200310.ebuild => grub-2.05_alpha20200310-r1.ebuild} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)