From f2fb1a2fcf3dba3c60979819a04caa4b91a3eeab Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Fabbro?= Date: Tue, 23 Feb 2016 17:44:05 +0000 Subject: [PATCH] sci-libs/pastix: re-add smp flag with patch and set it as default Package-Manager: portage-2.2.27 --- ...ix-5.2.2.22-nosmp-undefined-variable.patch | 15 +++++ ....2.22.ebuild => pastix-5.2.2.22-r1.ebuild} | 56 ++++++++++--------- 2 files changed, 45 insertions(+), 26 deletions(-) create mode 100644 sci-libs/pastix/files/pastix-5.2.2.22-nosmp-undefined-variable.patch rename sci-libs/pastix/{pastix-5.2.2.22.ebuild => pastix-5.2.2.22-r1.ebuild} (76%) diff --git a/sci-libs/pastix/files/pastix-5.2.2.22-nosmp-undefined-variable.patch b/sci-libs/pastix/files/pastix-5.2.2.22-nosmp-undefined-variable.patch new file mode 100644 index 000000000000..c01b02bb8f72 --- /dev/null +++ b/sci-libs/pastix/files/pastix-5.2.2.22-nosmp-undefined-variable.patch @@ -0,0 +1,15 @@ +--- ./sopalin/src/updo.c.orig 2016-02-23 01:42:00.000000000 +0000 ++++ ./sopalin/src/updo.c 2016-02-23 01:42:10.000000000 +0000 +@@ -940,8 +940,10 @@ + i = TASK_CBLKNUM(i); + # define END_LOOP(a) } SMP_END_LOOP(a) + # else /* SMP_SOPALIN */ +-# define START_LOOP for (i=0;i config.in || die - sed -i -e 's/__SO_NAME__,$@/__SO_NAME__,$(notdir $@)/g' Makefile || die - default + sed -e 's/__SO_NAME__,$@/__SO_NAME__,$(notdir $@)/g' -i Makefile || die } src_configure() { if use amd64; then - sed -i \ - -e 's/^\(VERSIONBIT\s*=\).*/\1 _64bit/' config.in || die + sed -e 's/^\(VERSIONBIT\s*=\).*/\1 _64bit/' \ + -i config.in || die fi if use int64; then - sed -i \ - -e '/VERSIONINT.*_int64/s/#//' \ - -e '/CCTYPES.*INTSSIZE64/s/#//' config.in || die + sed -e '/VERSIONINT.*_int64/s/#//' \ + -e '/CCTYPES.*INTSSIZE64/s/#//' \ + -i config.in || die fi if ! use mpi; then - sed -i \ - -e '/VERSIONMPI.*_nompi/s/#//' \ + sed -e '/VERSIONMPI.*_nompi/s/#//' \ -e '/CCTYPES.*NOMPI/s/#//' \ -e '/MPCCPROG\s*= $(CCPROG)/s/#//' \ -e '/MCFPROG\s*= $(CFPROG)/s/#//' \ -e 's/-DDISTRIBUTED//' \ -e 's/-lptscotch/-lscotch/g' \ - config.in || die + -i config.in || die fi -# if ! use smp; then -# sed \ -# -e '/VERSIONSMP.*_nosmp/s/#//' \ -# -e '/CCTYPES.*NOSMP/s/#//' \ -# -i config.in || die -# fi + if ! use smp; then + sed -e '/VERSIONSMP.*_nosmp/s/#//' \ + -e '/CCTYPES.*NOSMP/s/#//' \ + -i config.in || die + fi if use starpu; then - sed -i -e '/libstarpu/s/#//g' config.in || die + sed -e '/libstarpu/s/#//g' -i config.in || die fi } @@ -115,10 +114,15 @@ src_compile() { emake all drivers } +src_test() { + # both test and tests targets are defined and do not work + echo +} + src_install() { default - sed -i -e "s:${D}::g" "${ED}"/usr/bin/pastix-conf || die + sed -e "s:${D}::g" -i "${ED}"/usr/bin/pastix-conf || die # quick and dirty (static libs should really be built without pic) - cd .. || die + cd .. || die dodoc README.txt doc/refcard/refcard.pdf } -- 2.26.2