RPM annoyance

Bill Campbell bill
Mon May 17 11:30:04 PDT 2004


On Thu, Apr 18, 2002 at 11:02:59AM -0400, Net Llama! wrote:
>I like to build my RPMs from source, which means SRPMs.  Seemingly
>randomly, right at the end of the build process, when it should be
>actually creating the RPM, instead I see (what looks to me) a cryptic
>error "glob counldn't find something or other".  Someone suggested that my
>autoconf is horked or something like that, but i don't see this for every
>SRPM i try to build, just some of them.

When I build any RPMS, I redirect the output of the build to a
file through tee so that I can look at the results later:
	rpm -ba xxx.spec 2>&1 | tee /tmp/rpm.test

This output file is often very helpful in tracking problems like this.

Autoconf is probably less likely to be the problem than something in
libtool.  I've been learning much more about autoconf, automake, and
libtool than I ever wanted to know while compiling most of the Linux tools
I've come to know and love to Darwin/OSX on the Macs (my first step was to
get a working version of RPM for darwin).

One thing I've learned is that there's a significant difference between
libtool-1.3 and libtool-1.4, and libtool-1.3.5 is the most common version
(you will find ``ltconfig'' and ``ltmain.sh'' in the build directory with
libtool-1.3).  See http://fink.sourceforge.net/doc/porting/libtool.php
for more details.

As an example, I was building xfce for darwin last night, and had to do the
following in my xfce.spec file.  The ``libtoolize'' copies the current
config.guess, config.sub, ltconfig, and ltmain.sh scripts to the current
directory.  Autoconf rebuilds the configure script from configure.in.
CFLAGS does the funny things Darwin's compiler needs.  Finally the ltconfig
builds a new libtool script based on what's on the system, and what
configure found.

#... header stuff here
%build
%ifos darwin
	libtoolize -f -c --automake
	autoconf
	CFLAGS="-O2 -fsigned-char -no-cpp-precomp"; export CFLAGS
%endif
# ./configure stuff here...

%ifos darwin
	./ltconfig ltmain.sh # recreate ./libtool
%endif

%{__make} # ...
# ... rest of spec file.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``I have no reason to suppose that he, who would take away my Liberty, would
not when he had me in his Power, take away everything else.''  John Locke



More information about the Linux-users mailing list