[128704] trunk/dports/devel/isl
larryv at macports.org
larryv at macports.org
Tue Nov 25 17:37:41 PST 2014
Revision: 128704
https://trac.macports.org/changeset/128704
Author: larryv at macports.org
Date: 2014-11-25 17:37:41 -0800 (Tue, 25 Nov 2014)
Log Message:
-----------
isl: Include space.h in deprecated headers
The headers for the isl_int API use the isl_dim_type enumeration without
including space.h. This causes compilation to fail if including source
files don't include space.h themselves.
Upstream doesn't want to fix deprecated code
(https://groups.google.com/d/msg/isl-development/N6UWJDbKXNA/2CY6WHDvOYoJ),
so this patch should be applied until they remove the headers outright.
Modified Paths:
--------------
trunk/dports/devel/isl/Portfile
Added Paths:
-----------
trunk/dports/devel/isl/files/fix-deprecated-headers.patch
Modified: trunk/dports/devel/isl/Portfile
===================================================================
--- trunk/dports/devel/isl/Portfile 2014-11-26 01:37:32 UTC (rev 128703)
+++ trunk/dports/devel/isl/Portfile 2014-11-26 01:37:41 UTC (rev 128704)
@@ -8,7 +8,7 @@
conflicts isl-devel
version 0.14
-revision 1
+revision 2
epoch 2
categories devel math
@@ -34,8 +34,14 @@
depends_lib port:gmp
+# Add a missing include to the isl_int headers. Upstream doesn't want to
+# bother fixing deprecated APIs
+# (https://groups.google.com/d/msg/isl-development/N6UWJDbKXNA/2CY6WHDvOYoJ),
+# so this should be applied until they remove the headers outright.
+patchfiles fix-deprecated-headers.patch
+
# Don't link using "-flat_namespace -undefined suppress" on Yosemite and later.
-patchfiles yosemite-libtool.patch
+patchfiles-append yosemite-libtool.patch
configure.args --disable-silent-rules
Added: trunk/dports/devel/isl/files/fix-deprecated-headers.patch
===================================================================
--- trunk/dports/devel/isl/files/fix-deprecated-headers.patch (rev 0)
+++ trunk/dports/devel/isl/files/fix-deprecated-headers.patch 2014-11-26 01:37:41 UTC (rev 128704)
@@ -0,0 +1,84 @@
+commit dbf64e83af8d4b5a55fed546e0c615cd51141bd7
+Author: Lawrence Velázquez <larryv at macports.org>
+Date: Tue Nov 25 01:50:58 2014 -0500
+
+ Include space.h in deprecated headers using isl_dim_type
+
+ These headers should not assume that space.h will be included
+ transitively through another header or by an including source file, as
+ compilation can fail if those assumptions don't hold.
+
+ Signed-off-by: Lawrence Velázquez <larryv at macports.org>
+
+Index: include/isl/deprecated/aff_int.h
+===================================================================
+--- include/isl/deprecated/aff_int.h.orig
++++ include/isl/deprecated/aff_int.h
+@@ -3,6 +3,7 @@
+
+ #include <isl/deprecated/int.h>
+ #include <isl/aff_type.h>
++#include <isl/space.h>
+
+ #if defined(__cplusplus)
+ extern "C" {
+Index: include/isl/deprecated/constraint_int.h
+===================================================================
+--- include/isl/deprecated/constraint_int.h.orig
++++ include/isl/deprecated/constraint_int.h
+@@ -3,6 +3,7 @@
+
+ #include <isl/deprecated/int.h>
+ #include <isl/constraint.h>
++#include <isl/space.h>
+
+ #if defined(__cplusplus)
+ extern "C" {
+Index: include/isl/deprecated/map_int.h
+===================================================================
+--- include/isl/deprecated/map_int.h.orig
++++ include/isl/deprecated/map_int.h
+@@ -3,6 +3,7 @@
+
+ #include <isl/deprecated/int.h>
+ #include <isl/map_type.h>
++#include <isl/space.h>
+
+ #if defined(__cplusplus)
+ extern "C" {
+Index: include/isl/deprecated/point_int.h
+===================================================================
+--- include/isl/deprecated/point_int.h.orig
++++ include/isl/deprecated/point_int.h
+@@ -3,6 +3,7 @@
+
+ #include <isl/deprecated/int.h>
+ #include <isl/point.h>
++#include <isl/space.h>
+
+ #if defined(__cplusplus)
+ extern "C" {
+Index: include/isl/deprecated/polynomial_int.h
+===================================================================
+--- include/isl/deprecated/polynomial_int.h.orig
++++ include/isl/deprecated/polynomial_int.h
+@@ -3,6 +3,7 @@
+
+ #include <isl/deprecated/int.h>
+ #include <isl/polynomial.h>
++#include <isl/space.h>
+
+ #if defined(__cplusplus)
+ extern "C" {
+Index: include/isl/deprecated/set_int.h
+===================================================================
+--- include/isl/deprecated/set_int.h.orig
++++ include/isl/deprecated/set_int.h
+@@ -3,6 +3,7 @@
+
+ #include <isl/deprecated/int.h>
+ #include <isl/set_type.h>
++#include <isl/space.h>
+
+ #if defined(__cplusplus)
+ extern "C" {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141125/10895fd9/attachment-0001.html>
More information about the macports-changes
mailing list