public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/superlu_mt/files/, sci-libs/superlu_mt/
@ 2021-11-28 20:28 Marek Szuba
  0 siblings, 0 replies; only message in thread
From: Marek Szuba @ 2021-11-28 20:28 UTC (permalink / raw
  To: gentoo-commits

commit:     8587dd7a8c040c26cd234baefe517027e4fedc1f
Author:     Alex Fan <alex.fan.q <AT> gmail <DOT> com>
AuthorDate: Sun Nov 28 11:27:17 2021 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sun Nov 28 20:28:35 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8587dd7a

sci-libs/superlu_mt: fix int64 not taking effect

upstream uses unconventional variables names. int64 adds _LONG_INT
to PREDEFS. PREDEFS seems to be a synonym of CPPFLAGS and used
sparingly to be appended to CFLAGS. It should be passed to $(CC)
explicitly for int64 to take effect.

EXAMLE/Makefile should include ../make.in, which is the same in
upstream.

Signed-off-by: Alex Fan <alex.fan.q <AT> gmail.com>
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 .../files/superlu_mt-3.1-fix-predefs.patch         | 22 ++++++++++++++++++++++
 sci-libs/superlu_mt/superlu_mt-3.1.ebuild          |  3 +--
 2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/sci-libs/superlu_mt/files/superlu_mt-3.1-fix-predefs.patch b/sci-libs/superlu_mt/files/superlu_mt-3.1-fix-predefs.patch
new file mode 100644
index 000000000000..95c64675a87b
--- /dev/null
+++ b/sci-libs/superlu_mt/files/superlu_mt-3.1-fix-predefs.patch
@@ -0,0 +1,22 @@
+--- a/INSTALL/Makefile
++++ b/INSTALL/Makefile
+@@ -19,7 +19,7 @@ slamch.o: slamch.c ; $(CC) $(NOOPTS) -c $<
+ dlamch.o: dlamch.c ; $(CC) $(NOOPTS) -c $<
+ superlu_timer.o: superlu_timer.c; $(CC) $(NOOPTS) -c $<
+ 
+-.c.o: ; $(CC) $(CFLAGS) -c $<
++.c.o: ; $(CC) $(PREDEFS) $(CFLAGS) -c $<
+ 
+ clean:
+ 	rm -f *.o test* *.out
+--- a/SRC/Makefile
++++ b/SRC/Makefile
+@@ -130,7 +130,7 @@ await.o: await.c
+ 	$(CC) -c $(NOOPTS) $< $(VERBOSE)
+ 
+ .c.o:
+-	$(CC) $(CFLAGS) $(CDEFS) $(BLASDEF) -c $< $(VERBOSE)
++	$(CC) ${PREDEFS} $(CFLAGS) $(CDEFS) $(BLASDEF) -c $< $(VERBOSE)
+ 
+ clean:	
+ 	rm -f *.o core ../lib/$(SUPERLULIB)

diff --git a/sci-libs/superlu_mt/superlu_mt-3.1.ebuild b/sci-libs/superlu_mt/superlu_mt-3.1.ebuild
index f631900a16d9..eab8a2ad999d 100644
--- a/sci-libs/superlu_mt/superlu_mt-3.1.ebuild
+++ b/sci-libs/superlu_mt/superlu_mt-3.1.ebuild
@@ -61,8 +61,7 @@ src_prepare() {
 		TMGLIB=libtmglib.a
 	EOF
 	SONAME=lib${PN}.so.${SOVERSION}
-	sed -e 's|../make.inc|make.inc|' \
-		-e "s|../SRC|${EPREFIX}/usr/include/${PN}|" \
+	sed -e "s|../SRC|${EPREFIX}/usr/include/${PN}|" \
 		-e '/:.*$(SUPERLULIB)/s|../lib/$(SUPERLULIB)||g' \
 		-e 's|../lib/$(SUPERLULIB)|-lsuperlu_mt|g' \
 		-i EXAMPLE/Makefile || die


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-28 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-28 20:28 [gentoo-commits] repo/gentoo:master commit in: sci-libs/superlu_mt/files/, sci-libs/superlu_mt/ Marek Szuba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox