Bug #712
the portage provider detects wrong version number for installed packages
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Gentoo | |||
| Target version: | - | |||
| Affected Puppet version: | 0.24.7 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
There seems to be some problem with the portage provider. Here’s what I have installed (output of eix -e mysql):
[I] dev-db/mysql
Available versions: [M]*3.23.58-r1 4.0.27-r1 4.1.22-r1 [M]~4.1.23_alpha20070101-r61 [m]5.0.26-r2 [m]~5.0.32 [m]~5.0.34 [m]5.0.38 [m]5.0.40 [m]5.0.42 {berkdb big-tables cluster debug embedded extraengine innodb latin1 max-idx-128 minimal perl raid readline selinux ssl static tcpd}
Installed versions: 4.1.22-r1(14:16:44 07/09/07)(berkdb -big-tables -cluster -debug -embedded -extraengine -latin1 minimal perl -raid -selinux ssl -static)
Homepage: http://www.mysql.com/
Description: A fast, multi-threaded, multi-user SQL database server.
So I have the latest stable version, 4.1.22-r1 installed – puppet thinks I only have 4.1:
notice: //base/foo.bar.hu/mysql/Package[mysql]/ensure: ensure changed '4.1' to '4.1.22-r1'
The other packages doesn’t seem to have any problem and I only have this bug with puppet 0.23.0, not with 0.22.4.
History
Updated by Gábor Vészi about 4 years ago
I’m using
app-admin/puppet-0.23.2-r1now and I still have the above error. I’ll try it with 0.24.x as soon as it gets into the gentoo portage tree, but I think I got closer to the root of the bug. I think the problem is, that on a gentoo system with mysql installed, there are two packages named mysql:
$ eix --nocolor --format '[ ] [ ] ' -e mysql dev-db mysql [5.0.44-r2] [5.0.44-r2] http://www.mysql.com/ A fast, multi-threaded, multi-user SQL database server. virtual mysql [5.0] [5.0] http://dev.mysql.com Virtual for [[MySQL]] client or database
dev-db/mysql and virtual/mysql – one with the full version string, the other with just the main version. Here’s the manifest snippet where I define the mysql package:
package { 'mysql': category => 'dev-db', ensure => latest; }
Am I doing something wrong, or this is just the way it works for everyone?
Updated by Ramon Alteren almost 4 years ago
Hi
This is a gentoo package manager specific problem which may or may not be tied to the tool used to get a package list. I’ll see if I can fix this in the puppet code by modifying the eix-call to list packages but I think that will end up being a dead end.
Best work-around is to specify the package category with the package you wish to install on Gentoo.
This is a more general bug/feature on gentoo, for example:
$ eix -e eaccelerator
dev-php4/eaccelerator
Available versions: [M]~0.9.5r1 [M]~0.9.5.1 {apache2 contentcache debug disassembler inode session sharedmem}
Homepage: http://www.eaccelerator.net/
Description: A PHP Accelerator & Encoder.
* dev-php5/eaccelerator
Available versions: ~0.9.5.1 0.9.5.1r1 {apache2 contentcache debug disassembler inode session sharedmem}
Homepage: http://www.eaccelerator.net/
Description: A PHP Accelerator & Encoder.
Updated by Redmine Admin over 3 years ago
- Status changed from 1 to Accepted
Updated by Luke Kanies almost 3 years ago
- Assignee changed from Luke Kanies to Puppet Community
- Target version changed from 0.25.0 to 4
- Affected Puppet version set to 0.24.7
We can’t plan this without a patch, so until someone takes up the torch it’s getting bumped.
Updated by James Turnbull over 2 years ago
- Assignee deleted (
Puppet Community)
Updated by Benedikt Böhm about 2 years ago
the portage provider checks for ambiguity, so either this has already been fixed, or the problem is not related to multiple packages having the same name …
Updated by James Turnbull about 2 years ago
- Status changed from Accepted to Closed
Closing this – please re-open if there is still an issue.
Updated by James Turnbull 11 months ago
- Target version deleted (
4)