Bug#637282: [Build-common-hackers] Bug#637282: cdbs: Please support linux-any target

2011-08-10 Thread Emilio Pozuelo Monfort
On 10/08/11 08:24, Nobuhiro Iwamatsu wrote:
 cdbs does not support linux-any target yet.
 I made patch to support linux-any target. Could you apply this patch?
 
 I tested some package with this patch. Work fine.

This patch looks wrong. It won't work on !linux-any, e.g. kFreeBSD.

The right way would be to test it with `dpkg-architecture -i$wildcard` and check
if $? == 0.

Emilio



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#637282: [Build-common-hackers] Bug#637282: cdbs: Please support linux-any target

2011-08-10 Thread Jonas Smedegaard
On 11-08-10 at 03:24pm, Nobuhiro Iwamatsu wrote:
 cdbs does not support linux-any target yet.
 I made patch to support linux-any target. Could you apply this patch?
 
 I tested some package with this patch. Work fine.

Thanks.  Seems more sensible to me, however, to cover generically the 
*-any and any-* syntax.

Could I please ask you to verify that attached patch works for you as 
well?


Regards,

 - Jonas

-- 
 * Jonas Smedegaard - idealist  Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
diff --git a/scripts/list-packages b/scripts/list-packages
index 4b985dc..1454893 100755
--- a/scripts/list-packages
+++ b/scripts/list-packages
@@ -63,7 +63,11 @@ sub GetPackages {
 			if ($package 
 			(($type eq 'indep'  $arch eq 'all') ||
 			 ($type eq 'arch'  $arch ne 'all') ||
-			 ($type eq 'same'  ($arch eq 'any' || $arch =~ /\b$buildarch\b/)) ||
+			 ($type eq 'same'  (
+$arch eq 'any' ||
+$arch =~ /^any-\S+$/ ||
+$arch =~ /^\S+-any$/ ||
+$arch =~ /\b$buildarch\b/)) ||
 			 ! $type)) {
 push @list, $package;
 $package=;


signature.asc
Description: Digital signature