Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377459 - sys-apps/hwdata-redhat-0.217 fails tests with python-3.2
Summary: sys-apps/hwdata-redhat-0.217 fails tests with python-3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2011-08-02 19:05 UTC by Michael Palimaka (kensington)
Modified: 2011-12-21 08:16 UTC (History)
1 user (show)

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


Attachments
build log (build.log,2.07 KB, text/plain)
2011-08-02 19:05 UTC, Michael Palimaka (kensington)
Details
fixes issue (hwdata-redhat.patch,409 bytes, patch)
2011-08-02 19:06 UTC, Michael Palimaka (kensington)
Details | Diff
new patch for files (hwdata-id.patch,588 bytes, patch)
2011-11-07 12:17 UTC, Ian Delaney (RETIRED)
Details | Diff
unified diff for ebuild (hwdata-ebuild.patch,2.73 KB, patch)
2011-11-07 12:20 UTC, Ian Delaney (RETIRED)
Details | Diff
hwdata-0.217-python-3.patch (hwdata-0.217-python-3.patch,227 bytes, patch)
2011-11-07 14:15 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2011-08-02 19:05:22 UTC
Created attachment 281875 [details]
build log

Portage 2.1.10.9 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.13-r4, 2.6.39-gentoo-r3-libre x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-libre-x86_64-06-17-with-gentoo-2.0.3
Timestamp of tree: Tue, 02 Aug 2011 14:45:02 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          3.2-r2
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: 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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks ebuild-locks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="amd64 multilib" ELIBC="glibc" KERNEL="linux" LINGUAS="en" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michael Palimaka (kensington) gentoo-dev 2011-08-02 19:06:35 UTC
Created attachment 281877 [details, diff]
fixes issue
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2011-11-07 12:17:46 UTC
Created attachment 291899 [details, diff]
new patch for files
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-11-07 12:20:50 UTC
Created attachment 291901 [details, diff]
unified diff for ebuild

This sets EAPI 3, changes order of a couple of lines, inherits eutils, incorporates patch.  Tested works
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2011-11-07 12:31:37 UTC
Reopening as a patch is available; python herd, please commit or comment?
Comment 5 Arfrever Frehtes Taifersar Arahesis 2011-11-07 14:12:18 UTC
If regular expression on line 18 isn't matched and regular expression on line 29 is matched, then a TypeError can occur on line 32.

new_id is never a negative number, so setting initial vendor_id and device_id on lines 8 and 9 to -1 (instead of changing lines 21 and 32) should suffice.
Comment 6 Arfrever Frehtes Taifersar Arahesis 2011-11-07 14:15:36 UTC
Created attachment 291907 [details, diff]
hwdata-0.217-python-3.patch

Please test this patch.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2011-11-09 07:55:14 UTC
nonmulti hwdata-redhat # ebuild  hwdata-redhat-0.217.ebuild install

>>> Completed installing hwdata-redhat-0.217 into /var/tmp/portage/portage/sys-apps/hwdata-redhat-0.217/image/

Works
Comment 8 Mike Gilbert gentoo-dev 2011-12-21 08:16:58 UTC
+  21 Dec 2011; Mike Gilbert <floppym@gentoo.org>
+  +files/hwdata-redhat-0.217-python-3.patch, hwdata-redhat-0.217.ebuild:
+  Fix tests with python 3; bug 377459. Patch by Arfrever, tested by Ian Delaney.