Bug #1586

Specifying "fully qualified" package names in Gentoo

Added by Thomas Bellman over 3 years ago. Updated over 3 years ago.

Status:Closed Start date:09/20/2008
Priority:Normal Due date:
Assignee:Luke Kanies % Done:

0%

Category:Gentoo
Target version:0.24.6
Affected Puppet version:0.24.4 Branch:
Keywords:
Votes: 0

Description

In Gentoo, you can normally specify package names as either an unqualified name, e.g. “par”, as long as that is unambiguous, or as a qualified name with the category, e.g. “app-text/par”. However, the package type in Puppet does not support that syntax. Instead you must use the special parameter ‘category’. I.e, you can’t do:

package { "app-text/par": ensure => installed; }

but have to write

package { "par": category => "app-text", ensure => installed; }

Being able to use the normal Gentoo syntax for names would be more natural and convenient. It would for example make it possible to pass around qualified package names in variables, or specifying lists of packages to the package type. If I for example want to do something like this:

$pkglist = [ "app-text/par", "dev-haskell/parsec" ]
package { $pkglist: ensure => installed; }

I can’t do that. (In the above examples, I have deliberately chosen packages that are ambiguous when not specifying the category, by the way.)

The attached patch makes it possible to specify the package category as part of the name. It is still possible to use unqualified names, or use the category parameter.

Specifying a category both as part of the name and with the category parameter leads to an error: “No package found with the specified name [app-text/app-text/par]”. The error message is perhaps not the best, but you would get the exact same message without it.

puppet-portage-category.patch - Patch enabling qualified package names under Gentoo (1 kB) Thomas Bellman, 09/20/2008 04:39 pm

History

Updated by James Turnbull over 3 years ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Luke Kanies
  • Target version set to 0.24.6

Luke? If all is happiness?

Updated by James Turnbull over 3 years ago

  • Status changed from Needs Decision to Closed

Pushed in commit:93f952a210ff6099c04f8c0157d79e338b901df5 in branch 0.24.x

Also available in: Atom PDF