Debian Bug report logs -
#770925
wanna-build patches to support foreign-arch Build-Depends
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, wookey@debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#770925; Package src:sbuild.
(Tue, 25 Nov 2014 09:21:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Dima Kogan <dima@secretsauce.net>:
New Bug report received and forwarded. Copy sent to wookey@debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>.
(Tue, 25 Nov 2014 09:21:12 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: src:sbuild
Severity: normal
Hi. The cross toolchains now in unstable (for instance
https://tracker.debian.org/pkg/cross-gcc-4.9-armhf) have Build-Depends
on both the host and target architecture. This was not supported by
wanna-build, and a patch series to add this support is available here:
http://anonscm.debian.org/cgit/users/dkogan-guest/wanna-build.git/
I developed and tested these by setting up a wanna-build instance as
described here:
https://wiki.debian.org/DebianWannaBuildInfrastructureOnOneServer
https://wiki.debian.org/SetupBuildServiceForWanna-build
The setup also required a patch posted earlier:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765111
I suspect this extra patch is only required because of my specific
setup, since presumably wanna-build has been working just fine in the
wild.
On my test box I see wanna-build refuse to set a cross-gcc source
package to Needs-Build unless all Build-Depends are satisfied, both
native and foreign. This is the test of basic functionality, and it
appears to work. I'll run more thorough tests if somebody has specific
requests along those lines.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Buildd Team <wb-team@buildd.debian.org>:
Bug#770925; Package buildd.debian.org.
(Thu, 14 May 2015 11:39:10 GMT) (full text, mbox, link).
Acknowledgement sent
to Andreas Barth <aba@ayous.org>:
Extra info received and forwarded to list. Copy sent to Debian Buildd Team <wb-team@buildd.debian.org>.
(Thu, 14 May 2015 11:39:10 GMT) (full text, mbox, link).
Message #12 received at 770925@bugs.debian.org (full text, mbox, reply):
* Dima Kogan (dima@secretsauce.net) [150514 10:55]:
> http://anonscm.debian.org/cgit/users/dkogan-guest/wanna-build.git/
Thanks for the patches. This contains two distinct set of patches,
some are code-cleanup, some are for foreign-arch build-deps.
Cleanup:
4ef0ff57c54982ea6eeb84fea1eadafdded3ee61
e19894f7c02b7fc5b65cd2d0bba980ff4b19defb
AFAIUI these should be applicable independend of the foreign-arch
things? (Otherwise the first one looks good to me but my perl is a bit
outdated, the second should if the dose documentation is correct.)
Foreign-Arch:
55f2b48a6d58dfb306a71ac4b588833d129563ca
This breaks semantics of merge-v3 with only two sets of package files.
I need to think a bit more if there are other semantic changes (and if
so if we want them or not).
f3221db8f5ec5b063d87b7ef25f45f224821fc71
First hunk, I would prefer if it would be written so it could be run
on an oldstable machine as well (see the one for vercmp two lines
below), perhaps with a reduced function set. Otherwise same comment as
above applies.
Andi
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Buildd Team <wb-team@buildd.debian.org>:
Bug#770925; Package buildd.debian.org.
(Thu, 14 May 2015 18:48:14 GMT) (full text, mbox, link).
Acknowledgement sent
to Dima Kogan <dima@secretsauce.net>:
Extra info received and forwarded to list. Copy sent to Debian Buildd Team <wb-team@buildd.debian.org>.
(Thu, 14 May 2015 18:48:14 GMT) (full text, mbox, link).
Message #17 received at 770925@bugs.debian.org (full text, mbox, reply):
Hi Andi. Thanks for the reply.
As you saw, there's some cleanup stuff mixed in with the actual
foreign-arch build-dep stuff. I did a rebase so that these aren't
interleaved anymore, and the cleanup can be evaluated somewhat
independently. The build-dep stuff does depend on the cleanup, however.
The new tree lives in a branch:
http://anonscm.debian.org/cgit/users/dkogan-guest/wanna-build.git/log/?h=770925_foreign_arch_bd
Same code as before, with a small, uninteresting bug fix:
--- b/bin/wanna-build
+++ a/bin/wanna-build
@@ -1920,1 +1920,1 @@
- my @arch_foreign = grep { !/^(?:native|all|any|$arch_native)/ } keys %qualified_arches;
+ my @arch_foreign = grep { !/^(?:native|all|any|$arch_native)$/ } keys %qualified_arches;
The tree now looks like this:
* 800aaee..: more correct handling of dose exit codes, as defined in the latest dose3
* 4428317..: dose-builddebcheck now has Packages for native and ALL foreign arches
* 62fe41c..: I now pass --deb-foreign-archs to dose-builddebcheck as needed
* e041d64..: I now call dose-builddebcheck with IPC::Run
* b857c74..: some small syntactic corrections
Cleanup is the first two: b857c74 and e041d64. The other 3 are
functional changes. Particularly, the last commit (800aaee) isn't
cleanup as you labelled it previously: it changes the way
dose-builddebcheck result codes are interpreted.
Andreas Barth <aba@ayous.org> writes:
> 55f2b48a6d58dfb306a71ac4b588833d129563ca
> This breaks semantics of merge-v3 with only two sets of package files.
> I need to think a bit more if there are other semantic changes (and if
> so if we want them or not).
I'm not sure what you mean here. If you need something changed once you
think about it more, please tell me.
> f3221db8f5ec5b063d87b7ef25f45f224821fc71
> First hunk, I would prefer if it would be written so it could be run
> on an oldstable machine as well (see the one for vercmp two lines
> below), perhaps with a reduced function set.
On oldstable (wheezy) the dose-builddebcheck is too old to support the
foreign-arch stuff. If you want something reasonable to happen with
wheezy too, should we simply not even try to satisfy foreign-arch
build-deps there? If so, then we don't need deps_iterate. Let me know
and I'll put in the appropriate logic
Added indication that bug 770925 blocks 766626
Request was from Wookey <wookey@debian.org>
to control@bugs.debian.org.
(Thu, 28 May 2015 23:42:04 GMT) (full text, mbox, link).
Added indication that bug 770925 blocks 766625
Request was from Wookey <wookey@debian.org>
to control@bugs.debian.org.
(Thu, 28 May 2015 23:45:08 GMT) (full text, mbox, link).
Added indication that bug 770925 blocks 766624
Request was from Wookey <wookey@debian.org>
to control@bugs.debian.org.
(Thu, 28 May 2015 23:45:12 GMT) (full text, mbox, link).
Added indication that bug 770925 blocks 766623
Request was from Wookey <wookey@debian.org>
to control@bugs.debian.org.
(Thu, 28 May 2015 23:45:17 GMT) (full text, mbox, link).
Added indication that bug 770925 blocks 766621
Request was from Wookey <wookey@debian.org>
to control@bugs.debian.org.
(Thu, 28 May 2015 23:45:22 GMT) (full text, mbox, link).
Added indication that bug 770925 blocks 766622
Request was from Wookey <wookey@debian.org>
to control@bugs.debian.org.
(Thu, 28 May 2015 23:45:25 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Buildd Team <wb-team@buildd.debian.org>:
Bug#770925; Package buildd.debian.org.
(Tue, 18 Aug 2015 10:30:08 GMT) (full text, mbox, link).
Acknowledgement sent
to Aurelien Jarno <aurelien@aurel32.net>:
Extra info received and forwarded to list. Copy sent to Debian Buildd Team <wb-team@buildd.debian.org>.
(Tue, 18 Aug 2015 10:30:08 GMT) (full text, mbox, link).
Message #34 received at 770925@bugs.debian.org (full text, mbox, reply):
Hi,
Here is a status update on this issue, as I a currently working on it.
On 2015-05-14 11:16, Dima Kogan wrote:
> Hi Andi. Thanks for the reply.
>
> As you saw, there's some cleanup stuff mixed in with the actual
> foreign-arch build-dep stuff. I did a rebase so that these aren't
> interleaved anymore, and the cleanup can be evaluated somewhat
> independently. The build-dep stuff does depend on the cleanup, however.
>
> The new tree lives in a branch:
>
> http://anonscm.debian.org/cgit/users/dkogan-guest/wanna-build.git/log/?h=770925_foreign_arch_bd
>
> Same code as before, with a small, uninteresting bug fix:
>
> --- b/bin/wanna-build
> +++ a/bin/wanna-build
> @@ -1920,1 +1920,1 @@
> - my @arch_foreign = grep { !/^(?:native|all|any|$arch_native)/ } keys %qualified_arches;
> + my @arch_foreign = grep { !/^(?:native|all|any|$arch_native)$/ } keys %qualified_arches;
>
>
> The tree now looks like this:
>
> * 800aaee..: more correct handling of dose exit codes, as defined in the latest dose3
This has been merged a few months ago.
> * 4428317..: dose-builddebcheck now has Packages for native and ALL foreign arches
This doesn't work, as when passing Packages file from foreign
architectures, this also passes arch:all packages which might be at a
different version than on the native architecture. This would cause
some packages without cross-build-dependencies to be wrongly marked
as needs-build or bd-uninstallable.
I am currently working on an improve triggered code which passes the other
Packages file explicitely. That will also clean up a bit the arch:all
handling code.
> * 62fe41c..: I now pass --deb-foreign-archs to dose-builddebcheck as needed
This patch looks fine on principle, but the calls to dpkg triggers it to
determine its native architecture, which looks a bit scaring, given we
run it on an amd64 machine, not a buildd. This leads to this error messsages:
| sh: 1: gcc: not found
| wanna-build: warning: couldn't determine gcc system type, falling back to default (native compilation)
> * e041d64..: I now call dose-builddebcheck with IPC::Run
This has been merged a few months ago.
> * b857c74..: some small syntactic corrections
This has been merged a few months ago.
I am currently working on this, I really hope to get something working
by the end of the week.
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Dec 14 15:03:42 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.