[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#587998: marked as done (edos-distcheck: Please support architecture wildcards)



Your message dated Mon, 28 Jul 2014 10:57:56 +0200
with message-id <20140728085756.GN32535@seneca.home.org>
and subject line Re: edos-distcheck: Please support architecture wildcards
has caused the Debian Bug report #587998,
regarding edos-distcheck: Please support architecture wildcards
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
587998: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587998
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: edos-distcheck
Version: 1.4.2-11
Severity: important

Dear edos-distcheck maintainers,

edos-debcheck is used by the Debian wanna-build database, used
by the build dæmons to check which packages need rebuilding.
However, it appears that edos-debcheck can't yet cope with
architecture wildcards which are now permitted in package
dependencies and build-dependencies and are supported by
dpkg, sbuild and associated tools.  [I didn't see any use of
dpkg-architecture in the sources.]

Please could you consider adding support for architecture
wildcards with dpkg-architecture?  edos-debcheck support is the
last remaining tool needing support, which is blocking use of
wildcards in Debian.

References:
http://lists.debian.org/debian-wb-team/2010/07/msg00007.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501230

Support is very simple.  When you get an architecture in
square brackets in a dependency such as

  grub [i386]
  libfreeimage-dev [!linux-any]
  libpng12-dev [any-i386]

you call dpkg-architecture to query if the wildcard matches
the host architecture.  You need to handle the '!' (not) case
yourself.  If the host architecture and dependency architecture
are a straight match, you can skip calling dpkg-architecture if you
want a small optimisation, or else you just ask dpkg-architecture:

Is [linux-any] needed on an amd64 arch?
% dpkg-architecture -aamd64 -ilinux-any 
% echo $?
0
(yes, it matches)

Is [linux-any] needed on a hurd-i386 arch?
% dpkg-architecture -ahurd-i386 -ilinux-any
% echo $?                                  
1
(no, it doesn't match)

Is [any-i386] needed on a hurd-i386 arch?
% dpkg-architecture -ahurd-i386 '-iany-i386' 
% echo $?                                   
0
(yes, it matches)

I'm sure you get the idea!

The list thread link above has the patch written for wanna-build
in it which might be useful as an example of how it could be done.


Many thanks,
Roger Leigh

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (550, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



--- End Message ---
--- Begin Message ---
Version: 3.2.2-2

Hello, edos-distcheck is now superseded by dose-distcheck which is fully
multiarch aware.

Cheers -Ralf.

--- End Message ---

Reply to: