pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/misc/libgourou
Module Name: pkgsrc
Committed By: wiz
Date: Sun Nov 29 13:04:45 UTC 2026
Modified Files:
pkgsrc/misc/libgourou: distinfo
pkgsrc/misc/libgourou/patches: patch-Makefile
Added Files:
pkgsrc/misc/libgourou/patches: patch-utils_Makefile
Log Message:
libgourou: use upstream version of install fix
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/misc/libgourou/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/misc/libgourou/patches/patch-Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/libgourou/patches/patch-utils_Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/misc/libgourou/distinfo
diff -u pkgsrc/misc/libgourou/distinfo:1.2 pkgsrc/misc/libgourou/distinfo:1.3
--- pkgsrc/misc/libgourou/distinfo:1.2 Sun Nov 22 18:21:29 2026
+++ pkgsrc/misc/libgourou/distinfo Sun Nov 29 13:04:45 2026
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2026/11/22 18:21:29 wiz Exp $
+$NetBSD: distinfo,v 1.3 2026/11/29 13:04:45 wiz Exp $
BLAKE2s (libgourou/v0.9.tar.gz) = e5234e18597a6dcfd4082b52650d2992c51eaa8ec0dce1f19588d93f65a79930
SHA512 (libgourou/v0.9.tar.gz) = 9d1804efcc66689e3dda3060443cdfce16a553770e8e973c3eb990845076879beaf78a8ebf9d1b496defbcaf4c602d8528f0e214242ec02f146e13c187e40c7b
Size (libgourou/v0.9.tar.gz) = 55613 bytes
-SHA1 (patch-Makefile) = 2a567f495014c9afe4f6d5e85d5a395bc72e995c
+SHA1 (patch-Makefile) = 2a375baa312a2592e433bec326e06fcca5721a6c
+SHA1 (patch-utils_Makefile) = 48f253b3c78675baea637fa7a1cf83aa5e69817b
Index: pkgsrc/misc/libgourou/patches/patch-Makefile
diff -u pkgsrc/misc/libgourou/patches/patch-Makefile:1.2 pkgsrc/misc/libgourou/patches/patch-Makefile:1.3
--- pkgsrc/misc/libgourou/patches/patch-Makefile:1.2 Sun Nov 22 18:21:29 2026
+++ pkgsrc/misc/libgourou/patches/patch-Makefile Sun Nov 29 13:04:45 2026
@@ -1,16 +1,100 @@
-$NetBSD: patch-Makefile,v 1.2 2026/11/22 18:21:29 wiz Exp $
+$NetBSD: patch-Makefile,v 1.3 2026/11/29 13:04:45 wiz Exp $
-Avoid unportable cp(1) flag.
-https://forge.soutade.fr/soutade/libgourou/issues/35
+https://forge.soutade.fr/soutade/libgourou/commit/a3e5936143dd50a4aec0ba3c85d6e68d93b9d141
--- Makefile.orig 2026-11-08 19:27:52.000000000 +0000
+++ Makefile
-@@ -107,7 +107,7 @@ install: $(TARGET_LIBRARIES)
- install: $(TARGET_LIBRARIES)
+@@ -1,10 +1,20 @@ INCDIR ?= /include
+ PREFIX ?= /usr/local
+ LIBDIR ?= /lib
+ INCDIR ?= /include
+-
+ AR ?= $(CROSS)ar
+ CXX ?= $(CROSS)g++
+
++UNAME := $(shell uname -s)
++
++CP :=cp
++ifeq ($(UNAME),Linux)
++CP :=cp --no-dereference
++endif
++BSD=$(findstring BSD, $(UNAME))
++ifneq ($(BSD),)
++CP :=cp -R
++endif
++
+ UPDFPARSERLIB = ./lib/updfparser/libupdfparser.a
+
+ CXXFLAGS += -Wall -fPIC -I./include -I./usr/include/pugixml -I./lib/updfparser/include
+@@ -15,8 +25,6 @@ SOVERSION := 0
+ # symbol, changed class layout or virtual table...)
+ SOVERSION := 0
+
+-UNAME := $(shell uname -s)
+-
+ BUILD_STATIC ?= 0
+ BUILD_SHARED ?= 1
+ BUILD_UTILS ?= 1
+@@ -63,6 +71,8 @@ OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(
+ SOURCES = src/libgourou.cpp src/user.cpp src/device.cpp src/fulfillment_item.cpp src/loan_token.cpp src/bytearray.cpp
+ OBJECTS := $(patsubst $(SRCDIR)/%,$(BUILDDIR)/%,$(SOURCES:.$(SRCEXT)=.$(OBJEXT)))
+
++MAKE_UTILS := $(MAKE) -C utils ROOT=$(CURDIR) CXX=$(CXX) AR=$(AR) DEBUG=$(DEBUG) STATIC_UTILS=$(STATIC_UTILS) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
++
+ all: version lib obj $(TARGETS)
+
+ version:
+@@ -81,7 +91,7 @@ $(BUILDDIR)/%.$(OBJEXT): $(SRCDIR)/%.$(SRCEXT)
+ $(BUILDDIR)/%.$(OBJEXT): $(SRCDIR)/%.$(SRCEXT)
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $^ -o $@
+
+-libgourou: $(TARGET_LIBRARIES)
++libgourou: $(TARGETS)
+
+ libgourou.a: $(OBJECTS) $(UPDFPARSERLIB)
+ $(AR) rcs --thin $@ $^
+@@ -101,31 +111,30 @@ libgourou.dylib: libgourou.dylib.$(VERSION)
+ libgourou.dylib: libgourou.dylib.$(VERSION)
+ ln -f -s $^ $@
+
+-build_utils: $(TARGET_LIBRARIES)
+- $(MAKE) -C utils ROOT=$(PWD) CXX=$(CXX) AR=$(AR) DEBUG=$(DEBUG) STATIC_UTILS=$(STATIC_UTILS) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX)
++build_utils: $(TARGETS)
++ $(MAKE_UTILS)
+
+-install: $(TARGET_LIBRARIES)
++install: $(TARGETS)
install -d $(DESTDIR)$(PREFIX)$(LIBDIR)
- # Use cp to preserver symlinks
+-# Use cp to preserver symlinks
- cp --no-dereference $(TARGET_LIBRARIES) $(DESTDIR)$(PREFIX)$(LIBDIR)
-+ cp -P $(TARGET_LIBRARIES) $(DESTDIR)$(PREFIX)$(LIBDIR)
- $(MAKE) -C utils ROOT=$(PWD) CXX=$(CXX) AR=$(AR) DEBUG=$(DEBUG) STATIC_UTILS=$(STATIC_UTILS) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
+- $(MAKE) -C utils ROOT=$(PWD) CXX=$(CXX) AR=$(AR) DEBUG=$(DEBUG) STATIC_UTILS=$(STATIC_UTILS) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install
++# Use cp to preserve symlinks
++ $(CP) $(TARGET_LIBRARIES) $(DESTDIR)$(PREFIX)$(LIBDIR)
++ $(MAKE_UTILS) $@
+
+-uninstall:
+- cd $(DESTDIR)$(PREFIX)/$(LIBDIR)
+- rm -f $(TARGET_LIBRARIES) libgourou.so.$(VERSION)
+- cd -
+-
+ install_headers:
+ install -d $(DESTDIR)$(PREFIX)/$(INCDIR)/libgourou
+- cp --no-dereference include/*.h $(DESTDIR)$(PREFIX)/$(INCDIR)/libgourou
++ $(CP) include/*.h $(DESTDIR)$(PREFIX)/$(INCDIR)/libgourou
+
++uninstall: uninstall_headers
++ cd $(DESTDIR)$(PREFIX)/$(LIBDIR) && rm -f $(TARGET_LIBRARIES)
++ $(MAKE_UTILS) $@
++
+ uninstall_headers:
+ rm -rf $(DESTDIR)$(PREFIX)/$(INCDIR)/libgourou
+
+ clean:
+ rm -rf libgourou.a libgourou.so libgourou.so.$(SOVERSION) libgourou.so.$(VERSION)* obj
+- $(MAKE) -C utils clean
++ $(MAKE_UTILS) $@
- uninstall:
+ ultraclean: clean
+ rm -rf lib
+- $(MAKE) -C utils ultraclean
++ $(MAKE_UTILS) $@
Added files:
Index: pkgsrc/misc/libgourou/patches/patch-utils_Makefile
diff -u /dev/null pkgsrc/misc/libgourou/patches/patch-utils_Makefile:1.1
--- /dev/null Sun Nov 29 13:04:45 2026
+++ pkgsrc/misc/libgourou/patches/patch-utils_Makefile Sun Nov 29 13:04:45 2026
@@ -0,0 +1,20 @@
+$NetBSD: patch-utils_Makefile,v 1.1 2026/11/29 13:04:45 wiz Exp $
+
+https://forge.soutade.fr/soutade/libgourou/commit/a3e5936143dd50a4aec0ba3c85d6e68d93b9d141
+
+--- utils/Makefile.orig 2026-11-08 19:27:52.000000000 +0000
++++ utils/Makefile
+@@ -45,11 +45,8 @@ uninstall:
+ install -m 644 man/*.1 $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
+
+ uninstall:
+- cd $(DESTDIR)$(PREFIX)/$(BINDIR)
+- rm -f $(TARGET_BINARIES)
+- cd -
+- cd $(DESTDIR)$(PREFIX)/$(MANDIR)/man1
+- rm -f $(addsuffix .1,$(TARGET_BINARIES)
++ cd $(DESTDIR)$(PREFIX)/$(BINDIR) && rm -f $(TARGET_BINARIES)
++ cd $(DESTDIR)$(PREFIX)/$(MANDIR)/man1 && rm -f $(addsuffix .1,$(TARGET_BINARIES))
+
+ clean:
+ rm -f $(TARGETS) $(COMMON_LIB)
Home |
Main Index |
Thread Index |
Old Index