Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

Debian stretch changed the package name from 'libmysqlclient-dev' to 'default-libmysqlclient-dev' #66

Open
igelcool opened this issue Oct 11, 2017 · 0 comments

Comments

@igelcool
Copy link

Hi everybody!

In Debian 9 the package 'libmysqlclient-dev' was renamed to 'default-libmysqlclient-dev'.

The fix is simple:

diff --git a/manifests/install.pp b/manifests/install.pp
index 6ac5884..253c9fd 100644
--- a/manifests/install.pp
+++ b/manifests/install.pp
@@ -4,7 +4,14 @@ class redmine::install {
   # Install dependencies
 
   $generic_packages = [ 'make', 'gcc' ]
-  $debian_packages  = [ 'libmysql++-dev', 'libmysqlclient-dev', 'libmagickcore-dev', 'libmagickwand-dev', 'ruby-dev', 'libpq-dev', 'imagemagick' ]
+
+
+  case $facts['os']['distro']['codename'] {
+    'stretch': { $pkg_debian_libmysqlclient_dev = 'default-libmysqlclient-dev' }
+    default:   { $pkg_debian_libmysqlclient_dev = 'libmysqlclient-dev' }
+  }
+
+  $debian_packages  = [ 'libmysql++-dev', $pkg_debian_libmysqlclient_dev, 'libmagickcore-dev', 'libmagickwand-dev', 'ruby-dev', 'libpq-dev', 'imagemagick' ]
   $redhat_packages  = [ 'postgresql-devel', 'sqlite-devel', 'ImageMagick-devel', 'ruby-devel', $::redmine::params::mysql_devel ]
 
   case $::osfamily {

Unfortunately I struggle with the specs - all of them are failing from the beginning and it looks like there are several reasons for that.
I am not sure if I find the time to fix them, but at least I would like to share my solution.

BR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant