Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433467 - app-misc/hivex-1.3.6 fails to build on ~amd64 with Python 3.2 as active Python
Summary: app-misc/hivex-1.3.6 fails to build on ~amd64 with Python 3.2 as active Python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Andreis Vinogradovs ( slepnoga )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-30 22:35 UTC by Joshua Rich
Modified: 2012-09-16 09:00 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,27.11 KB, text/plain)
2012-08-30 22:36 UTC, Joshua Rich
Details
config.log (config.log,292.91 KB, text/plain)
2012-08-30 22:36 UTC, Joshua Rich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Rich 2012-08-30 22:35:43 UTC
On my ~amd64 machine, when dev-lang/python 3.2  is set as active Python using eselect, app-misc/hivex fails to build with error during configure phase (see attached build log).

If I use eselect to set python 2.7 as active version, the build is successful.


Reproducible: Always

Steps to Reproduce:
1. eselect python set python3.2
2. emerge app-misc/hivex

Actual Results:  
checking for python... python
checking Python prefix... /usr
checking Python version... 3.2
checking for Python include path... /usr/include/python3.2
checking for Python site-packages path... /usr/lib64/python3.2/site-packages
checking for PyList_Size in -lpython3.2mu... no
configure: error: in `/var/tmp/portage/app-misc/hivex-1.3.6/work/hivex-1.3.6':
configure: error: python3.2mu is not installed
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-misc/hivex-1.3.6/work/hivex-1.3.6/config.log
 * ERROR: app-misc/hivex-1.3.6 failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line   85:  Called src_configure
 *        environment, line 6093:  Called autotools-utils_src_configure
 *        environment, line 1243:  Called econf '--docdir=/usr/share/doc/hivex-1.3.6' '--enable-shared' '--disable-static' '--with-readline' '--disable-ocaml' '--enable-perl' '--enable-nls' '--disable-python' '--disable-ruby' '--disable-rpath'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 * 
 * If you need support, post the output of `emerge --info '=app-misc/hivex-1.3.6'`,
 * the complete build log and the output of `emerge -pqv '=app-misc/hivex-1.3.6'`.
 * The complete build log is located at '/var/tmp/portage/app-misc/hivex-1.3.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-misc/hivex-1.3.6/temp/environment'.
 * Working directory: '/var/tmp/portage/app-misc/hivex-1.3.6/work/hivex-1.3.6'
 * S: '/var/tmp/portage/app-misc/hivex-1.3.6/work/hivex-1.3.6'
 * 
 * The following package has failed to build or install:
 * 
 *  (app-misc/hivex-1.3.6::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/app-misc/hivex-1.3.6/temp/build.log'
 * 


Expected Results:  
app-misc/hivex successfully merged.

Portage 2.2.0_alpha123 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.3, glibc-2.15-r2, 3.5.3-gentoo x86_64)
=================================================================
System uname: Linux-3.5.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-2540M_CPU_@_2.60GHz-with-gentoo-2.2
Timestamp of tree: Thu, 30 Aug 2012 21: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.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            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.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo ephemeral sunrise x11 misc-ebuilds
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grub.d /usr/share/applications /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--deep --keep-going --quiet"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles multilib-strict news noinfo parallel-fetch parallel-install parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_AU.utf8"
LC_ALL="en_AU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j 5 -l 5.0"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude lost+found"
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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/ephemeral /var/lib/layman/sunrise /var/lib/layman/x11 /home/jrich/gentoo-overlays/misc"
SYNC="rsync://rsync1.au.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 archive avx bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli clutter colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode evo exif fam firefox flac fontconfig fortran gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gtk3 iconv icu imagemagick introspection ipv6 jpeg laptop lcms libnotify lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit postscript ppds pppd pulseaudio qt3support readline samba sdl session socialweb spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification suid svg tcpd threads tiff truetype udev udisks unicode upnp upower usb v4l vaapi vorbis webkit wxwidgets x264 xcb xinerama xml xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" APACHE2_MODULES="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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" DRACUT_MODULES="lvm plymouth crypt" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Joshua Rich 2012-08-30 22:36:14 UTC
Created attachment 322599 [details]
build.log
Comment 2 Joshua Rich 2012-08-30 22:36:56 UTC
Created attachment 322601 [details]
config.log
Comment 3 Richard Jones 2012-09-03 16:51:31 UTC
We actually fixed this in libguestfs:
http://git.annexia.org/?p=libguestfs.git;a=commitdiff;h=ad5b5f96da53a6f51424e22e26f2d8a325eec681

A similar fix is required in hivex.
Comment 4 Richard Jones 2012-09-03 17:04:44 UTC
Please try the following commit:

https://github.com/libguestfs/hivex/commit/d658669970cb2384d48c4298c8de7ad1f0690c81
Comment 5 Andreis Vinogradovs ( slepnoga ) 2012-09-03 18:43:19 UTC
Richard Jones, thanks you for the very quick response.
This bug is composed of 2 parts:
part 1 is fixed by your patch; Ρ‚he 2nd part is that even if the - disable-python option is enabled, the code checks the python still fulfills - it's my bug.
Comment 7 Joshua Rich 2012-09-04 04:10:55 UTC
(In reply to comment #6)
> Please try:
> 
> https://github.com/libguestfs/hivex/commit/
> 50e712111677e782351ac4097cadd463cd9f1b48
> https://github.com/libguestfs/hivex/commit/
> 58277b8440d03bb7c425322cddcd597247929af5
> https://github.com/libguestfs/hivex/commit/
> 3223deddeb0bf7f5f814482e61b092fa2314a0e4
> https://github.com/libguestfs/hivex/commit/
> a2c5efedd887f57f66c037021c545a9d1cafa359
> 
> (Only one is needed to fix this bug, but I guess you might
> as well try all four of them ...)

Yep, all of these fix the problem for me.

Regards,

Joshua Rich
Comment 8 Sergey Popov gentoo-dev 2012-09-16 09:00:11 UTC
+*hivex-1.3.6-r1 (16 Sep 2012)
+
+  16 Sep 2012; Sergey Popov <pinkbyte@gentoo.org>
+  +files/1.3.6-r1/disable_automagic_cumulative_patch.patch,
+  +hivex-1.3.6-r1.ebuild:
+  New revision, fixes bugs #433467 and #430168. Thanks to slepnoga