Created attachment 324248 [details] build.log make[3]: Entering directory `/var/tmp/portage/net-analyzer/wireshark-1.8.2-r2/work/wireshark-1.8.2/epan/dissectors' Making register.c with python Registering 1068 files, 0 cached Traceback (most recent call last): File "../../tools/make-dissector-reg.py", line 154, in <module> for line in file.readlines(): File "/usr/lib64/python3.2/codecs.py", line 300, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 2185: invalid start byte make[3]: *** [register.c] Error 1 # eselect python list Available Python interpreters: [1] python2.7 [2] python3.2 * # emerge --info wireshark Portage 2.2.0_alpha129 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3-asneeded, glibc-2.15-r2, 3.4.11 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.4.11-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2389-with-gentoo-2.2 Timestamp of tree: Tue, 18 Sep 2012 20:45:01 +0000 app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.10.5 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6, 1.12.3 sys-devel/binutils: 2.22.90 sys-devel/gcc: 4.5.4, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers) sys-libs/glibc: 2.15-r2 Repositories: gentoo kde-sunset poly-c Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml" CXXFLAGS="-march=barcelona -mtune=barcelona -O2 -pipe" DISTDIR="/var/tmp/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" INSTALL_MASK="/lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed" LINGUAS="de en" MAKEOPTS="-j8" PKGDIR="/opt/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/var/lib/layman/kde-sunset /var/lib/layman/poly-c" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam ffmpeg firefox flac gdbm gif gmp gnutls gtk iconv idn inotify jpeg jpeg2k kde kipi lame lcms libnotify lzma mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png ppds pppd qt3support qt4 quicktime readline rtmp schroedinger sdl semantic-desktop session slang spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev unicode upower usb vaapi vcd vorbis vpx wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ALSA_CARDS="emu10k1 hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= net-analyzer/wireshark-1.8.2-r2 was built with the following: USE="-adns caps -doc -doc-pdf -gcrypt geoip gtk -ipv6 -kerberos -libadns -lua (multilib) pcap -portaudio -profile -python (-selinux) -smi ssl zlib"
Index: wireshark-1.8.2-r2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.2-r2.ebuild,v retrieving revision 1.1 diff -u -B -r1.1 wireshark-1.8.2-r2.ebuild --- wireshark-1.8.2-r2.ebuild 18 Sep 2012 16:48:15 -0000 1.1 +++ wireshark-1.8.2-r2.ebuild 19 Sep 2012 00:15:39 -0000 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.2-r2.ebuild,v 1.1 2012/09/18 16:48:15 jer Exp $ EAPI="4" -PYTHON_DEPEND="python? 2" +PYTHON_DEPEND="2" inherit autotools eutils flag-o-matic python toolchain-funcs user [[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || MY_P=${P} Would this do it?
(In reply to comment #1) > Index: wireshark-1.8.2-r2.ebuild > =================================================================== > RCS file: > /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.2-r2.ebuild,v > retrieving revision 1.1 > diff -u -B -r1.1 wireshark-1.8.2-r2.ebuild > --- wireshark-1.8.2-r2.ebuild 18 Sep 2012 16:48:15 -0000 1.1 > +++ wireshark-1.8.2-r2.ebuild 19 Sep 2012 00:15:39 -0000 > @@ -3,7 +3,7 @@ > # $Header: > /var/cvsroot/gentoo-x86/net-analyzer/wireshark/wireshark-1.8.2-r2.ebuild,v > 1.1 2012/09/18 16:48:15 jer Exp $ > > EAPI="4" > -PYTHON_DEPEND="python? 2" > +PYTHON_DEPEND="2" > inherit autotools eutils flag-o-matic python toolchain-funcs user > > [[ -n ${PV#*_rc} && ${PV#*_rc} != ${PV} ]] && MY_P=${PN}-${PV/_} || > MY_P=${P} > > > Would this do it? No. Same error.
(In reply to comment #2) > No. Same error. That's a shame. I perhaps incorrectly recalled that setting a dependency like that made python.eclass [R]DEPEND on that version, i.e. dev-lang/python:2.*, since that is what is apparently required in DEPEND, even when not building python support into wireshark (RDEPEND).
(In reply to comment #3) > (In reply to comment #2) > > No. Same error. > > That's a shame. I perhaps incorrectly recalled that setting a dependency > like that made python.eclass [R]DEPEND on that version, i.e. > dev-lang/python:2.*, since that is what is apparently required in DEPEND, > even when not building python support into wireshark (RDEPEND). You are right that your change would (R)DEPEND on python2 unconditionally. _But_ I already have both python-2.7 and python-3.2 installed on my machine (as shown in my initial post). The problem appears when python-3 is set as default python version via eselect python set python3.2 (for example) Setting the default python to python-2 makes the error disappear. IMHO this is a regression because =net-analyzer/wireshark-1.8.2{,-r1} compiled fine with python3 being set as default python.
Add python to the USE variable for this package. Re-emerge. It worked for me and my system is quite similar to yours. YMMV Bob
For what it's worth, I ran into this same issue tonight. Have the exact same error message and python configuration as Lars. Tried adding RESTRICT_PYTHON_ABIS="3.*" to the mix (which I've seen used by other packages that only support Python 2.x), but had no luck. Just confirming and adding myself to the CC list.
Created attachment 324366 [details, diff] Fix building with python-3 as the active version For me, this fixes the build: always set the active python VM even if USE=python is disabled. And unconditionally depends on python 2.
(In reply to comment #7) > Created attachment 324366 [details, diff] [details, diff] > Fix building with python-3 as the active version > > For me, this fixes the build: always set the active python VM even if > USE=python is disabled. And unconditionally depends on python 2. Ah yes, I missed that second chunk in my patch. Looks good, even though we now remove user control over python support entirely.
(In reply to comment #8) > Ah yes, I missed that second chunk in my patch. Looks good, even though we > now remove user control over python support entirely. Yes and no. python is a depend with this change, but the python USE flag still controls the python bindings installation.
(In reply to comment #5) > Add python to the USE variable for this package. Re-emerge. It worked for > me and my system is quite similar to yours. YMMV > > Bob Thanks a lot, Bob. Your advice has work out for me. My make.conf USE: USE="mmx sse sse2 consolekit profile ncurses spell dvd dvdread unicode nls bash-completion mysql svg X webkit dbus mng cups winbind kerberos ldap quota swat syslog vim-syntax kde png tiff jpeg alsa gnutls pkcs11 xulrunner ruby qt3support samba crypt lame ffmpeg fts3 semantic-desktop qt4 cairo java nsplugin msn oscar yahoo bonjour symlink sqlite lm_sensors odbc tk a52 aac dts live mp3 quicktime real theora vorbis ssse3 mmxext clucene virtuoso test apache2 threads declarative private-headers -hal policykit udev pam mozilla xvfb ipod schroedinger opengl dri xcomposite cddb id3tag -modplug python3 -gles polkit-kde-agent webgl freetds" # eselect python list Available Python interpreters: [1] python2.7 [2] python3.2 * mk
net-analyzer/wireshark-1.8.2-r3 has the same error.
Created attachment 324716 [details, diff] Patch to remove non-ascii chars from source Upstream has fixed this by removing all non-ascii characters from the program source code. http://anonsvn.wireshark.org/viewvc?view=revision&revision=43940 I have attached a patch file for this changeset. This is a better solution than trying to force python 2, in my opinion.
The patch from Mike fixes the problem. Please apply.
(In reply to comment #9) > (In reply to comment #8) > > Ah yes, I missed that second chunk in my patch. Looks good, even though we > > now remove user control over python support entirely. > > Yes and no. python is a depend with this change, but the python USE flag > still controls the python bindings installation. What I meant was that you would end up with an RDEPEND on dev-lang/python-2*. Should have made that more explicit. Patch from comment #12 applied in 1.8.2-r{2,3}. Thanks everyone!
*** Bug 436428 has been marked as a duplicate of this bug. ***