pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/cparser Fix broken build of lang/cparser; escapin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/339d0e80d210
branches:  trunk
changeset: 771744:339d0e80d210
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sat Dec 25 21:45:42 2021 +0000

description:
Fix broken build of lang/cparser; escaping hashes in gmake broke

diffstat:

 lang/cparser/distinfo         |   4 ++--
 lang/cparser/patches/patch-aa |  18 +++++++++++++++---
 2 files changed, 17 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r c4dd29047380 -r 339d0e80d210 lang/cparser/distinfo
--- a/lang/cparser/distinfo     Sat Dec 25 21:34:12 2021 +0000
+++ b/lang/cparser/distinfo     Sat Dec 25 21:45:42 2021 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:51:32 nia Exp $
+$NetBSD: distinfo,v 1.10 2021/12/25 21:45:42 dholland Exp $
 
 BLAKE2s (cparser-0.9.14.tar.bz2) = e60945b7527dfef5494cc174f790ae2ec068bc5796ff5a7f92b3b82150131868
 SHA512 (cparser-0.9.14.tar.bz2) = 1bd436c9e2a36cb60341c62e9bb65e16dbc5f777918c3f43795c36321a5a8ce4cdf261469c2e45e329cd8560ccec44becffab2f924cd9d9bd9ff2d46d93ca4e9
 Size (cparser-0.9.14.tar.bz2) = 193745 bytes
-SHA1 (patch-aa) = 9f1f39561a6ffdaeb9dfc3d64934e8cdca501e3b
+SHA1 (patch-aa) = 0a4aad62586804811f4feea5356d3da136ddf036
diff -r c4dd29047380 -r 339d0e80d210 lang/cparser/patches/patch-aa
--- a/lang/cparser/patches/patch-aa     Sat Dec 25 21:34:12 2021 +0000
+++ b/lang/cparser/patches/patch-aa     Sat Dec 25 21:45:42 2021 +0000
@@ -1,7 +1,8 @@
-$NetBSD: patch-aa,v 1.5 2015/12/29 23:34:45 dholland Exp $
+$NetBSD: patch-aa,v 1.6 2021/12/25 21:45:43 dholland Exp $
 
 Configure for pkgsrc.
 Use libtool.
+Fix escaping creating revision.h.
 
 --- Makefile.orig      2012-11-21 17:50:43.000000000 +0000
 +++ Makefile
@@ -33,7 +34,18 @@
  
  Q = @
  
-@@ -113,7 +113,7 @@ UNUSED := $(shell mkdir -p $(DIRS) $(DIR
+@@ -103,8 +103,9 @@ config.h:
+ REVISION ?= $(shell git describe --abbrev=40 --always --dirty --match '')
+ 
+ # Update revision.h if necessary
++HASH=\#
+ UNUSED := $(shell \
+-      REV="\#define cparser_REVISION \"$(REVISION)\""; \
++      REV="${HASH}define cparser_REVISION \"$(REVISION)\""; \
+       echo "$$REV" | cmp -s - revision.h 2> /dev/null || echo "$$REV" > revision.h \
+ )
+ 
+@@ -113,7 +114,7 @@ UNUSED := $(shell mkdir -p $(DIRS) $(DIR
  
  $(GOAL): $(LIBFIRM_FILE) $(cparser_OBJECTS)
        @echo "===> LD $@"
@@ -42,7 +54,7 @@
  
  ifneq ("$(LIBFIRM_FILE)", "")
  ifneq ("$(MAKECMDGOALS)", "clean")
-@@ -144,33 +144,33 @@ bootstrap2: cparser.bootstrap2
+@@ -144,33 +145,33 @@ bootstrap2: cparser.bootstrap2
        @echo '===> CPARSER $<'
        $(Q)./cparser $(CPPFLAGS) -fsyntax-only $<
  



Home | Main Index | Thread Index | Old Index