LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-05-2005, 02:17 PM   #1
jcalcote
LQ Newbie
 
Registered: Mar 2005
Location: Provo, UT
Posts: 2

Rep: Reputation: 0
Question rpmbuild - build section question


Question:

Why, in the %build section of my rpm spec file, does this work:

%build
libtoolize --force --copy
autoheader
aclocal
automake --add-missing --copy $am_opt
autoconf
./configure
make

But this does NOT work:

%build
./autogen.sh
./configure
make

Note that autogen.sh (as you might have guessed) contains exactly the same lines as in the first example above (up to, but not including the ./configure line).

Thanks,
John
 
Old 03-05-2005, 02:27 PM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Quote:
Originally posted by jcalcote
But this does NOT work:

%build
./autogen.sh
./configure
make
What are you attempting to build? What's the package?

Last edited by Xian; 03-05-2005 at 02:28 PM.
 
Old 03-07-2005, 09:57 AM   #3
jcalcote
LQ Newbie
 
Registered: Mar 2005
Location: Provo, UT
Posts: 2

Original Poster
Rep: Reputation: 0
I'm maintaining the openslp project - I'm fairly new to the world of rpms, and I'm trying to setup my spec file for a new release. The autogen.sh shell script is a script file at the root of the openslp project. (www.openslp.org - www.sf.net/projects/openslp).

The problem seems to be the autogen.sh shell script cannot be found. Oddly however, the configure script (in the same directory) can be found. Once I've executed the autotools, then the project root is visible, and contains the files necessary to run ./configure. How can running libtoolize, aclocal, automake, and autoconf have anything to do with the visibility of the project root to rpmbuild?

I'm still at a loss - I'd rather run my autogen.sh file than duplicate the contents of it in the rpm spec file. It would be better for maintenance.

Thanks in advance,
John
 
Old 03-12-2005, 06:10 AM   #4
gerry
LQ Newbie
 
Registered: Jul 2003
Location: London, UK
Distribution: SuSE
Posts: 27

Rep: Reputation: 15
have you considered the daft ideas - such as checking file permissions?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpmbuild --with : mysql - unknown option. How to pass extra options to build? fireman949 Red Hat 0 07-06-2005 06:53 PM
rpmbuild question prubino Linux - Software 1 01-14-2005 11:01 AM
rpmbuild doesn't produce the source code in /usr/src/redhat/BUILD Niceman2005 Linux - Software 2 11-29-2004 05:58 PM
Experiment with Alsaplayer Fails Build: Tarball and rpmbuild farmerdan Linux - Software 0 05-10-2004 08:14 PM
rpmbuild question Thetargos Linux - Software 6 06-18-2003 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration