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

Bug 32564

Summary: k3b fails to build in i18n-part because of automake version problem
Product: Gentoo Linux Reporter: Hanno Böck <hanno>
Component: Current packagesAssignee: Caleb Tennis (RETIRED) <caleb>
Status: RESOLVED FIXED    
Severity: normal CC: greg_g, jstubbs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My ebuild for k3b-0.10.2 derived from k3b-0.10.1 ebuild
new, working ebuild for k3b-0-10-2
k3b-0.10.3.ebuild.patch

Description Hanno Böck gentoo-dev 2003-11-02 12:04:19 UTC
Good - your configure finished. Start make now

make  all-recursive
make[1]: Entering directory `/var/tmp/portage/k3b-0.10.1/work/k3b-i18n-0.10'
Making all in po
make[2]: Entering directory `/var/tmp/portage/k3b-0.10.1/work/k3b-i18n-0.10/po'
cd .. && \
  /bin/sh /var/tmp/portage/k3b-0.10.1/work/k3b-i18n-0.10/admin/missing --run automake-1.7 --gnu  po/Makefile
configure.in:43: version mismatch.  This is Automake 1.7.8,
configure.in:43: but the definition used by this AM_INIT_AUTOMAKE
configure.in:43: comes from Automake 1.7.5.  You should recreate
configure.in:43: aclocal.m4 with aclocal and run automake again.
make[2]: *** [Makefile.in] Error 1
make[2]: Leaving directory `/var/tmp/portage/k3b-0.10.1/work/k3b-i18n-0.10/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/k3b-0.10.1/work/k3b-i18n-0.10'
make: *** [all] Error 2

!!! ERROR: app-cdr/k3b-0.10.1 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 1 Bernd Wurst 2003-11-08 08:16:04 UTC
I can confirm this with selfmade k3b-0.10.2 ebuild. K3B compiles well but
i18n doesn't.
Comment 2 Bernd Wurst 2003-11-08 09:38:49 UTC
Created attachment 20432 [details]
My ebuild for k3b-0.10.2 derived from k3b-0.10.1 ebuild
Comment 3 Bernd Wurst 2003-11-08 09:39:25 UTC
Okay, fixed this for version 0.10.2 in a selfmade ebuild.

The author of -0.10.1 ebuild did a for loop for making k3b and k3b-i18n but
I fixed this by unrolling this (2-time) loop and running aclocal and automake
before building k3b-i8n.
Even if you have multiple LINGUAS languages, there should be only 2 directories
in source tree.
If this is bullshit and there has to be a loop, feel free to do another fix,
but with this, I got k3b emerged.

But I don't get through this i18n crap, the ebuild compiles well, all seems
okay, but k3b is still not localized. In KDE, the language is set to german,
LINGUAS was set to "de" and I even set the LANG and LC_ALL environment variables.
I also tried compiling k3b-i18n manually and all seems fine but make install
does not install anything.
Someone should have a look at this.
Comment 4 Bernd Wurst 2003-11-08 10:23:58 UTC
Okay folks, it works now.

It was my own stupidity, I used "automake" instead of "automake-1.7".
So this ebuild now works for me as expected with at least german language
and is also a new version (0.10.2). So could anyone approve it?
Comment 5 Bernd Wurst 2003-11-08 10:24:33 UTC
Created attachment 20438 [details]
new, working ebuild for k3b-0-10-2
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2003-11-10 07:39:21 UTC
Hi Bernd,

A quick suggestion before I put this in portage:

I think you can get by without using automake in the ebuild - just running
aclocal should be enough.  Can you test this?

If that isn't the case, I think that this would be better syntax:

WANT_AUTOMAKE=1.7 automake

and let /usr/bin/automake handle calling the correct version

You can also combine kde_src_compile options on one line:

kde_src_compile configure make

Anyway, it looks good other than that.  Let me know if you get a chance to
test these ideas and I'll commit.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2003-11-14 12:07:02 UTC
*** Bug 33348 has been marked as a duplicate of this bug. ***
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2003-11-14 16:11:34 UTC
Apologies for the duplicate.

Just running aclocal by itself does work as I showed in the patch to the ebuild in the other bug.
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2003-11-15 07:43:20 UTC
should be fixed now in portage
Comment 10 Gregorio Guidi (RETIRED) gentoo-dev 2003-12-06 05:28:02 UTC
This should be reopened:
The build process for i18n should be executed only if needed, otherwise we end up doing another run of configure/make in the k3b directory.
patch follows...
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2003-12-06 05:29:16 UTC
Created attachment 21785 [details, diff]
k3b-0.10.3.ebuild.patch

build i18n only if needed
Comment 12 Gregorio Guidi (RETIRED) gentoo-dev 2003-12-06 05:33:09 UTC
BTW, while you're at it: I think that the mpg123 dependency is not needed anymore, could that be removed?
Comment 13 Arndt Wills 2003-12-12 13:00:14 UTC
I still don't get the (german) i18n with the 0.10.3 ebuild found in portage.
(I made a local copy 12/12/03 to my overlay-directory and changed ~x86 to x86)
I did LINGUAS="de" emerge k3b and it compiles, but not the i18n.

Basically it performs "make" in the correct directory 
(/var/tmp/portage/k3b-0.10.3/work/k3b-i18n-0.10/po/de), 
but pretends to have nothing to do.

Jason stated in #8 that aclocal would be sufficient to fix the original bug, so 
I commented out these lines:

	if [ "$?" == "0" ];
		then WANT_AUTOMAKE=1.7 automake;
	fi;

Without the automake-stuff it works as expected.

Since these lines introduce a new bug (not building i18n at all) and are not needed, 
I suggest to leave them out in the future.

Even the aclocal is not needed on my box, probably because I use automake 1.7.5-r2.