From 8b18d3b4b43ddb3aa346a70af65675f816f5c455 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Wed, 12 Jan 2022 13:41:29 -0800 Subject: [PATCH] finance/py-bitcoin: Remove LICENSE from plist PR: 261162 Reported by: se@ --- finance/py-bitcoin/Makefile | 11 +++++- ...tions_local__state__space__iteration__2.cc | 38 +++++++++++++++++++ .../patch-preprocessor_src_EquationTags.cc | 12 ++++++ 3 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 science/dynare/files/patch-mex_sources_local__state__space__iterations_local__state__space__iteration__2.cc create mode 100644 science/dynare/files/patch-preprocessor_src_EquationTags.cc diff --git a/finance/py-bitcoin/Makefile b/finance/py-bitcoin/Makefile index 649e4ca79c75..380fbd76b3b9 100644 --- a/finance/py-bitcoin/Makefile +++ b/finance/py-bitcoin/Makefile @@ -1,7 +1,7 @@ # Created by: Yuri Victorovich PORTNAME= bitcoin -PORTVERSION= 1.1.42 +DISTVERSION= 1.1.42 CATEGORIES= finance python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,6 +14,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE USES= python:3.6+ USE_PYTHON= autoplist distutils + NO_ARCH= yes +POST_PLIST= fix-plist + +fix-plist: + @${REINPLACE_CMD} -e "s|^LICENSE$$||" ${TMPPLIST} + +post-install: + ${RM} ${STAGEDIR}${PREFIX}/LICENSE + .include diff --git a/science/dynare/files/patch-mex_sources_local__state__space__iterations_local__state__space__iteration__2.cc b/science/dynare/files/patch-mex_sources_local__state__space__iterations_local__state__space__iteration__2.cc new file mode 100644 index 000000000000..78fbffce6b66 --- /dev/null +++ b/science/dynare/files/patch-mex_sources_local__state__space__iterations_local__state__space__iteration__2.cc @@ -0,0 +1,38 @@ +- workaround for https://bugs.llvm.org/show_bug.cgi?id=49238 + +--- mex/sources/local_state_space_iterations/local_state_space_iteration_2.cc.orig 2022-01-10 23:38:14 UTC ++++ mex/sources/local_state_space_iterations/local_state_space_iteration_2.cc +@@ -61,8 +61,14 @@ ss2Iteration_pruning(double *y2, double *y1, const dou + const double one = 1.0; + const blas_int ONE = 1; + #endif +- auto [ii1, ii2, ii3] = set_vector_of_indices(n, m); // vector indices for ghxx +- auto [jj1, jj2, jj3] = set_vector_of_indices(q, m); // vector indices for ghuu ++ auto [ii1_, ii2_, ii3_] = set_vector_of_indices(n, m); // vector indices for ghxx ++ auto ii1 = ii1_; ++ auto ii2 = ii2_; ++ auto ii3 = ii3_; ++ auto [jj1_, jj2_, jj3_] = set_vector_of_indices(q, m); // vector indices for ghuu ++ auto jj1 = jj1_; ++ auto jj2 = jj2_; ++ auto jj3 = jj3_; + #pragma omp parallel for num_threads(number_of_threads) + for (int particle = 0; particle < s; particle++) + { +@@ -139,8 +145,14 @@ ss2Iteration(double *y, const double *yhat, const doub + const double one = 1.0; + const blas_int ONE = 1; + #endif +- auto [ii1, ii2, ii3] = set_vector_of_indices(n, m); // vector indices for ghxx +- auto [jj1, jj2, jj3] = set_vector_of_indices(q, m); // vector indices for ghuu ++ auto [ii1_, ii2_, ii3_] = set_vector_of_indices(n, m); // vector indices for ghxx ++ auto ii1 = ii1_; ++ auto ii2 = ii2_; ++ auto ii3 = ii3_; ++ auto [jj1_, jj2_, jj3_] = set_vector_of_indices(q, m); // vector indices for ghuu ++ auto jj1 = jj1_; ++ auto jj2 = jj2_; ++ auto jj3 = jj3_; + #pragma omp parallel for num_threads(number_of_threads) + for (int particle = 0; particle < s; particle++) + { diff --git a/science/dynare/files/patch-preprocessor_src_EquationTags.cc b/science/dynare/files/patch-preprocessor_src_EquationTags.cc new file mode 100644 index 000000000000..01f3951c5975 --- /dev/null +++ b/science/dynare/files/patch-preprocessor_src_EquationTags.cc @@ -0,0 +1,12 @@ +- backport of fix: https://git.dynare.org/Dynare/preprocessor/-/commit/8c528f4f9a15baf73c014e1c3e55bc13583ca09d + +--- preprocessor/src/EquationTags.cc.orig 2022-01-10 23:30:53 UTC ++++ preprocessor/src/EquationTags.cc +@@ -20,6 +20,7 @@ + #include "EquationTags.hh" + + #include ++#include + + set + EquationTags::getEqnsByKey(const string &key) const