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
>   real    0m17.805s
>   user    0m15.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

  real    0m0.055s
  user    0m0.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

Reply via email to