Trying to install app-pda/libplist-1.11, the emerge fails with this error: checking consistency of all components of python development environment... no configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================ build.log and config.log are attached. Reproducible: Always # emerge libplist -pv These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] app-pda/libplist-1.11:0/2::gentoo USE="python -static-libs" PYTHON_TARGETS="python2_7 python3_4 -python3_3" 0 KiB # emerge --info Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.2.0, glibc-2.22-r1, 4.2.3-gentoo x86_64) ================================================================= System uname: Linux-4.2.3-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2 KiB Mem: 3978724 total, 84576 free KiB Swap: 4030452 total, 3302704 free Timestamp of repository gentoo: Wed, 02 Dec 2015 16:00:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 ccache version 3.2.4 [disabled] app-shells/bash: 4.3_p42::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10-r4::gentoo, 3.4.3-r4::gentoo dev-util/ccache: 3.2.4::gentoo dev-util/cmake: 3.4.0-r1::gentoo dev-util/pkgconfig: 0.29::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.18.4::gentoo sys-apps/sandbox: 2.9::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.2.0::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 kodi-overlay location: /var/lib/layman/kodi-overlay sync-type: laymansync sync-uri: git://github.com/frace/kodi-overlay.git masters: gentoo priority: 50 mv location: /var/lib/layman/mv sync-type: laymansync sync-uri: git://anongit.gentoo.org/user/mv.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA Intel-SDP" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/spool/munin-async/.ssh" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.5" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto" MAKEOPTS="-j5" 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" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aacs acl acpi aiglx alsa amd64 amr amrnb amrwb animation apache2 apng artworkextra asf aspnet2 asyncns authdaemond avahi avi bash-completion bcmath berkdb bitmap-fonts bluetooth bluray bmp bonjour bzip2 cairo caps cdda cddb cdparanoia cdr celt chm clang cli cracklib crypt cryptsetup css curl cxx daap dbus device-mapper dga dhclient dirac divx4linux dlloader dovecot-sasl dpms dri dts dv dvb dvd dvdr dvdread egl enca encode exif faac fam fame fat fbcondecor fbsplash ffmpeg fftw firefox flac fontconfig foomaticdb fortran freetype ftp fuse gaim gd gdbm geoip gif gimpprint glamor gles glib glibc-omitfp glitz glut gphoto2 gsm gstreamer gstreamer10 gtk gtk2 gudev hardenedphp hbci howl howl-compat http2 https hwdb iconv icu idn imagemagick imap imlib innodb ipv6 java java5 jbig joystick jpeg jpeg2k junit kdbus kdehiddenvisibility kvm lapack lcms libfame libkms libnotify librtmp libsamplerate libusb lirc live llvm lm_sensors lzma lzo mad maildir mdadm mdnsresponder-compat mjpeg mmap mms mmx mmxext mng modules motif mozilla mozsvg mp3 mpeg mpeg2 mplayer multilib musepack mysql mythtv ncurses nemesi network networkmanager nls nptl nptlonly ntfs offensive ofx ogg oggvorbis openal openexr opengl openmp openvg opus pam pango pcre pcre16 pcre32 pdf pdflib perl phonon pic pie plymouth png pnp policykit postgres ppd ppds pulseaudio python qt qt3 qt3support qt4 quicktime quvi rar readline resolvconf rtc rtmp samba schroedinger screensaver sctp sdl seccomp session sftp sharedmem shout smp sna sni snmp sox speex spell sqlite sse sse2 ssh ssl steamruntime suspend2 svg systemd theora threads tiff tls transcode truetype truetype-fonts type-fonts udev udisks unicode unzip upnp ups usb uxa v4l2 vaapi vcd vdpau videos vorbis vpx wayland webdav webp webservices wifi win32codecs wmf wv x264 x265 xanim xattr xcb xcomposite xinerama xml xml2 xpm xprint xrandr xv xvfb xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic authn_core authz_core cache_disk authn_alias authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dconf deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest proxy proxy_ajp proxy_connect proxy_http proxy_fcgi reqtimeout cgi cgid unixd socache_shmcb http2" 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="mmx mmxext sse sse2 sse3 sse4_1 ssse3" CURL_SSL="openssl" 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="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel" 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" USE_PYTHON="2.7 3.4" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 418396 [details] build.log /var/tmp/portage/app-pda/libplist-1.11/temp/build.log
Created attachment 418398 [details] config.log /var/tmp/portage/app-pda/libplist-1.11/work/libplist-1.11-python3_4/config.log
same here at the tinderbox image amd64-plasma-unstable_20151204-112628
I've committed 1.11-r1 with some Python fixes, and disabled Python 3 support. Someone should really report this upstream, cause it uses outdated (2006) ac_python_devel.m4 that breaks with upstream Python 3 install.
Now libplist-1.11-r2 fails to configure the same error. Is there not any patch, which we can use?
(In reply to Juergen Rose from comment #5) > Now libplist-1.11-r2 fails to configure the same error. Is there not any > patch, which we can use? Just disable python3* targets for libplist in package.use: app-pda/libplist python_targets_python2_7 -python_targets_python3_3 -python_targets_python3_4 -python_targets_python3_5
(In reply to Denis Sokolovsky from comment #6) > (In reply to Juergen Rose from comment #5) > > Now libplist-1.11-r2 fails to configure the same error. Is there not any > > patch, which we can use? > > Just disable python3* targets for libplist in package.use: > app-pda/libplist python_targets_python2_7 -python_targets_python3_3 > -python_targets_python3_4 -python_targets_python3_5 Thanks Denis, worked.
*** Bug 570106 has been marked as a duplicate of this bug. ***
*** Bug 569050 has been marked as a duplicate of this bug. ***
The disable-python-target workaround is not really a workaround if people are actually using libimobiledevice as python3 is required by other packages that depend on the whole stack (eg, gnome-gvfs). The problem is "simple" but the solution isn't quite as straightforward, as the current the autoconf m4 macro (ac_python_devel) gets one thing right and one thing wrong: checking for Python include path... -I/usr/include/python3.4m <= right checking for Python library path... -L/usr/lib64/python3.4 -lpython3.4 <= wrong If someone has a clean way of changing the latter lib argument to -lpython3.4m it builds/links fine. I looked at it yesterday, but I didn't find a good eclass fix or sed hack (but I will say the current ebuild could be cleaner, as it seems to run configure several more times than it needs to...) Maybe an eclass enhancement to stave off future bugs?
Slight variation on something i tried yesterday pointed out in the Arch build setup works here, pushed the fix into last 2 versions (1.11-r2 and 1.12). Give it a shot...
ydep, fixed
After that change, we get this: /tmp/portage/app-pda/libplist-1.12/work/libplist-1.12/configure: line 17140: AX_PYTHON_DEVEL: command not found
commit 0f0051b915b593a44b9150be6d1744a7ea1215d0 Author: Mike Gilbert <floppym@gentoo.org> Date: Sun Jan 24 21:14:31 2016 -0500 app-pda/libplist: Override PYTHON_LDFLAGS in src_configure Works around broken build system. Bug: https://bugs.gentoo.org/567370 Package-Manager: portage-2.2.27_p49 app-pda/libplist/libplist-1.11-r2.ebuild | 13 ++++++------- app-pda/libplist/libplist-1.12.ebuild | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-)
Shouldn't 1.11-r2 be stabilized for amd64? because at the moment this is broken for anybody on stable amd64 after the last changes in the tree.
*** Bug 601970 has been marked as a duplicate of this bug. ***