[scl.org] Building packages depending on SCL
rcollet at redhat.com
Mon Jul 4 08:08:34 UTC 2016
Le 01/07/2016 à 18:14, Dmitry Makovey a écrit :
> On 05/18/2016 10:26 PM, Remi Collet wrote:
>> Le 18/05/2016 à 18:20, Dmitry Makovey a écrit :
>>> I've been building RPMs for a while, however SCL is a bit "new" to me.
>>> I am trying to build an apache module for SCL apache version
>>> (httpd24-httpd) . I have located documentation on how to proceed with
>>> building SCL package from scratch, however I didn't come across any
>>> information on building atop of existing packages, like in my case.
>>> Any pointers (URLs etc.) will be deeply appreciated.
>> In centos-sclo repository you already have 2 apache modules, you can
>> probably have a look at (diffing with base package in Fedora/EPEL)
> Hi Remi,
> As per above links I've managed to cobble together my package just to
> get it to build and deploy, however I just tuned it to build hardcoding
> a lot of things. Now that I'm trying to refactor and clean up the SPEC
> file I'm having problems like:
> bash-4.1# rpmbuild -D 'scl=1' -ba webauth.spec
> error: line 2: Unknown tag: %scl_package webauth
You need to have both scl-utils-build and httpd24-build installed.
The better way is to use mock, with a dedicated configuration overriding
install @buildsys scl-utils-build httpd24-build
Installing these packages in a dev. machine is usually a bad idea.
> whole code is here:
> Last revision ( http://tinyurl.com/h65k8ed ) is my "broken" attempt at
> compliance with upstream practices (built with `rpmbuild -D 'scl=1' -ba
> webauth.spec), whereas previous one ( http://tinyurl.com/hh8mxkv ) is a
> "working" version (built with simple `rpmbuild -ba webauth.spec`)
> I feel like rpmbuild invocation may need to be different or some macros
> did not get populated properly. What did I miss?
rcollet at redhat.com | Senior Software Engineer / BaseOS / WebStack team
GPG Key: 0x29F16A18
Fingerprint: 5A0E 6F54 D94D 5732 69EE E3FF 614A 6905 29F1 6A18
More information about the SCLorg