Bug#585767: Dependencies on linux-gnu or not+linux-gnu do not match armel or powerpcspe correctly
* Guillem Jover | 2010-06-23 02:40:32 [+0200]:
>Hi!
Hi,
>Nope, arch wildcards are just superior.
Good. Debian Policy 3.9.0.0 just hit unstable and apt's "apt-get
build-dep" seems to be fixed. Time to fill bugs and ask maintainers to
remove not+linux-gnu and friends, isn't it?
If so I think I go with the following mail:
|Package & Version & Tag
|Severity: Serious because it breaks armel or just important because we
| want to get rid of linux-gnu types?
|
|Dear package maintainer, this is mass bug.
|This package uses the keywords linux-gnu, not+linux-gnu or the kfreebsd-
|variant of the former in its depends or architectur field in the
|control file. Please be aware that linux-gnu excludes armel which
|might not be what you want.
|Since Debian Policy 3.9.0.0 architectur wildcards are defined for
|Depends: [0] and Architecture: [1] are defined. You are encouraged to
|start using them.
|A quick cheat-list for the dependebcy would be:
|"$DEPENDENCY | not+linux-gnu" => "$DEPENDENCY [linux-any]"
|"$DEPENDENCY | not+linux" => "$DEPENDENCY [linux-any]"
|"$DEPENDENCY | linux-gnu" => "$DEPENDENCY [!linux-any]"
|"$DEPENDENCY | linux" => "$DEPENDENCY [!linux-any]"
|"$DEPENDENCY | not+hurd" => "$DEPENDENCY [hurd-any]"
|"$DEPENDENCY | hurd" => "$DEPENDENCY [!hurd-any]"
|
|Once no package is using this kind of dependency the relvant keywords
|will be removed from the type-handling package which provides them.
|
|[0] http://www.debian.org/doc/debian-policy/ch-relationships.html#s-depsyntax
|[1] http://www.debian.org/doc/debian-policy/ch-customized-programs.html#s-arch-spec
|
Any comments?
>
>> Does the new policy make type-handling obselete since dpkg provides it?
>
>Mostly, type-handling should eventually disappear, as Aurelien has said
>it's just a hack. But, there's one case where it might unfortunately
>still be needed, which is an arch:all package conditionally depending
>on arch:foo packages only on the foo architecture.
Do you have an example package handy? I'm happy once the linux-any &
friends keywords are gone :)
>
>regards,
>guillem
Sebastian
Reply to: