Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2015 18:54:02 +0000 (UTC)
From:      Jean-Sebastien Pedron <dumbbell@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384169 - in head/graphics/darktable: . files
Message-ID:  <201504171854.t3HIs2v5026417@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dumbbell (src committer)
Date: Fri Apr 17 18:54:02 2015
New Revision: 384169
URL: https://svnweb.freebsd.org/changeset/ports/384169

Log:
  graphics/darktable: Fix bug with preferences when built with Clang 3.6
  
  The patch was committed upstream. The commit message has a detailed
  explanation:
  https://github.com/darktable-org/darktable/commit/9d77a28e54f8bc19592a170b1e4b9cf083f7b5a3
  
  Differential Revision:	https://reviews.freebsd.org/D2308
  Reviewed by:	kwm
  Approved by:	kwm

Added:
  head/graphics/darktable/files/
  head/graphics/darktable/files/patch-tools_generate__prefs.xsl   (contents, props changed)
Modified:
  head/graphics/darktable/Makefile

Modified: head/graphics/darktable/Makefile
==============================================================================
--- head/graphics/darktable/Makefile	Fri Apr 17 17:15:59 2015	(r384168)
+++ head/graphics/darktable/Makefile	Fri Apr 17 18:54:02 2015	(r384169)
@@ -3,6 +3,7 @@
 
 PORTNAME=	darktable
 PORTVERSION=	1.6.4
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION}/
 

Added: head/graphics/darktable/files/patch-tools_generate__prefs.xsl
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/darktable/files/patch-tools_generate__prefs.xsl	Fri Apr 17 18:54:02 2015	(r384169)
@@ -0,0 +1,13 @@
+--- tools/generate_prefs.xsl.orig	2015-04-03 13:59:08 UTC
++++ tools/generate_prefs.xsl
+@@ -231,7 +231,9 @@
+ 		<xsl:text>    gint min = 0;&#xA;    gint max = G_MAXINT;&#xA;</xsl:text>
+ 		<xsl:apply-templates select="type" mode="range"/>
+ 		<xsl:text>  </xsl:text><xsl:apply-templates select="type" mode="factor"/>
+-		<xsl:text>    min *= factor; max *= factor;
++		<xsl:text>    double tmp;
++    tmp = min * (double)factor; min = tmp;
++    tmp = max * (double)factor; max = tmp;
+     widget = gtk_spin_button_new_with_range(min, max, 1);
+     gtk_spin_button_set_digits(GTK_SPIN_BUTTON(widget), 0);
+     gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget), dt_conf_get_int("</xsl:text><xsl:value-of select="name"/><xsl:text>") * factor);



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