[arch-commits] Commit in openzwave/repos/community-x86_64 (4 files)

Antonio Rojas arojas at gemini.archlinux.org
Sat Mar 12 12:33:07 UTC 2022


    Date: Saturday, March 12, 2022 @ 12:33:07
  Author: arojas
Revision: 1149913

archrelease: copy trunk to community-x86_64

Added:
  openzwave/repos/community-x86_64/PKGBUILD
    (from rev 1149912, openzwave/trunk/PKGBUILD)
  openzwave/repos/community-x86_64/openzwave-system-libs.patch
    (from rev 1149912, openzwave/trunk/openzwave-system-libs.patch)
Deleted:
  openzwave/repos/community-x86_64/PKGBUILD
  openzwave/repos/community-x86_64/openzwave-system-libs.patch

-----------------------------+
 PKGBUILD                    |  112 ++++++++++++------------
 openzwave-system-libs.patch |  196 +++++++++++++++++++++---------------------
 2 files changed, 155 insertions(+), 153 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-12 12:32:55 UTC (rev 1149912)
+++ PKGBUILD	2022-03-12 12:33:07 UTC (rev 1149913)
@@ -1,55 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Jameson Pugh <imntreal at gmail.com>
-
-pkgname=openzwave
-pkgver=1.6
-pkgrel=4
-pkgdesc='A C++ library to control Z-Wave Networks via a USB Z-Wave Controller'
-arch=(x86_64)
-url=http://www.openzwave.net
-license=(LGPL3)
-depends=(
-  bash
-  gcc-libs
-  glibc
-  libhidapi-libusb.so
-  libusb-1.0.so
-  tinyxml
-)
-makedepends=(
-  doxygen
-  git
-)
-_tag=890f24b7e88f488eee464ed14c01fbceb276cf2a
-source=(
-  git+https://github.com/OpenZWave/open-zwave.git#tag=${_tag}
-  openzwave-system-libs.patch
-)
-b2sums=(
-  SKIP
-  56095ee16bb04184b2bf037d7601bc5431c654e1328cd1ad63f1fcb7d6918bcd65ef4ab30ee2c80f3bf3c50e838f5818d23e9d01569e41125e9e68028d021c59
-)
-
-pkgver() {
-  cd open-zwave
-
-  git describe --tags | sed 's/^v//'
-}
-
-prepare() {
-  cd open-zwave
-
-  patch -Np1 -i ../openzwave-system-libs.patch
-}
-
-build() {
-  export CFLAGS="$CFLAGS -Wno-stringop-truncation -Wno-maybe-uninitialized"
-  export CXXFLAGS="$CXXFLAGS -Wno-stringop-truncation -Wno-maybe-uninitialized"
-  make -C open-zwave
-}
-
-package() {
-  make DESTDIR="${pkgdir}" PREFIX=/usr instlibdir=usr/lib/ sysconfdir=etc/openzwave -C open-zwave install
-}
-
-# vim: ts=2 sw=2 et:

Copied: openzwave/repos/community-x86_64/PKGBUILD (from rev 1149912, openzwave/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-12 12:33:07 UTC (rev 1149913)
@@ -0,0 +1,57 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Jameson Pugh <imntreal at gmail.com>
+
+pkgname=openzwave
+pkgver=1.6
+pkgrel=5
+pkgdesc='A C++ library to control Z-Wave Networks via a USB Z-Wave Controller'
+arch=(x86_64)
+url=http://www.openzwave.net
+license=(LGPL3)
+depends=(
+  bash
+  gcc-libs
+  glibc
+  libhidapi-libusb.so
+  libusb-1.0.so
+  tinyxml
+)
+makedepends=(
+  doxygen
+  git
+)
+_tag=890f24b7e88f488eee464ed14c01fbceb276cf2a
+source=(
+  git+https://github.com/OpenZWave/open-zwave.git#tag=${_tag}
+  openzwave-system-libs.patch
+)
+b2sums=(
+  SKIP
+  56095ee16bb04184b2bf037d7601bc5431c654e1328cd1ad63f1fcb7d6918bcd65ef4ab30ee2c80f3bf3c50e838f5818d23e9d01569e41125e9e68028d021c59
+)
+
+pkgver() {
+  cd open-zwave
+
+  git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+  cd open-zwave
+
+  patch -Np1 -i ../openzwave-system-libs.patch
+  sed -e 's/-Werror//' -i cpp/build/Makefile
+  find -name Makefile | xargs sed -e 's/-Wno-format//' -i
+}
+
+build() {
+  export CFLAGS="$CFLAGS -Wno-stringop-truncation -Wno-maybe-uninitialized -Wformat"
+  export CXXFLAGS="$CXXFLAGS -Wno-stringop-truncation -Wno-maybe-uninitialized -Wformat"
+  make -C open-zwave
+}
+
+package() {
+  make DESTDIR="${pkgdir}" PREFIX=/usr instlibdir=usr/lib/ sysconfdir=etc/openzwave -C open-zwave install
+}
+
+# vim: ts=2 sw=2 et:

Deleted: openzwave-system-libs.patch
===================================================================
--- openzwave-system-libs.patch	2022-03-12 12:32:55 UTC (rev 1149912)
+++ openzwave-system-libs.patch	2022-03-12 12:33:07 UTC (rev 1149913)
@@ -1,98 +0,0 @@
-diff -rupN open-zwave.orig/cpp/build/Makefile open-zwave/cpp/build/Makefile
---- open-zwave.orig/cpp/build/Makefile	2019-07-18 09:49:01.185154576 +0200
-+++ open-zwave/cpp/build/Makefile	2019-07-18 09:58:36.413855845 +0200
-@@ -23,7 +23,7 @@ DEBUG_LDFLAGS	:= -g
- 
- #default Libraries we should link with
- ifneq ($(UNAME),FreeBSD)
--LIBS += -lresolv
-+LIBS += -lresolv -ltinyxml
- endif
- 
- top_srcdir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../)
-@@ -84,47 +84,19 @@ endif
- #where to put the temporary library
- LIBDIR	?= $(top_builddir)
- 
--INCLUDES	:= -I $(top_srcdir)/cpp/src -I $(top_srcdir)/cpp/tinyxml/
-+INCLUDES	:= -I $(top_srcdir)/cpp/src
- 
- 
- ifeq ($(USE_HID),1)
--INCLUDES += -I $(top_srcdir)/cpp/hidapi/hidapi/
-+INCLUDES += -I /usr/include/hidapi/
- CFLAGS += -DUSE_HID
--
--ifeq ($(UNAME),Darwin)
--SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/mac
--else ifeq ($(UNAME),FreeBSD)
--SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
--else ifeq ($(UNAME),NetBSD)
--SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
--else ifeq ($(UNAME),SunOS)
--SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
--else
--SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/linux
--LIBS += -ludev
--endif
-+LIBS += -ludev -lhidapi-libusb
- endif # USE_HID
- 
--SOURCES		:= $(top_srcdir)/cpp/src $(top_srcdir)/cpp/src/command_classes $(top_srcdir)/cpp/tinyxml \
--	$(top_srcdir)/cpp/src/value_classes $(top_srcdir)/cpp/src/platform $(top_srcdir)/cpp/src/platform/unix $(SOURCES_HIDAPI) $(top_srcdir)/cpp/src/aes/
--VPATH = $(top_srcdir)/cpp/src:$(top_srcdir)/cpp/src/command_classes:$(top_srcdir)/cpp/tinyxml:\
--	$(top_srcdir)/cpp/src/value_classes:$(top_srcdir)/cpp/src/platform:$(top_srcdir)/cpp/src/platform/unix:$(SOURCES_HIDAPI):$(top_srcdir)/cpp/src/aes/
--
--tinyxml := $(notdir $(wildcard $(top_srcdir)/cpp/tinyxml/*.cpp))
--
--ifeq ($(USE_HID),1)
--ifeq ($(UNAME),Darwin)
--hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/mac/*.c))
--else ifeq ($(UNAME),FreeBSD)
--hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
--else ifeq ($(UNAME),NetBSD)
--hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
--else ifeq ($(UNAME),SunOS)
--hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
--else
--hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/linux/*.c)) # we do not want the libusb version
--endif
--endif # USE_HID
-+SOURCES		:= $(top_srcdir)/cpp/src $(top_srcdir)/cpp/src/command_classes \
-+	$(top_srcdir)/cpp/src/value_classes $(top_srcdir)/cpp/src/platform $(top_srcdir)/cpp/src/platform/unix $(top_srcdir)/cpp/src/aes/
-+VPATH = $(top_srcdir)/cpp/src:$(top_srcdir)/cpp/src/command_classes:\
-+	$(top_srcdir)/cpp/src/value_classes:$(top_srcdir)/cpp/src/platform:$(top_srcdir)/cpp/src/platform/unix:$(top_srcdir)/cpp/src/aes/
- 
- ifeq ($(BITBAKE_ENV),1)
- ar_option := "rc"
-@@ -147,8 +119,6 @@ printversion:
- 	@echo "Building OpenZWave Version $(GITVERSION)"	
- 
- 
---include $(patsubst %.cpp,$(DEPDIR)/%.d,$(tinyxml))
---include $(patsubst %.c,$(DEPDIR)/%.d,$(hidapi))
- -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(cclasses))
- -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(vclasses))
- -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(pform))
-@@ -167,9 +137,7 @@ $(top_srcdir)/cpp/src/vers.cpp:
- 
- #$(OBJDIR)/vers.o:	$(top_builddir)/vers.cpp
- 
--$(LIBDIR)/libopenzwave.a:	$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
--			$(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
--			$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
-+$(LIBDIR)/libopenzwave.a:	$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
- 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
- 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \
- 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(pform)) \
-@@ -179,9 +147,7 @@ $(LIBDIR)/libopenzwave.a:	$(patsubst %.c
- 	@$(AR) $(ar_option) $@ $+
- 	@$(RANLIB) $@
- 
--$(LIBDIR)/$(SHARED_LIB_NAME):	$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
--			$(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
--			$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
-+$(LIBDIR)/$(SHARED_LIB_NAME):	$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
- 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
- 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \
- 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(pform)) \

Copied: openzwave/repos/community-x86_64/openzwave-system-libs.patch (from rev 1149912, openzwave/trunk/openzwave-system-libs.patch)
===================================================================
--- openzwave-system-libs.patch	                        (rev 0)
+++ openzwave-system-libs.patch	2022-03-12 12:33:07 UTC (rev 1149913)
@@ -0,0 +1,98 @@
+diff -rupN open-zwave.orig/cpp/build/Makefile open-zwave/cpp/build/Makefile
+--- open-zwave.orig/cpp/build/Makefile	2019-07-18 09:49:01.185154576 +0200
++++ open-zwave/cpp/build/Makefile	2019-07-18 09:58:36.413855845 +0200
+@@ -23,7 +23,7 @@ DEBUG_LDFLAGS	:= -g
+ 
+ #default Libraries we should link with
+ ifneq ($(UNAME),FreeBSD)
+-LIBS += -lresolv
++LIBS += -lresolv -ltinyxml
+ endif
+ 
+ top_srcdir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../)
+@@ -84,47 +84,19 @@ endif
+ #where to put the temporary library
+ LIBDIR	?= $(top_builddir)
+ 
+-INCLUDES	:= -I $(top_srcdir)/cpp/src -I $(top_srcdir)/cpp/tinyxml/
++INCLUDES	:= -I $(top_srcdir)/cpp/src
+ 
+ 
+ ifeq ($(USE_HID),1)
+-INCLUDES += -I $(top_srcdir)/cpp/hidapi/hidapi/
++INCLUDES += -I /usr/include/hidapi/
+ CFLAGS += -DUSE_HID
+-
+-ifeq ($(UNAME),Darwin)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/mac
+-else ifeq ($(UNAME),FreeBSD)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
+-else ifeq ($(UNAME),NetBSD)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
+-else ifeq ($(UNAME),SunOS)
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/libusb
+-else
+-SOURCES_HIDAPI =$(top_srcdir)/cpp/hidapi/linux
+-LIBS += -ludev
+-endif
++LIBS += -ludev -lhidapi-libusb
+ endif # USE_HID
+ 
+-SOURCES		:= $(top_srcdir)/cpp/src $(top_srcdir)/cpp/src/command_classes $(top_srcdir)/cpp/tinyxml \
+-	$(top_srcdir)/cpp/src/value_classes $(top_srcdir)/cpp/src/platform $(top_srcdir)/cpp/src/platform/unix $(SOURCES_HIDAPI) $(top_srcdir)/cpp/src/aes/
+-VPATH = $(top_srcdir)/cpp/src:$(top_srcdir)/cpp/src/command_classes:$(top_srcdir)/cpp/tinyxml:\
+-	$(top_srcdir)/cpp/src/value_classes:$(top_srcdir)/cpp/src/platform:$(top_srcdir)/cpp/src/platform/unix:$(SOURCES_HIDAPI):$(top_srcdir)/cpp/src/aes/
+-
+-tinyxml := $(notdir $(wildcard $(top_srcdir)/cpp/tinyxml/*.cpp))
+-
+-ifeq ($(USE_HID),1)
+-ifeq ($(UNAME),Darwin)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/mac/*.c))
+-else ifeq ($(UNAME),FreeBSD)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
+-else ifeq ($(UNAME),NetBSD)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
+-else ifeq ($(UNAME),SunOS)
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/libusb/*.c))
+-else
+-hidapi := $(notdir $(wildcard $(top_srcdir)/cpp/hidapi/linux/*.c)) # we do not want the libusb version
+-endif
+-endif # USE_HID
++SOURCES		:= $(top_srcdir)/cpp/src $(top_srcdir)/cpp/src/command_classes \
++	$(top_srcdir)/cpp/src/value_classes $(top_srcdir)/cpp/src/platform $(top_srcdir)/cpp/src/platform/unix $(top_srcdir)/cpp/src/aes/
++VPATH = $(top_srcdir)/cpp/src:$(top_srcdir)/cpp/src/command_classes:\
++	$(top_srcdir)/cpp/src/value_classes:$(top_srcdir)/cpp/src/platform:$(top_srcdir)/cpp/src/platform/unix:$(top_srcdir)/cpp/src/aes/
+ 
+ ifeq ($(BITBAKE_ENV),1)
+ ar_option := "rc"
+@@ -147,8 +119,6 @@ printversion:
+ 	@echo "Building OpenZWave Version $(GITVERSION)"	
+ 
+ 
+--include $(patsubst %.cpp,$(DEPDIR)/%.d,$(tinyxml))
+--include $(patsubst %.c,$(DEPDIR)/%.d,$(hidapi))
+ -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(cclasses))
+ -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(vclasses))
+ -include $(patsubst %.cpp,$(DEPDIR)/%.d,$(pform))
+@@ -167,9 +137,7 @@ $(top_srcdir)/cpp/src/vers.cpp:
+ 
+ #$(OBJDIR)/vers.o:	$(top_builddir)/vers.cpp
+ 
+-$(LIBDIR)/libopenzwave.a:	$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
+-			$(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
+-			$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
++$(LIBDIR)/libopenzwave.a:	$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
+ 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
+ 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \
+ 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(pform)) \
+@@ -179,9 +147,7 @@ $(LIBDIR)/libopenzwave.a:	$(patsubst %.c
+ 	@$(AR) $(ar_option) $@ $+
+ 	@$(RANLIB) $@
+ 
+-$(LIBDIR)/$(SHARED_LIB_NAME):	$(patsubst %.cpp,$(OBJDIR)/%.o,$(tinyxml)) \
+-			$(patsubst %.c,$(OBJDIR)/%.o,$(hidapi)) \
+-			$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
++$(LIBDIR)/$(SHARED_LIB_NAME):	$(patsubst %.c,$(OBJDIR)/%.o,$(aes)) \
+ 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(cclasses)) \
+ 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(vclasses)) \
+ 			$(patsubst %.cpp,$(OBJDIR)/%.o,$(pform)) \



More information about the arch-commits mailing list