[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#881047: libapt-pkg5.0: for apt_preferences, glob and regexp are buggy on the colon character ":"



Control: retitle -1 apt: the apt_preferences(5) man page is not multiarch aware
Control: reassign -1 apt
Control: found -1 1.6~alpha4
Control: found -1 1.6~alpha6

Reassigning to apt since this is where the apt_preferences(5) man page
is.

On 2017-11-07 13:27:21 +0100, Julian Andres Klode wrote:
> It's not. Patterns match package names. The colon is not
> part of the package name, and the architecture is not either
> - and the architecture is matched by architecture wildcards (as
> in build-depends arch lists), not glob or regex.
> 
> So for example,
> 
> 	/libfreetype6/:linux-any
> 
> is a valid Package line. As a special exception to the architecture
> wildcard rules, apt also accepts * in place of any, so you can
> write:
> 
> 	/libfreetype6/:linux-*
> 	/libfreetype6/:*
> 
> 
> And this matches the documented behavior: The regex or glob pattern
> is expanded into a list of names, for example libfreetype6:
> 
> 	Package: libfreetype6
> 
> this does not match libfreetype6:i386 either, you'd have to specify
> 
> 	Package: libfreetype6:any
> 
> This is a documentation issue.

There are 2 things to fix in the apt_preferences(5) man page, and
perhaps in some other places:

1. The description for multiarch. Currently, there is nothing about
   multiarch.

2. The examples: the "Package: *" lines are incorrect if the goal
   is to match all packages (for multiarch machines).

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: