Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 206232

Summary: dev-util/codeblocks-1.0_pre20071215 bad autotools handling
Product: Gentoo Linux Reporter: Evil Compile Person <bugs>
Component: New packagesAssignee: Jurek Bartuszek (RETIRED) <jurek>
Status: RESOLVED FIXED    
Severity: normal CC: johnnybit
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 148821, 209910    

Description Evil Compile Person 2008-01-16 22:54:16 UTC
* Checking wxGTK-2.8 for X support ...
  [ ok ]

 * Requested wxWidgets:        unicode 2.8
 * Using wxWidgets:            gtk2-unicode-release-2.8

>>> Unpacking source...
>>> Unpacking codeblocks-1.0_pre20071215.tar.bz2 to /var/tmp/portage/dev-util/codeblocks-1.0_pre20071215/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-util/codeblocks-1.0_pre20071215/work/codeblocks-1.0_pre20071215 ...
 * Running ./bootstrap
am-wrapper: /usr/bin/aclocal-1.9 is missing or not executable.
            Please try emerging the correct version of automake.
 *
 * ERROR: dev-util/codeblocks-1.0_pre20071215 failed.


src_compile() {
        export WANT_AUTOCONF=2.5
        export WANT_AUTOMAKE=1.7

Bad boy ... (1) does that even work? (2) it wants a specific version ...

Portage 2.1.4 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Tue, 15 Jan 2008 06:00:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.11
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="X acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg 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 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-12 20:19:43 UTC
Well please can we move the 

<snip>
>=sys-devel/autoconf-2.5
>=sys-devel/automake-1.7
>=sys-devel/libtool-1.4
</snip>

do /dev/null and that 

<snip>
WANT_AUTOCONF=2.5
WANT_AUTOMAKE=1.7
</snip>

*above* inherit and out of src_compile where it totally doesn't belong finally?
Comment 2 SpanKY gentoo-dev 2008-02-23 21:09:25 UTC
while you're cleaning, remove the m4 hackery:
    TMP="/usr/share/aclocal/libtool.m4"
    if [ -e "$TMP" ]; then
        cp "$TMP" aclocal.m4 || die "cp failed"
    fi

aclocal will update aclocal.m4 for you
Comment 3 SpanKY gentoo-dev 2008-02-23 21:23:01 UTC
to take it even further, you shouldnt be calling any autotools in src_compile ... so move it to src_unpack

i would also stop using the bootstrap script.  just do:
./update_revision.sh
eautoreconf
Comment 4 Hubert Kowalski 2008-03-06 18:26:58 UTC
This bug is resolved in ebuild to version 8.02 in http://bugs.gentoo.org/show_bug.cgi?id=211865 so, why does this bug block it?
Comment 5 David J Cozatt 2008-04-25 22:21:26 UTC
Block removed. This can now be closed?
And thank you Sir Christian. ;-)

Comment 6 Jurek Bartuszek (RETIRED) gentoo-dev 2008-06-01 01:27:43 UTC
8.02 hit the tree, closing