On 31/03/2016 00:13, Nikos Chantziaras wrote: > On 30/03/16 05:48, Bryan Gardiner wrote: >> On 30 March 2016 05:01:16 GMT+09:00, Nikos Chantziaras >> <rea...@gmail.com> wrote: >>> So, I want to install packages from an overlay, but only from a >>> specific group. In this case, the dev-qt/ group. The overlay name >>> is "qt". >>> >>> It doesn't work: >>> >>> package.mask: */*::qt >>> package.unmask: dev-qt/*-5.6*::qt >>> >>> With this, 5.6 versions are still masked. >> >> The syntax for "5.6*"-like versions has an equals at the start, for >> example =dev-qt/qtbase-5.6* > > That works. > > >> so if it's allowed, =dev-qt/*-5.6*::qt >> would be the correct package.unmask syntax. Does that work? > > Nope: > > "Invalid atom in /etc/portage/package.unmask/qt: =dev-qt/*-5.6*::qt" > > (Doesn't work with or without the "::qt".) > >
It's the leading "*" that's wrong there, because it's not a glob or a regex; it's more a placeholder metacharacter with it's own rules. Look at the relevant section in man 5 ebuild. It's not explicit but it does strongly hint that "*" goes at the end of a string -- Alan McKinnon alan.mckin...@gmail.com