Commit Graph

17 Commits

Author SHA1 Message Date
0xb10c fc6c17b838
build: make sure we can overwrite config.{guess,sub}
Since ea7b8528 (#26422), autogen.sh overwrites the
build-aux/config.{guess, sub} files (installed there by autoreconf)
with the depends/config.{guess, sub} files if these are newer.

The autoreconf tool copies them from it's share/autoconf/build-aux/
directory. Specifically on NixOS, the share/autoconf/build-aux/
files are located in the nix-store and are read-only. autoreconf
preserves the read-only permissions when copying. Overwriting them
with our depends/config.{guess, sub} subsequently fails.

To make sure we can overwrite the files, we set write permissions to
the current user and group before overwriting. This fixes the problem
on NixOS.

fixes #27873: Can't copy to 'build-aux/config.guess' in autoconf.sh: Permission denied
2023-06-13 14:58:43 +02:00
Hennadii Stepanov ea7b852849
build: Use newest `config.{guess,sub}` available 2023-04-23 11:26:11 +01:00
MarcoFalke aaaaad6ac9
scripted-diff: Bump copyright of files changed in 2019
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2019-12-30 10:42:20 +13:00
Ava Barron dd85166b6c
Added double quotes
Added double quotes to prevent globbing and word splitting.
2019-10-07 17:02:46 -04:00
Hennadii Stepanov 1ac454a384
Enable ShellCheck rules
Enabled ShellCheck rules:
  SC1087
  SC2001
  SC2004
  SC2005
  SC2006
  SC2016
  SC2028
  SC2048
  SC2066 (note that IFS already contains only a line feed)
  SC2116
  SC2166
  SC2181
  SC2206
  SC2207
  SC2230
  SC2236
2019-07-04 19:35:25 +03:00
practicalswift 3352da8da1 Add "export LC_ALL=C" to all shell scripts 2018-06-14 15:27:52 +02:00
Luke Dashjr 3b4b6dcdd7 Add MIT license to autogen.sh and share/genbuild.sh 2016-09-21 23:01:36 +00:00
Andrés G. Aragoneses 889426d37e autogen.sh: warn about needing autoconf if autoreconf is not found
Changes the error message from:
./autogen.sh: 9: ./autogen.sh: autoreconf: not found

To:
configuration failed, please install autoconf first
2016-02-13 04:44:42 +08:00
Luke Dashjr b77b4eda8d Bugfix: Replace bashisms with standard sh to fix build on non-BASH systems 2014-10-03 23:45:26 +00:00
randy-waterhouse e54381117a Add warnings for autogen.sh. Fix AC_CONFIG_SRCDIR. 2014-09-16 23:17:20 +12:00
Cory Fields b150b09edc secp256k1: add libtool as a dependency 2014-07-01 12:27:15 -04:00
Josh Triplett 82ccb05b07 autogen.sh: Stop passing --verbose to autoreconf
This quiets down the autotools build, making warnings much more visible.
2013-11-27 17:29:00 -08:00
Josh Triplett e12dafd7bb autogen.sh: Use long options to autoreconf, for self-documentation 2013-11-27 17:27:16 -08:00
Josh Triplett 19b9adda52 autogen.sh: Support running from outside the source directory
Initial steps towards supporting out-of-tree builds.
2013-11-27 17:25:58 -08:00
Josh Triplett 97d285ab51 autogen.sh: Use set -e to fail if any command fails
In preparation for expanding autogen.sh.
2013-11-27 17:24:26 -08:00
Josh Triplett f80b723c66 autogen.sh: Add a /bin/sh shebang. 2013-11-27 17:21:40 -08:00
Cory Fields 35b8af9226 autotools: switch to autotools buildsystem 2013-09-05 21:31:03 -04:00