[opensuse-buildservice] Install package in distro chroot?
Hi all, I'm setting up an internal OBS instance that builds packages for Ubuntu 16.04, and I'm wondering: is there a way to pre-emptively install a package in the chroot before installing the package's build dependencies? I would like to unconditionally install the pkg-create- dbgsym package when building for Ubuntu 16.04. Kyle -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mon, Apr 13, 2020 at 8:43 AM Kyle Edwards <kyle.edwards@kitware.com> wrote:
Hi all,
I'm setting up an internal OBS instance that builds packages for Ubuntu 16.04, and I'm wondering: is there a way to pre-emptively install a package in the chroot before installing the package's build dependencies? I would like to unconditionally install the pkg-create- dbgsym package when building for Ubuntu 16.04.
Add to your Project Config the following stanza: %if 0%{?debian} || 0%{?ubuntu} Support: pkg-create-dbgsym %endif More information on project config: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.prjconfig.h... -- 真実はいつも一つ!/ Always, there's only one truth! -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mon, 2020-04-13 at 08:45 -0400, Neal Gompa wrote:
Add to your Project Config the following stanza:
%if 0%{?debian} || 0%{?ubuntu} Support: pkg-create-dbgsym %endif
More information on project config: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.prjc onfig.html
Thanks Neal, this was exactly what I needed. Kyle -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Mon, 2020-04-13 at 14:11 -0400, Kyle Edwards wrote:
On Mon, 2020-04-13 at 08:45 -0400, Neal Gompa wrote:
Add to your Project Config the following stanza:
%if 0%{?debian} || 0%{?ubuntu} Support: pkg-create-dbgsym %endif
More information on project config: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.pr jc onfig.html
Thanks Neal, this was exactly what I needed.
I have another question about this. Is it possible to be more specific than just "ubuntu"? pkg-create-dbgsym was removed as of 18.04, so I'd only like to use it if building for 16.04. Something like: %if 0%{?ubuntu16.04} Support: pkg-create-dbgsym %endif Is this possible? Kyle -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, 2020-05-01 at 09:41 -0400, Kyle Edwards wrote:
I have another question about this. Is it possible to be more specific than just "ubuntu"? pkg-create-dbgsym was removed as of 18.04, so I'd only like to use it if building for 16.04. Something like:
%if 0%{?ubuntu16.04} Support: pkg-create-dbgsym %endif
Is this possible?
I figured it out. The following worked for me: %if 0%{?ubuntu} == 1604 Support: pkg-create-dbgsym %endif Kyle -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On 2020-05-01 09:41:17 -0400, Kyle Edwards wrote:
On Mon, 2020-04-13 at 14:11 -0400, Kyle Edwards wrote:
On Mon, 2020-04-13 at 08:45 -0400, Neal Gompa wrote:
Add to your Project Config the following stanza:
%if 0%{?debian} || 0%{?ubuntu} Support: pkg-create-dbgsym %endif
More information on project config: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.pr jc onfig.html
Thanks Neal, this was exactly what I needed.
I have another question about this. Is it possible to be more specific than just "ubuntu"? pkg-create-dbgsym was removed as of 18.04, so I'd only like to use it if building for 16.04. Something like:
%if 0%{?ubuntu16.04} Support: pkg-create-dbgsym %endif
%if 0%{?ubuntu_version} == 1604 ... %endif should do the trick. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Montag, 13. April 2020, 14:43:03 CEST wrote Kyle Edwards:
Hi all,
I'm setting up an internal OBS instance that builds packages for Ubuntu 16.04, and I'm wondering: is there a way to pre-emptively install a package in the chroot before installing the package's build dependencies? I would like to unconditionally install the pkg-create- dbgsym package when building for Ubuntu 16.04.
This is the Preinstall directive in your prjconf. Or better use "Order:" if this is just about the order of installing packages when they have a circular dependency. Have a read here: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.prjconfig.h... -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (4)
-
Adrian Schröter
-
Kyle Edwards
-
Marcus Hüwe
-
Neal Gompa