Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge 'u/fbissey/leon'@trac. sage works (after rm ./sage)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Jan 23, 2017
2 parents 8ebf82f + d3ae650 commit 93f2834
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/pkgs/gap_packages/package-version.txt
@@ -1 +1 @@
4.8.6
4.8.6.p2
40 changes: 40 additions & 0 deletions build/pkgs/gap_packages/patches/guava_leon.patch
@@ -0,0 +1,40 @@
Francois Bissey francois.bissey@canterbury.ac.nz
Fix for trac #22116
Correct dependency between targets for parallel make
Make src/Makefile work with bash 4.4

diff --git a/guava-3.13/Makefile.in b/guava-3.13/Makefile.in
index 46e97f3..d5f2b98 100644
--- a/guava-3.13/Makefile.in
+++ b/guava-3.13/Makefile.in
@@ -22,7 +22,7 @@ minimum-weight: $(CJSRCDIR)/minimum-weight.o $(CJSRCDIR)/minimum-weight-gf2.o $(
$(CJSRCDIR)/minimum-weight.o $(CJSRCDIR)/minimum-weight-gf2.o \
$(CJSRCDIR)/minimum-weight-gf3.o $(CJSRCDIR)/popcount.o -lm

-leonconv:
+leonconv: desauto
cd ./src; $(MAKE) CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)";

desauto:
@@ -41,7 +41,7 @@ popcount.o: $(CJSRCDIR)/popcount.c $(CJSRCDIR)/popcount.h $(CJSRCDIR)/config.h $
$(CC) -c -O3 -Wall -I $(CJSRCDIR) $(CJSRCDIR)/popcount.c


-install:
+install: leonconv minimum-weight
( cp ./src/leonconv $(BINDIR) )
( cp $(SRCDIR)/desauto $(BINDIR) )
( cp $(CJSRCDIR)/minimum-weight $(BINDIR) )
diff --git a/guava-3.13/src/Makefile b/guava-3.13/src/Makefile
index 1253a1c..d9d3495 100644
--- a/guava-3.13/src/Makefile
+++ b/guava-3.13/src/Makefile
@@ -11,7 +11,7 @@ SUBDIRS = leon ctjhai
.PHONY: all $(SUBDIRS)

all : $(FILES)
- cd leon make
+ cd leon; $(MAKE)

leonconv: leonconv.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o leonconv leonconv.c

0 comments on commit 93f2834

Please sign in to comment.