Help!

Can I change configure options with rpmbuild


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management RSS
Next:  Is it possible to just update a file inside a RPM..  
Author Message
Eric
External


Since: Jul 19, 2006
Posts: 1



PostPosted: Wed Jul 19, 2006 5:30 pm    Post subject: Can I change configure options with rpmbuild
Archived from groups: linux>redhat>rpm (more info?)

I want to rebuild the php-mysql rpm, which i did successfully. I had to
up2date --get-source php. Then I had to either download whatever
packages i was missing, or remove references to them out of the spec
file. Basically all i need to comment out is pgsql and oracle. (or
maybe just pgsql).

php-mysql is them created succesfully using mysql-5.0 libraries.

I want to make this an automated process. I don't want to have to touch
the spec file everytime.. Is there i way i can pass flags to rpmbuild to
do this for me?

I tried all of the following:
rpmbuild --without pgsql --nodeps -bb php.spec
rpmbuild --with pgsql=no --nodeps -bb php.spec
rpmbuild --with-pgsql=no --nodeps -bb php.spec
rpmbuild --without pgsql --nodeps -bb php.spec


I can't get it to work. If it were just this i wouldn't care. But if
i'm going to recompile i would like be able to nit-pick a little more.

Using RHEL4 ES Up2date
Back to top
DiskMan
External


Since: Jan 26, 2005
Posts: 62



PostPosted: Sat Jul 22, 2006 3:50 pm    Post subject: Re: Can I change configure options with rpmbuild [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I would simply open the specfile and go to the configure [%configure] line
and add it:

%build
../configure --without pgsql

OR

%build
%configure --without pgsql

Will L G


"Eric" <nomail.RemoveThis@domain.tld> wrote in message
news:12bt953mdi0qd45@corp.supernews.com...
>I want to rebuild the php-mysql rpm, which i did successfully. I had to
> up2date --get-source php. Then I had to either download whatever
> packages i was missing, or remove references to them out of the spec
> file. Basically all i need to comment out is pgsql and oracle. (or
> maybe just pgsql).
>
> php-mysql is them created succesfully using mysql-5.0 libraries.
>
> I want to make this an automated process. I don't want to have to touch
> the spec file everytime.. Is there i way i can pass flags to rpmbuild to
> do this for me?
>
> I tried all of the following:
> rpmbuild --without pgsql --nodeps -bb php.spec
> rpmbuild --with pgsql=no --nodeps -bb php.spec
> rpmbuild --with-pgsql=no --nodeps -bb php.spec
> rpmbuild --without pgsql --nodeps -bb php.spec
>
>
> I can't get it to work. If it were just this i wouldn't care. But if
> i'm going to recompile i would like be able to nit-pick a little more.
>
> Using RHEL4 ES Up2date
Back to top
Scott Lurndal
External


Since: Oct 20, 2004
Posts: 82



PostPosted: Thu Jul 27, 2006 9:14 pm    Post subject: Re: Can I change configure options with rpmbuild [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Eric <nomail.DeleteThis@domain.tld> writes:
>I want to rebuild the php-mysql rpm, which i did successfully. I had to
>up2date --get-source php. Then I had to either download whatever
>packages i was missing, or remove references to them out of the spec
>file. Basically all i need to comment out is pgsql and oracle. (or
>maybe just pgsql).
>
>php-mysql is them created succesfully using mysql-5.0 libraries.
>
>I want to make this an automated process. I don't want to have to touch
>the spec file everytime.. Is there i way i can pass flags to rpmbuild to
>do this for me?
>
>I tried all of the following:
>rpmbuild --without pgsql --nodeps -bb php.spec
>rpmbuild --with pgsql=no --nodeps -bb php.spec
>rpmbuild --with-pgsql=no --nodeps -bb php.spec
>rpmbuild --without pgsql --nodeps -bb php.spec
>

Use

$ rpmbuild --rcfile sanspgsql.rc ...
$ rpmbuild --rcfile withpgsql.rc ...

You can set macros in the rcfile that the spec file will then obey.

scott
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> PRM - Partner Relationship Management All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum