public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] sbuild: Resolve package alternatives
@ 2022-07-05 13:06 Quirin Gylstorff
  2022-07-12 12:41 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Quirin Gylstorff @ 2022-07-05 13:06 UTC (permalink / raw)
  To: isar-users, amikan

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

Some Debian packages allow multiple packages to fulfill the
build requirements, e.g.:

https://salsa.debian.org/debian/swupdate/-/blob/e7daba180b4aefda379e833dfbbb3fd6d5dc15c3/debian/control

By default, sbuild does not resolve
these alternatives. This patch sets the sbuild command line
option to resolve these alternatives if necessary.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 meta/classes/dpkg.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass
index 3dda7d24..b726ea9d 100644
--- a/meta/classes/dpkg.bbclass
+++ b/meta/classes/dpkg.bbclass
@@ -84,7 +84,7 @@ dpkg_runbuild() {
 
     sbuild -A -n -c ${SBUILD_CHROOT} --extra-repository="${ISAR_APT_REPO}" \
         --host=${PACKAGE_ARCH} --build=${SBUILD_HOST_ARCH} ${profiles} \
-        --no-run-lintian --no-run-piuparts --no-run-autopkgtest \
+        --no-run-lintian --no-run-piuparts --no-run-autopkgtest --resolve-alternatives \
         --chroot-setup-commands="rm -f /var/log/dpkg.log" \
         --chroot-setup-commands="cp -n --no-preserve=owner ${ext_deb_dir}/*.deb -t ${deb_dir}/ || :" \
         --finished-build-commands="rm -f ${deb_dir}/sbuild-build-depends-main-dummy_*.deb" \
-- 
2.35.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sbuild: Resolve package alternatives
  2022-07-05 13:06 [PATCH] sbuild: Resolve package alternatives Quirin Gylstorff
@ 2022-07-12 12:41 ` Anton Mikanovich
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2022-07-12 12:41 UTC (permalink / raw)
  To: Quirin Gylstorff, isar-users

05.07.2022 16:06, Quirin Gylstorff wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
>
> Some Debian packages allow multiple packages to fulfill the
> build requirements, e.g.:
>
> https://salsa.debian.org/debian/swupdate/-/blob/e7daba180b4aefda379e833dfbbb3fd6d5dc15c3/debian/control
>
> By default, sbuild does not resolve
> these alternatives. This patch sets the sbuild command line
> option to resolve these alternatives if necessary.
>
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Applied to next, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-12 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05 13:06 [PATCH] sbuild: Resolve package alternatives Quirin Gylstorff
2022-07-12 12:41 ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox