On Tue, 18 Nov 2003 22:22:36 +0000 Nick Brown <[EMAIL PROTECTED]> wrote:
> Hi, > I'm working on my second rpm for submission to mandrake contrib but I've > encountered a problem. I'm trying to create a spec file for kscope 0.4 > I've followed the standard .spec given in the wiki and have this snippet in > my file; > > %prep > %setup > %build > %configure > %make > %install > rm -rf %buildroot > %makeinstall On top of your specfile, you can define this: %define __libtoolize /bin/true The libtoolize macro is part of the %configure macro (check with rpm --eval %configure), and because there's a version mismatch, things break. Mandrake uses libtool-1.4, while kde uses libtool-1.5 (or 1.4a?). Version 1.4 doesn't understand `--tag=CXX', so it breaks. When you add this define, libtoolize won't be run, and all should go well. > However I get the following error message while trying to build the package; > > c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3//include > -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -O2 > -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -fno-exceptions > -fno-check-new -c kscope_meta_unload.cpp/bin/sh ../libtool --mode=link > --tag=CXX c++ -O2 -O2 -fomit-frame-pointer -pipe -march=i586 > -mcpu=pentiumpro -fno-exceptions -fno-check-new -o kscope -L/usr/X11R6/lib > -L/usr/lib/qt3//lib -L/usr/lib -R /usr/lib -R /usr/lib/qt3//lib -R > /usr/X11R6/lib projectfilesdlg.o progressdlg.o kscopepixmaps.o calltreedlg.o > scanprogressdlg.o dirscanner.o kscopeconfig.o preffrontend.o prefcolor.o > preferencesdlg.o openprojectdlg.o newprojectdlg.o ctagslist.o > ctagsfrontend.o frontend.o querypage.o querywidget.o cscopefrontend.o > searchlist.o editorpage.o editormanager.o filelist.o projectmanager.o > editortabs.o kscope.o main.o projectfileslayout.o calltreelayout.o > scanprogresslayout.o prefcolorlayout.o preffrontendlayout.o > openprojectlayout.o newprojectlayout.o preffrontend.moc.o frontend.moc.o > prefcolor.moc.o querypage.moc.o projectmanager.moc.o calltreedlg.moc.o > newprojectdlg.moc.o progressdlg.moc.o kscopeconfig.moc.o searchlist.moc.o > editorpage.moc.o kscope.moc.o filelist.moc.o ctagsfrontend.moc.o > scanprogressdlg.moc.o projectfilesdlg.moc.o querywidget.moc.o > cscopefrontend.moc.o editormanager.moc.o editortabs.moc.o > openprojectdlg.moc.o preferencesdlg.moc.o ctagslist.moc.o > kscope_meta_unload.o -lktexteditor -lkparts -lkdeui -lkdecore -lqt-mt > -lpng -lz -lm -lXext -lX11 -lresolv -lSM -lICE -lpthread -lresolv libtool: > unrecognized option `--tag=CXX' Try `libtool --help' for more information. > make[2]: *** [kscope] Error 1 > make[2]: Leaving directory `/home/nick/rpm/BUILD/kscope-0.4/kscope' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/nick/rpm/BUILD/kscope-0.4' > make: *** [all-recursive-am] Error 2 > error: Bad exit status from /home/nick/rpm/tmp/rpm-tmp.99463 (%build) > RPM build errors: > Bad exit status from /home/nick/rpm/tmp/rpm-tmp.99463 (%build) > > The problem would appear to be caused by the fact that Mandrake ships with > libtool 1.4.3 and kscope (and it would appear most kde packages) uses > libtool 1.4a > > [EMAIL PROTECTED] nick]$ cd rpm/BUILD/kscope-0.4/admin/ > [EMAIL PROTECTED] admin]$ ./ltconfig --version > ltconfig (GNU libtool) 1.4a (1.641.2.206mm 2001/04/03 21:47:47) > > This would appear to mean that I cannot use %configure in my .spec file. > Are there plans to upgrade mandrakes libtool to version 1.4a? > How have others addressed this problem? And is there a standard Mandrake > replacement for %configure in kde packages? -- Marcel Pol