Bug#919596: build-dependencies when crossbuilding choose-mirror

2019-01-22 Thread jhcha54008
Le samedi 19 janvier à 07h 48mn 18s (+0100), Cyril Brulebois a écrit :
> Hi JH,
> 
> jhcha54008  (2019-01-17):
> > Package: choose-mirror
> > Version: 2.96
> > Severity: wishlist
> > Tags: patch
> > 
> > Dear Maintainer,
> > 
> > Crossbuilding choose-mirror with dpkg-buildpackage -a  results in
> > an error at the present time.
> > 
> > It succeeds with the patch below.
> 
> I'd be happy to get a log for the failure and/or a complete description
> on how to reproduce it; a description of why the change is needed / how
> it works would also be welcome.
> 
> (No objections on the patch on its own, but not everyone is uptospeed
> regarding crossbuilding, so some details would be appreciated.)
> 
> 
> Thanks,
> -- 
> Cyril Brulebois (k...@debian.org)
> D-I release manager -- Release team member -- Freelance Consultant


Hi,

Thank your for your answer. Here is a revised
version of the bug report. Thanks in advance
for your advice if there is a better way.

* Why cross-compile choose-mirror ?

The official debian-installer and udeb packages
are built on native buildds. It would be handy
to build on amd64 for testing purpose though - 
particularly when targeting some exotic 
architectures which might not exist yet for real
(e.g. riscvos. See [1])

It should be possible to cross-compile choose-mirror :
debian/rules defines the exported variables DEB_HOST_ARCH
and CROSS.

* What is the actual problem with choose-mirror ?

$ dpkg-buildpackage -a alpha -uc -us
[ ... ]
dpkg-checkbuilddeps: error: Unmet build dependencies: isoquery
[ ... ]

There is no 'Multi-Arch:' field in the debian/control file
of isoquery : isoquery:amd64 installed doesn't meet
the build dependency requirements of choose-mirror for alpha.

* How to reproduce the bug ?

Please find the details below with a minimal setup on amd64 
targeting alpha.

I hope it will help !

Regards,
JH Chatenet

[1] : http://lists.debian.org/debian-boot/2019/01/msg00044.html



1/ create a sid chroot with debootstrap --variant=buildd
  and an user 'me' :

 debootstrap --variant=buildd sid mychroot
 export LANG=C
 mount -t proc proc mychroot/proc
 chroot mychroot
 mount -t sysfs sysfs sys
 mount -t devpts devpts dev/pts -o gid=5,mode=620
 apt-get update && apt-get upgrade
 adduser me 

2/ install the toolchain

  apt-get install gcc-alpha-linux-gnu
 
3/ install the build dependencies (amd64 part)

 apt-get --no-install-recommends install fakeroot
 apt-get --no-install-recommends install debhelper debhelper wget po-debconf 
locales iso-codes isoquery

4/ install the build dependencies (alpha part)

 apt-get install debian-ports-archive-keyring
 cat > /etc/apt/sources.list.d/alpha.list  /etc/apt/sources.list.d/source.list ../choose-mirror_2.96_alpha.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: source-only upload: Debian-native package
$ echo $?
0



Bug#919596: build-dependencies when crossbuilding choose-mirror

2019-01-18 Thread Cyril Brulebois
Hi JH,

jhcha54008  (2019-01-17):
> Package: choose-mirror
> Version: 2.96
> Severity: wishlist
> Tags: patch
> 
> Dear Maintainer,
> 
> Crossbuilding choose-mirror with dpkg-buildpackage -a  results in
> an error at the present time.
> 
> It succeeds with the patch below.

I'd be happy to get a log for the failure and/or a complete description
on how to reproduce it; a description of why the change is needed / how
it works would also be welcome.

(No objections on the patch on its own, but not everyone is uptospeed
regarding crossbuilding, so some details would be appreciated.)


Thanks,
-- 
Cyril Brulebois (k...@debian.org)
D-I release manager -- Release team member -- Freelance Consultant


signature.asc
Description: PGP signature


Bug#919596: build-dependencies when crossbuilding choose-mirror

2019-01-17 Thread jhcha54008
Package: choose-mirror
Version: 2.96
Severity: wishlist
Tags: patch

Dear Maintainer,

Crossbuilding choose-mirror with dpkg-buildpackage -a  results in an error
at the present time.

It succeeds with the patch below.

Thank you for your work on the debian installer !

Regards,
JH Chatenet

diff -Naur a/choose-mirror/debian/control b/choose-mirror/debian/control
--- a/choose-mirror/debian/control
+++ b/choose-mirror/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Install System Team 
 Uploaders: Christian Perrier , Colin Watson 
, Cyril Brulebois 
-Build-Depends: debhelper (>= 9), libdebconfclient0-dev, wget, po-debconf, 
libdebian-installer4-dev, locales, iso-codes, isoquery
+Build-Depends: debhelper (>= 9), libdebconfclient0-dev, wget, po-debconf, 
libdebian-installer4-dev, locales, iso-codes, isoquery:native
 Vcs-Browser: https://salsa.debian.org/installer-team/choose-mirror
 Vcs-Git: https://salsa.debian.org/installer-team/choose-mirror.git