Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764524 - app-emulation/docker-20.10.2: USE Flag 'selinux' not in IUSE
Summary: app-emulation/docker-20.10.2: USE Flag 'selinux' not in IUSE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-08 23:51 UTC by silence
Modified: 2021-01-10 03:52 UTC (History)
16 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 silence 2021-01-08 23:51:13 UTC
* Package:    app-emulation/docker-20.10.2
 * Repository: gentoo
 * Maintainer: williamh@gentoo.org gyakovlev@gentoo.org
 * USE:        abi_x86_64 amd64 cli container-init elibc_glibc kernel_linux seccomp userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * FEATURES='assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr'
 * CFLAGS='-march=native -O3 -fno-signed-zeros -fno-trapping-math -fassociative-math -freciprocal-math -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range -fexcess-precision=fast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed'
 * CXXFLAGS='-march=native -O3 -fno-signed-zeros -fno-trapping-math -fassociative-math -freciprocal-math -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range -fexcess-precision=fast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed'
 * FFLAGS='-march=native -O3 -fno-signed-zeros -fno-trapping-math -fassociative-math -freciprocal-math -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range -fexcess-precision=fast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed'
 * FCFLAGS='-march=native -O3 -fno-signed-zeros -fno-trapping-math -fassociative-math -freciprocal-math -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range -fexcess-precision=fast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed'
 * F77FLAGS='-march=native -O3 -fno-signed-zeros -fno-trapping-math -fassociative-math -freciprocal-math -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range -fexcess-precision=fast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=8 -fuse-linker-plugin -pipe -falign-functions=32 -Wl,-O1 -Wl,--as-needed'
 * LDFLAGS='-Wl,-O1 -Wl,--as-needed -fuse-linker-plugin -flto=8 -O3 -Wl,-O1 -march=native -fno-signed-zeros -fno-trapping-math -fassociative-math -freciprocal-math -fno-math-errno -ffinite-math-only -fno-rounding-math -fno-signaling-nans -fcx-limited-range -fexcess-precision=fast -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -pipe -falign-functions=32'
 * MAKEOPTS='-j8'
 * gcc (Gentoo 10.2.0-r5 p6) 10.2.0
 * g++ (Gentoo 10.2.0-r5 p6) 10.2.0
 * GNU ld (Gentoo 2.35.1 p2) 2.35.1
 * Linux op2 5.10.4-gentoo #6 SMP Thu Dec 31 09:46:06 EST 2020 x86_64 Intel(R) Xeon(R) E-2274G CPU @ 4.00GHz GenuineIntel GNU/Linux
app-emulation/docker: 1 minute, 24 seconds average for 28 merges
2019-10-18T19:44:38 >>> app-emulation/docker: 1 minute, 12 seconds
2019-10-18T23:48:11 >>> app-emulation/docker: 1 minute, 22 seconds
2019-10-22T07:57:37 >>> app-emulation/docker: 1 minute, 29 seconds
2019-11-07T14:22:41 >>> app-emulation/docker: 1 minute, 36 seconds
2019-11-14T09:43:38 >>> app-emulation/docker: 1 minute, 26 seconds
2019-11-19T15:03:13 >>> app-emulation/docker: 1 minute, 39 seconds
2019-11-19T15:07:43 >>> app-emulation/docker: 1 minute, 38 seconds
2019-11-19T16:55:56 >>> app-emulation/docker: 1 minute, 16 seconds
2019-11-20T14:56:30 >>> app-emulation/docker: 1 minute, 36 seconds
2020-01-17T12:33:51 >>> app-emulation/docker: 1 minute, 30 seconds
2020-02-14T09:51:10 >>> app-emulation/docker: 1 minute, 33 seconds
2020-03-04T09:03:42 >>> app-emulation/docker: 1 minute, 35 seconds
2020-03-05T09:42:07 >>> app-emulation/docker: 1 minute, 20 seconds
2020-03-13T15:09:30 >>> app-emulation/docker: 1 minute, 31 seconds
2020-05-11T09:29:11 >>> app-emulation/docker: 1 minute, 33 seconds
2020-07-10T15:20:45 >>> app-emulation/docker: 1 minute, 28 seconds
2020-07-24T17:44:29 >>> app-emulation/docker: 1 minute, 53 seconds
2020-09-24T12:35:28 >>> app-emulation/docker: 1 minute, 30 seconds
2020-10-07T17:26:35 >>> app-emulation/docker: 1 minute, 19 seconds
2020-10-16T18:08:59 >>> app-emulation/docker: 1 minute, 21 seconds
2020-10-27T14:48:54 >>> app-emulation/docker: 1 minute, 24 seconds
2020-10-27T16:50:59 >>> app-emulation/docker: 1 minute, 15 seconds
2020-11-02T09:14:00 >>> app-emulation/docker: 1 minute, 20 seconds
2020-11-13T09:26:57 >>> app-emulation/docker: 1 minute, 4 seconds
2020-12-03T10:20:54 >>> app-emulation/docker: 1 minute, 18 seconds
2020-12-31T10:19:08 >>> app-emulation/docker: 1 minute, 4 seconds
2021-01-05T10:13:08 >>> app-emulation/docker: 44 seconds
2021-01-06T17:59:22 >>> app-emulation/docker: 1 minute, 38 seconds
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     5.10.5-gentoo
 * Checking for suitable kernel configuration options...
 *   CONFIG_XFRM_ALGO: is optional for secure networks
 *   CONFIG_XFRM_USER: is optional for secure networks
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/app-emulation/docker-20.10.2/work
>>> Preparing source in /var/tmp/portage/app-emulation/docker-20.10.2/work/docker-20.10.2/src/github.com/moby/moby ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/docker-20.10.2/work/docker-20.10.2/src/github.com/moby/moby ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-emulation/docker-20.10.2/work/docker-20.10.2/src/github.com/moby/moby ...
 * ERROR: app-emulation/docker-20.10.2::gentoo failed (compile phase):
 *   USE Flag 'selinux' not in IUSE for app-emulation/docker-20.10.2
 *
 * Call stack:
 *          ebuild.sh, line  125:  Called src_compile
 *        environment, line 3275:  Called use 'selinux'
 *   phase-helpers.sh, line  246:  Called die
 * The specific snippet of code:
 *                              die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}"
 *
 * If you need support, post the output of `emerge --info '=app-emulation/docker-20.10.2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/docker-20.10.2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/docker-20.10.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/docker-20.10.2/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/docker-20.10.2/work/docker-20.10.2/src/github.com/moby/moby'
 * S: '/var/tmp/portage/app-emulation/docker-20.10.2/work/docker-20.10.2/src/github.com/moby/moby'
Comment 1 Ionen Wolkens gentoo-dev 2021-01-09 02:54:18 UTC
Please use bugzilla attachments for logs and provide emerge --info the future.

That aside 20.10.2 did remove IUSE=selinux and there's still:
    for tag in apparmor seccomp selinux; do
        if use $tag; then

Built fine after I re-added IUSE=selinux and changed
    EGO_PN="github.com/moby/moby"
to
    EGO_PN="github.com/docker/docker"
Comment 2 Nikos Chantziaras 2021-01-09 03:22:09 UTC
Had the same issue. These two ebuild changes fixed it for me.
Comment 3 gentoo@imrebuild.com 2021-01-09 06:54:16 UTC
The selinux build tag has been removed in 20.10.2 with commit https://github.com/moby/moby/commit/1c0af18c6c341636ac55644103f922900c616bec. So it's better to remove it completely rather than re-adding to IUSE.

As for the second problem, I'm not sure if it is because hack/make.sh set DOCKER_PKG to 'github.com/docker/docker'. But changing EGO_PN to "github.com/docker/docker" does fix the problem.
Comment 4 Larry the Git Cow gentoo-dev 2021-01-09 20:57:08 UTC
The bug has been closed via the following commit(s):

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

commit 674aed3fda2de9134fd6b528de264a2b1b2ccac7
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2021-01-09 20:53:34 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2021-01-09 20:56:46 +0000

    app-emulation/docker: build fixes for 20.10.2
    
    - Complete removal of selinux use flag
    - fix EGO_PN
    
    Closes: https://bugs.gentoo.org/764524
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 app-emulation/docker/docker-20.10.2.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)