<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>213789</bug_id>
          
          <creation_ts>2008-03-18 08:02 0000</creation_ts>
          <short_desc>x11-libs/gtk+-2.12.9 fails to build with libtool-2.2</short_desc>
          <delta_ts>2008-04-28 21:43:46 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>212763</blocked>
    
    <blocked>214260</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>alessandro.guido+bugzilla@gmail.com</reporter>
          <assigned_to>gnome@gentoo.org</assigned_to>
          <cc>aballier@gentoo.org</cc>
    
    <cc>polynomial-c@gentoo.org</cc>
    
    <cc>theli@ukr.net</cc>

      

      
          <long_desc isprivate="0">
            <who>alessandro.guido+bugzilla@gmail.com</who>
            <bug_when>2008-03-18 08:02:14 0000</bug_when>
            <thetext>Making all in pixops
../../libtool: line 459: CDPATH: command not found
../../libtool: line 459: CDPATH: command not found
../../libtool: line 1269: func_opt_split: command not found
../../libtool: line 1269: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2
libtool: and run autoconf again.
libtool: Version mismatch error.  This is libtool 2.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2
libtool: and run autoconf again.
make[4]: *** [pixops.lo] Error 1

emerge --info:
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.3.0, glibc-2.7-r1, 2.6.25-rc6-00014-gbde4f8f i686)
=================================================================
System uname: 2.6.25-rc6-00014-gbde4f8f i686 Intel(R) Pentium(R) M processor 1.86GHz
Timestamp of tree: Tue, 18 Mar 2008 07:30:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 2.0.0
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-pipe -O2 -march=pentium-m -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-pipe -O2 -march=pentium-m -fomit-frame-pointer -fvisibility-inlines-hidden&quot;
DISTDIR=&quot;/var/portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--nospinner&quot;
FEATURES=&quot;distlocks metadata-transfer nodoc noinfo parallel-fetch sfperms strict tmpfs unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;it_IT.UTF-8&quot;
LDFLAGS=&quot;-Wl,--hash-style=gnu -Wl,--as-needed&quot;
LINGUAS=&quot;it&quot;
MAKEOPTS=&quot;--quiet -j2&quot;
PKGDIR=&quot;/var/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/var/portage&quot;
PORTDIR_OVERLAY=&quot;/var/portage/local/layman/openrc /var/portage/local/my-overlay&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X acpi alsa bzip2 cdr cli dbus dvd dvdr dvdread emboss evo fam firefox fortran gif hal iconv isdnlog jpeg kde kdehiddenvisibility mad midi mikmod mmx mp3 mpeg mudflap nls nptl nptlonly ogg opengl pcre pdf png pppd qt3support quicktime reflection session spell spl sse sse2 ssl svg threads unicode vorbis win32codecs x86 xcomposite xinerama xml xorg xscreensaver xv zlib&quot; ALSA_CARDS=&quot;ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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&quot; CAMERAS=&quot;ptp2&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev synaptics&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;it&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nv nvidia&quot;
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always

Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>galtgendo@o2.pl</who>
            <bug_when>2008-03-18 13:43:17 0000</bug_when>
            <thetext>In the ebuild, in src_unpack(): `cp aclocal.m4 old_macros.m4`

So it&apos;s just like bug 212864 and bug 213715 - updated ltmain.sh and old AC_PROG_LIBTOOL don&apos;t work together.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>alessandro.guido+bugzilla@gmail.com</who>
            <bug_when>2008-03-20 21:22:14 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; In the ebuild, in src_unpack(): `cp aclocal.m4 old_macros.m4`
&gt; 
&gt; So it&apos;s just like bug 212864 and bug 213715 - updated ltmain.sh and old
&gt; AC_PROG_LIBTOOL don&apos;t work together.
&gt; 

I patched the ebuild like this and it merged fine (but seems to not work correctly as it misses cups printing support even if the use-flag is enabled):

--- x11-libs/gtk+/gtk+-2.12.9.ebuild	2008-03-17 22:24:53.000000000 +0100
+++ local/my-overlay/x11-libs/gtk+/gtk+-2.12.9.ebuild	2008-03-20 22:11:13.000000000 +0100
@@ -87,8 +87,9 @@
 
 	# remember, eautoreconf applies elibtoolize.
 	# if you remove this, you should manually run elibtoolize
-	cp aclocal.m4 old_macros.m4
-	AT_M4DIR=&quot;.&quot; eautoreconf
+	#cp aclocal.m4 old_macros.m4
+	#AT_M4DIR=&quot;.&quot; eautoreconf
+	elibtoolize
 
 	epunt_cxx
 }</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>galtgendo@o2.pl</who>
            <bug_when>2008-04-03 09:56:17 0000</bug_when>
            <thetext>The problem is much more difficult and should be be taken upstream.
While for gentoo, elibtoolize, eautomake (for multilib patch) and eautoconf (for xinerama - older versions) seem to be needed, and maybe adding gtk-doc-am dependency (probably the original source for `cp aclocal.m4 old_macros.m4` hack),
for full eautoreconf much work has to be done upstream.
The problem is that in configure.in there are a few calls to the generated libtool, which are invalid for libtool 2.2, unless LT_OUTPUT macro is added.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>galtgendo@o2.pl</who>
            <bug_when>2008-04-03 10:33:28 0000</bug_when>
            <thetext>A few more things to add:
it seems that elibtoolize is not needed (it emerged fine without it), but then again it may be needed for something that&apos;s not checked during emerge
for libtool 2.2 (and gtk-doc-am) following seens to work:
sed -i -e &apos;/AM_PROG_LIBTOOL/aLT_OUTPUT&apos; ${S}/configure.in
eautoreconf
of course it works for libtool 2.2 only, cause I don&apos;t think there was a LT_OUTPUT macro before (as it was not needed then).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-04-03 11:57:54 0000</bug_when>
            <thetext>elibtoolize is needed for bsd systems at least. Should catch one of these guys to heck out if it is still needed with the new libtool.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>polynomial-c@gentoo.org</who>
            <bug_when>2008-04-22 13:21:58 0000</bug_when>
            <thetext>Created an attachment (id=150589)
gtk+-2-libtool-2.2-fix.patch

Hi,

as this bug is waiting for a fix for over a month now, I started wondering wether gentoo is the only distribution out there who has problems with gtk+ and &gt;=libtool-2.2. I did a rather quick search with google and stumbled about this:

http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg135168.html

I extracted the real patch from that post, and moved it to my local overlay along with gtk+-2.12.9-r2.ebuild. With this patch I get gtk+-2.12.9-r2 compiled and installed without any problems on my ~x86 test victim erm... machine :)
Of course I know that this patch needs upstream approval before it can go into portage but I didn&apos;t find this patch anywhere else than in this post...

Cheers
Poly-C</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-04-28 21:43:32 0000</bug_when>
            <thetext>fixed in tree, wait a while for the mirrors to sync and try it. Reopen if it doesn&apos;t work.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-04-28 21:43:46 0000</bug_when>
            <thetext>fixed in tree, wait a while for the mirrors to sync and try it. Reopen if it doesn&apos;t work. And thanks for the patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>150589</attachid>
            <date>2008-04-22 13:21 0000</date>
            <desc>gtk+-2-libtool-2.2-fix.patch</desc>
            <filename>gtk+-2-libtool-2.2-fix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">IyMjIyMjIyMjIyMjIwojIFRha2VuIGZyb20gCiMgaHR0cDovL3d3dy5tYWlsLWFyY2hpdmUuY29t
L3BsZC1jdnMtY29tbWl0QGxpc3RzLnBsZC1saW51eC5vcmcvbXNnMTM1MTY4Lmh0bWwKIyMjIyMj
IyMjIyMjIwoKLS0tIGd0aystMi4xMi45L2NvbmZpZ3VyZS5pbi5vcmlnCTIwMDgtMDMtMTIgMDU6
MTc6MjguMDAwMDAwMDAwICswMTAwCisrKyBndGsrLTIuMTIuOS9jb25maWd1cmUuaW4JMjAwOC0w
NC0yMiAxNDo0ODo1NS40MzQzMzM3NTYgKzAyMDAKQEAgLTE2Niw2ICsxNjYsOCBAQAogCiBBQ19M
SUJUT09MX1dJTjMyX0RMTAogQU1fUFJPR19MSUJUT09MCitkbmwgd2hlbiB1c2luZyBsaWJ0b29s
IDIueCBjcmVhdGUgbGlidG9vbCBlYXJseSwgYmVjYXVzZSBpdCdzIHVzZWQgaW4gY29uZmlndXJl
CittNF9pZmRlZihbTFRfT1VUUFVUXSwgW0xUX09VVFBVVF0pCiAKICMgTWFrZSBzdXJlIHdlIHVz
ZSA2NC1iaXQgdmVyc2lvbnMgb2YgdmFyaW91cyBmaWxlIHN0dWZmLgogQUNfU1lTX0xBUkdFRklM
RQpAQCAtMzc3LDcgKzM3OSw3IEBACiBjYXNlICRlbmFibGVfZXhwbGljaXRfZGVwcyBpbgogICBh
dXRvKQogICAgIGV4cG9ydCBTRUQKLSAgICBkZXBsaWJzX2NoZWNrX21ldGhvZD1gKC4vbGlidG9v
bCAtLWNvbmZpZzsgZWNobyAnZXZhbCBlY2hvICRkZXBsaWJzX2NoZWNrX21ldGhvZCcpIHwgc2hg
CisgICAgZGVwbGlic19jaGVja19tZXRob2Q9YCguL2xpYnRvb2wgLS1jb25maWc7IGVjaG8gJ2V2
YWwgZWNobyBcIiRkZXBsaWJzX2NoZWNrX21ldGhvZFwiJykgfCBzaGAKICAgICBpZiB0ZXN0ICJ4
JGRlcGxpYnNfY2hlY2tfbWV0aG9kIiAnIT0nIHhwYXNzX2FsbCB8fCB0ZXN0ICJ4JGVuYWJsZV9z
dGF0aWMiID0geHllcyA7IHRoZW4KICAgICAgIGVuYWJsZV9leHBsaWNpdF9kZXBzPXllcyAgCiAg
ICAgZWxzZQo=
</data>        

          </attachment>
    </bug>

</bugzilla>