Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 16-Jun-2009, 09:00
Puzzled Penguin
 
Join Date: May 2009
Posts: 10
nick_at_seakr hasn't been rated much yet
Default Build Dependencies

Hi, folks,
I'm pretty new to the openSuSE Build Service, so please go easy on me if this is a question I ought to be familiar with. I have a couple of packages that have some dependencies not included in the OBS default environment. For example, one package requires the php5-devel package in order to build correctly. Another needs unzip or jar. My spec files have these requirements spelled out, but when the build service attempts to build the package I get an error that it's unable to find the php5-devel package, for example. How do I tell the build environment to install this package?

Thanks - Nick
Reply With Quote
  #2 (permalink)  
Old 16-Jun-2009, 09:10
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,683
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Build Dependencies

Quote:
Originally Posted by nick at seakr
Hi, folks,
I'm pretty new to the openSuSE Build Service, so please go easy on me
if this is a question I ought to be familiar with. I have a couple of
packages that have some dependencies not included in the OBS default
environment. For example, one package requires the php5-devel package
in order to build correctly. Another needs unzip or jar. My spec files
have these requirements spelled out, but when the build service attempts
to build the package I get an error that it's unable to find the
php5-devel package, for example. How do I tell the build environment to
install this package?

Thanks - Nick
Hi
That would indicate those packages are not part of the standard
install. Therefore you either need to package them up in your
repository, or create a link to the appropriate package in an
alternative repository on the build service.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 2 days 23:38, 2 users, load average: 0.08, 0.02, 0.01
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

Reply With Quote
  #3 (permalink)  
Old 16-Jun-2009, 10:15
Puzzled Penguin
 
Join Date: May 2009
Posts: 10
nick_at_seakr hasn't been rated much yet
Default Re: Build Dependencies

I started trying to create a link, but I'm having trouble figuring out where the php5-devel package is in the repositories, and how, exactly, I specify a repository (the interface doesn't provide a lot of help in that area).
Reply With Quote
  #4 (permalink)  
Old 16-Jun-2009, 10:33
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,683
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Build Dependencies

Quote:
Originally Posted by nick at seakr
I started trying to create a link, but I'm having trouble figuring out
where the php5-devel package is in the repositories, and how, exactly, I
specify a repository (the interface doesn't provide a lot of help in
that area).

Hi
It depends on the version of php-devel your wanting. Seems strange
though if you using the standard build as version 5.2.6 is there.

Normally you need to build the main package to get the associated devel
package.

Say for example your wanting the version from serverhp, so
you would click the '[Link Package from other Project]', then;

Name of original project: serverhp
Name of package in original project: php

Then hit create link, you will then get a new package added,
remember to edit the repositories you want built.

Then wait for the build to finish and then move onto the next...

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 3 days 0:54, 2 users, load average: 0.47, 0.31, 0.25
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

Reply With Quote
  #5 (permalink)  
Old 16-Jun-2009, 16:41
Busy Penguin
 
Join Date: Jun 2008
Posts: 389
RedDwarf hasn't been rated much yet
Default Re: Build Dependencies

Quote:
Originally Posted by nick_at_seakr View Post
For example, one package requires the php5-devel package in order to build correctly.
Change BuildPrereq for BuildRequires.

Quote:
Originally Posted by nick_at_seakr View Post
Another needs unzip or jar.
BuildRequire it, you aren't.
Reply With Quote
  #6 (permalink)  
Old 17-Jun-2009, 14:39
Puzzled Penguin
 
Join Date: May 2009
Posts: 10
nick_at_seakr hasn't been rated much yet
Default Re: Build Dependencies

Awesome - seems to have worked for one of the packages, which is a really good sign - just waiting on the others to make it to the top of the queue list and I think we'll be good to go!
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2