Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702322 - sys-apps/portage-2.3.79 --autounmask-write does not work while installing some packages with stable keyword
Summary: sys-apps/portage-2.3.79 --autounmask-write does not work while installing som...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-09 08:57 UTC by Yury Martynov
Modified: 2019-12-23 06:27 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 Yury Martynov 2019-12-09 08:57:51 UTC
`net-wireless/soapybladerf`
`media-gfx/kxstitch`
`net-analyzer/snmptt`

this isn't a complete list of packages with failed while installing

Output:
```
linxon@cirno-chan /etc/portage $ sudo emerge -av1 net-analyzer/snmptt

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "net-analyzer/snmptt" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-analyzer/snmptt-1.4::gentoo (masked by: ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

```

emerge --info
```
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.2.0, glibc-2.29-r2, 4.19.86-gentoo x86_64)
=================================================================
System uname: Linux-4.19.86-gentoo-x86_64-AMD_FX-tm-8320_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:     8142876 total,   1534812 free
KiB Swap:   16775160 total,  16775160 free
Timestamp of repository gentoo: Mon, 09 Dec 2019 07:30:01 +0000
Head commit of repository gentoo: 26ab4a8446bd487994d3a3938951f8fb4836e3f6
Timestamp of repository linxon: Sat, 07 Dec 2019 15:50:16 +0000
Head commit of repository linxon: 6265f9160e892ecd78683305ea44f025c7bf6f7d

Timestamp of repository mva: Sat, 07 Dec 2019 15:49:58 +0000
Head commit of repository mva: 97549fbf89a859fe2c5573576ae523f3dceea8d0

Timestamp of repository pentoo: Sat, 07 Dec 2019 16:26:01 +0000
Head commit of repository pentoo: 25e194faf4cba2adb2e4e109de303a46277f5695

sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.4 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 7

linxon
    location: /repos/linxon
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/linxon.git
    masters: gentoo

mva
    location: /repos/mva
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mva.git
    masters: gentoo

pentoo
    location: /repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo

Installed sets: @gentoo-dev, @linxon-fav, @portage-utils, @xfce
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/repos/www_binhost/distfiles"
EMERGE_DEFAULT_OPTS="--oneshot --keep-going --fail-clean"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=x86-64 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg ccache config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=x86-64 -O2 -pipe"
GENTOO_MIRRORS="http://minako-chan.lan/portage https://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru ru_RU"
MAKEOPTS="-j9"
PKGDIR="/repos/www_binhost/packages"
PORTAGE_BINHOST="http://minako-chan.lan/portage/packages/"
PORTAGE_BUNZIP2_COMMAND="lbunzip2 -n9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding btrfs bzip2 cairo cdda cdr cjk cli consolekit crypt cryptsetup cups curl cxx dbus dri drm dts dvd dvdr emboss encode exif fam fat ffmpeg flac fontconfig fortran fuse gdbm gif git gnome-keyring gnutls gpm gtk hddtemp http http2 iconv icu ipv6 jpeg jumbo-build lcms ldap libnotify libproxy libtirpc lz4 lzma lzo mad mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nfs nls nptl ntfs ogg opengl openmp opus pam pango pcre pdf pm-utils png policykit ppds pulseaudio qt5 rar readline samba sdl seccomp session sound spell split-usr ssl startup-notification svg tcpd theora thunar tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis wavpack webp wifi wxwidgets x264 xattr xcb xinerama xml xscreensaver xv xvid zeroconf zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="ru ru_RU" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="x86_64 i386 mips mipsel mips64 mips64el arm" QEMU_USER_TARGETS="x86_64 i386 mips mipsel mips64 mips64el arm" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" XFCE_PLUGINS="power clock trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
```

Reproducible: Sometimes
Comment 1 Yury Martynov 2019-12-09 09:01:23 UTC
Output2:
linxon@cirno-chan /tmp/linxon-tmp-files $ sudo emerge -av1 --autounmask-write net-analyzer/snmptt

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy "net-analyzer/snmptt" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-analyzer/snmptt-1.4::gentoo (masked by: ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 2 Yury Martynov 2019-12-09 09:13:27 UTC
but it works fine when I use --autounmask opt

Output3:
linxon@cirno-chan /tmp/linxon-tmp-files $ sudo emerge -av1 --autounmask net-analyzer/snmptt

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-perl/IO-stringy-2.111.0::gentoo  41 KiB
[ebuild  N     ] dev-perl/Config-IniFiles-2.940.0::gentoo  USE="-test" 64 KiB
[ebuild  N     ] net-analyzer/net-snmp-5.8-r1:0/35::gentoo  USE="X bzip2 ipv6 ssl tcpd zlib -doc -elf -kmem -libressl -lm-sensors -mfd-rewrites -minimal -mysql -netlink -pci -perl -python -rpm (-selinux) -smux -ucd-compat" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 6,441 KiB
[ebuild  N    ~] net-analyzer/snmptt-1.4::gentoo  USE="-mysql -postgres" 146 KiB

Total: 4 packages (4 new), Size of downloads: 6,690 KiB

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by net-analyzer/snmptt (argument)
=net-analyzer/snmptt-1.4 ~amd64

Would you like to add these changes to your config files? [Yes/No]
Comment 3 Yury Martynov 2019-12-09 09:25:12 UTC
Output4:
linxon@cirno-chan / $ getfacl -R /etc/portage/package.accept_keywords/ /etc/portage/package.keywords/
getfacl: Removing leading '/' from absolute path names
# file: etc/portage/package.accept_keywords
# owner: root
# group: portage
user::rwx
group::rwx
other::r-x

# file: etc/portage/package.accept_keywords/depends.conf
# owner: root
# group: portage
user::rw-
group::rw-
other::r--

# file: etc/portage/package.accept_keywords/packages.conf
# owner: root
# group: portage
user::rw-
group::rw-
other::r--

# file: etc/portage/package.keywords/
# owner: root
# group: portage
user::rwx
group::rwx
other::r-x

# file: etc/portage/package.keywords/zz-autounmask
# owner: root
# group: root
user::rw-
group::r--
other::r--
Comment 4 Zac Medico gentoo-dev 2019-12-09 09:44:42 UTC
This is the intended result of the changes from bug 658648. If you want the old behavior, then you need to set EMERGE_DEFAULT_OPTS="--autounmask" in /etc/portage/make.conf. This suggestion is included in the NEWS file:

https://gitweb.gentoo.org/proj/portage.git/commit/NEWS?id=196ff7d54f1a23646f2ad70801a7a04c80c0a8cd

Also there's now an elog message about this:

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