Fails to build with python useflag enabled. Builds fine without python useflag enabled # eselect python list Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) part from meson.log Determining dependency 'python3.5' with pkg-config executable '/usr/bin/x86_64-pc-linux-gnu-pkg-config' plugins/python/meson.build:3:2: ERROR: Native dependency 'python3.5' not found Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-7.3.0, glibc-2.26-r6, 4.15.9-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.15.9-gentoo-x86_64-AMD_Ryzen_Threadripper_1950X_16-Core_Processor-with-gentoo-2.4.1 KiB Mem: 65886868 total, 42869236 free KiB Swap: 8388600 total, 8388600 free Timestamp of repository gentoo: Thu, 15 Mar 2018 23:43:33 +0000 Head commit of repository gentoo: 67f1856d11a17a2b868de3171f137a615720b590 Timestamp of repository rust: Wed, 14 Mar 2018 14:10:21 +0000 Head commit of repository rust: 2abbd17c917ef9286cb76fd9d0f33a8fe3aa378e sh bash 4.4_p19 ld GNU ld (Gentoo 2.30 p1) 2.30.0 distcc[128236] (dcc_mkdir) ERROR: mkdir '/tmp/portage/.distcc/state' failed: No such file or directory [disabled] app-shells/bash: 4.4_p19::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r2::gentoo dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo dev-util/cmake: 3.10.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/sandbox: 2.13::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r3::gentoo, 1.16.1-r1::gentoo sys-devel/binutils: 2.30::gentoo sys-devel/gcc: 7.3.0::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r2::gentoo sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 gyakovlev location: /var/db/repos/gyakovlev masters: gentoo rust location: /var/db/repos/rust sync-type: git sync-uri: https://github.com/gentoo-mirror/rust.git masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" 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=native -O2 -pipe" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--ask-enter-invalid --jobs=16 --load-average 32" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg cgroup collision-protect config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://mirrors.rit.edu/gentoo/ http://cosmos.illinois.edu/pub/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j32 -l32" PKGDIR="/var/cache/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="/tmp" USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb blueray branding bzip2 cairo cdda cdr cli colord crypt cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo exif fam fbcon ffmpeg flac fontconfig fortran gdbm gif glamor gmp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv icu idn introspection ios ipv6 jit jpeg lcms libnotify libsecret lm_sensors lzma lzo mad mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support readline seccomp smp sound spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower urandom usb vaapi vdpau vim-syntax vorbis wayland x264 xattr xcb xcomposite xft xinerama xml xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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 fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" 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 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= net-irc/hexchat-2.14.0::gentoo was built with the following: USE="dbus gtk libcanberra libnotify libproxy lua perl ssl -debug -libressl -plugin-checksum -plugin-fishlim -plugin-sysinfo -python (-theme-manager)" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_5 -python2_7 -python3_4 -python3_6" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Created attachment 524088 [details] meson-log.txt
Created attachment 524090 [details] build.log
pkg-config --list-all | grep python dbus-python dbus-python - Python bindings for D-Bus python-2.7 Python - Python library python-3.5 Python - Python library python-3.5m Python - Python library
those 2 probably worth another bug: here are some messages I get when hexchat loads. AutoLoad failed for: /usr/lib64/hexchat/plugins/lua.so No hexchat_plugin_init symbol; is this really a HexChat plugin? AutoLoad failed for: /usr/lib64/hexchat/plugins/perl.so No hexchat_plugin_init symbol; is this really a HexChat plugin? qfile * net-irc/hexchat (/usr/lib64/hexchat/plugins/perl.so) net-irc/hexchat (/usr/lib64/hexchat/plugins/lua.so) is meson or something over-stripping the libs? comparing readelf -Ws from hexchat-2.12.4-r2: readelf -Ws lua.so | grep hex 4: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_get_prefs 6: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_list_str 9: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_list_int 10: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_pluginpref_get_int 13: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_plugingui_remove 14: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_emit_print_attrs 18: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_pluginpref_get_str 19: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_strip 20: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_get_context 22: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_list_next 23: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_list_time 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_plugingui_add 32: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_list_get 33: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_pluginpref_set_int 47: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_hook_timer 55: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_printf 56: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_event_attrs_create 59: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_hook_server_attrs 70: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_hook_command 72: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_hook_server 75: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_pluginpref_set_str 76: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_nickcmp 78: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_commandf 80: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_list_free 84: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_hook_print_attrs 86: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_emit_print 88: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_unhook 93: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_get_info 94: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_free 96: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_hook_print 97: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_set_context 99: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_pluginpref_delete 107: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_send_modes 108: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_command 117: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_event_attrs_free 122: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_print 123: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_pluginpref_list 124: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND hexchat_find_context 129: 0000000000007220 234 FUNC GLOBAL DEFAULT 11 hexchat_plugin_deinit 130: 0000000000006fd0 581 FUNC GLOBAL DEFAULT 11 hexchat_plugin_init for 2.14 the output is empty. no hexchat_ symbols at all.
ok it's upstream issue with -pie https://github.com/hexchat/hexchat/commit/d72249d91f97e609e755e57f50db30d7a3fc8a06.diff with that patch everything's ok 2.14.1 is out meanwhile and that pie fix went in. does not solve python issue though.
found it: -Dwith-python="$(usex python "${EPYTHON}" false)" than line will pass "python3.5" as a version. meson expects pkgconfig name option('with-python', type: 'string', value: 'python3', description: 'Python scripting plugin. value is pkg-config name to use or "false"' and pkg-config wants dash delimeted "python-3.5" the only thing I have on my ming is: -Dwith-python="$(usex python "${EPYTHON/python/python-" false)" but it looks clunky.
missed a closing } in the previous comment. and NP-Hardass on irc suggested a saner alternative -Dwith-python="$(usex python "${EPYTHON/.*/}" false)" this will pass python3, and python-utils-r1.eclass#n1035 will create a wrapper for pkg-config for the current EPYTHON implementation we are building for.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1c7c83e038cd54d7390760d3f1f6578a215f043 commit f1c7c83e038cd54d7390760d3f1f6578a215f043 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-03-16 08:27:13 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-03-16 08:28:01 +0000 net-irc/hexchat: Bump to version 2.14.1. Removed old, Fixed build with USE="python" Thanks-to: Georgy Yakovlev <ya@sysdump.net> Closes: https://bugs.gentoo.org/650602 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-irc/hexchat/Manifest | 2 +- net-irc/hexchat/{hexchat-2.14.0.ebuild => hexchat-2.14.1.ebuild} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
*** Bug 650630 has been marked as a duplicate of this bug. ***