diff options
author | schmonz <schmonz@pkgsrc.org> | 2021-05-13 10:47:49 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2021-05-13 10:47:49 +0000 |
commit | a4cf66ad8cb3f26fa3105d155ad8f607ad0eb5e8 (patch) | |
tree | a6c4354b506d2801eed1a1afc4ad9d88a23f7620 /net/mosh/patches | |
parent | e689512242ddb474e4feda1ac79805c73041be75 (diff) | |
download | pkgsrc-a4cf66ad8cb3f26fa3105d155ad8f607ad0eb5e8.tar.gz |
Work around build failure with libc++ >=7.0 on case-insensitive
filesystems (issue #1051). Fixes macOS build, at least on Big Sur.
Diffstat (limited to 'net/mosh/patches')
-rw-r--r-- | net/mosh/patches/patch-Makefile.am | 49 | ||||
-rw-r--r-- | net/mosh/patches/patch-Makefile.in | 49 | ||||
-rw-r--r-- | net/mosh/patches/patch-scripts_Makefile.am | 16 | ||||
-rw-r--r-- | net/mosh/patches/patch-scripts_Makefile.in | 18 |
4 files changed, 132 insertions, 0 deletions
diff --git a/net/mosh/patches/patch-Makefile.am b/net/mosh/patches/patch-Makefile.am new file mode 100644 index 00000000000..563b40cc35d --- /dev/null +++ b/net/mosh/patches/patch-Makefile.am @@ -0,0 +1,49 @@ +$NetBSD: patch-Makefile.am,v 1.1 2021/05/13 10:47:49 schmonz Exp $ + +Work around build failure with libc++ >=7.0 on case-insensitive +filesystems (issue #1051). + +--- Makefile.am.orig 2017-07-22 21:14:53.000000000 +0000 ++++ Makefile.am +@@ -5,29 +5,29 @@ BUILT_SOURCES = version.h + CLANG_SCAN_BUILD = scan-build + AM_DISTCHECK_CONFIGURE_FLAGS = --enable-compile-warnings=distcheck --enable-examples + +-.PHONY: VERSION ++.PHONY: case-insensitive-VERSION + +-VERSION: +- @echo @PACKAGE_STRING@ > VERSION.dist +- @set -e; if git describe --dirty --always > VERSION.git 2>&1 && \ ++case-insensitive-VERSION: ++ @echo @PACKAGE_STRING@ > case-insensitive-VERSION.dist ++ @set -e; if git describe --dirty --always > case-insensitive-VERSION.git 2>&1 && \ + [ -z `git rev-parse --show-prefix` ]; then \ +- if ! diff -q VERSION.git VERSION > /dev/null 2>&1; then \ +- mv -f VERSION.git VERSION; \ ++ if ! diff -q case-insensitive-VERSION.git case-insensitive-VERSION > /dev/null 2>&1; then \ ++ mv -f case-insensitive-VERSION.git case-insensitive-VERSION; \ + fi; \ +- elif ! diff -q VERSION.dist VERSION > /dev/null 2>&1; then \ +- mv -f VERSION.dist VERSION; \ ++ elif ! diff -q case-insensitive-VERSION.dist case-insensitive-VERSION > /dev/null 2>&1; then \ ++ mv -f case-insensitive-VERSION.dist case-insensitive-VERSION; \ + fi +- @rm -f VERSION.dist VERSION.git ++ @rm -f case-insensitive-VERSION.dist case-insensitive-VERSION.git + +-version.h: VERSION +- @printf '#define BUILD_VERSION "%s"\n' "$$(cat VERSION)" > version.h.new ++version.h: case-insensitive-VERSION ++ @printf '#define BUILD_VERSION "%s"\n' "$$(cat case-insensitive-VERSION)" > version.h.new + @set -e; if ! diff -q version.h version.h.new > /dev/null 2>&1; then \ + mv -f version.h.new version.h; \ + fi + @rm -f version.h.new + + clean-local: +- @rm -rf version.h VERSION cov-int mosh-coverity.txz ++ @rm -rf version.h case-insensitive-VERSION cov-int mosh-coverity.txz + + cppcheck: $(BUILT_SOURCES) config.h + cppcheck --enable=all --template=gcc -include config.h -I . \ diff --git a/net/mosh/patches/patch-Makefile.in b/net/mosh/patches/patch-Makefile.in new file mode 100644 index 00000000000..9565f0d4b0b --- /dev/null +++ b/net/mosh/patches/patch-Makefile.in @@ -0,0 +1,49 @@ +$NetBSD: patch-Makefile.in,v 1.1 2021/05/13 10:47:49 schmonz Exp $ + +Work around build failure with libc++ >=7.0 on case-insensitive +filesystems (issue #1051). + +--- Makefile.in.orig 2017-07-22 21:15:12.000000000 +0000 ++++ Makefile.in +@@ -805,29 +805,29 @@ uninstall-am: + .PRECIOUS: Makefile + + +-.PHONY: VERSION ++.PHONY: case-insensitive-VERSION + +-VERSION: +- @echo @PACKAGE_STRING@ > VERSION.dist +- @set -e; if git describe --dirty --always > VERSION.git 2>&1 && \ ++case-insensitive-VERSION: ++ @echo @PACKAGE_STRING@ > case-insensitive-VERSION.dist ++ @set -e; if git describe --dirty --always > case-insensitive-VERSION.git 2>&1 && \ + [ -z `git rev-parse --show-prefix` ]; then \ +- if ! diff -q VERSION.git VERSION > /dev/null 2>&1; then \ +- mv -f VERSION.git VERSION; \ ++ if ! diff -q case-insensitive-VERSION.git case-insensitive-VERSION > /dev/null 2>&1; then \ ++ mv -f case-insensitive-VERSION.git case-insensitive-VERSION; \ + fi; \ +- elif ! diff -q VERSION.dist VERSION > /dev/null 2>&1; then \ +- mv -f VERSION.dist VERSION; \ ++ elif ! diff -q case-insensitive-VERSION.dist case-insensitive-VERSION > /dev/null 2>&1; then \ ++ mv -f case-insensitive-VERSION.dist case-insensitive-VERSION; \ + fi +- @rm -f VERSION.dist VERSION.git ++ @rm -f case-insensitive-VERSION.dist case-insensitive-VERSION.git + +-version.h: VERSION +- @printf '#define BUILD_VERSION "%s"\n' "$$(cat VERSION)" > version.h.new ++version.h: case-insensitive-VERSION ++ @printf '#define BUILD_VERSION "%s"\n' "$$(cat case-insensitive-VERSION)" > version.h.new + @set -e; if ! diff -q version.h version.h.new > /dev/null 2>&1; then \ + mv -f version.h.new version.h; \ + fi + @rm -f version.h.new + + clean-local: +- @rm -rf version.h VERSION cov-int mosh-coverity.txz ++ @rm -rf version.h case-insensitive-VERSION cov-int mosh-coverity.txz + + cppcheck: $(BUILT_SOURCES) config.h + cppcheck --enable=all --template=gcc -include config.h -I . \ diff --git a/net/mosh/patches/patch-scripts_Makefile.am b/net/mosh/patches/patch-scripts_Makefile.am new file mode 100644 index 00000000000..803a7af111c --- /dev/null +++ b/net/mosh/patches/patch-scripts_Makefile.am @@ -0,0 +1,16 @@ +$NetBSD: patch-scripts_Makefile.am,v 1.1 2021/05/13 10:47:49 schmonz Exp $ + +Work around build failure with libc++ >=7.0 on case-insensitive +filesystems (issue #1051). + +--- scripts/Makefile.am.orig 2017-07-22 21:14:53.000000000 +0000 ++++ scripts/Makefile.am +@@ -4,6 +4,6 @@ if BUILD_CLIENT + endif + CLEANFILES = $(bin_SCRIPTS) + +-mosh: mosh.pl ../VERSION Makefile +- @sed -e "s/\@VERSION\@/`cat ../VERSION`/" -e "s/\@PACKAGE_STRING\@/@PACKAGE_STRING@/" $(srcdir)/mosh.pl > mosh ++mosh: mosh.pl ../case-insensitive-VERSION Makefile ++ @sed -e "s/\@VERSION\@/`cat ../case-insensitive-VERSION`/" -e "s/\@PACKAGE_STRING\@/@PACKAGE_STRING@/" $(srcdir)/mosh.pl > mosh + @chmod a+x mosh diff --git a/net/mosh/patches/patch-scripts_Makefile.in b/net/mosh/patches/patch-scripts_Makefile.in new file mode 100644 index 00000000000..08c71263164 --- /dev/null +++ b/net/mosh/patches/patch-scripts_Makefile.in @@ -0,0 +1,18 @@ +$NetBSD: patch-scripts_Makefile.in,v 1.1 2021/05/13 10:47:49 schmonz Exp $ + +Work around build failure with libc++ >=7.0 on case-insensitive +filesystems (issue #1051). + +--- scripts/Makefile.in.orig 2017-07-22 21:15:12.000000000 +0000 ++++ scripts/Makefile.in +@@ -513,8 +513,8 @@ uninstall-am: uninstall-binSCRIPTS + .PRECIOUS: Makefile + + +-mosh: mosh.pl ../VERSION Makefile +- @sed -e "s/\@VERSION\@/`cat ../VERSION`/" -e "s/\@PACKAGE_STRING\@/@PACKAGE_STRING@/" $(srcdir)/mosh.pl > mosh ++mosh: mosh.pl ../case-insensitive-VERSION Makefile ++ @sed -e "s/\@VERSION\@/`cat ../case-insensitive-VERSION`/" -e "s/\@PACKAGE_STRING\@/@PACKAGE_STRING@/" $(srcdir)/mosh.pl > mosh + @chmod a+x mosh + + # Tell versions [3.59,3.63) of GNU make to not export all variables. |