Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 01:20:58 +0000 (UTC)
From:      Stephen Montgomery-Smith <stephen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r339564 - head/math/GiNaC/files
Message-ID:  <201401130120.s0D1KwIA012606@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: stephen
Date: Mon Jan 13 01:20:58 2014
New Revision: 339564
URL: http://svnweb.freebsd.org/changeset/ports/339564

Log:
  - Fix compilation error with clang.
  
  Reported by:	pkg-fallout@FreeBSD.org
  Reference:	http://beefy1.isc.freebsd.org/bulk/10i386-default/2014-01-08_23h51m38s/logs/GiNaC-1.6.2.log
  Obtained from:	http://www.cebix.net/pipermail/ginac-list/2013-October/001974.html

Added:
  head/math/GiNaC/files/patch-ginac__inifcns_nstdsums.cpp   (contents, props changed)

Added: head/math/GiNaC/files/patch-ginac__inifcns_nstdsums.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/GiNaC/files/patch-ginac__inifcns_nstdsums.cpp	Mon Jan 13 01:20:58 2014	(r339564)
@@ -0,0 +1,121 @@
+--- ginac/inifcns_nstdsums.cpp.orig	2011-05-10 15:22:53.000000000 -0500
++++ ginac/inifcns_nstdsums.cpp	2014-01-12 19:46:05.000000000 -0600
+@@ -2601,7 +2601,7 @@
+ 		ex addzeta = convert_H_to_zeta(newparameter);
+ 		return e.subs(h == (addzeta-H(newparameter, h.op(1)).hold())).expand();
+ 	} else {
+-		return e * (-H(lst(0),1/arg).hold());
++		return e * (-H(lst(ex(0)),1/arg).hold());
+ 	}
+ }
+ 
+@@ -2632,7 +2632,7 @@
+ 		newparameter.prepend(1);
+ 		return e.subs(h == H(newparameter, h.op(1)).hold());
+ 	} else {
+-		return e * H(lst(1),1-arg).hold();
++		return e * H(lst(ex(1)),1-arg).hold();
+ 	}
+ }
+ 
+@@ -2664,8 +2664,8 @@
+ 		ex addzeta = convert_H_to_zeta(newparameter);
+ 		return e.subs(h == (addzeta-H(newparameter, h.op(1)).hold())).expand();
+ 	} else {
+-		ex addzeta = convert_H_to_zeta(lst(-1));
+-		return (e * (addzeta - H(lst(-1),1/arg).hold())).expand();
++		ex addzeta = convert_H_to_zeta(lst(ex(-1)));
++		return (e * (addzeta - H(lst(ex(-1)),1/arg).hold())).expand();
+ 	}
+ }
+ 
+@@ -2696,7 +2696,7 @@
+ 		newparameter.prepend(-1);
+ 		return e.subs(h == H(newparameter, h.op(1)).hold()).expand();
+ 	} else {
+-		return (e * H(lst(-1),(1-arg)/(1+arg)).hold()).expand();
++		return (e * H(lst(ex(-1)),(1-arg)/(1+arg)).hold()).expand();
+ 	}
+ }
+ 
+@@ -2727,7 +2727,7 @@
+ 		newparameter.prepend(1);
+ 		return e.subs(h == H(newparameter, h.op(1)).hold()).expand();
+ 	} else {
+-		return (e * H(lst(1),(1-arg)/(1+arg)).hold()).expand();
++		return (e * H(lst(ex(1)),(1-arg)/(1+arg)).hold()).expand();
+ 	}
+ }
+ 
+@@ -2806,7 +2806,7 @@
+ 					// leading one
+ 					map_trafo_H_1mx recursion;
+ 					map_trafo_H_mult unify;
+-					ex res = H(lst(1), arg).hold() * H(newparameter, arg).hold();
++					ex res = H(lst(ex(1)), arg).hold() * H(newparameter, arg).hold();
+ 					std::size_t firstzero = 0;
+ 					while (parameter.op(firstzero) == 1) {
+ 						firstzero++;
+@@ -2870,7 +2870,7 @@
+ 					}
+ 					if (allthesame) {
+ 						map_trafo_H_mult unify;
+-						return unify((pow(H(lst(-1),1/arg).hold() - H(lst(0),1/arg).hold(), parameter.nops())
++						return unify((pow(H(lst(ex(-1)),1/arg).hold() - H(lst(ex(0)),1/arg).hold(), parameter.nops())
+ 						       / factorial(parameter.nops())).expand());
+ 					}
+ 				} else {
+@@ -2882,7 +2882,7 @@
+ 					}
+ 					if (allthesame) {
+ 						map_trafo_H_mult unify;
+-						return unify((pow(H(lst(1),1/arg).hold() + H(lst(0),1/arg).hold() + H_polesign, parameter.nops())
++						return unify((pow(H(lst(ex(1)),1/arg).hold() + H(lst(ex(0)),1/arg).hold() + H_polesign, parameter.nops())
+ 						       / factorial(parameter.nops())).expand());
+ 					}
+ 				}
+@@ -2925,7 +2925,7 @@
+ 					// leading one
+ 					map_trafo_H_1overx recursion;
+ 					map_trafo_H_mult unify;
+-					ex res = H(lst(1), arg).hold() * H(newparameter, arg).hold();
++					ex res = H(lst(ex(1)), arg).hold() * H(newparameter, arg).hold();
+ 					std::size_t firstzero = 0;
+ 					while (parameter.op(firstzero) == 1) {
+ 						firstzero++;
+@@ -2981,7 +2981,7 @@
+ 					}
+ 					if (allthesame) {
+ 						map_trafo_H_mult unify;
+-						return unify((pow(-H(lst(1),(1-arg)/(1+arg)).hold() - H(lst(-1),(1-arg)/(1+arg)).hold(), parameter.nops())
++						return unify((pow(-H(lst(ex(1)),(1-arg)/(1+arg)).hold() - H(lst(ex(-1)),(1-arg)/(1+arg)).hold(), parameter.nops())
+ 						       / factorial(parameter.nops())).expand());
+ 					}
+ 				} else if (parameter.op(0) == -1) {
+@@ -2993,7 +2993,7 @@
+ 					}
+ 					if (allthesame) {
+ 						map_trafo_H_mult unify;
+-						return unify((pow(log(2) - H(lst(-1),(1-arg)/(1+arg)).hold(), parameter.nops())
++						return unify((pow(log(2) - H(lst(ex(-1)),(1-arg)/(1+arg)).hold(), parameter.nops())
+ 						       / factorial(parameter.nops())).expand());
+ 					}
+ 				} else {
+@@ -3005,7 +3005,7 @@
+ 					}
+ 					if (allthesame) {
+ 						map_trafo_H_mult unify;
+-						return unify((pow(-log(2) - H(lst(0),(1-arg)/(1+arg)).hold() + H(lst(-1),(1-arg)/(1+arg)).hold(), parameter.nops())
++						return unify((pow(-log(2) - H(lst(ex(0)),(1-arg)/(1+arg)).hold() + H(lst(ex(-1)),(1-arg)/(1+arg)).hold(), parameter.nops())
+ 						       / factorial(parameter.nops())).expand());
+ 					}
+ 				}
+@@ -3048,7 +3048,7 @@
+ 					// leading one
+ 					map_trafo_H_1mxt1px recursion;
+ 					map_trafo_H_mult unify;
+-					ex res = H(lst(1), arg).hold() * H(newparameter, arg).hold();
++					ex res = H(lst(ex(1)), arg).hold() * H(newparameter, arg).hold();
+ 					std::size_t firstzero = 0;
+ 					while (parameter.op(firstzero) == 1) {
+ 						firstzero++;



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