[elbe-devel] [PATCH] pbuilder: use host mirror when cross building

Kory Maincent kory.maincent at bootlin.com
Tue Nov 24 18:48:22 CET 2020


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>
---
 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



More information about the elbe-devel mailing list