-
-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #29345: replace bashisms in m4/sage_spkg_collect.m4, m4/sage_spk…
…g_enable.m4, build/pkgs/*/spkg-configure.m4, src/bin/sage-env, build/make/Makefile.in Autoconf scripts should be POSIX sh rather than bash, but there are a few bashisms in m4/sage_spkg_collect.m4 and m4/sage_spkg_enable.m4: * The quoted newlines `$'\n'` * The use of `VAR+=VALUE` Some of these should be straightforward to fix. The format {{{ SAGE_BUILT_PACKAGES+=" $SPKG_NAME \\"$'\n' }}} can be changed to {{{ SAGE_BUILT_PACKAGES="$SAGE_BUILT_PACKAGES $SPKG_NAME" }}} since the newline is only used to make the `BUILT_PACKAGES` rule in the resulting Makefile look nice. Changing them to spaces doesn't change what the rule does. I'm not sure about {{{ SAGE_PACKAGE_VERSIONS+="vers_$SPKG_NAME = $SPKG_VERSION"$'\n }}} and {{{ SAGE_PACKAGE_DEPENDENCIES+="deps_$SPKG_NAME = $DEPS"$'\n' }}} though, because those are inserted verbatim into the Makefile as rules, and the newlines probably matter. URL: https://trac.sagemath.org/29345 Reported by: mjo Ticket author(s): Michael Orlitzky Reviewer(s): Dima Pasechnik
- Loading branch information
Showing
15 changed files
with
192 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 33a5ec4977f36ce3a24c9ee824d9dd053b8cea04 Mon Sep 17 00:00:00 2001 | ||
From: Dima Pasechnik <dimpase@gmail.com> | ||
Date: Fri, 8 May 2020 15:55:27 +0100 | ||
Subject: [PATCH 1/1] remove 1st and last file in .pc file | ||
|
||
this causes problem if building with ksh, as they remain, causing a broken .pc file. | ||
--- | ||
fflas-ffpack.pc.in | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/fflas-ffpack.pc.in b/fflas-ffpack.pc.in | ||
index a2618d6..e34a744 100644 | ||
--- a/fflas-ffpack.pc.in | ||
+++ b/fflas-ffpack.pc.in | ||
@@ -1,4 +1,3 @@ | ||
-/------------------ fflas-ffpack.pc ------------------------ | ||
prefix=@prefix@ | ||
exec_prefix=@prefix@ | ||
libdir=@prefix@/lib | ||
@@ -11,4 +10,3 @@ Version: @VERSION@ | ||
Requires: givaro >= 4.0.3 | ||
Libs: @PARLIBS@ @PRECOMPILE_LIBS@ @BLAS_LIBS@ | ||
Cflags: -I@includedir@ @BLAS_CFLAGS@ @PARFLAGS@ @PRECOMPILE_FLAGS@ @REQUIRED_FLAGS@ | ||
-\------------------------------------------------------- | ||
\ No newline at end of file | ||
-- | ||
2.26.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 91dcba743e15288abe69966a5f71704d9adcc57c Mon Sep 17 00:00:00 2001 | ||
From: Dima Pasechnik <dimpase@gmail.com> | ||
Date: Fri, 8 May 2020 10:22:57 +0100 | ||
Subject: [PATCH 1/1] remove 1st and last lines in givaro.pc.in | ||
|
||
--- | ||
givaro.pc.in | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/givaro.pc.in b/givaro.pc.in | ||
index 285b854..af38bf3 100644 | ||
--- a/givaro.pc.in | ||
+++ b/givaro.pc.in | ||
@@ -1,4 +1,3 @@ | ||
-/------------------ givaro.pc ------------------------ | ||
prefix=@prefix@ | ||
exec_prefix=@prefix@ | ||
libdir=@prefix@/lib | ||
@@ -11,4 +10,3 @@ Version: @VERSION@ | ||
Requires: | ||
Libs: -L@libdir@ -lgivaro @LIBS@ | ||
Cflags: -I@includedir@ @REQUIRED_FLAGS@ | ||
-\------------------------------------------------------- | ||
\ No newline at end of file | ||
-- | ||
2.26.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From 52c78df67a08de074991a93b57946b7bd5ea7196 Mon Sep 17 00:00:00 2001 | ||
From: Dima Pasechnik <dimpase@gmail.com> | ||
Date: Fri, 8 May 2020 15:53:25 +0100 | ||
Subject: [PATCH 1/1] remove redundant 1st and last lines | ||
|
||
they remain if the script is run under ksh, leading to broken .pc file | ||
--- | ||
linbox.pc.in | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
|
||
diff --git a/linbox.pc.in b/linbox.pc.in | ||
index f54285e..eb6835b 100644 | ||
--- a/linbox.pc.in | ||
+++ b/linbox.pc.in | ||
@@ -1,4 +1,3 @@ | ||
-/------------------ linbox.pc ------------------------ | ||
prefix=@prefix@ | ||
exec_prefix=@prefix@ | ||
libdir=@libdir@ | ||
@@ -11,4 +10,4 @@ Version: @VERSION@ | ||
Requires: fflas-ffpack >= 2.4.0, givaro >= 4.1.0 | ||
Libs: -L${libdir} -llinbox @LINBOXSAGE_LIBS@ @NTL_LIBS@ @MPFR_LIBS@ @FPLLL_LIBS@ @IML_LIBS@ @FLINT_LIBS@ @OCL_LIBS@ | ||
Cflags: @DEFAULT_CFLAGS@ -DDISABLE_COMMENTATOR -I${includedir} @NTL_CFLAGS@ @MPFR_CFLAGS@ @FPLLL_CFLAGS@ @IML_CFLAGS@ @FLINT_CFLAGS@ | ||
-\------------------------------------------------------- | ||
+ | ||
-- | ||
2.26.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.