[elbe-devel] [PATCH] pbuilder: use host mirror when cross building
Torben Hohn
torben.hohn at linutronix.de
Wed Dec 9 12:27:44 CET 2020
On Tue, Nov 24, 2020 at 06:48:22PM +0100, Kory Maincent wrote:
> If --cross is used with pbuilder, MIRRORSITE should be set to the mirror URL
> for the host architecture.
>
> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
> ---
> elbepack/pbuilder.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/elbepack/pbuilder.py b/elbepack/pbuilder.py
> index 5cae2b986..c83a7cabf 100644
> --- a/elbepack/pbuilder.py
> +++ b/elbepack/pbuilder.py
> @@ -78,7 +78,7 @@ def pbuilder_write_cross_config(builddir, xml, noccache):
>
> fp.write('#!/bin/sh\n')
> fp.write('set -e\n')
> - fp.write('MIRRORSITE="%s"\n' % xml.get_primary_mirror(False))
> + fp.write('MIRRORSITE="%s"\n' % xml.get_primary_mirror(False, hostsysroot=True))
> fp.write('OTHERMIRROR="deb http://127.0.0.1:8080%s/repo %s main"\n' %
> (builddir, distname))
> fp.write('BASETGZ="%s"\n' % os.path.join(builddir, 'pbuilder_cross', 'base.tgz'))
> --
> 2.17.1
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
More information about the elbe-devel
mailing list