Bug#762635: dpkg-architecture: option to print all architectures matching wildcard

2014-09-24 Thread Jakub Wilk

* Guillem Jover , 2014-09-24, 21:29:

 $ time dpkg-architecture -Mkfreebsd-any -B64 -Ebig -L
 kfreebsd-mips64
 kfreebsd-ppc64
 kfreebsd-s390x
 kfreebsd-sparc64

 real0m0.055s
 user0m0.036s
 sys 0m0.012s


Ooo, cool! :-)

--
Jakub Wilk


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



Bug#762635: dpkg-architecture: option to print all architectures matching wildcard

2014-09-24 Thread Guillem Jover
On Wed, 2014-09-24 at 16:22:53 +0200, Guillem Jover wrote:
> On Tue, 2014-09-23 at 23:36:24 +0200, Jakub Wilk wrote:
> > Package: dpkg-dev
> > Version: 1.17.13
> > Severity: wishlist
> > 
> > I'd love if dpkg-architecture had an option to print all valid architectures
> > that match the provided wildcard. For example, something like this:
> > 
> > $ dpkg-architecture -L -iany-i386
> > uclibc-linux-i386
> > musl-linux-i386
> > lpia
> > i386
> > kfreebsd-i386
> > knetbsd-i386
> > kopensolaris-i386
> > hurd-i386
> > darwin-i386
> > dragonflybsd-i386
> > freebsd-i386
> > netbsd-i386
> > openbsd-i386
> > solaris-i386
> > uclinux-i386
> 
> Yeah, makes sense, as the equivalent shell construct is quite slow:
> 
>   $ time dpkg-architecture -L | while read arch; do \
>   dpkg-architecture -a$arch -iany-i386 && echo $arch; done
>   real0m17.805s
>   user0m15.768s
>   sys 0m1.232s
> 
> I'll be adding something like this for 1.17.14 or 1.17.15.

Ok, as this was pretty easy I just did so, but went a bit further and
allowed to match against bits end endianness too, so one can do stuff
like:

  $ time dpkg-architecture -Mkfreebsd-any -B64 -Ebig -L
  kfreebsd-mips64
  kfreebsd-ppc64
  kfreebsd-s390x
  kfreebsd-sparc64

  real0m0.055s
  user0m0.036s
  sys 0m0.012s

(I know that only short options suck a bit, but I'll be adding long
ones for the whole dpkg-dev in the near future.)

Thanks,
Guillem


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



Bug#762635: dpkg-architecture: option to print all architectures matching wildcard

2014-09-24 Thread Guillem Jover
Hi!

On Tue, 2014-09-23 at 23:36:24 +0200, Jakub Wilk wrote:
> Package: dpkg-dev
> Version: 1.17.13
> Severity: wishlist
> 
> I'd love if dpkg-architecture had an option to print all valid architectures
> that match the provided wildcard. For example, something like this:
> 
> $ dpkg-architecture -L -iany-i386
> uclibc-linux-i386
> musl-linux-i386
> lpia
> i386
> kfreebsd-i386
> knetbsd-i386
> kopensolaris-i386
> hurd-i386
> darwin-i386
> dragonflybsd-i386
> freebsd-i386
> netbsd-i386
> openbsd-i386
> solaris-i386
> uclinux-i386

Yeah, makes sense, as the equivalent shell construct is quite slow:

  $ time dpkg-architecture -L | while read arch; do \
  dpkg-architecture -a$arch -iany-i386 && echo $arch; done
  real0m17.805s
  user0m15.768s
  sys 0m1.232s

I'll be adding something like this for 1.17.14 or 1.17.15.

Thanks,
Guillem


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



Bug#762635: dpkg-architecture: option to print all architectures matching wildcard

2014-09-23 Thread Jakub Wilk

Package: dpkg-dev
Version: 1.17.13
Severity: wishlist

I'd love if dpkg-architecture had an option to print all valid 
architectures that match the provided wildcard. For example, something 
like this:


$ dpkg-architecture -L -iany-i386
uclibc-linux-i386
musl-linux-i386
lpia
i386
kfreebsd-i386
knetbsd-i386
kopensolaris-i386
hurd-i386
darwin-i386
dragonflybsd-i386
freebsd-i386
netbsd-i386
openbsd-i386
solaris-i386
uclinux-i386


-- System Information:
Debian Release: jessie/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental'), (1, 'buildd-unstable'), 
(1, 'buildd-experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.14-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg-dev depends on:
ii  base-files7.5
ii  binutils  2.24.51.20140903-1
ii  bzip2 1.0.6-7
ii  libdpkg-perl  1.17.13
ii  make  4.0-8
ii  patch 2.7.1-6
ii  xz-utils  5.1.1alpha+20120614-2

--
Jakub Wilk


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