summaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2016-05-23 11:06:38 +0200
committergluster-ant <bugzilla-bot@gluster.org>2016-05-23 11:06:38 +0200
commit97822edfc5fdc1a0d36b7072e42c937100830bfa (patch)
treef884c9898216758c98fe294b1d5f853ae5f27461 /build-aux
parentdb909325d00c593bda9fea90f67d117418b4d383 (diff)
downloadglusterfs-97822edfc5fdc1a0d36b7072e42c937100830bfa.tar.gz
glusterfs-97822edfc5fdc1a0d36b7072e42c937100830bfa.tar.xz
glusterfs-97822edfc5fdc1a0d36b7072e42c937100830bfa.zip
build: include a dummy config.sub and config.guess in releases
There is no hard requirement for a config.guess and config.sub script in the release tarball. By passing --build=... and --host=... to ./configure, the scripts are not executed. When doing local builds, the ./autogen.sh script (by running automake) will place a config.guess and config.sub script in the root of the source tree. Upon creation of the release ('make dist') tarball, the scripts are replaced by dummy copies from the build-aux/ directory. The main advantage to not include these scripts in the repository, is that there is no need to track upstream updates for them either. Change-Id: I5e930988a9e849ec5d0c84d2e30e61f2a9685f45 BUG: 1223937 Reported-by: Emmanuel Dreyfus <manu@netbsd.org> Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/14503 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/config.guess.dist14
-rwxr-xr-xbuild-aux/config.sub.dist14
2 files changed, 28 insertions, 0 deletions
diff --git a/build-aux/config.guess.dist b/build-aux/config.guess.dist
new file mode 100755
index 0000000000..881ba7a043
--- /dev/null
+++ b/build-aux/config.guess.dist
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# This script is intentionally left empty. Distributions that package GlusterFS
+# may want to to replace it with an updated copy from the automake project.
+#
+
+cat << EOM
+It is not expected to execute this script. When you are building from a
+released tarball (generated with 'make dist'), you are expected to pass
+--build=... and --host=... to ./configure or replace this config.guess script
+in the sources with an updated version.
+EOM
+
+exit 0
diff --git a/build-aux/config.sub.dist b/build-aux/config.sub.dist
new file mode 100755
index 0000000000..c5a0dbad28
--- /dev/null
+++ b/build-aux/config.sub.dist
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# This script is intentionally left empty. Distributions that package GlusterFS
+# may want to to replace it with an updated copy from the automake project.
+#
+
+cat << EOM
+It is not expected to execute this script. When you are building from a
+released tarball (generated with 'make dist'), you are expected to pass
+--build=... and --host=... to ./configure or replace this config.sub script in
+the sources with an updated version.
+EOM
+
+exit 0