Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 693678 - sys-fs/zfs should not inherit linux-mod to avoid virtual/linux-sources dependency
Summary: sys-fs/zfs should not inherit linux-mod to avoid virtual/linux-sources depend...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Yao (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-07 13:05 UTC by anonymous
Modified: 2020-09-23 05:33 UTC (History)
1 user (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 anonymous 2019-09-07 13:05:49 UTC
This prevents me from installing sys-fs/zfs on Raspberry Pi 3 B+ without virtual/linux-sources.

For sys-fs/zfs-kmod, env SYSROOT=/ ROOT=/path/to/rpi3b+ aarch64-unknown-linux-gnu-emerge is possible.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2019-09-30 23:44:11 UTC
as a workaround you can use package.provided for now.


we use some functions from linux-mod.eclass and I see no immediate solution.
probably eclass needs an override for not adding dependencies in some cases like this.
Comment 2 Georgy Yakovlev archtester gentoo-dev 2020-02-07 04:32:29 UTC
I took another look at it and looks like remove_moduledb call is not needed at all as sys-fs/zfs does not provide modules.
I'll try to test and remove eclass inherit soon.
Comment 3 Georgy Yakovlev archtester gentoo-dev 2020-02-07 04:59:40 UTC
actually it's needed but only for 9999 to get rebuilds in sync.

I made it inherit it conditionally so only 9999 will pull it for now, so at least versioned users could avoid kernel dep.
Comment 4 Larry the Git Cow gentoo-dev 2020-02-07 05:37:35 UTC
The bug has been referenced in the following commit(s):

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

commit 5e865d5c345bfdc20f459d096e4e8be2ca590f21
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-02-07 04:52:12 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-02-07 05:12:17 +0000

    sys-fs/zfs: update live ebuild
    
    require linux-mod only for live ebuilds, it's required for moduledb call
    to work but pulls kernel virtual
    
    Bug: https://bugs.gentoo.org/693678
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sys-fs/zfs/zfs-9999.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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

commit 2a8fc3d832d03e405a2dcfae98fd246012b63c7a
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-02-07 04:37:58 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-02-07 05:11:19 +0000

    sys-fs/zfs: revbump 0.8.3, drop py2, gcc10 compat, fixes
    
    Bug: https://bugs.gentoo.org/693678
    Bug: https://bugs.gentoo.org/706534
    Package-Manager: Portage-2.3.87, Repoman-2.3.20
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sys-fs/zfs/files/0.8.3-fno-common.patch            | 83 ++++++++++++++++++++++
 sys-fs/zfs/files/0.8.3-zfs-functions.patch         | 51 +++++++++++++
 .../zfs/{zfs-0.8.3.ebuild => zfs-0.8.3-r1.ebuild}  | 19 +++--
 3 files changed, 146 insertions(+), 7 deletions(-)
Comment 5 Georgy Yakovlev archtester gentoo-dev 2020-09-23 05:33:53 UTC
ok I don't think anything else can be done here.
We still need it for 9999 ebuilds, but versioned sys-fs/zfs should no longer pull it.

please re-open if needed.