[139186] trunk/dports/graphics/libvisio-0.1

devans at macports.org devans at macports.org
Wed Aug 5 19:10:52 PDT 2015


Revision: 139186
          https://trac.macports.org/changeset/139186
Author:   devans at macports.org
Date:     2015-08-05 19:10:52 -0700 (Wed, 05 Aug 2015)
Log Message:
-----------
libvisio-0.1: patch to resolve ambiguous pow function when using libstdc++, increment revision to rebuild all platforms.

Modified Paths:
--------------
    trunk/dports/graphics/libvisio-0.1/Portfile

Added Paths:
-----------
    trunk/dports/graphics/libvisio-0.1/files/
    trunk/dports/graphics/libvisio-0.1/files/patch-ambiguous-pow.diff

Modified: trunk/dports/graphics/libvisio-0.1/Portfile
===================================================================
--- trunk/dports/graphics/libvisio-0.1/Portfile	2015-08-06 01:36:34 UTC (rev 139185)
+++ trunk/dports/graphics/libvisio-0.1/Portfile	2015-08-06 02:10:52 UTC (rev 139186)
@@ -6,6 +6,7 @@
 name                libvisio-0.1
 set dname           libvisio
 version             0.1.3
+revision            1
 categories          graphics
 platforms           darwin
 maintainers         devans openmaintainer
@@ -35,6 +36,8 @@
                     port:libxml2 \
                     port:zlib
 
+patchfiles          patch-ambiguous-pow.diff
+
 # Version 0.1.1's glibtool doesn't know to pass -stdlib=... to the linker
 use_autoreconf      yes
 autoreconf.args     -fvi

Added: trunk/dports/graphics/libvisio-0.1/files/patch-ambiguous-pow.diff
===================================================================
--- trunk/dports/graphics/libvisio-0.1/files/patch-ambiguous-pow.diff	                        (rev 0)
+++ trunk/dports/graphics/libvisio-0.1/files/patch-ambiguous-pow.diff	2015-08-06 02:10:52 UTC (rev 139186)
@@ -0,0 +1,11 @@
+--- src/lib/VSDMetaData.cpp.orig	2015-08-05 19:02:21.000000000 -0700
++++ src/lib/VSDMetaData.cpp	2015-08-05 19:02:49.000000000 -0700
+@@ -302,7 +302,7 @@
+   uint32_t firstDirSectorLocation = readU32(input);
+ 
+   // Seek to the Root Directory Entry
+-  size_t sectorSize = std::pow(2, sectorShift);
++  size_t sectorSize = std::pow(2.0, sectorShift);
+   input->seek((firstDirSectorLocation + 1) * sectorSize, librevenge::RVNG_SEEK_SET);
+   // DirectoryEntryName: 64 bytes
+   // DirectoryEntryNameLength: 2 bytes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150805/bebe799b/attachment.html>


More information about the macports-changes mailing list