Source: graphviz Version: 2.38.0-11 Severity: serious Tags: patch graphviz fails to build after the switch to ruby2.2 as the default ruby. since it looks for a hardcoded ruby version, it will be a problem at _every_ Ruby transition.
Please consider the attached debdiff. -- System Information: Debian Release: stretch/sid APT prefers buildd-unstable APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages graphviz depends on: ii libc6 2.19-22 ii libcdt5 2.38.0-11 ii libcgraph6 2.38.0-11 ii libexpat1 2.1.0-7 ii libgd3 2.1.1-4 ii libgvc6 2.38.0-11 ii libgvpr2 2.38.0-11 ii libx11-6 2:1.6.3-1 ii libxaw7 2:1.0.13-1 ii libxmu6 2:1.1.2-1 ii libxt6 1:1.1.5-1 Versions of packages graphviz recommends: ii fonts-liberation 1.07.4-1 Versions of packages graphviz suggests: pn graphviz-doc <none> ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 -- no debconf information -- Antonio Terceiro <[email protected]>
diff -Nru graphviz-2.38.0/debian/changelog graphviz-2.38.0/debian/changelog --- graphviz-2.38.0/debian/changelog 2015-10-31 14:35:36.000000000 -0200 +++ graphviz-2.38.0/debian/changelog 2015-11-11 16:55:49.000000000 -0200 @@ -1,3 +1,10 @@ +graphviz (2.38.0-11.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with Ruby 2.2 as default + + -- Antonio Terceiro <[email protected]> Wed, 11 Nov 2015 16:55:37 -0200 + graphviz (2.38.0-11) unstable; urgency=low * Backport build fix of RedHat for Ruby 2.2 transition (closes: #803587). diff -Nru graphviz-2.38.0/debian/patches/ruby-2.1.diff graphviz-2.38.0/debian/patches/ruby-2.1.diff --- graphviz-2.38.0/debian/patches/ruby-2.1.diff 2014-12-10 13:25:41.000000000 -0200 +++ graphviz-2.38.0/debian/patches/ruby-2.1.diff 1969-12-31 21:00:00.000000000 -0300 @@ -1,13 +0,0 @@ -Index: b/configure.ac -=================================================================== ---- a/configure.ac -+++ b/configure.ac -@@ -1566,7 +1566,7 @@ else - RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`" - fi - ],[ -- PKG_CHECK_MODULES([RUBY], [ruby-1.9],[ -+ PKG_CHECK_MODULES([RUBY], [ruby-2.1],[ - AC_CHECK_PROG(RUBY,ruby,ruby) - if test "x$RUBY" = "x"; then - use_ruby="No (ruby not available)" diff -Nru graphviz-2.38.0/debian/patches/series graphviz-2.38.0/debian/patches/series --- graphviz-2.38.0/debian/patches/series 2015-10-31 14:13:08.000000000 -0200 +++ graphviz-2.38.0/debian/patches/series 2015-11-11 16:54:30.000000000 -0200 @@ -7,7 +7,7 @@ python_multiarch tcllib.diff ruby-config.diff -ruby-2.1.diff +use-default-ruby.diff reduce-lab-color.patch add-libm-to-dot-link.patch versioned-plugin-config-file.diff diff -Nru graphviz-2.38.0/debian/patches/use-default-ruby.diff graphviz-2.38.0/debian/patches/use-default-ruby.diff --- graphviz-2.38.0/debian/patches/use-default-ruby.diff 1969-12-31 21:00:00.000000000 -0300 +++ graphviz-2.38.0/debian/patches/use-default-ruby.diff 2015-11-11 16:57:58.000000000 -0200 @@ -0,0 +1,13 @@ +Index: b/configure.ac +=================================================================== +--- a/configure.ac ++++ b/configure.ac +@@ -1566,7 +1566,7 @@ else + RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`" + fi + ],[ +- PKG_CHECK_MODULES([RUBY], [ruby-1.9],[ ++ PKG_CHECK_MODULES([RUBY], [ruby-$(ruby -e 'puts RUBY_VERSION.split(".").first(2).join(".")')],[ + AC_CHECK_PROG(RUBY,ruby,ruby) + if test "x$RUBY" = "x"; then + use_ruby="No (ruby not available)"
signature.asc
Description: PGP signature

