pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

proj: Add patch to remediate bashism



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%lexort.com@localhost>
Pushed By:	gdt
Date:		Tue Mar 10 12:00:01 2020 -0400
Changeset:	ae453ae6ab84e1b84cc52253bb1510ebe3580e02

Modified Files:
	proj/distinfo
Added Files:
	proj/patches/patch-data_Makefile.in

Log Message:
proj: Add patch to remediate bashism

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ae453ae6ab84e1b84cc52253bb1510ebe3580e02

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 proj/distinfo                       |  1 +
 proj/patches/patch-data_Makefile.in | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diffs:
diff --git a/proj/distinfo b/proj/distinfo
index 799d8754a2..42f0b2fdd2 100644
--- a/proj/distinfo
+++ b/proj/distinfo
@@ -24,3 +24,4 @@ SHA1 (proj-datumgrid-world-1.0.tar.gz) = b66863826b2387f28c860abf2c6ee2366b96708
 RMD160 (proj-datumgrid-world-1.0.tar.gz) = a21a6320eb7da3bbf72b7ad685a08255b8f9663d
 SHA512 (proj-datumgrid-world-1.0.tar.gz) = 9f79f4c24f1a4a472f2747e4bb147c7140a92f3043b283f2a0326775393ebb39f634f2715a4d085dc33eabbbed4c3fb1871753ecf6c238c179ac0bbe83b9ca3e
 Size (proj-datumgrid-world-1.0.tar.gz) = 134373680 bytes
+SHA1 (patch-data_Makefile.in) = 41d5e2a9abbe1fef5036a427c45c4b838c4c373a
diff --git a/proj/patches/patch-data_Makefile.in b/proj/patches/patch-data_Makefile.in
new file mode 100644
index 0000000000..5da0dcc1fd
--- /dev/null
+++ b/proj/patches/patch-data_Makefile.in
@@ -0,0 +1,20 @@
+$NetBSD$
+
+Remediate bashism.
+
+Posted about on mailing list 20200310.
+\todo File bug and pull request to fix.
+\todo File pull request to adjust upstream standards.
+\todo File bug that CI doesn't detect bashisms.
+
+--- data/Makefile.in.orig	2020-02-10 10:16:34.000000000 +0000
++++ data/Makefile.in
+@@ -594,7 +594,7 @@ proj.db: $(DATAPATH)/sql/*.sql
+ 	echo "" | head -c1; \
+         if [ $$? -eq 0 ] ; then \
+          echo "Running foreign_key_check"; \
+-	 if [[ $$(echo "pragma foreign_key_check;" | sqlite3 proj.db | head -c1 | wc -c) -ne 0 ]]; then \
++	 if [ $$(echo "pragma foreign_key_check;" | sqlite3 proj.db | head -c1 | wc -c) -ne 0 ]; then \
+ 		echo "Foreign key check failed"; \
+ 		$(RM) proj.db; \
+ 		exit 1; \


Home | Main Index | Thread Index | Old Index