Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942446 - sys-apps/portage-3.0.65-r1: with ROOT=, sys-apps/ifplugd triggered a configuration confusion
Summary: sys-apps/portage-3.0.65-r1: with ROOT=, sys-apps/ifplugd triggered a configur...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-29 11:24 UTC by Étienne Buira
Modified: 2024-10-29 13:05 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 Étienne Buira 2024-10-29 11:24:09 UTC
Hi,

For a bit of the context: i'm trying to build a minimal rootfs (basically) using ROOT=/wherever emerge $wanted_pkgs (i also generate binpkgs, for which i provide writable PKGDIR environment variable)

It proved simpler to do it with busybox, however, netifrc (which i want too) does not support busybox's ifplugd (-i vs --iface, maybe that should be considered a bug in itself, there are also other glitches using busybox with openrc).

So i added  sys-apps/ifplugd to $wanted_pkgs, but then emerge complained about /var/db/pkg not being writable (that came from lib/_emerge/actions.py:613), which is out of the configured ROOT.

The wrong thing here is portage selects /var/db/pkg not considering actual configuration.
I had a quick look at ebuild, but could not find anything obviously triggering 

For now, i disabled plug module in netifrc config, as i don't need it anyway.

I can provide more informations if asked, and i can test if wanted, but i don't plan to familiarise with portage innards.

Reproducible: Always
Comment 1 Étienne Buira 2024-10-29 13:05:03 UTC
Sorry about the noise, i messed about SYSROOT.