Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2015 13:58:26 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r382309 - head/devel/synfig/files
Message-ID:  <201503261358.t2QDwQ7x085207@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Thu Mar 26 13:58:25 2015
New Revision: 382309
URL: https://svnweb.freebsd.org/changeset/ports/382309
QAT: https://qat.redports.org/buildarchive/r382309/

Log:
  devel/synfig: Add DragonFly support
  
  Bring in fix from dports (port is not maintained)

Modified:
  head/devel/synfig/files/patch-src__synfig__main.cpp

Modified: head/devel/synfig/files/patch-src__synfig__main.cpp
==============================================================================
--- head/devel/synfig/files/patch-src__synfig__main.cpp	Thu Mar 26 13:49:15 2015	(r382308)
+++ head/devel/synfig/files/patch-src__synfig__main.cpp	Thu Mar 26 13:58:25 2015	(r382309)
@@ -1,6 +1,6 @@
---- src/synfig/main.cpp.orig
+--- src/synfig/main.cpp.orig	2014-12-22 11:08:27 UTC
 +++ src/synfig/main.cpp
-@@ -193,8 +193,10 @@
+@@ -193,8 +193,10 @@ synfig::Main::Main(const synfig::String&
  
  	unsigned int i;
  #ifdef _DEBUG
@@ -11,11 +11,11 @@
  
  #if defined(HAVE_SIGNAL_H) && defined(SIGPIPE)
  	signal(SIGPIPE, broken_pipe_signal);
-@@ -464,7 +466,11 @@
+@@ -464,7 +466,11 @@ synfig::get_binary_path(const String &fa
  
  	/* Read from /proc/self/exe (symlink) */
  	char* path2 = (char*)malloc(buf_size);
-+#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined (__DragonFly__)
 +	strncpy(path2, "/proc/curproc/file", buf_size - 1);
 +#else
  	strncpy(path2, "/proc/self/exe", buf_size - 1);
@@ -23,15 +23,15 @@
  
  	while (1) {
  		int i;
-@@ -501,6 +507,7 @@
+@@ -501,6 +507,7 @@ synfig::get_binary_path(const String &fa
  	
  	free(path2);
  
-+#if !defined(__FreeBSD__)
++#if ! (defined(__FreeBSD__) || defined(__DragonFly__))
  	if (result == "")
  	{
  		/* readlink() or stat() failed; this can happen when the program is
-@@ -542,6 +549,7 @@
+@@ -542,6 +549,7 @@ synfig::get_binary_path(const String &fa
  		free(line);
  		fclose(f);
  	}



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