Skip to content

Commit

Permalink
science/dynare: fix build on non-amd64 64-bit architectures
Browse files Browse the repository at this point in the history
The current Makefile checks only for amd64.

Tested for no breakage on amd64.
  • Loading branch information
pkubaj committed Oct 8, 2021
1 parent 57ff929 commit 535243e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions science/dynare/files/patch-Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- Makefile.am.orig 2021-10-07 22:16:41 UTC
+++ Makefile.am
@@ -28,7 +28,7 @@ EXTRA_DIST = \
.dir-locals.el

all-local: preprocessor/src/dynare_m$(EXEEXT)
- if file preprocessor/src/dynare_m$(EXEEXT) | grep -q x86.64; then \
+ if file preprocessor/src/dynare_m$(EXEEXT) | grep -q 64-bit; then \
ARCH="64"; \
else \
ARCH="32"; \
@@ -54,7 +54,7 @@ install-exec-local:
cp -r matlab $(DESTDIR)$(pkglibdir)
find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete
rm -rf $(DESTDIR)$(pkglibdir)/matlab/preprocessor*
- if file preprocessor/src/dynare_m | grep -q x86.64; then \
+ if file preprocessor/src/dynare_m | grep -q 64-bit; then \
ARCH="64"; \
else \
ARCH="32"; \
20 changes: 20 additions & 0 deletions science/dynare/files/patch-Makefile.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- Makefile.in.orig 2021-10-07 22:16:41 UTC
+++ Makefile.in
@@ -28,7 +28,7 @@ EXTRA_DIST = \
.dir-locals.el

all-local: preprocessor/src/dynare_m$(EXEEXT)
- if file preprocessor/src/dynare_m$(EXEEXT) | grep -q x86.64; then \
+ if file preprocessor/src/dynare_m$(EXEEXT) | grep -q 64-bit; then \
ARCH="64"; \
else \
ARCH="32"; \
@@ -54,7 +54,7 @@ install-exec-local:
cp -r matlab $(DESTDIR)$(pkglibdir)
find $(DESTDIR)$(pkglibdir) -name LICENSE.md -delete
rm -rf $(DESTDIR)$(pkglibdir)/matlab/preprocessor*
- if file preprocessor/src/dynare_m | grep -q x86.64; then \
+ if file preprocessor/src/dynare_m | grep -q 64-bit; then \
ARCH="64"; \
else \
ARCH="32"; \

0 comments on commit 535243e

Please sign in to comment.