Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578102 - net-im/pidgin-2.10.12-r2 python_fix_shebang, did not match any fixable files.
Summary: net-im/pidgin-2.10.12-r2 python_fix_shebang, did not match any fixable files.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-23 16:13 UTC by Conrad Kostecki
Modified: 2021-07-27 08:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,336.69 KB, text/x-log)
2016-03-23 16:29 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2016-03-23 16:13:05 UTC
pidgin fails to build
[ebuild     U  ] net-im/pidgin-2.10.12-r2::gentoo [2.10.12-r1::gentoo] USE="gadu idn ncurses nls pie python spell (-aqua) -dbus -debug -doc -eds -gnutls -groupwise -gstreamer -gtk -meanwhile -mxit -networkmanager -perl -prediction -sasl -silc -tcl -tk -xscreensaver -zephyr -zeroconf" PYTHON_SINGLE_TARGET="python3_4 -python2_7 -python3_3" PYTHON_TARGETS="python2_7 python3_4 -python3_3"

make[2]: Entering directory '/var/tmp/portage/net-im/pidgin-2.10.12-r2/work/pidgin-2.10.12/share/sounds'
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/var/tmp/portage/net-im/pidgin-2.10.12-r2/image//usr/share/sounds/purple'
 /usr/bin/install -c -m 644 alert.wav login.wav logout.wav receive.wav send.wav '/var/tmp/portage/net-im/pidgin-2.10.12-r2/image//usr/share/sounds/purple'
make[2]: Leaving directory '/var/tmp/portage/net-im/pidgin-2.10.12-r2/work/pidgin-2.10.12/share/sounds'
make[1]: Leaving directory '/var/tmp/portage/net-im/pidgin-2.10.12-r2/work/pidgin-2.10.12/share/sounds'
 * QA warning: python_fix_shebang,  did not match any fixable files.
 * There are no Python files in specified directory.
 * ERROR: net-im/pidgin-2.10.12-r2::gentoo failed (install phase):
 *   python_fix_shebang did not match any fixable files (QA warning fatal in EAPI 6)
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_install
 *   environment, line 4688:  Called python_fix_shebang '/var/tmp/portage/net-im/pidgin-2.10.12-r2/image/'
 *   environment, line 4089:  Called die
 * The specific snippet of code:
 *               [[ ${cmd} == eerror ]] && die "${FUNCNAME} did not match any fixable files (QA warning fatal in EAPI ${EAPI})";
 * 
 * If you need support, post the output of `emerge --info '=net-im/pidgin-2.10.12-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-im/pidgin-2.10.12-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-im/pidgin-2.10.12-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-im/pidgin-2.10.12-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/net-im/pidgin-2.10.12-r2/work/pidgin-2.10.12'
 * S: '/var/tmp/portage/net-im/pidgin-2.10.12-r2/work/pidgin-2.10.12'
 * QA Notice: Unrecognized configure options:
 * 
 *      --with-gadu-includes
 *      --with-gadu-libs
 *      --with-gadu-includes
 *      --with-gadu-libs
Comment 1 Conrad Kostecki gentoo-dev 2016-03-23 16:13:24 UTC
Portage 2.2.28 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.3.0, glibc-2.22-r2, 4.4.3-gentoo x86_64)
=================================================================
System uname: Linux-4.4.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Swap:   33537916 total,  33537916 free
Timestamp of repository gentoo: Wed, 23 Mar 2016 15:15:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.5.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --delete-before --delete-excluded --exclude-from=/etc/portage/rsync_excludes --stats

bl4ckb0x
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -mpopcnt -msahf -pipe -fomit-frame-pointer -mfpmath=sse"
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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mcx16 -mpopcnt -msahf -pipe -fomit-frame-pointer -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/etc/systemd/network/* /etc/systemd/system/* /etc/xinetd.d/* /usr/lib64/systemd/system/* /usr/lib64/systemd/system-shutdown/*"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j9 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--delete-before --delete-excluded --exclude-from=/etc/portage/rsync_excludes --stats"
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="X accessibility alsa amd64 bash-completion berkdb bzip2 cairo caps cdinstall cracklib crypt ctype curl cvs cxx dbus dedicated encode exif fontconfig fortran ftp gd git gmp gnutls gpm graphviz iconv icu idn ipv6 jabber javascript jit jpeg jpeg2k lcms lm_sensors lzma lzo maildir mhash mng mysql mysqli ncurses nls nntp nptl offensive ogg openal opengl openmp pam pcre perl pie png posix python qt4 readline sasl seccomp session simplexml slang sockets speex spell sqlite ssl subversion suid svg symlink tcpd theora threads tiff truetype udev unicode usb vhosts vim-syntax vorbis xml yahoo zlib" ABI_X86="64" COLLECTD_PLUGINS="cgroups conntrack contextswitch cpu cpufreq df disk dns entropy ethstat exec filecount hddtemp interface iptables irq load logfile md memory mysql netlink nginx openvpn ping postgresql processes rrdcached sensors serial swap tail tcpconns thermal uptime users unixsock" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LINGUAS="de" NGINX_MODULES_HTTP="access auth_basic autoindex charset fancyindex fastcgi gzip http2 proxy realip rewrite stub_status" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_USER_TARGETS="i386 x86_64" USERLAND="GNU" VIDEO_CARDS="intel"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-03-23 16:22:25 UTC
Please add the build.log file (I need the USE flags you were using).
Comment 3 Conrad Kostecki gentoo-dev 2016-03-23 16:29:11 UTC
Created attachment 428842 [details]
build.log

(In reply to Lars Wendler (Polynomial-C) from comment #2)
> Please add the build.log file (I need the USE flags you were using).

Those are in the first post ;)

Attaching my build.log
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-04-06 06:33:38 UTC
Dunno how you managed to run into this problem. When I emerge pidgin with your USE settings I get the following at the end:

 * Fixing shebang in usr/bin/purple-url-handler.
 * Fixing shebang in usr/bin/purple-remote.


So portage definitely finds scripts that need shebang fixing.
Comment 5 Conrad Kostecki gentoo-dev 2016-04-06 08:02:00 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #4)
> Dunno how you managed to run into this problem. When I emerge pidgin with
> your USE settings I get the following at the end:
> 
>  * Fixing shebang in usr/bin/purple-url-handler.
>  * Fixing shebang in usr/bin/purple-remote.
> 
> 
> So portage definitely finds scripts that need shebang fixing.

Well, I also don't know :D
Is there anything, which would you help?

I am still able to reproduce this :/
Comment 6 Tomáš Cícha 2016-05-18 14:09:57 UTC
This happens with USE="-dbus python", which is (according to the build log) your case.

USE flags you posted in contain dbus, but your build log does not - which is certainly the source of confusion here.

Helper scripts are not installed when pidgin is configured without dbus (see libpurple/Makefile.in)

Maybe REQUIRED_USE="python? ( dbus )" is in order?
Comment 7 Conrad Kostecki gentoo-dev 2016-05-18 14:51:43 UTC
(In reply to Tomáš Cícha from comment #6)
> This happens with USE="-dbus python", which is (according to the build log)
> your case.
> 
> USE flags you posted in contain dbus, but your build log does not - which is
> certainly the source of confusion here.
> 
> Helper scripts are not installed when pidgin is configured without dbus (see
> libpurple/Makefile.in)
> 
> Maybe REQUIRED_USE="python? ( dbus )" is in order?

Great! You are right. I am setting dbus globally, but for pidgin, dbus is disabled in package.use/use.

USE="dbus python" works
USE="-python -dbus" works
USE="-dbus pyython" fails and shows python_fix_shebang,  did not match any fixable files.
Comment 8 Austin English (RETIRED) gentoo-dev 2016-06-27 22:11:45 UTC
I also ran into this, with +python -dbus.

This patch works for me:
--- pidgin-2.11.0.ebuild	2016-06-27 16:53:10.415638636 -0500
+++ pidgin-2.11.0-r1.ebuild	2016-06-27 17:02:18.170640363 -0500
@@ -247,7 +247,7 @@
 	fi
 	use perl && perl_delete_localpod
 
-	if use python || use dbus ; then
+	if use python && use dbus ; then
 		python_fix_shebang "${D}"
 		python_optimize
 	fi
Comment 9 Laurent Bachelier 2016-07-29 11:16:13 UTC
The same issue exists for 2.11.0.

Austin English's patch fixes it for me.
Comment 10 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-07-29 12:21:20 UTC
commit f36a3f79148385f014810c55a8a5a0f2eb0f1e83
Author: Lars Wendler <polynomial-c@gentoo.org>
Date:   Fri Jul 29 13:34:59 2016

    net-im/pidgin: Fixed python_fix_shebang call (bug #578102).
    
    Thanks to wizardedit for tracking down and providing a fix.
    Removed old ebuilds.
    
    Package-Manager: portage-2.3.0
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Comment 11 Andrej Kacian 2021-07-27 08:49:59 UTC
Just FYI, this is again a problem in recent pidgin ebuilds. It seems that the fix in comment #10 is no longer present, and the condition to run python_fix_shebang has been reverted to the old, incorrect one.

 * QA error: python_fix_shebang,  did not match any fixable files.
 * There are no Python files in specified directory.
 * ERROR: net-im/pidgin-2.14.5-r1::gentoo failed (install phase):
 *   python_fix_shebang did not match any fixable files
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_install
 *   environment, line 4069:  Called python_fix_shebang '/var/tmp/portage/net-im/pidgin-2.14.5-r1/image'
 *   environment, line 3681:  Called die
 * The specific snippet of code:
 *               die "${FUNCNAME} did not match any fixable files";
 * 
 * If you need support, post the output of `emerge --info '=net-im/pidgin-2.14.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-im/pidgin-2.14.5-r1::gentoo'`.
 * The complete build log is located at '/var/log/portage/net-im:pidgin-2.14.5-r1:20210727-083206.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-im/pidgin-2.14.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-im/pidgin-2.14.5-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-im/pidgin-2.14.5-r1/work/pidgin-2.14.5'
 * S: '/var/tmp/portage/net-im/pidgin-2.14.5-r1/work/pidgin-2.14.5'