summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-02 17:35:25 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-02 17:35:25 (EDT)
commitd3a33b65b13532c7b0931815d10545dd4456bbb8 (patch)
tree431321bf973247f9f9d23dc3627c5c464e01bfb8 /patches
Initial commit.
Diffstat (limited to 'patches')
-rw-r--r--patches/01_better-handle-unrecognized-options.patch17
-rw-r--r--patches/02_dont-generate-mksysconf.patch17
2 files changed, 34 insertions, 0 deletions
diff --git a/patches/01_better-handle-unrecognized-options.patch b/patches/01_better-handle-unrecognized-options.patch
new file mode 100644
index 0000000..87f4f1a
--- /dev/null
+++ b/patches/01_better-handle-unrecognized-options.patch
@@ -0,0 +1,17 @@
+From: "P. J. McDermott" <pjm@nac.net>
+Description: Better handle unecognized options
+ optind needs to be incremented for every option.
+
+--- src.orig/configure 2012-11-16 15:41:08.000000000 -0500
++++ src/configure 2013-06-02 17:19:30.619119593 -0400
+@@ -256,9 +256,7 @@
+ if [ ${?} -ne 0 ]; then
+ printf 'warning: unrecognized %s name: %s\n' \
+ "${_type}" "${_opt}" >&2
+- continue
+- fi
+- if ${_optarg_set}; then
++ elif ${_optarg_set}; then
+ _opt="$(printf '%s' "${_opt}" | tr -c '[a-z0-9]' '_')"
+ eval "${_opt}"=\"\$\{_optarg\}\"
+ else
diff --git a/patches/02_dont-generate-mksysconf.patch b/patches/02_dont-generate-mksysconf.patch
new file mode 100644
index 0000000..27ece1d
--- /dev/null
+++ b/patches/02_dont-generate-mksysconf.patch
@@ -0,0 +1,17 @@
+From: "P. J. McDermott" <pjm@nac.net>
+Description: Don't generate mksysconf
+
+--- src.orig/configure 2013-06-02 17:19:30.619119593 -0400
++++ src/configure 2013-06-02 17:28:09.749967301 -0400
+@@ -329,11 +329,6 @@
+ mkdir -p "${_dir}"
+ sed "${_sed_script}" "${srcdir}/${_dir}/Makefile.in" >"${_dir}/Makefile"
+ done
+-
+- # New and improved kludge to generate system configuration for testing.
+- # TODO: Remove when no longer used.
+- sed "${_sed_script}" "${srcdir}/mksysconf.in" >'mksysconf'
+- chmod 755 'mksysconf'
+ }
+
+ main "${@}"