Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764758 - app-emulation/docker "USE Flag 'selinux' not in IUSE" and "cannot find package github.com/docker/docker/cmd/dockerd" problem's fix
Summary: app-emulation/docker "USE Flag 'selinux' not in IUSE" and "cannot find packa...
Status: RESOLVED DUPLICATE of bug 764716
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-01-10 05:28 UTC by MuhammedTaha
Modified: 2021-06-02 12:39 UTC (History)
4 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 MuhammedTaha 2021-01-10 05:28:02 UTC
If I try to update Docker I get the following errors

"""USE Flag 'selinux' not in IUSE"""
"""cannot find package github.com/docker/docker/cmd/dockerd"""



I solved the problem like this

@@ -14,7 +14,7 @@ SRC_URI="https://github.com/moby/moby/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-IUSE="apparmor aufs btrfs +cli +container-init device-mapper hardened overlay seccomp"
+IUSE="apparmor aufs btrfs +cli +container-init device-mapper hardened overlay seccomp selinux"

DEPEND="
	acct-group/docker
@@ -209,6 +209,8 @@ src_compile() {
			-i hack/make/dynbinary-daemon || die
		grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
	fi
+	ln -sf ${WORKDIR}/${P}/src/github.com/moby ${WORKDIR}/${P}/src/github.com/docker
+	ln -sf ${WORKDIR}/${P}/src/github.com/moby/moby ${WORKDIR}/${P}/src/github.com/docker/docker

	# build daemon
	./hack/make.sh dynbinary || die 'dynbinary failed'
Comment 1 Ionen Wolkens gentoo-dev 2021-01-10 05:42:41 UTC
This should be already fixed from bug #764524

However, sync mirror is lagging behind right now so (hasn't updated in ~12h), so likely haven't gotten the fix yet.
Comment 2 MuhammedTaha 2021-01-10 05:45:40 UTC
(In reply to Ionen Wolkens from comment #1)
> This should be already fixed from bug #764524
> 
> However, sync mirror is lagging behind right now so (hasn't updated in
> ~12h), so likely haven't gotten the fix yet.


The SELinux error may have been fixed. But the "cannot find package github.com/docker/docker/cmd/dockerd" error needs to be fixed by docker. For now, this error can be solved with symlink.
Comment 3 Ionen Wolkens gentoo-dev 2021-01-10 05:52:03 UTC
(In reply to MuhammedTaha from comment #2)
> The SELinux error may have been fixed. But the "cannot find package
> github.com/docker/docker/cmd/dockerd" error needs to be fixed by docker.
That was fixed too at same time by changing EGO_PN, see commit:

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

It emerges fine with that commit for me at least.
Comment 4 MuhammedTaha 2021-01-10 05:57:00 UTC
(In reply to Ionen Wolkens from comment #3)
> (In reply to MuhammedTaha from comment #2)
> > The SELinux error may have been fixed. But the "cannot find package
> > github.com/docker/docker/cmd/dockerd" error needs to be fixed by docker.
> That was fixed too at same time by changing EGO_PN, see commit:
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=674aed3fda2de9134fd6b528de264a2b1b2ccac7
> 
> It emerges fine with that commit for me at least.

Thanks
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-02 12:39:27 UTC

*** This bug has been marked as a duplicate of bug 764716 ***