gentoo / puppet-portage

[ORIGIN] Puppet module providing various Gentoo portage features
GNU General Public License v2.0
49 stars 30 forks source link

Each time I run puppet agent it re-emerges php #122

Closed wildsurfer closed 10 years ago

wildsurfer commented 10 years ago

Here is my config:

  portage::package { "dev-lang/php":
    use          => ['curl', 'fpm', 'pcntl', 'gd', 'pdo', 'zip', 'intl', 'php_targets_php5-4'],
    mask_version => '>=5.5',
    ensure       => "latest",
    before       => Eselect['php::cli'],
  }

Each time I run puppet agent it re-emerges php. And it takes a long time. Do you have any ideas how to fix this?

What I'm trying to do is to install latest php 5.4.* version and to avoid installing php 5.5.*

vikraman commented 10 years ago

Hi,

Did it correctly create the package.use and package.mask? What does emerge say if you run it manually? The output of the following commands would be helpful.

$ grep php /etc/portage/package.use/default
$ grep php /etc/portage/package.mask/default
$ emerge -pvt php
wildsurfer commented 10 years ago

package.use

api-prod ~ # grep php /etc/portage/package.use/default
dev-lang/php curl fpm pcntl gd pdo zip intl php_targets_php5-4
app-admin/eselect-php fpm
dev-php/pecl-mongo php_targets_php5-4

package.mask

api-prod ~ # grep php /etc/portage/package.mask/default
>=dev-lang/php-5.5

emerge

api-prod ~ # emerge -pvt php

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R    ] dev-lang/php-5.4.26:5.4  USE="berkdb bzip2 cli crypt ctype curl fileinfo filter fpm gd gdbm hash iconv intl ipv6 json nls pcntl pdo phar posix readline session simplexml ssl tokenizer unicode xml zip zlib -apache2 -bcmath -calendar -cdb -cgi -cjk -curlwrappers -debug -embed -enchant -exif -firebird -flatfile -ftp -gmp -imap -inifile -iodbc -kerberos -ldap -ldap-sasl -libedit -mhash -mssql -mysql -mysqli -mysqlnd -oci8-instant-client -odbc -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -sockets -spell -sqlite (-sybase-ct) -systemd -sysvipc -threads -tidy -truetype -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xslt" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
vikraman commented 10 years ago

Everything looks fine to me, and I cannot reproduce the issue using your manifest on my vm. Can you run puppet agent with -vd and share the relevant logs?

wildsurfer commented 10 years ago

Looks like I was wrong and there is no issue. Sorry for bothering and thank you for trying to help!

You are doing a great work!