Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934574 - Dependency satisfaction failure with ~amd64 and overlays
Summary: Dependency satisfaction failure with ~amd64 and overlays
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-19 20:33 UTC by Anthony Ryan
Modified: 2024-06-19 20:47 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 Anthony Ryan 2024-06-19 20:33:42 UTC
# I observed that the www-servers/nginx in an overlay failed to satisfy virtual/httpd-cgi


# Clean stage3
mkdir gentoo-stage3
cd gentoo-stage3
wget https://distfiles.gentoo.org/releases/amd64/autobuilds/20240616T153408Z/stage3-amd64-openrc-20240616T153408Z.tar.xz
tar xf stage3-amd64-openrc-20240616T153408Z.tar.xz

# Prep chroot
cp /etc/resolv.conf ./etc/resolv.conf
mount --rbind /dev ./dev
mount --make-rslave ./dev
mount -t proc /proc ./proc
mount --rbind /sys ./sys
mount --make-rslave ./sys
mount --rbind /tmp ./tmp
mount --bind /run ./run 

# Chroot
chroot ./

# Minimum settings for clean builds
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
locale-gen

# Sync
emerge --sync
cp -r /var/db/repos/gentoo /var/db/repos/test-overlay
echo 'test-overlay' > /var/db/repos/test-overlay/profiles/repo_name
rm /var/db/repos/test-overlay/www-servers/nginx/nginx-1.27.0.ebuild

# Populate /etc/portage/repos.conf
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/db/repos/gentoo

[test-overlay]
location = /var/db/repos/test-overlay

# Setup keywords
echo 'app-misc/mime-types nginx' > /etc/portage/package.use/test
echo 'www-servers/nginx' > /etc/portage/package.accept_keywords/test

# Break dependency resolution
emerge www-servers/nginx::test-overlay virtual/httpd-cgi -v

# www-servers/nginx::test-overlay should satisfy virtual/httpd-cgi
# but does not and we wind up with the slot constraints 0 blocking
# mainline and mainline blocking 0 creating a situation it can't
# resolve independently even though it's already been met.
Comment 1 Anthony Ryan 2024-06-19 20:47:49 UTC
Also to clarify, the emerge version in the that stage3 is:

emerge --version
Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0, gcc-13, glibc-2.39-r6, 6.9.4-gentoo x86_64)