From nobody Mon Feb 27 15:46:54 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PQPxp4dZ9z3vGNj; Mon, 27 Feb 2023 15:46:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQPxp41PQz3QCS; Mon, 27 Feb 2023 15:46:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677512814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UT45WvoV/5Awp6TlFiWGPoBd+C7uX/alusavlF8VT8c=; b=ZY0FOfUL9qKJQbKUYkkVgARGlQO76IuOWYzLcAUH8ABmi/CgMcwLrICU0vv7aL4LX7LPM1 aSkE7Qc5EHbM72kaOGSKZJj5K0e1zbt5M6f9a7+eg6g8/bmTp5tdMnhxa9B/au/QUGP/6r S4dpSiWAMdFA53ICXCWhQ43IsopHnN5rngnAfalWEF31+M1ySPn9CScN3PVNgDZtuFQgjE HYB5RZ8qEyJ2JV4zjto4GrVdy9wNfQPdtycZkOMa+7Ld2cgSJ76qpeXz0t1uYFZzYCAyqF TkdQyADK58/+wsdQEMgDvrSUrImMCkJuM8qRrQq/4RPe1c/3EtkUhcdXX2CRQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677512814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UT45WvoV/5Awp6TlFiWGPoBd+C7uX/alusavlF8VT8c=; b=Em6LPfF5lVJXU3FhF6dnjCa9UJF6Bz33q/jmQYvzm2VWGaAR8TuCI1gFOl7+1hd8HLNQ8c RhfFoqxRMEw/RdS75PO3f/fowCutpHOuzMxwU09+GsHwpFrsCu4kqVB1KGcTVa5cZJhckU Yf8gYePKjpfFd4P3ETeo4FPvuzMiTTSLzD03xPjEycL28lM0Ds+OYqYqPAo37twlYRCbN4 rnaqT4rwR2gxHacQR+W+CvWBeNzImqKWn/Hm6EBvvM+rG+z9MnwkBlQP3b0tjyFcKLvv1k BNPnbb25Uk1L9LB42TsCjPAtEsl5ujf1rXnpk6aZeIAtbAQeXioKu7dx4sKeHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677512814; a=rsa-sha256; cv=none; b=gS30ch1O7UKAW4CjyoVgCr24VKf+WIvYxqJCrdwf4a5NbbW0Gou7GLfXrTLL5JK4nW9f5J ciMhqnzrHyVeZCHEWxMKZmoedqrTXsZ2Qrbw7rVlTr02nSz4W6hYFiNtfI9THAdD2BoDab OKncvsjTlG7jNFOT7p0WovzRESfumDMLWsTxHT1zJiEzvPCC35W0N+j2DR3N5g6qdjErFF vKNQDb1fsMFIibFfsxvxvQi7wH6O/J/DrqYM1TNyE0XofUYAMmw5/hslgZoiakFfuE2R3Y QI8XY03xcAdjrewks/xzEftpVcpIJ077APPIfaYmpwh4RIEiFm3TZX+oLSo57Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PQPxp2grbzWqP; Mon, 27 Feb 2023 15:46:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31RFksMd086341; Mon, 27 Feb 2023 15:46:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31RFksVk086340; Mon, 27 Feb 2023 15:46:54 GMT (envelope-from git) Date: Mon, 27 Feb 2023 15:46:54 GMT Message-Id: <202302271546.31RFksVk086340@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 841aab24c396 - main - devel/libsigrok: Runtime fix List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 841aab24c396cb242b66b764950a2c848ffae2e1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=841aab24c396cb242b66b764950a2c848ffae2e1 commit 841aab24c396cb242b66b764950a2c848ffae2e1 Author: Muhammad Moinur Rahman AuthorDate: 2023-02-27 13:38:02 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-02-27 15:45:48 +0000 devel/libsigrok: Runtime fix C/C++ Comments handling are broken in swig 4 which is a pending issue for more than 2 years. Use this hack for now to skip parsing comments. - Pet portclippy --- devel/libsigrok/Makefile | 18 ++-- devel/libsigrok/files/patch-Makefile.in | 98 ++++++++++++++++++++++ .../patch-src_hardware_lascar-el-usb_protocol.c | 4 +- 3 files changed, 110 insertions(+), 10 deletions(-) diff --git a/devel/libsigrok/Makefile b/devel/libsigrok/Makefile index fc9cafd2aa8f..d635d2134e31 100644 --- a/devel/libsigrok/Makefile +++ b/devel/libsigrok/Makefile @@ -1,6 +1,6 @@ PORTNAME= libsigrok PORTVERSION= 0.5.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= devel MASTER_SITES= http://sigrok.org/download/source/libsigrok/ @@ -12,21 +12,23 @@ LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= doxygen:devel/doxygen -LIB_DEPENDS= libhidapi.so:comms/hidapi \ - libcheck.so:devel/check \ +LIB_DEPENDS= libcheck.so:devel/check \ libftdi1.so:devel/libftdi1 \ + libhidapi.so:comms/hidapi \ libserialport.so:devel/libserialport \ libvisa.so:devel/librevisa \ libzip.so:archivers/libzip -USES= compiler:c11 gnome pathfix libtool pkgconfig \ - python:-3.9,build shared-mime-info +USES= compiler:c11 gnome libtool pathfix pkgconfig python:-3.9,build \ + shared-mime-info +USE_GNOME= glibmm +USE_LDCONFIG= yes GNU_CONFIGURE= yes -INSTALL_TARGET= install-strip + MAKE_JOBS_UNSAFE= yes -USE_LDCONFIG= yes -USE_GNOME= glibmm + +INSTALL_TARGET= install-strip post-patch: # libusb can be disabled via src.conf(5), so detect via pkg-config diff --git a/devel/libsigrok/files/patch-Makefile.in b/devel/libsigrok/files/patch-Makefile.in new file mode 100644 index 000000000000..acb879d7942b --- /dev/null +++ b/devel/libsigrok/files/patch-Makefile.in @@ -0,0 +1,98 @@ +--- Makefile.in.orig 2023-02-26 13:49:58 UTC ++++ Makefile.in +@@ -579,7 +579,7 @@ am__v_lt_0 = --silent + AM_V_lt = $(am__v_lt_@AM_V@) + am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) + am__v_lt_0 = --silent +-am__v_lt_1 = ++am__v_lt_1 = + bindings_cxx_libsigrokcxx_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ + $(AM_CXXFLAGS) $(CXXFLAGS) \ +@@ -1095,12 +1095,12 @@ am__v_GEN_0 = @echo " GEN " $@; + AM_V_GEN = $(am__v_GEN_@AM_V@) + am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) + am__v_GEN_0 = @echo " GEN " $@; +-am__v_GEN_1 = ++am__v_GEN_1 = + AM_V_at = $(am__v_at_@AM_V@) + am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) + am__v_at_0 = @ +-am__v_at_1 = +-DEFAULT_INCLUDES = ++am__v_at_1 = ++DEFAULT_INCLUDES = + depcomp = $(SHELL) $(top_srcdir)/autostuff/depcomp + am__maybe_remake_depfiles = depfiles + am__depfiles_remade = bindings/cxx/$(DEPDIR)/classes.Plo \ +@@ -1327,7 +1327,7 @@ am__v_CC_0 = @echo " CC " $@; + AM_V_CC = $(am__v_CC_@AM_V@) + am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) + am__v_CC_0 = @echo " CC " $@; +-am__v_CC_1 = ++am__v_CC_1 = + CCLD = $(CC) + LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ +@@ -1335,7 +1335,7 @@ am__v_CCLD_0 = @echo " CCLD " $@; + AM_V_CCLD = $(am__v_CCLD_@AM_V@) + am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) + am__v_CCLD_0 = @echo " CCLD " $@; +-am__v_CCLD_1 = ++am__v_CCLD_1 = + CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) + LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ +@@ -1345,7 +1345,7 @@ am__v_CXX_0 = @echo " CXX " $@; + AM_V_CXX = $(am__v_CXX_@AM_V@) + am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) + am__v_CXX_0 = @echo " CXX " $@; +-am__v_CXX_1 = ++am__v_CXX_1 = + CXXLD = $(CXX) + CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ +@@ -1353,7 +1353,7 @@ am__v_CXXLD_0 = @echo " CXXLD " $@; + AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) + am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) + am__v_CXXLD_0 = @echo " CXXLD " $@; +-am__v_CXXLD_1 = ++am__v_CXXLD_1 = + SOURCES = $(bindings_cxx_libsigrokcxx_la_SOURCES) \ + $(libsigrok_la_SOURCES) $(src_libdrivers_la_SOURCES) \ + $(src_libdrivers_head_la_SOURCES) \ +@@ -1780,7 +1780,7 @@ local_includes = -Iinclude -I$(srcdir)/include -I$(src + $(am__append_1) + @WIN32_FALSE@global_defs = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' + # Do not hard-code the firmware location on Windows. +-@WIN32_TRUE@global_defs = ++@WIN32_TRUE@global_defs = + # Ensure that local include directories are always searched first. + AM_CPPFLAGS = $(local_includes) $(global_defs) + +@@ -2020,7 +2020,7 @@ stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config + stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +-$(srcdir)/config.h.in: $(am__configure_deps) ++$(srcdir)/config.h.in: $(am__configure_deps) + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ +@@ -2319,7 +2319,7 @@ src/scale/kern.lo: src/scale/$(am__dirstamp) \ + src/scale/kern.lo: src/scale/$(am__dirstamp) \ + src/scale/$(DEPDIR)/$(am__dirstamp) + +-libsigrok.la: $(libsigrok_la_OBJECTS) $(libsigrok_la_DEPENDENCIES) $(EXTRA_libsigrok_la_DEPENDENCIES) ++libsigrok.la: $(libsigrok_la_OBJECTS) $(libsigrok_la_DEPENDENCIES) $(EXTRA_libsigrok_la_DEPENDENCIES) + $(AM_V_CCLD)$(libsigrok_la_LINK) -rpath $(libdir) $(libsigrok_la_OBJECTS) $(libsigrok_la_LIBADD) $(LIBS) + src/drivers.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) + src/hardware/agilent-dmm/$(am__dirstamp): +@@ -5262,6 +5262,7 @@ $(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsig + @BINDINGS_RUBY_TRUE@$(RDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) + @BINDINGS_RUBY_TRUE@ $(AM_V_at)test -d $(RDIR) || $(MKDIR_P) $(RDIR) + @BINDINGS_RUBY_TRUE@ $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py ruby $(CPPXMLDOC) > $@ ++@BINDINGS_RUBY_TRUE@ /bin/cp /dev/null $@ + + @BINDINGS_RUBY_TRUE@$(RWRAP): $(srcdir)/$(RDIR)/classes.i $(RDOC) \ + @BINDINGS_RUBY_TRUE@ bindings/swig/classes.i bindings/swig/templates.i \ diff --git a/devel/libsigrok/files/patch-src_hardware_lascar-el-usb_protocol.c b/devel/libsigrok/files/patch-src_hardware_lascar-el-usb_protocol.c index ad70f2a7aaa2..22476a4d932c 100644 --- a/devel/libsigrok/files/patch-src_hardware_lascar-el-usb_protocol.c +++ b/devel/libsigrok/files/patch-src_hardware_lascar-el-usb_protocol.c @@ -1,6 +1,6 @@ ---- src/hardware/lascar-el-usb/protocol.c.orig 2017-06-12 01:07:28 UTC +--- src/hardware/lascar-el-usb/protocol.c.orig 2019-12-25 20:29:19 UTC +++ src/hardware/lascar-el-usb/protocol.c -@@ -508,8 +508,7 @@ SR_PRIV int lascar_el_usb_handle_events(int fd, int re +@@ -513,8 +513,7 @@ SR_PRIV int lascar_el_usb_handle_events(int fd, int re } memset(&tv, 0, sizeof(struct timeval));