[Dev] How to turn off debug packages for local gbs build?

Łukasz Stelmach l.stelmach at samsung.com
Wed Dec 11 10:20:46 GMT 2013

It was <2013-12-11 śro 09:45>, when Dong, Junfeng wrote:

> From: dev-bounces at lists.tizen.org [mailto:dev-bounces at lists.tizen.org]
> On Behalf Of Tomasz Olszak
> Sent: Wednesday, December 11, 2013 5:12 AM
>> Hi,
>> I started to refactor some rpm specs and would like to turn off
>> creation of debuginfo and debugsource packages for certain builds. Is
>> it possible by passing some kind of variable/define to gbs?
> As far as I know, two possible ways to disable debug packages.
> 1.  insert "%define debug_package %{nil}" in the spec files.
> 2. set "%debug_package %{nil}" in /etc/rpm/macros, which is supplied by package "rpm".

The former is probably what you are looking for if you build data-only
packages. The latter is somewhat cumbersom as /etc/rpm/macros in the
chroot will be removed every now and then.
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.tizen.org/pipermail/dev/attachments/20131211/53568b6a/attachment.sig>

More information about the Dev mailing list