pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/miniupnpc



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jun 10 16:45:22 UTC 2021

Modified Files:
        pkgsrc/net/miniupnpc: distinfo
        pkgsrc/net/miniupnpc/patches: patch-Makefile

Log Message:
miniupnpc: Hack around build failure on NetBSD

sed 's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\117/' < miniupnpc.h.bak > miniupnpc.h
sed: 1: "s/\(.*MINIUPNPC_API_VER ...": RE error: trailing backslash (\)

I held back on updating this package because of exactly this error...


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/net/miniupnpc/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/net/miniupnpc/patches/patch-Makefile

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

Modified files:

Index: pkgsrc/net/miniupnpc/distinfo
diff -u pkgsrc/net/miniupnpc/distinfo:1.6 pkgsrc/net/miniupnpc/distinfo:1.7
--- pkgsrc/net/miniupnpc/distinfo:1.6   Fri Jun  4 18:57:46 2021
+++ pkgsrc/net/miniupnpc/distinfo       Thu Jun 10 16:45:22 2021
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.6 2021/06/04 18:57:46 adam Exp $
+$NetBSD: distinfo,v 1.7 2021/06/10 16:45:22 nia Exp $
 
 SHA1 (miniupnpc-2.2.2.tar.gz) = a8e4415d99a9bee9321cb5fc30ac1d048d602af5
 RMD160 (miniupnpc-2.2.2.tar.gz) = 8818a5a5c607618cceaa11780287c25f4e2101fa
 SHA512 (miniupnpc-2.2.2.tar.gz) = d322ae2a99faf01bee52f50a40d4bc2150c67a2f7e15b6078fe92faf2aecfe7ce10bd98cef3d94a77f6f7d1f7d8451cf4cdbf6fe11c9e7c1854ee066300b0116
 Size (miniupnpc-2.2.2.tar.gz) = 100008 bytes
-SHA1 (patch-Makefile) = 646f3747de66e8451667411ad605877e61fd6c32
+SHA1 (patch-Makefile) = ff725105ef51547e586f705d47cdc4eb2cf52e51
 SHA1 (patch-minissdpc.c) = 183fcebe7a94acb596db6ef03ee7663532808108
 SHA1 (patch-miniwget.c) = 6bf80bc09af904c10a9ad1dc226115070860cf11
 SHA1 (patch-upnpc.c) = 65a0f801de3ce41aa74a143c112e0dbd4a972dcb

Index: pkgsrc/net/miniupnpc/patches/patch-Makefile
diff -u pkgsrc/net/miniupnpc/patches/patch-Makefile:1.3 pkgsrc/net/miniupnpc/patches/patch-Makefile:1.4
--- pkgsrc/net/miniupnpc/patches/patch-Makefile:1.3     Wed Oct  3 22:27:05 2018
+++ pkgsrc/net/miniupnpc/patches/patch-Makefile Thu Jun 10 16:45:22 2021
@@ -1,9 +1,10 @@
-$NetBSD: patch-Makefile,v 1.3 2018/10/03 22:27:05 nia Exp $
+$NetBSD: patch-Makefile,v 1.4 2021/06/10 16:45:22 nia Exp $
 
 Do not pick pkgsrc libtool on Darwin.
 Use correct installation dirs.
+Avoid non-portable sed in updateversion.
 
---- Makefile.orig      2018-04-06 10:53:30.000000000 +0000
+--- Makefile.orig      2020-11-27 18:25:02.000000000 +0000
 +++ Makefile
 @@ -15,7 +15,7 @@ VERSION = $(shell cat VERSION)
  
@@ -14,7 +15,7 @@ Use correct installation dirs.
  endif
  ifneq (, $(findstring linux, $(OS)))
  JARSUFFIX=linux
-@@ -149,7 +149,7 @@ endif
+@@ -155,7 +155,7 @@ endif
  INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc
  INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR)
  INSTALLDIRBIN = $(INSTALLPREFIX)/bin
@@ -23,3 +24,12 @@ Use correct installation dirs.
  PKGCONFIGDIR = $(INSTALLDIRLIB)/pkgconfig
  
  FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
+@@ -242,7 +242,7 @@ updateversion:     miniupnpc.h
+       cp miniupnpc.h miniupnpc.h.bak
+       sed 's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\1$(APIVERSION)/' < miniupnpc.h.bak > miniupnpc.h
+ 
+-install:      updateversion $(FILESTOINSTALL)
++install:      $(FILESTOINSTALL)
+       $(INSTALL) -d $(DESTDIR)$(INSTALLDIRINC)
+       $(INSTALL) -m 644 $(HEADERS) $(DESTDIR)$(INSTALLDIRINC)
+       $(INSTALL) -d $(DESTDIR)$(INSTALLDIRLIB)



Home | Main Index | Thread Index | Old Index