Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 604770

Summary: app-editors/neovim-0.1.7 does not respect -X use flag
Product: Gentoo Linux Reporter: Alexander Veit <gentoo>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Veit 2017-01-05 17:40:17 UTC
app-editors/neovim-0.1.7 does not respect -X use flag. It pulls in an unexpected amount of X dependencies.


Reproducible: Always

Steps to Reproduce:
1. Have the -X use flag in /etc/portage/make.conf
2. Add app-editors/neovim ~amd64 to /etc/portage/package.accept_keywords
3. emerge --tree --pretend --verbose app-editors/neovim

Actual Results:  
Many unwanted X11 dependencies are pulled in. The package's clipboard use flag seems to be responsible for this.

[ebuild     U ~] app-editors/neovim-0.1.7::gentoo [0.1.2::gentoo] USE="clipboard%* jemalloc luajit%* nvimpager tui%* -python -ruby% (-perl%)" 7,424 KiB
[ebuild  N     ]  x11-misc/xsel-1.2.0::gentoo  166 KiB
[ebuild  N     ]   x11-libs/libXext-1.3.3::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 381 KiB
[ebuild  N     ]   x11-libs/libXt-1.1.5::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 754 KiB
[ebuild  N     ]    x11-libs/libX11-1.6.4::gentoo  USE="ipv6 -doc -static-libs {-test}" ABI_X86="(64) -32 (-x32)" 2,286 KiB
[ebuild  N     ]     x11-libs/libxcb-1.12:0/1.12::gentoo  USE="-doc (-selinux) -static-libs {-test} -xkb" ABI_X86="(64) -32 (-x32)" 600 KiB
[ebuild  N     ]      x11-proto/xcb-proto-1.12-r2::gentoo  ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)" 151 KiB
[ebuild  N     ]      dev-libs/libpthread-stubs-0.3-r1::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 199 KiB
[ebuild  N     ]      x11-libs/libXdmcp-1.1.2-r1::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 324 KiB
[ebuild  N     ]      x11-libs/libXau-1.0.8::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 289 KiB
[ebuild  N     ]     x11-proto/inputproto-2.3.2::gentoo  ABI_X86="(64) -32 (-x32)" 197 KiB
[ebuild  N     ]     x11-proto/xf86bigfontproto-1.2.0-r1::gentoo  ABI_X86="(64) -32 (-x32)" 49 KiB
[ebuild  N     ]    x11-libs/libSM-1.2.2-r1::gentoo  USE="ipv6 uuid -doc -static-libs" ABI_X86="(64) -32 (-x32)" 341 KiB
[ebuild  N    ~]  dev-lua/mpack-1.0.3::gentoo  USE="luajit {-test}" 45 KiB
[ebuild     U ~]  dev-lua/lpeg-1.0.0-r1::gentoo [0.12::gentoo] USE="luajit%* -debug -doc" 69 KiB
[nomerge       ] x11-libs/libxcb-1.12:0/1.12::gentoo  USE="-doc (-selinux) -static-libs {-test} -xkb" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ]  x11-misc/util-macros-1.19.0::gentoo  79 KiB
[ebuild  N     ]  media-fonts/font-util-1.3.1::gentoo  150 KiB
[nomerge       ] x11-libs/libSM-1.2.2-r1::gentoo  USE="ipv6 uuid -doc -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ]  x11-libs/libICE-1.0.9::gentoo  USE="ipv6 -doc -static-libs" ABI_X86="(64) -32 (-x32)" 376 KiB
[nomerge       ] x11-libs/libXt-1.1.5::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ]  x11-proto/kbproto-1.0.7::gentoo  ABI_X86="(64) -32 (-x32)" 245 KiB
[nomerge       ] x11-libs/libXext-1.3.3::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ]  x11-proto/xextproto-7.3.0::gentoo  USE="-doc" ABI_X86="(64) -32 (-x32)" 224 KiB
[nomerge       ] x11-libs/libSM-1.2.2-r1::gentoo  USE="ipv6 uuid -doc -static-libs" ABI_X86="(64) -32 (-x32)"
[ebuild  N     ]  x11-libs/xtrans-1.3.5::gentoo  USE="-doc" 183 KiB
[ebuild  N     ]  x11-proto/xproto-7.0.29::gentoo  USE="-doc" ABI_X86="(64) -32 (-x32)" 302 KiB

Expected Results:  
Respect -X; do not pull in unwanted dependencies.

# /etc/portage/makeconf

CFLAGS="-march=silvermont -O2 -pipe"
CXXFLAGS="${CFLAGS}"

CHOST="x86_64-pc-linux-gnu"
CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"

USE="-bindist acpi svga unicode idn nptl nptlonly openmp mmap ipv6 maildir pam sasl ssl imap gzip bzip2 lzma pcre usb hddtemp git cdb dbm readline curl fftw png svg cairo vim-syntax ffmpeg hdf5 -systemd -X -xorg -kde -gnome -gtk -gtk2 -wxwidgets -qt -qt3 -qt4 -motif -opengl -alsa -dri -quicktime -abiword -xv -berkdb -mysql -dvd -cdr -dvdr -truetype -truetype-fonts -type1-fonts -ldap -lua -doc -deprecated -ruby"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j9"



# emerge --info

app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=silvermont -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=silvermont -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
USE="acl acpi amd64 bzip2 cairo cdb cli cracklib crypt curl cxx dbm ffmpeg fftw fortran gdbm git gzip hddtemp hdf5 iconv idn imap ipv6 lzma maildir mmap mmx mmxext modules multilib ncurses nls nptl nptlonly openmp pam pcre png readline sasl seccomp session sse sse2 ssl svg tcpd unicode usb vim-syntax xattr zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Matt Turner gentoo-dev 2020-02-05 06:38:01 UTC
Looks fixed to me. xsel is no longer a direct dep.