Accepting request 280057 from GNOME:Apps

1

OBS-URL: https://build.opensuse.org/request/show/280057
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/inkscape?expand=0&rev=79
This commit is contained in:
2015-01-08 22:05:42 +00:00
committed by Git OBS Bridge
parent 6568850bf6
commit 21c84224b2
3 changed files with 115 additions and 1 deletions

106
inkscape-gc-detection.patch Normal file
View File

@@ -0,0 +1,106 @@
Index: inkscape-0.48.5/configure.ac
===================================================================
--- inkscape-0.48.5.orig/configure.ac
+++ inkscape-0.48.5/configure.ac
@@ -187,76 +187,13 @@ if test "x$png_ok" != "xyes"; then
AC_MSG_ERROR([libpng >= 1.2 is needed to compile inkscape])
fi
-dnl Handle possible dlopen requirement for libgc
-dnl Isn't this internal to something in autoconf? Couldn't find it...
-AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
- [lt_cv_dlopen="dlopen"],
- [AC_CHECK_LIB([dl], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
- [AC_CHECK_LIB([svld], [dlopen],
- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
- [AC_CHECK_LIB([dld], [dld_link],
- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
- ])
- ])
- ])
- ])
-
-AC_CHECK_HEADERS([gc.h gc/gc.h],
- [
- # To test for the different required libs, I have to
- # overcome autoconf's caching system, so I change the
- # desired function name. They're all in libgc.
- # The "break" will exit from the top level
- # AC_CHECK_HEADERS.
- gc_libs=""
- AC_CHECK_LIB(gc, GC_init,
- [gc_ok=yes;
- LIBS="-lgc $gc_libs $LIBS";
- break], [gc_ok=no], [$gc_libs])
- gc_libs="-lpthread"
- AC_CHECK_LIB(gc, GC_malloc,
- [gc_ok=yes;
- LIBS="-lgc $gc_libs $LIBS";
- break], [gc_ok=no], [$gc_libs])
- gc_libs="$lt_cv_dlopen_libs"
- AC_CHECK_LIB(gc, GC_realloc,
- [gc_ok=yes;
- LIBS="-lgc $gc_libs $LIBS";
- break], [gc_ok=no], [$gc_libs])
- gc_libs="-lpthread $lt_cv_dlopen_libs"
- AC_CHECK_LIB(gc, GC_free,
- [gc_ok=yes;
- LIBS="-lgc $gc_libs $LIBS";
- break], [gc_ok=no], [$gc_libs])
- break],
- [gc_ok=no])
-if test "x$gc_ok" = "xyes" && test "x$cross_compiling" = "xno" ; then
- AC_MSG_CHECKING([libgc version 6.4+])
- AC_RUN_IFELSE(
- [AC_LANG_SOURCE([[
- #ifdef HAVE_GC_GC_H
- # include <gc/gc.h>
- #else
- # include <gc.h>
- #endif
- #include <stdio.h>
- extern unsigned GC_version;
- int main(void){
- unsigned min = ((6 << 16) | (4 << 8) | 0);
- printf("%d.%d.%d ",GC_version >> 16, (GC_version >> 8) & 0xFF, GC_version & 0xFF);
- if (GC_version>=min) return 0;
- return 1;
- }]])],
- [gc_ok=yes],
- [gc_ok=no]
- )
- AC_MSG_RESULT([$gc_ok])
-fi
+PKG_CHECK_MODULES(GC, bdw-gc >= 6.4, gc_ok=yes, gc_ok=no)
if test "x$gc_ok" != "xyes"; then
AC_MSG_ERROR([libgc (the Boehm Conservative Collector) 6.4+, is needed to compile inkscape -- http://www.hpl.hp.com/personal/Hans_Boehm/gc])
fi
+
+
dnl This check is to get a FIONREAD definition on Solaris 8
AC_CHECK_HEADERS([sys/filio.h])
Index: inkscape-0.48.5/src/Makefile.am
===================================================================
--- inkscape-0.48.5.orig/src/Makefile.am
+++ inkscape-0.48.5/src/Makefile.am
@@ -45,7 +45,8 @@ all_libs = \
$(PYTHON_LIBS) \
$(INKBOARD_LIBS) \
$(LIBWPG_LIBS) \
- $(IMAGEMAGICK_LIBS)
+ $(IMAGEMAGICK_LIBS) \
+ $(GC_LIBS)
# Add sources common for Inkscape and Inkview to this variable.
ink_common_sources =
@@ -66,6 +67,7 @@ INCLUDES = \
$(LCMS_CFLAGS) \
$(POPPLER_CFLAGS) \
$(POPPLER_GLIB_CFLAGS) \
+ $(GC_CFLAGS) \
-DPOTRACE=\"potrace\" \
$(INKSCAPE_CFLAGS) \
-I$(top_srcdir)/cxxtest \

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 5 14:25:44 UTC 2015 - dimstar@opensuse.org
- Add inkscape-gc-detection.patch: Use pkg-config to detect bdw-gc.
-------------------------------------------------------------------
Mon Dec 29 08:31:27 UTC 2014 - mlin@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package inkscape
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -39,6 +39,8 @@ Patch4: inkscape-apply-invert-transform.patch
Patch8: inkscape-0.48.5-librevenge.patch
# PATCH-FIX-UPSTREAM inkscape-fix-build-with-poppler-0.29.patch lp#1399811 mlin@suse.com -- fix build with poppler 0.29 (backported to inkscape 0.48.5)
Patch9: inkscape-fix-build-with-poppler-0.29.patch
# PATCH-FIX-UPSTREAM inkscape-gc-detection.patch dimstar@opensuse.org -- Use proper pkg-config to find BDW-Garbage Collector >= 6.4
Patch10: inkscape-gc-detection.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
@@ -169,6 +171,7 @@ Inkscape is a vector illustration program for the GNOME desktop.
%patch4 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%build
libtoolize --force --copy --install