Description of Problem: /usr/share/libtool/ltconfig present in RedHat7.1 /usr/share/libtool/ltconfig vanished in RedHat 7.2 Version-Release number of selected component (if applicable): RedHat7.1: [ted@lorient ~]$ rpm -qf /usr/share/libtool/ltconfig libtool-1.3.5-8 How Reproducible: locate ltconfig The file is not where it is supposed to be Additional Information: I wanted to rebuild scilab-2.6 rpm --rebuild scilab-2.6-1.src.rpm It does not work because ltconfig is not there
ltconfig is gone with newer versions of libtool. Unless I'm mistaken, applications should either include a copy of ltconfig (unfortunately, old combinations of automake/libtool created just a link) or get fixed. In the top source dir, run: alocal ; automake -a -c ; autoconf This should solve your problems.
I tried what you said: %prep %setup -q %patch0 -p1 aclocal; automake -a -c; autoconf %build cp /usr/share/libtool/{config.sub,config.guess,ltconfig,ltmain.sh} config/ export CFLAGS="$RPM_OPT_FLAGS" export CC_OPTIONS="$RPM_OPT_FLAGS" ... but I obtain the following message error: Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.27849 + umask 022 + cd /usr/src/redhat/BUILD + cd /usr/src/redhat/BUILD + rm -rf scilab-2.6 + /bin/gzip -dc /usr/src/redhat/SOURCES/scilab-2.6.src.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd scilab-2.6 ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,g-w,o-w . + echo 'Patch #0 (scilab-2.6-nopvmdist.patch):' Patch #0 (scilab-2.6-nopvmdist.patch): + patch -p1 -s + aclocal + automake -a -c configure.in: 9: `automake requires `AM_CONFIG_HEADER', not `AC_CONFIG_HEADER' automake: configure.in: `PACKAGE' not defined in `configure.in' automake: configure.in: `VERSION' not defined in `configure.in' automake: configure.in: installing `config/mkinstalldirs' automake: configure.in: installing `config/missing' automake: no `Makefile.am' found or specified error: Bad exit status from /var/tmp/rpm-tmp.27849 (%prep) What have I done wrong? Daniel
It doesn't use automake. :) With libtoolize -c --force ; configure ... one can set up the source tarball and compile with "make all". In your spec file, you may need to take out the first "cp" line from the %build section and most likely any "aclocal" and "autoconf" calls, too. The scilab distribution is broken when it doesn't come with a working set of files and keeps local macros in aclocal.m4 instead of acinclude.m4. It will need to get fixed, not only for libtool > 1.3.5.
Thanks for your answer If I understand correctly what you wrote, Scilab will have anyway problems to build on RH72? Is that it? Maybe I should wait for the RH SRPMS... Daniel
The way the rpm's spec file sets up the code is incompatible. Basically, you should need to run just "configure ; make all" like the README suggests. You should not need to copy over libtool files from your installation like the spec file does. If you really needed to rebuild autoconf/automake/libtool files, this would not work completely with scilab because their setup is broken. I'm not a Red Hat employee, but since the Powertools CD is no longer produced, there probably won't be any offically supported RH rpms for scilab.
See also http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=82&database=automake