graphviz/graphviz-fix-ruby-version.patch
Thomas Renninger 96143b7b0b Accepting request 693329 from home:cvoegl:branches:graphics
- Now using master branch of upstream, as there have been no releases for 
  over two years
  * this should fix CVE-2019-11023 (boo#1132091)
  
- Removed  graphviz-qt5.patch (now in upstream)
- Removed reproducible.patch (now in upstream)
- graphviz-smyrna-link_against_glu.patch changed to be applicable to current files
- graphviz-no_strict_aliasing.patch changed to be applicable to current files
- Added graphviz-fix-ruby-version.patch to remove hardcoded dependency on ruby 1.9
- graphviz.spec updated for new version
- created _service file

OBS-URL: https://build.opensuse.org/request/show/693329
OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=137
2019-04-12 10:52:56 +00:00

20 lines
724 B
Diff

--- configure.ac.orig 2019-04-11 15:12:07.607681824 +0200
+++ configure.ac 2019-04-11 14:43:28.508860376 +0200
@@ -116,6 +116,7 @@
AC_ARG_VAR(LIBPOSTFIX, [subscript to lib, e.g. "/64" for "/usr/lib/64" on Solaris])
AC_ARG_VAR(INTGOSIZE, [integer size for go, 32 or 64])
+AC_ARG_VAR(RUBY_VER, [version number of ruby package])
INTGOSIZE=32
if test -z "$LIBPOSTFIX"; then
@@ -1397,7 +1398,7 @@
RUBY_INSTALL_DIR="`$RUBY $srcdir/config/config_ruby.rb vendorarchdir`"
fi
],[
- PKG_CHECK_MODULES([RUBY], [ruby-1.9],[
+ PKG_CHECK_MODULES([RUBY], [ruby-${RUBY_VER}],[
AC_CHECK_PROG(RUBY,ruby,ruby)
if test "x$RUBY" = "x"; then
use_ruby="No (ruby not available)"