Raphael Hertzog a écrit :
> On Wed, 05 Dec 2007, Julien Cristau wrote:
>>> Or we can change type-handling too. Apparently xorg only uses the fact
>>> that type-handling provides not+sparc but it doesn't use the type-handling
>>> program which is the real user of dpkg-architecture. Is that right?
>> Yes, that's correct.
>>
>>> Maybe type-handling could be split with an empty package whose sole
>>> purpose is to "Provides" some virtual packages while type-handling
>>> stays the program with its dpkg-dev dependency.
>>>
>>> I think this solution would be my first preference.
>>>
>> My preference would be for dpkg to allow 'Depends: foo [arch]' in arch:all
>> packages, but failing that, I agree.
> 
> Right now the support for the "[arch]" syntax is only in the perl code
> and not at all in the C part that concerns dpkg. Adding it there is a
> non-trivial effort and would probably also require changes in apt-based
> software.
> 
> Aurélien, what do you think of the idea of change concerning type-handling ?
> 

>From my point of view, we should get rid of type-handling as soon as
possible. This is actually a big and buggy hack to workaround dpkg/apt
lacks.

The first think I would like to see, is [os] or [cpu] support in
dpkg-dev *enabled* and *allowed* for arch-any packages. This would
replace type-handling in 90% of the cases.

For the [arch] support in binary-all packages, I guess the main use case
(if not all) is for metapackages depending on various packages. I don't
really see the problem (except the policy, but that can be changed) of
using binary-any packages for those metapackages, even if there is no
binary files insude them. They are by definition very small, so that
won't bloat the archive.

If there are still some cases not solved by this approach, I guess the
package that should provide the not+sparc package is dpkg. It is always
installed on systems, so strange behaviours of apt with virtual packages
is avoided. That's why we have type-handling installed on GNU/kFreeBSD
build daemons by default (GNU/kFreeBSD uses type-handling more than
other architectures).

-- 
  .''`.  Aurelien Jarno             | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [EMAIL PROTECTED]         | [EMAIL PROTECTED]
   `-    people.debian.org/~aurel32 | www.aurel32.net



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to