summaryrefslogtreecommitdiff
path: root/net/mosh/patches/patch-Makefile.in
blob: 9565f0d4b0be508ce99c097e8465050a4c9ce8df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 . \