Skip to contentSkip to conversation

arptables: remove unused checksums

PATCH New Gyorgy Sarvari 1 participant 2 messages Mar 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arptables: remove unused checksums

It is fetched from git, so the checksums are not doing anything.

While touching it, switch to the project's own license file instead of using a generic one from the COMMON_LICENSE_DIR.

The license itself has not changed, still gpl 2.0, only.

---
 meta-networking/recipes-support/arptables/arptables_git.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-networking/recipes-support/arptables/arptables_git.bb +1 -3
index be2cfb0816..201e9e16b4 100644
@@ -1,7 +1,7 @@
 SUMMARY = "Administration tool for arp packet filtering"
 SECTION = "net"
 LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
+LIC_FILES_CHKSUM = "file://COPYING;md5=53b4a999993871a28ab1488fdbd2e73e"
 SRCREV = "efae8949e31f8b2eb6290f377a28384cecaf105a"
 PV = "0.0.5+git"
 
@@ -11,8 +11,6 @@ SRC_URI = " \
     file://arptables-arpt-get-target-fix.patch \
     file://arptables.service \
 "
-SRC_URI[arptables.md5sum] = "1d4ab05761f063b0751645d8f2b8f8e5"
-SRC_URI[arptables.sha256sum] = "e529fd465c67d69ad335299a043516e6b38cdcd337a5ed21718413e96073f928"
 
 SYSTEMD_SERVICE:${PN} = "arptables.service"
 
#1 lore raw

PATCH 2/2 curlpp: upgrade to latest revision

The last release was almost a decade ago, but there are quite a few commits that were added to the project since that.

Instead of waiting for a new release, use the tip of the repository.

Changelog:
https://github.com/jpbarrette/curlpp/compare/v0.8.1...ec1b66e699557cd9d608d322c013a1ebda16bd08

---
 ...id-conversion-from-int-to-CURLoption.patch | 36 -------------------
 .../recipes-support/curlpp/curlpp_0.8.1.bb    |  7 ++--
 2 files changed, 5 insertions(+), 38 deletions(-)
 delete mode 100644 meta-networking/recipes-support/curlpp/curlpp/0002-fix-invalid-conversion-from-int-to-CURLoption.patch
meta-networking/recipes-support/curlpp/curlpp/0002-fix-invalid-conversion-from-int-to-CURLoption.patch deleted +0 -36
deleted file mode 100644
index 1712a53462..0000000000
@@ -1,36 +0,0 @@
-From ebe9144fdfdc8154661b93322cec4a1c43aa75ff Mon Sep 17 00:00:00 2001
-From: alperak <[email protected]>
-Date: Tue, 1 Oct 2024 19:45:38 +0300
-Subject: [PATCH] Fix invalid conversion from int to CURLoption
-
-Options.hpp:281:74: error: invalid conversion from 'int' to 'CURLoption' [-fpermissive]
-  281 |         typedef curlpp::OptionTrait<curl_closepolicy, CURLOPT_CLOSEPOLICY> ClosePolicy;
-      |                                                                          ^
-      |                                                                          |
-      |                                                                          int
-
-Fix invalid conversion by adding explicit cast to CURLoption
-
-Upstream-Status: Pending
-
-Signed-off-by: alperak <[email protected]>
----
- include/curlpp/Options.hpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/include/curlpp/Options.hpp b/include/curlpp/Options.hpp
-index c705c9d..7c9a501 100644
---- a/include/curlpp/Options.hpp
-+++ b/include/curlpp/Options.hpp
-@@ -278,7 +278,7 @@ namespace options
- 	typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_LIMIT> LowSpeedLimit;
- 	typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_TIME> LowSpeedTime;
- 	typedef curlpp::OptionTrait<long, CURLOPT_MAXCONNECTS> MaxConnects;
--	typedef curlpp::OptionTrait<curl_closepolicy, CURLOPT_CLOSEPOLICY> ClosePolicy;
-+	typedef curlpp::OptionTrait<curl_closepolicy, (CURLoption)CURLOPT_CLOSEPOLICY> ClosePolicy;
- 	typedef curlpp::OptionTrait<bool, CURLOPT_FRESH_CONNECT> FreshConnect;
- 	typedef curlpp::OptionTrait<bool, CURLOPT_FORBID_REUSE> ForbidReuse;
- 	typedef curlpp::OptionTrait<long, CURLOPT_CONNECTTIMEOUT> ConnectTimeout;
--- 
-2.25.1
-
meta-networking/recipes-support/curlpp/curlpp_0.8.1.bb +5 -2
index 25ea1fdefb..2f9f406b86 100644
@@ -9,10 +9,11 @@ DEPENDS:class-native = "curl-native"
 
 SRC_URI = "git://github.com/jpbarrette/curlpp.git;branch=master;protocol=https \
            file://0001-curlpp-config.in-Remove-references-to-absolute-build.patch \
-           file://0002-fix-invalid-conversion-from-int-to-CURLoption.patch"
+"
 
-SRCREV = "592552a165cc569dac7674cb7fc9de3dc829906f"
+SRCREV = "ec1b66e699557cd9d608d322c013a1ebda16bd08"
 
+PV .= "+git"
 
 inherit cmake pkgconfig binconfig
 
@@ -23,4 +24,6 @@ do_install:append() {
         -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
         -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
         -i ${D}${libdir}/pkgconfig/*.pc
+
+    sed -i 's@${RECIPE_SYSROOT}@${CMAKE_SYSROOT}@' ${D}${libdir}/cmake/curlpp/curlppTargets.cmake
 }