Debian Bug report logs - #539038
dpkg: please add support for ad-hoc architecture definitions

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

Reported by: Simon Richter <sjr@debian.org>

Date: Tue, 28 Jul 2009 17:12:02 UTC

Severity: wishlist

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, sjr@debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#539038; Package dpkg. (Tue, 28 Jul 2009 17:12:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Richter <sjr@debian.org>:
New Bug report received and forwarded. Copy sent to sjr@debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>. (Tue, 28 Jul 2009 17:12:04 GMT) Full text and rfc822 format available.

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

From: Simon Richter <sjr@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: please add support for ad-hoc architecture definitions
Date: Tue, 28 Jul 2009 19:06:55 +0200
[Message part 1 (text/plain, inline)]
Package: dpkg
Version: 1.14.25
Severity: wishlist
Tags: patch

Hi,

this patch adds an exception to dpkg-architecture that allows architecture
names that start with "x-" as long as a GNU architecture name is also
specified.

This is incredibly useful if one wants to define local architectures for
cross-compiling (using both -a and -t to dpkg-buildpackage works).

The downside is that DEB_HOST_ARCH_OS and DEB_HOST_ARCH_CPU cannot be
automatically set to sane values, which I think is a limitation one can
live with.

   Simon

-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     6.10-6     The GNU core utilities
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  lzma                          4.43-14    Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                      0.7.20.2+lenny1 Advanced front-end for dpkg

-- no debconf information
[x-dpkg-architecture.diff (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#539038; Package dpkg. (Sat, 15 Aug 2009 17:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sat, 15 Aug 2009 17:39:02 GMT) Full text and rfc822 format available.

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

From: Guillem Jover <guillem@debian.org>
To: Simon Richter <sjr@debian.org>, 539038@bugs.debian.org
Subject: Re: Bug#539038: dpkg: please add support for ad-hoc architecture definitions
Date: Sat, 15 Aug 2009 19:36:07 +0200
Hi!

On Tue, 2009-07-28 at 19:06:55 +0200, Simon Richter wrote:
> Package: dpkg
> Version: 1.14.25
> Severity: wishlist
> Tags: patch

> this patch adds an exception to dpkg-architecture that allows architecture
> names that start with "x-" as long as a GNU architecture name is also
> specified.
> 
> This is incredibly useful if one wants to define local architectures for
> cross-compiling (using both -a and -t to dpkg-buildpackage works).
> 
> The downside is that DEB_HOST_ARCH_OS and DEB_HOST_ARCH_CPU cannot be
> automatically set to sane values, which I think is a limitation one can
> live with.

As discussed during DebConf, I agree with the goal but I'm not entirely
happy with the proposed use of “x-”, as the dash breaks current
assumptions of what's what depending on the position relative to it.

I'll try to think about it and get a resolution before next upload.

thanks,
guillem




Information forwarded to debian-bugs-dist@lists.debian.org, sjr@debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#539038; Package dpkg. (Mon, 12 Oct 2009 12:09:14 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Richter <sjr@debian.org>:
Extra info received and forwarded to list. Copy sent to sjr@debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>. (Mon, 12 Oct 2009 12:09:14 GMT) Full text and rfc822 format available.

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

From: Simon Richter <sjr@debian.org>
To: Debian Bug Tracking System <539038@bugs.debian.org>
Subject: Re: please add support for ad-hoc architecture definitions
Date: Mon, 12 Oct 2009 13:44:57 +0200
Package: dpkg
Severity: normal

Hi,

any news on this?

   Simon

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

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

Versions of packages dpkg depends on:
ii  coreutils                     7.5-6      GNU core utilities
ii  libc6                         2.9-27     GNU C Library: Shared libraries
ii  lzma                          4.43-14    Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                           0.7.24     Advanced front-end for dpkg

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#539038; Package dpkg. (Sun, 25 Oct 2009 16:33:17 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillem Jover <guillem@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Sun, 25 Oct 2009 16:33:17 GMT) Full text and rfc822 format available.

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

From: Guillem Jover <guillem@debian.org>
To: Simon Richter <sjr@debian.org>, 539038@bugs.debian.org
Subject: Re: Bug#539038: dpkg: please add support for ad-hoc architecture definitions
Date: Sun, 25 Oct 2009 17:23:46 +0100
Hi!

On Sat, 2009-08-15 at 19:36:07 +0200, Guillem Jover wrote:
> On Tue, 2009-07-28 at 19:06:55 +0200, Simon Richter wrote:
> > Package: dpkg
> > Version: 1.14.25
> > Severity: wishlist
> > Tags: patch
> 
> > this patch adds an exception to dpkg-architecture that allows architecture
> > names that start with "x-" as long as a GNU architecture name is also
> > specified.
> > 
> > This is incredibly useful if one wants to define local architectures for
> > cross-compiling (using both -a and -t to dpkg-buildpackage works).
> > 
> > The downside is that DEB_HOST_ARCH_OS and DEB_HOST_ARCH_CPU cannot be
> > automatically set to sane values, which I think is a limitation one can
> > live with.
> 
> As discussed during DebConf, I agree with the goal but I'm not entirely
> happy with the proposed use of “x-”, as the dash breaks current
> assumptions of what's what depending on the position relative to it.

What I've been thinking about is to use a different character, for
example ~, so we'd have “~arch” denoting an unofficial architecture,
or “~foo-bar” which would not break the - notation.

The problem is that I'm not sure if any of the several programs
processing package binaries and distribution data would break with
such architecture name.

thanks,
guillem




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#539038; Package dpkg. (Wed, 09 Dec 2009 14:03:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simon Richter <sjr@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Wed, 09 Dec 2009 14:03:06 GMT) Full text and rfc822 format available.

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

From: Simon Richter <sjr@debian.org>
To: 539038@bugs.debian.org
Subject: Re: Bug#539038: dpkg: please add support for ad-hoc architecture definitions
Date: Wed, 9 Dec 2009 14:54:41 +0100
Hi,

On Sun, Oct 25, 2009 at 05:23:46PM +0100, Guillem Jover wrote:

> > As discussed during DebConf, I agree with the goal but I'm not entirely
> > happy with the proposed use of “x-”, as the dash breaks current
> > assumptions of what's what depending on the position relative to it.

> What I've been thinking about is to use a different character, for
> example ~, so we'd have “~arch” denoting an unofficial architecture,
> or “~foo-bar” which would not break the - notation.

I've tried with a tilde both as prefix and as suffix, and both are a
mess to get working properly through the entire toolchain:

 - (suffix) Architecture specific debhelper files are interpreted as
   backup files by dh_clean and subsequently deleted
 - (prefix) If the argument to -a is separated with a space, the shell
   could interpret it as a home directory
 - dpkg-buildpackage refuses the architecture name while parsing
   dpkg-architecture output
 - dpkg-cross generates an invalid package name when it copies the
   architecture name into the generated package's name

The latter two are fixable, but mean that more tools are affected; the
former two I believe to be real showstoppers.

I think the "x-" notation is the cleanest one still; the other options I
can see are "unofficial-" (but third party vendors might not like to
have the word "unofficial" show up in every package name), "vendor-"
(somewhat nice, as you can follow it up with a vendor name), a percent
sign (still requires massive changes, but at least no showstoppers
here), or an underscore (probably breaks other stuff as it is used as a
field separator in several places, but at least there is precedent for a
trailing underscore as a marker in dpkg).

   Simon




Removed tag(s) patch. Request was from Raphaël Hertzog <hertzog@debian.org> to control@bugs.debian.org. (Thu, 06 May 2010 13:33:16 GMT) Full text and rfc822 format available.

Bug reassigned from package 'dpkg' to 'dpkg-dev'. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Wed, 27 Apr 2011 04:33:07 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions dpkg/1.14.25. Request was from Guillem Jover <guillem@debian.org> to control@bugs.debian.org. (Wed, 27 Apr 2011 04:33:08 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 14:26:54 2014; Machine Name: buxtehude.debian.org

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