Attached is an update for GiNaC, okay? Index: Makefile =================================================================== RCS file: /cvs/ports/math/ginac/Makefile,v retrieving revision 1.9 diff -u -p -r1.9 Makefile --- Makefile 18 Oct 2010 20:52:05 -0000 1.9 +++ Makefile 24 Oct 2010 20:34:00 -0000 @@ -2,7 +2,7 @@ COMMENT= GiNaC is Not a Computer Algebra System (CAS) -DISTNAME= ginac-1.5.3 +DISTNAME= ginac-1.5.8 REVISION= 0 SHARED_LIBS += ginac 2.0 # 0.3 CATEGORIES= math Index: distinfo =================================================================== RCS file: /cvs/ports/math/ginac/distinfo,v retrieving revision 1.4 diff -u -p -r1.4 distinfo --- distinfo 12 Oct 2009 16:23:05 -0000 1.4 +++ distinfo 24 Oct 2010 20:34:00 -0000 @@ -1,5 +1,5 @@ -MD5 (ginac-1.5.3.tar.bz2) = drSGLaQusapNzzHsh9LHYQ== -RMD160 (ginac-1.5.3.tar.bz2) = D8N+edhrhSuENon7347wCm1TnFs= -SHA1 (ginac-1.5.3.tar.bz2) = otwURynU5X7kC/DqT/3owuDX9fk= -SHA256 (ginac-1.5.3.tar.bz2) = BmILRIy4pr549ANbb5SyOUpBSF3DdOC3bhVHUXO2VGk= -SIZE (ginac-1.5.3.tar.bz2) = 996505 +MD5 (ginac-1.5.8.tar.bz2) = hpOzycNGdpQDLOnIswY9TA== +RMD160 (ginac-1.5.8.tar.bz2) = kAXIYl/a11Ou5UhG23TqR7gSStc= +SHA1 (ginac-1.5.8.tar.bz2) = Qud6tfnH+Pq0ra608smpP2GL9mo= +SHA256 (ginac-1.5.8.tar.bz2) = jOcucPdTnporMlOeE+tlH9aI0UI92QvPC5w3tZLPwt0= +SIZE (ginac-1.5.8.tar.bz2) = 1003965 Index: patches/patch-configure =================================================================== RCS file: /cvs/ports/math/ginac/patches/patch-configure,v retrieving revision 1.3 diff -u -p -r1.3 patch-configure --- patches/patch-configure 7 Jun 2010 13:47:44 -0000 1.3 +++ patches/patch-configure 24 Oct 2010 20:34:00 -0000 @@ -1,29 +1,56 @@ ---- configure.orig Thu Jul 30 19:06:02 2009 -+++ configure Mon Jun 7 03:59:36 2010 -@@ -11835,7 +11835,7 @@ if test "${ac_cv_lib_dl_dlopen+set}" = set; then +$OpenBSD$ +--- configure.orig Tue Jul 6 15:41:06 2010 ++++ configure Sun Oct 24 22:08:49 2010 +@@ -10803,7 +10803,7 @@ if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" +LIBS="$LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -12157,7 +12157,7 @@ if test "${ac_cv_lib_dl_dlopen+set}" = set; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -10856,7 +10856,7 @@ if test "${ac_cv_lib_dld_shl_load+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-ldld $LIBS" ++LIBS="$LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -10899,7 +10899,7 @@ if test "${ac_cv_lib_dl_dlopen+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" +LIBS="$LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF -@@ -12293,7 +12293,7 @@ if test "${ac_cv_lib_dld_dld_link+set}" = set; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -10977,7 +10977,7 @@ if test "${ac_cv_lib_dld_dld_link+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" +LIBS="$LIBS" - cat >conftest.$ac_ext <<_ACEOF - /* confdefs.h. */ - _ACEOF + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -15504,14 +15504,14 @@ fi + + if test "$CONFIG_EXCOMPILER" = "yes"; then + found_dlopen_lib="no" +- DL_LIBS="-ldl" ++ DL_LIBS="" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 + $as_echo_n "checking for dlopen in -ldl... " >&6; } + if test "${ac_cv_lib_dl_dlopen+set}" = set; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-ldl $LIBS" ++LIBS="$LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + Index: patches/patch-ginac_Makefile_in =================================================================== RCS file: /cvs/ports/math/ginac/patches/patch-ginac_Makefile_in,v retrieving revision 1.3 diff -u -p -r1.3 patch-ginac_Makefile_in --- patches/patch-ginac_Makefile_in 7 Jun 2010 13:47:44 -0000 1.3 +++ patches/patch-ginac_Makefile_in 24 Oct 2010 20:34:00 -0000 @@ -1,7 +1,7 @@ $OpenBSD: patch-ginac_Makefile_in,v 1.3 2010/06/07 13:47:44 espie Exp $ ---- ginac/Makefile.in.orig Thu Jul 30 19:06:05 2009 -+++ ginac/Makefile.in Mon Jun 7 03:59:36 2010 -@@ -316,7 +316,7 @@ polynomial/primpart_content.cpp \ +--- ginac/Makefile.in.orig Tue Jul 6 15:41:09 2010 ++++ ginac/Makefile.in Sun Oct 24 20:33:18 2010 +@@ -318,7 +318,7 @@ polynomial/primpart_content.cpp \ polynomial/smod_helpers.h \ polynomial/debug.h Index: patches/patch-ginac_function_pl =================================================================== RCS file: /cvs/ports/math/ginac/patches/patch-ginac_function_pl,v retrieving revision 1.1 diff -u -p -r1.1 patch-ginac_function_pl --- patches/patch-ginac_function_pl 7 Jun 2010 13:47:44 -0000 1.1 +++ patches/patch-ginac_function_pl 24 Oct 2010 20:34:00 -0000 @@ -1,6 +1,6 @@ -$OpenBSD: patch-ginac_function_pl,v 1.1 2010/06/07 13:47:44 espie Exp $ ---- ginac/function.pl.orig Wed Jul 15 06:29:52 2009 -+++ ginac/function.pl Mon Jun 7 10:48:59 2010 +$OpenBSD$ +--- ginac/function.pl.orig Tue Jul 6 15:39:14 2010 ++++ ginac/function.pl Sun Oct 24 20:37:54 2010 @@ -59,7 +59,7 @@ sub generate { $declare_function_macro = generate( <<'END_OF_DECLARE_FUNCTION_MACRO','typename T${N}','const T${N} & p${N}','GiNaC::ex(p${N})'); @@ -108,7 +108,7 @@ $OpenBSD: patch-ginac_function_pl,v 1.1 { // Force re-evaluation even if the exprseq was already evaluated -@@ -840,12 +841,12 @@ function::function(unsigned ser, const exprseq & es) : +@@ -840,7 +841,7 @@ function::function(unsigned ser, const exprseq & es) : clearflag(status_flags::evaluated); } @@ -116,6 +116,9 @@ $OpenBSD: patch-ginac_function_pl,v 1.1 +function::function(serial_t ser, const exvector & v, bool discardable) : exprseq(v,discardable), serial(ser) { + if ( ser >= registered_functions().size() ) { +@@ -848,7 +849,7 @@ function::function(unsigned ser, const exvector & v, b + } } -function::function(unsigned ser, std::auto_ptr<exvector> vp) @@ -123,7 +126,7 @@ $OpenBSD: patch-ginac_function_pl,v 1.1 : exprseq(vp), serial(ser) { } -@@ -1343,7 +1344,7 @@ void function::store_remember_table(ex const & result) +@@ -1346,7 +1347,7 @@ void function::store_remember_table(ex const & result) // public @@ -132,7 +135,7 @@ $OpenBSD: patch-ginac_function_pl,v 1.1 { size_t same_name = 0; for (size_t i=0; i<registered_functions().size(); ++i) { -@@ -1372,7 +1373,7 @@ unsigned function::register_new(function_options const +@@ -1375,10 +1376,10 @@ unsigned function::register_new(function_options const /** Find serial number of function by name and number of parameters. * Throws exception if function was not found. */ @@ -140,4 +143,8 @@ $OpenBSD: patch-ginac_function_pl,v 1.1 +serial_t function::find_function(const std::string &name, unsigned nparams) { std::vector<function_options>::const_iterator i = function::registered_functions().begin(), end = function::registered_functions().end(); - unsigned serial = 0; +- unsigned serial = 0; ++ serial_t serial = 0; + while (i != end) { + if (i->get_name() == name && i->get_nparams() == nparams) + return serial; Index: patches/patch-ginac_parser_parser_cpp =================================================================== RCS file: patches/patch-ginac_parser_parser_cpp diff -N patches/patch-ginac_parser_parser_cpp --- patches/patch-ginac_parser_parser_cpp 7 Jun 2010 13:47:44 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-ginac_parser_parser_cpp,v 1.1 2010/06/07 13:47:44 espie Exp $ ---- ginac/parser/parser.cpp.orig Mon Jun 7 09:40:21 2010 -+++ ginac/parser/parser.cpp Mon Jun 7 09:50:26 2010 -@@ -66,7 +66,7 @@ ex parser::parse_identifier_expr() - Parse_error_("no function \"" << name << "\" with " << - args.size() << " arguments"); - } -- ex ret = GiNaC::function((unsigned)reader->second, args); -+ ex ret = GiNaC::function((serial_t)reader->second, args); - return ret; - } -