Debian Bug report logs - #630342
dpkg-gensymbols: Add support for new endian and bits tags

version graph

Package: dpkg-dev; Maintainer for dpkg-dev is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg-dev is src:dpkg.

Reported by: Guillem Jover <guillem@debian.org>

Date: Mon, 13 Jun 2011 06:12:01 UTC

Owned by: modax@debian.org

Severity: wishlist

Found in version dpkg/1.16.0

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#630342; Package dpkg-dev. (Mon, 13 Jun 2011 06:12:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillem Jover <guillem@debian.org>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Mon, 13 Jun 2011 06:12:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Guillem Jover <guillem@debian.org>
To: submit@bugs.debian.org
Subject: dpkg-gensymbols: Add support for new endian and bits tags
Date: Mon, 13 Jun 2011 08:08:22 +0200
Package: dpkg-dev
Version: 1.16.0
Severity: wishlist
User: dpkg@packages.debian.org
Usertags: dpkg-gensymbols

Hi!

There's several packages which are either listing each 32/64 bit
architecture in a different arch tag, or duplicating whole symbol
files for each of those. Now that dpkg-dev has the endian and word
bits size for every known architecture, it would be nice to keep
that knowledge in dpkg-gensymbols itself so that packages do not
need to be updated every time an architecture is added.

thanks,
guillem




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#630342; Package dpkg-dev. (Mon, 25 Jul 2011 07:51:12 GMT) Full text and rfc822 format available.

Acknowledgement sent to Modestas Vainius <modax@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Mon, 25 Jul 2011 07:51:13 GMT) Full text and rfc822 format available.

Message #10 received at 630342@bugs.debian.org (full text, mbox):

From: Modestas Vainius <modax@debian.org>
To: 630342@bugs.debian.org
Subject: Re: dpkg-gensymbols: Add support for new endian and bits tags
Date: Mon, 25 Jul 2011 10:38:59 +0300
[Message part 1 (text/plain, inline)]
owner 630342 modax@debian.org
thanks

Hello,

On pirmadienis 13 Birželis 2011 09:08:22 Guillem Jover wrote:
> There's several packages which are either listing each 32/64 bit
> architecture in a different arch tag, or duplicating whole symbol
> files for each of those. Now that dpkg-dev has the endian and word
> bits size for every known architecture, it would be nice to keep
> that knowledge in dpkg-gensymbols itself so that packages do not
> need to be updated every time an architecture is added.

What do you think about taking this further and supporting expressions like 
cpuattr:value (or cpuattr-value, or cpuattr=value, or whatever other syntax) 
in the architecture wildcards (Dpkg::Arch::debarch_is()). In this particular 
case:

* endian:little and endian:big
* bits:32 and bits:64

As a result, arch symbol tag, [] expressions and Architecture fields in 
debian/control etc. would gain support for this automatically. In my opinion, 
this would be more flexible in the long term.

-- 
Modestas Vainius <modax@debian.org>
[signature.asc (application/pgp-signature, inline)]

Owner recorded as modax@debian.org. Request was from Modestas Vainius <modax@debian.org> to control@bugs.debian.org. (Mon, 25 Jul 2011 07:51:19 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>, modax@debian.org:
Bug#630342; Package dpkg-dev. (Fri, 29 Jul 2011 12:28:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>, modax@debian.org. (Fri, 29 Jul 2011 12:28:21 GMT) Full text and rfc822 format available.

Message #17 received at 630342@bugs.debian.org (full text, mbox):

From: Raphael Hertzog <hertzog@debian.org>
To: Modestas Vainius <modax@debian.org>, 630342@bugs.debian.org
Subject: Re: Bug#630342: dpkg-gensymbols: Add support for new endian and bits tags
Date: Fri, 29 Jul 2011 14:24:10 +0200
Hi,

On Mon, 25 Jul 2011, Modestas Vainius wrote:
> What do you think about taking this further and supporting expressions like 
> cpuattr:value (or cpuattr-value, or cpuattr=value, or whatever other syntax) 
> in the architecture wildcards (Dpkg::Arch::debarch_is()). In this particular 
> case:
> 
> * endian:little and endian:big
> * bits:32 and bits:64
> 
> As a result, arch symbol tag, [] expressions and Architecture fields in 
> debian/control etc. would gain support for this automatically. In my opinion, 
> this would be more flexible in the long term.

The idea seems nice but I'm not sure it's going to make the implementation
any cleaner. And I don't see really the need for it in other places where
we currently use architecture wildcards.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
                      ▶ http://RaphaelHertzog.fr (Français)




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>, modax@debian.org:
Bug#630342; Package dpkg-dev. (Sun, 31 Jul 2011 10:03:20 GMT) Full text and rfc822 format available.

Acknowledgement sent to Modestas Vainius <modax@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>, modax@debian.org. (Sun, 31 Jul 2011 10:03:27 GMT) Full text and rfc822 format available.

Message #22 received at 630342@bugs.debian.org (full text, mbox):

From: Modestas Vainius <modax@debian.org>
To: Raphael Hertzog <hertzog@debian.org>
Cc: 630342@bugs.debian.org
Subject: Re: Bug#630342: dpkg-gensymbols: Add support for new endian and bits tags
Date: Sun, 31 Jul 2011 12:59:22 +0300
[Message part 1 (text/plain, inline)]
Hello,

On penktadienis 29 Liepa 2011 15:24:10 Raphael Hertzog wrote:
> On Mon, 25 Jul 2011, Modestas Vainius wrote:
> > What do you think about taking this further and supporting expressions
> > like cpuattr:value (or cpuattr-value, or cpuattr=value, or whatever
> > other syntax) in the architecture wildcards (Dpkg::Arch::debarch_is()).
> > In this particular case:
> > 
> > * endian:little and endian:big
> > * bits:32 and bits:64
> > 
> > As a result, arch symbol tag, [] expressions and Architecture fields in
> > debian/control etc. would gain support for this automatically. In my
> > opinion, this would be more flexible in the long term.
> 
> The idea seems nice but I'm not sure it's going to make the implementation
> any cleaner. 

Yeah, probably implementation won't be cleaner (but neither complex) however, 
in my opinion, this would improve flexibility of the expression itself. For 
example, size_t expands to 'long' on all 64-bit arches and s390. This could 
expressed as:

(arch=cpubits-64 s390)

Likewise, it would be possible to match an arch in the negation manner. E.g. 
all 64bit arches on linux:

(arch=!cpubits-32 linux-any !any)

I must admit, the latter isn't a very trivial and obvious expression but still 
a possibility. Could we improve it?

Now if this was as:

(arch=s390|bits=64)

it might look a bit confusing. Sure, "|" here is a tag separator but most will 
assume it to be a disjunction so it would a be mistake to imply anything else. 
This would leave us no way to implement negation.

> And I don't see really the need for it in other places where
> we currently use architecture wildcards.

I agree. I couldn't think of any real world example either. I just want an 
expression to be powerful enough as weird arch-specific symbols are not a very 
rare case.

-- 
Modestas Vainius <modax@debian.org>
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 19:30:52 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.