[pacman-dev] Alternatives system
bluewind at xinu.at
Mon Apr 1 18:32:47 UTC 2019
On Mon, Apr 01, 2019 at 02:57:31PM +1000, Allan McRae <allan at archlinux.org> wrote:
> > "TODO bikeshed the separator"
> > We're in the rather unfortunate position that neither of our database
> > formats can handle multiple arbitrary filenames on a single line
> > without escaping. We can use -> in PKGBUILDs if you like, but for
> > .PKGINFO and desc files I would pick a single character to make
> > escaping easier.
> I went for two character, in a combination that is unlikely to be used
> in the name of the alternative symlink itself. That way it is a split on
> first occurrence. I realize that someone will try an alternative with
> that pair of characters in their name... so yes, that needs addressed.
> My other thought was "::" like we use to split other things in makepkg.
> Would that be a compromise - two characters, but one?
How about /./? I've seen this being used by jailkit. A value could
look like "foo/./usr/bin/foo-v1". This should be easy to escape/handle
and it doesn't make a whole lot of sense to ever use this syntax in a
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the pacman-dev