Skip to contentSkip to conversation

package/libnet: bump to v1.3

PATCH In review Joachim Wiberg 2 participants 2 messages Oct 16, 2023 – Nov 1, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libnet: bump to v1.3

Changes:
- Major upgrade, no API or ABI breaking changes (that we know of).
https://github.com/libnet/libnet/releases/tag/v1.3

Packaging:
- Verified builds on *all* test-pkg archs & toolchains
- Verified test-pkg also with ngrep, suricata, and mz
- Drop backported int64_t patch
- Disable doxygen (html docs) in build
- sha256sum of tarball now generated upstream

---
 ...d-of-__int64_t-for-mingw-cross-build.patch | 31 -------------------
 package/libnet/libnet.hash                    |  6 ++--
 package/libnet/libnet.mk                      |  3 +-
 3 files changed, 5 insertions(+), 35 deletions(-)
 delete mode 100644 package/libnet/0001-Use-standard-int64_t-instead-of-__int64_t-for-mingw-cross-build.patch
package/libnet/0001-Use-standard-int64_t-instead-of-__int64_t-for-mingw-cross-build.patch deleted +0 -31
deleted file mode 100644
index 793b3069c8..0000000000
@@ -1,31 +0,0 @@
-From a1659e261888bdbed51803132d52d9a6c6803c8a Mon Sep 17 00:00:00 2001
-From: Joachim Nilsson <[email protected]>
-Date: Sat, 19 Oct 2019 12:26:26 +0200
-Subject: [PATCH] Use standard int64_t instead of __int64_t for mingw cross
- build
-
-Signed-off-by: Joachim Nilsson <[email protected]>
-[Retrieved from:
-https://github.com/libnet/libnet/commit/a1659e261888bdbed51803132d52d9a6c6803c8a]
-Signed-off-by: Fabrice Fontaine <[email protected]>
----
- include/libnet/libnet-structures.h | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/include/libnet/libnet-structures.h b/include/libnet/libnet-structures.h
-index 6084caa..34fffc6 100644
---- a/include/libnet/libnet-structures.h
-+++ b/include/libnet/libnet-structures.h
-@@ -49,9 +49,9 @@ struct libnet_port_list_chain
- /* libnet statistics structure */
- struct libnet_stats
- {
--    __int64_t packets_sent;               /* packets sent */
--    __int64_t packet_errors;              /* packets errors */
--    __int64_t bytes_written;              /* bytes written */
-+    int64_t packets_sent;               /* packets sent */
-+    int64_t packet_errors;              /* packets errors */
-+    int64_t bytes_written;              /* bytes written */
- };
- 
- 
package/libnet/libnet.hash +3 -3
index 6962ffc83f..5462b4f2e6 100644
@@ -1,5 +1,5 @@
-# From https://github.com/libnet/libnet/releases/download/v1.2/libnet-1.2.tar.gz.md5
-md5  a36c669e0cdfda6a2aa3adfb1f6fe60a  libnet-1.2.tar.gz
+# From https://github.com/libnet/libnet/releases/
+sha256 ad1e2dd9b500c58ee462acd839d0a0ea9a2b9248a1287840bc601e774fb6b28f  libnet-1.3.tar.gz
+
 # Locally computed
-sha256  caa4868157d9e5f32e9c7eac9461efeff30cb28357f7f6bf07e73933fb4edaa7  libnet-1.2.tar.gz
 sha256  a06f600f67f239898d85f083aeed82ce6015b1c57599ab1def00fb68787ef388  LICENSE
package/libnet/libnet.mk +2 -1
index a5a814f4d2..e9124abd30 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBNET_VERSION = 1.2
+LIBNET_VERSION = 1.3
 LIBNET_SITE = \
 	https://github.com/libnet/libnet/releases/download/v$(LIBNET_VERSION)
 LIBNET_INSTALL_STAGING = YES
@@ -14,5 +14,6 @@ LIBNET_LICENSE = BSD-2-Clause, BSD-3-Clause
 LIBNET_LICENSE_FILES = LICENSE
 LIBNET_CPE_ID_VENDOR = libnet_project
 LIBNET_CONFIG_SCRIPTS = libnet-config
+LIBNET_CONF_OPTS = --disable-doxygen-doc
 
 $(eval $(autotools-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 11 lines · On Mon, 16 Oct 2023 22:00:55 +0200 Joachim Wiberg <[email protected]> wrote:

Changes:
- Major upgrade, no API or ABI breaking changes (that we know of).
https://github.com/libnet/libnet/releases/tag/v1.3

Packaging:
- Verified builds on *all* test-pkg archs & toolchains
- Verified test-pkg also with ngrep, suricata, and mz
- Drop backported int64_t patch
- Disable doxygen (html docs) in build
- sha256sum of tarball now generated upstream

Quoted 7 lines
---
 ...d-of-__int64_t-for-mingw-cross-build.patch | 31 -------------------
 package/libnet/libnet.hash                    |  6 ++--
 package/libnet/libnet.mk                      |  3 +-
 3 files changed, 5 insertions(+), 35 deletions(-)
 delete mode 100644 package/libnet/0001-Use-standard-int64_t-instead-of-__int64_t-for-mingw-cross-build.patch

This change raised 3 check-package warnings:

WARNING: package/libnet/libnet.hash:2: separation does not match expectation (http://nightly.buildroot.org/#adding-packages-hash)
WARNING: package/libnet/libnet.mk:17: unconditional override of variable LIBNET_CONF_OPTS
WARNING: .checkpackageignore:712: ignored file package/libnet/0001-Use-standard-int64_t-instead-of-__int64_t-for-mingw-cross-build.patch is missing

I fixed then and applied to master. Thanks!

(Perhaps you can add "make check-package" do your usual testing of your changes)

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot