FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 08-17-2012, 08:10 AM
Sébastien Nicouleaud
 
Default Build dependencies

Hi,
I'm new to rpm packaging, and a bit confused...
I want to build two rpm packages:- myapp- php-pear-foo
Given myapp needs php-pear-foo at build-time, should I build php-pear-foo first, install it, and then build myapp ?
Is mock supposed to scan spec files and build php-pear-foo before myapp, or should I deal with build order myself ?Should I create a local repo, reference it in my mock configuration, and use it to install php-pear-foo before building myapp ?
Or is there an easier way ?
Any help is welcome
Cheers

--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 08-17-2012, 09:49 AM
Remi Collet
 
Default Build dependencies

Le 17/08/2012 10:10, Sébastien Nicouleaud a écrit :
> Hi,
>
> I'm new to rpm packaging, and a bit confused...
>
> I want to build two rpm packages:
> - myapp
> - php-pear-foo
>
> Given myapp needs php-pear-foo at build-time, should I build
> php-pear-foo first, install it, and then build myapp ?
> Is mock supposed to scan spec files and build php-pear-foo before myapp,
> or should I deal with build order myself

Yes, yourself.

> Should I create a local repo, reference it in my mock configuration, and
> use it to install php-pear-foo before building myapp ?
> Or is there an easier way ?

Yes, you need a repo with php-pear-foo.

You could user the mock "results" dir and run a createrepo in it.
See the mock configuration file.

You case also give mockchain a try
http://skvidal.wordpress.com/2012/04/20/mockchain-use-cases-and-examples/


remi.


--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 08-17-2012, 10:09 AM
indent man
 
Default Build dependencies

On Fri, Aug 17, 2012 at 11:49 AM, Remi Collet <Fedora@famillecollet.com> wrote:

> Is mock supposed to scan spec files and build php-pear-foo before myapp,

> or should I deal with build order myself



Yes, yourself.

Ok.
*
> Should I create a local repo, reference it in my mock configuration, and

> use it to install php-pear-foo before building myapp ?

> Or is there an easier way ?



Yes, you need a repo with php-pear-foo.



You could user the mock "results" dir and run a createrepo in it.

See the mock configuration file.

Ok, I was currently exploring this, so I'm glad to know it's a possible way to go.
*
You case also give mockchain a try

http://skvidal.wordpress.com/2012/04/20/mockchain-use-cases-and-examples/
Wow, didn't know of this one, I'll definitely give it a try.
Thanks
Cheers
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 09:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org