Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506390 - net-firewall/ufw-0.34_pre805 with python-3.4 - USE_PYTHON variable contains invalid value '3.4'
Summary: net-firewall/ufw-0.34_pre805 with python-3.4 - USE_PYTHON variable contains i...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sławomir Nizio
Keywords: PATCH
Depends on:
Blocks: python-r1-tracker
  Show dependency tree
Reported: 2014-03-31 18:22 UTC by Robert Cabrera
Modified: 2014-07-17 06:58 UTC (History)
1 user (show)

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

net-firewall/ufw: clean up old versions (ufw-drop-old.patch,41.76 KB, patch)
2014-04-05 13:39 UTC, Sławomir Nizio
Details | Diff
net-firewall/ufw: switch to distutils-r1 (ufw-distutils-r1.patch,2.70 KB, patch)
2014-04-05 13:40 UTC, Sławomir Nizio
Details | Diff
net-firewall/ufw: patch to files directory (ufw-0.34_pre805-shebang.patch,675 bytes, patch)
2014-04-05 13:40 UTC, Sławomir Nizio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cabrera 2014-03-31 18:22:09 UTC
Synced and updated my installation today. Python-3.4 was drawn into the queue. After installing, I set it as the interpretor with eselect then ran python-updater. net-firewall/ufw-0.34_pre805 failed to build in the setup phase with the following error:
* ERROR: net-firewall/ufw-0.34_pre805::gentoo failed (setup phase):
 *   USE_PYTHON variable contains invalid value '3.4'
 * Call stack:
 *, line  93:  Called pkg_setup
 *, line 317:  Called python_pkg_setup
 *   python.eclass, line 430:  Called _python_calculate_PYTHON_ABIS
 *   python.eclass, line 775:  Called die
 * The specific snippet of code:
 *                                      die "USE_PYTHON variable contains invalid value '${PYTHON_ABI}'"

Reproducible: Always

Steps to Reproduce:
1. emerge -1 ufw
Actual Results:  
Build fails with above mentioned error.

Expected Results:  
Successful build and installation.

emerge --info
Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.19, 3.13.1-pf x86_64)                                                                                                             
System uname: Linux-3.13.1-pf-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.2                                                                                                                
KiB Mem:     3336332 total,    314272 free                                                                                                                                                                 
KiB Swap:    4200960 total,   4200872 free                                                                                                                                                                 
Timestamp of tree: Mon, 31 Mar 2014 16:45:01 +0000                                                                                                                                                         
ld GNU ld (GNU Binutils) 2.24                                                                                                                                                                              
app-shells/bash:          4.2_p45-r1                                                                                                                                                                       
dev-java/java-config:     2.2.0                                                                                                                                                                            
dev-lang/python:          2.7.6, 3.3.5, 3.4.0                                                                                                                                                              
dev-util/pkgconfig:       0.28-r1                                                                                                                                                                          
sys-apps/baselayout:      2.2                                                                                                                                                                              
sys-apps/openrc:          0.12.4                                                                                                                                                                           
sys-apps/sandbox:         2.6-r1                                                                                                                                                                           
sys-devel/autoconf:       2.13, 2.69                                                                                                                                                                       
sys-devel/automake:       1.11.6, 1.14.1                                                                                                                                                                   
sys-devel/binutils:       2.24-r2                                                                                                                                                                          
sys-devel/gcc:            4.8.2                                                                                                                                                                            
sys-devel/gcc-config:     1.8                                                                                                                                                                              
sys-devel/libtool:        2.4.2                                                                                                                                                                            
sys-devel/make:           4.0-r1                                                                                                                                                                           
sys-kernel/linux-headers: 3.13 (virtual/os-headers)                                                                                                                                                        
sys-libs/glibc:           2.19                                                                                                                                                                             
Repositories: gentoo sunrise my_local_overlay                                                                                                                                                              
Installed sets: @nicefonts, @toolchain, @xorgupdate
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-O2 -pipe -march=native"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
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/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
EMERGE_DEFAULT_OPTS="--jobs=2 --with-bdeps=y --keep-going --complete-graph --load-average=1.5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=native"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 -l1.5 -s"
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"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
USE="S3TC X a52 aac aacplus aacs aalib acl acpi alsa amd64 amr avahi berkdb bidi bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt cups curl cvs cxx dbus declarative device-mapper dirac djvu dri dts dv dvd dvdr emboss encode exif faac fam fat ffmpeg firefox flac fontconfig fortran gdbm gif git gphoto2 gtk iconv idn ieee1394 imagemagick ipv6 java jbig joystick jpeg jpeg2k kde kipi lame lastfm lcms ldap libass libnotify libsamplerate live lua lzma lzo mad matroska mime mjpeg mms mmx mmxext mng modplug modules mp3 mp4 mpeg multilib musepack musicbrainz ncurses netlink nls nptl nsplugin ntfs ntp ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postproc ppds qalculate qt3support qt4 quicktime rar readline samba scanner schroedinger sdl semantic-desktop session smp sndfile sox speex spell sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink taglib tcpd telepathy theora tiff truetype twolame udev udisks unicode upower usb vcd vcdx vlm vnc vorbis vpx wavpack wicd wifi wmf wxwidgets x264 xa xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64 32" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_4 python2_7" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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="3.4 2.7"
Comment 1 Sławomir Nizio 2014-04-01 20:02:39 UTC
I have something (distutils-r1 switch), but I'll give it some more tests first.
Comment 2 Sławomir Nizio 2014-04-05 13:39:24 UTC
Created attachment 374300 [details, diff]
net-firewall/ufw: clean up old versions
Comment 3 Sławomir Nizio 2014-04-05 13:40:05 UTC
Created attachment 374302 [details, diff]
net-firewall/ufw: switch to distutils-r1

Difference between ebuilds. Please commit it with a revision bump.
Comment 4 Sławomir Nizio 2014-04-05 13:40:35 UTC
Created attachment 374304 [details, diff]
net-firewall/ufw: patch to files directory
Comment 5 Sławomir Nizio 2014-04-05 13:42:53 UTC
Tested, ready to commit.

Please also update net-firewall/ufw-frontends with this:

-       net-firewall/ufw
+       net-firewall/ufw[${PYTHON_USEDEP}]

with a revision bump.

Maintainers of kde-misc/kcm-ufw may consider doing the same.
Comment 6 Sławomir Nizio 2014-07-16 20:46:56 UTC
Now python2_6 should be removed from supported configurations as it was removed from Portage. Let me know in case of questions.
Comment 7 Sławomir Nizio 2014-07-16 21:01:15 UTC
patch from comment 4 should be committed as: ufw-0.34_pre805-shebang.patch
Comment 8 Yixun Lan archtester gentoo-dev 2014-07-17 06:58:32 UTC
+*ufw-0.34_pre805-r1 (17 Jul 2014)
+  17 Jul 2014; Yixun Lan <> -ufw-0.31.1-r2.ebuild,
+  -ufw-0.33-r2.ebuild, +ufw-0.34_pre805-r1.ebuild,
+  -files/ufw-0.31.1-conntrack.patch, -files/ufw-0.33-conntrack.patch,
+  +files/ufw-0.34_pre805-shebang.patch, -files/ufw-dont-check-iptables.patch:
+  bug 506390, clean old, update to distutils-r1. proxy for SN (Enlik)