Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 19:26:34 +0000 (UTC)
From:      Koop Mast <kwm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361485 - in head/graphics/inkscape: . files
Message-ID:  <201407101926.s6AJQY1T066558@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kwm
Date: Thu Jul 10 19:26:34 2014
New Revision: 361485
URL: http://svnweb.freebsd.org/changeset/ports/361485
QAT: https://qat.redports.org/buildarchive/r361485/

Log:
  Fix the build with beohm-gc 7.4.
  
  patch-beohm-gc-7.4 optained from upstream. Homebrewed configure fix.

Added:
  head/graphics/inkscape/files/patch-beohm-gc-7.4   (contents, props changed)
Modified:
  head/graphics/inkscape/Makefile
  head/graphics/inkscape/files/patch-configure

Modified: head/graphics/inkscape/Makefile
==============================================================================
--- head/graphics/inkscape/Makefile	Thu Jul 10 19:12:03 2014	(r361484)
+++ head/graphics/inkscape/Makefile	Thu Jul 10 19:26:34 2014	(r361485)
@@ -3,7 +3,7 @@
 
 PORTNAME=	inkscape
 PORTVERSION=	0.48.4
-PORTREVISION=	6
+PORTREVISION=	7
 CATEGORIES=	graphics gnome
 MASTER_SITES=	SF
 MASTER_SITE_SUBDIR=${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION}

Added: head/graphics/inkscape/files/patch-beohm-gc-7.4
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/inkscape/files/patch-beohm-gc-7.4	Thu Jul 10 19:26:34 2014	(r361485)
@@ -0,0 +1,54 @@
+--- src/gc-core.h.old	2013-12-31 01:22:38.976653890 +0400
++++ src/gc-core.h	2013-12-31 01:22:48.525653608 +0400
+@@ -57,7 +57,7 @@
+                                            CleanupFunc *old_func,
+                                            void **old_data);
+     int (*general_register_disappearing_link)(void **p_ptr,
+-                                              void *base);
++                                              const void *base);
+     int (*unregister_disappearing_link)(void **p_ptr);
+     std::size_t (*get_heap_size)();
+     std::size_t (*get_free_bytes)();
+--- src/gc.cpp.old	2013-12-31 01:23:50.462651778 +0400
++++ src/gc.cpp	2013-12-31 01:40:37.718622017 +0400
+@@ -70,8 +70,8 @@
+     return base + debug_base_fixup();
+ }
+ 
+-int debug_general_register_disappearing_link(void **p_ptr, void *base) {
+-    char *real_base=reinterpret_cast<char *>(base) - debug_base_fixup();
++int debug_general_register_disappearing_link(void **p_ptr, const void *base) {
++    char *real_base=const_cast<char *>(reinterpret_cast<const char *>(base)) - debug_base_fixup();
+     return GC_general_register_disappearing_link(p_ptr, real_base);
+ }
+ 
+@@ -90,7 +90,7 @@
+     }
+ }
+ 
+-int dummy_general_register_disappearing_link(void **, void *) { return false; }
++int dummy_general_register_disappearing_link(void **, const void *) { return false; }
+ 
+ int dummy_unregister_disappearing_link(void **/*link*/) { return false; }
+ 
+@@ -112,7 +112,11 @@
+     &GC_malloc_atomic_uncollectable,
+     &GC_base,
+     &GC_register_finalizer_ignore_self,
++#if (GC_MAJOR_VERSION >= 7 && GC_MINOR_VERSION >= 4)
+     &GC_general_register_disappearing_link,
++#else
++    (int (*)(void**, const void*))(&GC_general_register_disappearing_link),
++#endif
+     &GC_unregister_disappearing_link,
+     &GC_get_heap_size,
+     &GC_get_free_bytes,
+@@ -202,7 +206,7 @@
+     die_because_not_initialized();
+ }
+ 
+-int stub_general_register_disappearing_link(void **, void *) {
++int stub_general_register_disappearing_link(void **, const void *) {
+     die_because_not_initialized();
+     return 0;
+ }

Modified: head/graphics/inkscape/files/patch-configure
==============================================================================
--- head/graphics/inkscape/files/patch-configure	Thu Jul 10 19:12:03 2014	(r361484)
+++ head/graphics/inkscape/files/patch-configure	Thu Jul 10 19:26:34 2014	(r361485)
@@ -1,5 +1,5 @@
---- configure.orig	2013-10-16 22:37:30.000000000 +0200
-+++ configure	2013-10-16 22:37:37.000000000 +0200
+--- configure.orig	2014-07-10 22:35:29.000000000 +0200
++++ configure	2014-07-10 22:46:14.000000000 +0200
 @@ -7498,7 +7498,7 @@
  	cc_vers_all=`expr $cc_vers_major '*' 1000000 + $cc_vers_minor '*' 1000 + $cc_vers_patch`
  
@@ -9,3 +9,19 @@
  	fi
  fi
  
+@@ -8961,10 +8961,11 @@
+ 			#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;
++				printf("%d.%d.%d ", GC_VERSION_MAJOR, GC_VERSION_MINOR, GC_VERSION_MICRO);
++				if (GC_VERSION_MAJOR >= 6 && GC_VERSION_MINOR >= 4)
++				  return 0;
++				else
++				  return 1;
+ 			}
+ _ACEOF
+ if ac_fn_cxx_try_run "$LINENO"; then :



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407101926.s6AJQY1T066558>