Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392667 - app-office/gnucash-2.4.8 emerge fails with USE="python"
Summary: app-office/gnucash-2.4.8 emerge fails with USE="python"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GNOME Office (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 393187 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-30 19:26 UTC by Chris Mayo
Modified: 2011-12-05 12:35 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2011-11-30 19:26:25 UTC
>>> Preparing source in /var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8 ...
 * ERROR: app-office/gnucash-2.4.8 failed (prepare phase):
 *   python_pkg_setup() not called
 * 
 * Call stack:
 *     ebuild.sh, line   84:  Called src_prepare
 *   environment, line 6008:  Called python_convert_shebangs '-r' '2' '.'
 *   environment, line 3989:  Called _python_check_python_pkg_setup_execution
 *   environment, line  925:  Called die
 * The specific snippet of code:
 *           die "python_pkg_setup() not called";
 * 
 * If you need support, post the output of 'emerge --info =app-office/gnucash-2.4.8',
 * the complete build log and the output of 'emerge -pqv =app-office/gnucash-2.4.8'.
 * The complete build log is located at '/var/tmp/portage/app-office/gnucash-2.4.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/gnucash-2.4.8/temp/environment'.
 * S: '/var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8'
Comment 1 Fred Krogh 2011-11-30 22:44:45 UTC
Same here.   emerge --info below


Portage 2.1.10.39 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r1, 3.1.3-gentoo x86_64)
=================================================================
System uname: Linux-3.1.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Wed, 30 Nov 2011 20:30:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.5.3-r1, 4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org http://ftp.ucsb.edu/pub/mirrors/linux/gentoo http://cudlug.cudenver.edu/gentoo http://gentoo.binarycompass.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --exclude=/.unionfs --exclude=.fuse_hidden*"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X acl alsa amd64 apache2 apng auctex bash-completion bcmath berkdb bzip2 cairo cdrom clamav clamd cli colordiff consolekit cracklib crypt cups cxx dbus debugger device-mapper dri dvd dvdr dvdread emacs emul-linux86 fastcgi fortran ftpuf gdbm gdu gpm graphite gtk gtk3 gudev iconv icu ipv6 java javascript jpeg kpathsea latex latin1 libclamav libwww logrotate mbox mmx modules mouse mp3 mudflap multilib mysql nat ncurses nls nptl nptlonly nsplugin nvidia ogg openmp pam pcre pdf png policykit pop pop3d pppd preview-latex python qt3support readline regex samba session smbclient sockets sound spamassassin sse sse2 ssl symlink sysfs tcpd threads thunderbird truetype udev unicode vhosts wxwidgets xcomposite xorg xulrunner 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers hwdb ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http python rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Juergen Rose 2011-12-01 06:55:06 UTC
Me too.
Comment 3 Audiodef 2011-12-02 17:16:56 UTC
Compile fails without the python use flag. Putting this version in my package.mask until a fix or higher version comes out.
Comment 4 Audiodef 2011-12-02 18:34:03 UTC
I don't know if this is related, but compiling it manually, for me, results in:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpng14
collect2: ld returned 1 exit status
make[4]: *** [libgncmod-gnome-utils.la] Error 1
make[4]: Leaving directory `/home/audiodef/Desktop/gnucash-2.4.8/src/gnome-utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/audiodef/Desktop/gnucash-2.4.8/src/gnome-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/audiodef/Desktop/gnucash-2.4.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/audiodef/Desktop/gnucash-2.4.8'
make: *** [all] Error 2
Comment 5 Chris Mayo 2011-12-02 19:11:06 UTC
(In reply to comment #4)
> I don't know if this is related, but compiling it manually, for me, results in:
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld:
> cannot find -lpng14
> collect2: ld returned 1 exit status
> make[4]: *** [libgncmod-gnome-utils.la] Error 1
> make[4]: Leaving directory
> `/home/audiodef/Desktop/gnucash-2.4.8/src/gnome-utils'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/audiodef/Desktop/gnucash-2.4.8/src/gnome-utils'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/audiodef/Desktop/gnucash-2.4.8/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/audiodef/Desktop/gnucash-2.4.8'
> make: *** [all] Error 2

It isn't related have a look at:
http://forums.gentoo.org/viewtopic-t-894950.html
Comment 6 David 2011-12-02 19:43:04 UTC
I'm having the same problem.


>>> Failed to emerge app-office/gnucash-2.4.8, Log file:
>>>  '/var/tmp/portage/app-office/gnucash-2.4.8/temp/build.log'
>>> Jobs: 4 of 6 complete, 1 failed                 Load avg: 5.93, 3.79, 1.71
 * Package:    app-office/gnucash-2.4.8
 * Repository: gentoo
 * Maintainer: gnome-office@gentoo.org
 * USE:        amd64 cxx doc elibc_glibc kernel_linux multilib python sqlite userland_GNU webkit
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking gnucash-2.4.8.tar.bz2 to /var/tmp/portage/app-office/gnucash-2.4.8/work
>>> Source unpacked in /var/tmp/portage/app-office/gnucash-2.4.8/work
>>> Preparing source in /var/tmp/portage/app-office/gnucash-2.4.8/work/gnucash-2.4.8 ...
 * ERROR: app-office/gnucash-2.4.8 failed (prepare phase):
 *   python_pkg_setup() not called
 * 
 * Call stack:
 *     ebuild.sh, line   84:  Called src_prepare
 *   environment, line 6011:  Called python_convert_shebangs '-r' '2' '.'
 *   environment, line 3992:  Called _python_check_python_pkg_setup_execution
 *   environment, line  928:  Called die
 * The specific snippet of code:
 *           die "python_pkg_setup() not called";



Portage 2.1.10.39 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r1, 3.1.4-gentoo x86_64)
=================================================================
System uname: Linux-3.1.4-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1100T_Processor-with-gentoo-2.1
Timestamp of tree: Fri, 02 Dec 2011 19:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r1
Repositories: gentoo sabayon
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula google-talkplugin"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /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 distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en es it"
MAKEOPTS="-j7"
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="/var/lib/layman/sabayon"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apng artworkextra autoipd avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli colord connection-sharing consolekit coverart cracklib crypt cups cxx dbus dhcpcd directfb dri dts dv dvd dvdr eds emboss encode evo exif faac fam fbcon ffmpeg firefox flac fortran frei0r fuse gdbm gdu gif gimp git gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv icq id3tag idn ipod ipv6 irc jabber java jpeg jpeg2k lame lcms ldap libnotify mad melt mmx mng modules mp3 mp4 mpeg msn mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin nss ntfs-3g nvidia ogg opengl openmp pam pango pcre pdf pidgin png policykit ppds pppd pulseaudio python qt3support rdesktop readline resolvconf scanner sdl session sip socialweb speex spell sqlite sse sse2 sse3 sse4 ssh ssl startup-notification subtitles svg sysfs tcpd telepathy theora threads tiff truetype udev unicode usb v4l v4l2 vim-syntax vnc vorbis wavpack webkit x264 xcb xml xorg xulrunner xv xvid xvmc yahoo zeroconf 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 stage tables krita karbon braindump" CAMERAS="canon samsung" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en es it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2011-12-04 13:20:29 UTC
would require either

pkg_setup() {
        DOCS="doc/README.OFX doc/README.HBCI"
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2011-12-04 13:22:54 UTC
would require either 

pkg_setup() {
        DOCS="doc/README.OFX doc/README.HBCI"
+        if use python; then             
+                python_pkg_setup
+        fi 
 or

EAPI="4" which calls it implicitly
Comment 9 Pacho Ramos gentoo-dev 2011-12-04 20:11:40 UTC
+  04 Dec 2011; Pacho Ramos <pacho@gentoo.org> gnucash-2.4.8.ebuild:
+  Call python_pkg_setup, bug #392667 by Chris Mayo, Ian Delaney and others.
+
Comment 10 Pacho Ramos gentoo-dev 2011-12-05 12:35:09 UTC
*** Bug 393187 has been marked as a duplicate of this bug. ***