* [gentoo-commits] repo/proj/guru:master commit in: dev-util/xdp-tools/, dev-util/xdp-tools/files/
@ 2020-08-29 14:14 Andrew Ammerlaan
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Ammerlaan @ 2020-08-29 14:14 UTC (permalink / raw
To: gentoo-commits
commit: eb9a65aa24b70fd47803c816cff1ca6a32d4d0cd
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Sat Aug 29 11:39:55 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat Aug 29 11:39:55 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eb9a65aa
dev-util/xdp-tools: Drop old
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
dev-util/xdp-tools/Manifest | 1 -
.../xdp-tools/files/xdp-tools-0.0.3-install.patch | 33 ------------
dev-util/xdp-tools/xdp-tools-0.0.3.ebuild | 59 ----------------------
3 files changed, 93 deletions(-)
diff --git a/dev-util/xdp-tools/Manifest b/dev-util/xdp-tools/Manifest
index 49c3e9f..87bfe52 100644
--- a/dev-util/xdp-tools/Manifest
+++ b/dev-util/xdp-tools/Manifest
@@ -1,2 +1 @@
-DIST xdp-tools-0.0.3.tar.gz 381386 BLAKE2B 1160d9a7cc2b6cf7b49e7223acdbeba72046c00ec710c21140da0607cac1e8a1231992a8967b2f8f2a964da593dfe0af08b28abbc3b13818ddafebbc2c3961a7 SHA512 c2a4278db41af020cf42b1139c93786a49ad2a071b2002177ac39e8d6b74203d251bd7823399d9e156c969d2ae741b0ecd4178edf446fe5c7270e53295458fce
DIST xdp-tools-1.0.1.tar.gz 150775 BLAKE2B 5b984aa20a125555d07b46c5f83f9f02f22f85130eb2d64c8808965fdc1c0903092a3de3c72c81360063b29269237cf94d74c712a88bbf0f30e239de0a499043 SHA512 918323b7ae85890c35403eab437491ad32df52f32c8abf3e698fefd09bfd445c6335730ca48fb830608a3baeb1f686c644ce992b90d5d3e1b2c8caf97832237d
diff --git a/dev-util/xdp-tools/files/xdp-tools-0.0.3-install.patch b/dev-util/xdp-tools/files/xdp-tools-0.0.3-install.patch
deleted file mode 100644
index 65349b5..0000000
--- a/dev-util/xdp-tools/files/xdp-tools-0.0.3-install.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 744f5a2ab5fd2d570a0c6135262761ffdc23bb1f Mon Sep 17 00:00:00 2001
-From: Kurt Kanzenbach <kurt@kmk-computers.de>
-Date: Fri, 10 Apr 2020 15:39:13 +0200
-Subject: [PATCH] lib: xdp: make: Fix library install
-
-Two problems:
-
- * install doesn't handle symlinks
- * static libs are installed
-
-Fix it.
-
-Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
----
- lib/libxdp/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile
-index d5f465e3f67c..c4508889fab2 100644
---- a/lib/libxdp/Makefile
-+++ b/lib/libxdp/Makefile
-@@ -42,7 +42,7 @@ install:
- $(Q)install -d -m 0755 $(DESTDIR)$(HDRDIR)
- $(Q)install -d -m 0755 $(DESTDIR)$(LIBDIR)
- $(Q)install -m 0644 $(LIB_HEADERS) $(DESTDIR)$(HDRDIR)/
-- $(Q)install -m 0755 $(SHARED_LIBS) $(STATIC_LIBS) $(DESTDIR)$(LIBDIR)
-+ $(Q)cp -a $(SHARED_LIBS) $(DESTDIR)$(LIBDIR)
-
-
- $(OBJDIR)/libxdp.a: $(STATIC_OBJS)
---
-2.24.1
-
diff --git a/dev-util/xdp-tools/xdp-tools-0.0.3.ebuild b/dev-util/xdp-tools/xdp-tools-0.0.3.ebuild
deleted file mode 100644
index 1e10fb3..0000000
--- a/dev-util/xdp-tools/xdp-tools-0.0.3.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit linux-info llvm multilib
-
-DESCRIPTION="Utilities and example programs for use with XDP"
-HOMEPAGE="https://github.com/xdp-project/xdp-tools"
-SRC_URI="https://github.com/xdp-project/${PN}/releases/download/v${PV}/${P}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~x86"
-
-# skip strip for eBPF object files
-RESTRICT="strip"
-
-# skip QA check(s) for eBPF samples
-QA_EXECSTACK="usr/lib*/bpf/*.o"
-
-# XDP should be enabled
-CONFIG_CHECK="~XDP_SOCKETS"
-
-LLVM_MAX_SLOT=10
-
-BDEPEND="
- virtual/pkgconfig
-"
-RDEPEND="
- >=dev-libs/libbpf-0.0.7
- net-libs/libpcap
- sys-libs/zlib
- virtual/libelf
-"
-DEPEND="${RDEPEND}
- sys-devel/clang:10
- sys-devel/llvm:10
-"
-
-PATCHES=( "${FILESDIR}/${P}-install.patch" )
-
-pkg_setup() {
- llvm_pkg_setup
-}
-
-src_configure() {
- ./configure
-}
-
-src_compile() {
- emake PRODUCTION=1 PREFIX=/usr LIBDIR="/usr/$(get_libdir)" all
-}
-
-src_install() {
- emake PRODUCTION=1 PREFIX=/usr LIBDIR="/usr/$(get_libdir)" DESTDIR="${D}" install
- doman xdp-filter/xdp-filter.8
- doman xdp-dump/xdpdump.8
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-util/xdp-tools/, dev-util/xdp-tools/files/
@ 2021-01-15 20:39 Andrew Ammerlaan
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Ammerlaan @ 2021-01-15 20:39 UTC (permalink / raw
To: gentoo-commits
commit: 666d20fb9ecd5e0fdb052fbfd3b0b895825d8482
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Fri Jan 15 17:13:43 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Jan 15 17:13:43 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=666d20fb
dev-util/xdp-tools: Bump to v1.1.0
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
dev-util/xdp-tools/Manifest | 1 +
.../xdp-tools/files/xdp-tools-1.1.0-install.patch | 38 +++++++++++++
dev-util/xdp-tools/xdp-tools-1.1.0.ebuild | 66 ++++++++++++++++++++++
3 files changed, 105 insertions(+)
diff --git a/dev-util/xdp-tools/Manifest b/dev-util/xdp-tools/Manifest
index 87bfe52b..facab188 100644
--- a/dev-util/xdp-tools/Manifest
+++ b/dev-util/xdp-tools/Manifest
@@ -1 +1,2 @@
DIST xdp-tools-1.0.1.tar.gz 150775 BLAKE2B 5b984aa20a125555d07b46c5f83f9f02f22f85130eb2d64c8808965fdc1c0903092a3de3c72c81360063b29269237cf94d74c712a88bbf0f30e239de0a499043 SHA512 918323b7ae85890c35403eab437491ad32df52f32c8abf3e698fefd09bfd445c6335730ca48fb830608a3baeb1f686c644ce992b90d5d3e1b2c8caf97832237d
+DIST xdp-tools-1.1.0.tar.gz 157577 BLAKE2B 219219898cf83c72dd07ef64b3eda889ca2825ae9f21ab7714020fbc467ef37a4df978ee0c7eef45c1ebd43370ff71f43d1dab0d11507d80de3cbf39d45cab16 SHA512 31165f932dcdf8181c012500e2dc27118860d8733932ab253d02dd07a436c0ef1f5bc3253e6def716b10ff50b37854bb5e9679cc38adec27c3366823c8656232
diff --git a/dev-util/xdp-tools/files/xdp-tools-1.1.0-install.patch b/dev-util/xdp-tools/files/xdp-tools-1.1.0-install.patch
new file mode 100644
index 00000000..702d555c
--- /dev/null
+++ b/dev-util/xdp-tools/files/xdp-tools-1.1.0-install.patch
@@ -0,0 +1,38 @@
+From 1de19829622cf394a6154834955379e7e45e0cb8 Mon Sep 17 00:00:00 2001
+From: Kurt Kanzenbach <kurt@kmk-computers.de>
+Date: Fri, 10 Apr 2020 15:39:13 +0200
+Subject: [PATCH] lib: xdp: make: Fix library install
+
+Two problems:
+
+ * install doesn't handle symlinks
+ * static libs are installed
+
+Fix it.
+
+Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
+---
+ lib/libxdp/Makefile | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile
+index f45cc93c3076..2efe6bbea67a 100644
+--- a/lib/libxdp/Makefile
++++ b/lib/libxdp/Makefile
+@@ -49,12 +49,11 @@ install: all
+ $(Q)install -d -m 0755 $(DESTDIR)$(BPF_OBJECT_DIR)
+ $(Q)install -m 0644 $(LIB_HEADERS) $(DESTDIR)$(HDRDIR)/
+ $(Q)install -m 0644 $(PC_FILE) $(DESTDIR)$(LIBDIR)/pkgconfig/
+- $(Q)install -m 0755 $(SHARED_LIBS) $(STATIC_LIBS) $(DESTDIR)$(LIBDIR)
++ $(Q)cp -a $(SHARED_LIBS) $(DESTDIR)$(LIBDIR)
+ $(Q)install -m 0755 $(XDP_OBJS) $(DESTDIR)$(BPF_OBJECT_DIR)
+ $(if $(MAN_FILES),$(Q)install -m 0755 -d $(DESTDIR)$(MANDIR)/man3)
+ $(if $(MAN_FILES),$(Q)install -m 0644 $(MAN_FILES) $(DESTDIR)$(MANDIR)/man3)
+
+-
+ $(OBJDIR)/libxdp.a: $(STATIC_OBJS)
+ $(QUIET_LINK)$(AR) rcs $@ $^
+
+--
+2.26.2
+
diff --git a/dev-util/xdp-tools/xdp-tools-1.1.0.ebuild b/dev-util/xdp-tools/xdp-tools-1.1.0.ebuild
new file mode 100644
index 00000000..0f16f708
--- /dev/null
+++ b/dev-util/xdp-tools/xdp-tools-1.1.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-info llvm multilib
+
+DESCRIPTION="Utilities and example programs for use with XDP"
+HOMEPAGE="https://github.com/xdp-project/xdp-tools"
+SRC_URI="https://github.com/xdp-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+
+# skip strip for eBPF object files
+RESTRICT="strip"
+
+# skip QA check(s) for eBPF samples
+QA_EXECSTACK="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
+QA_PREBUILT="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
+
+# XDP should be enabled
+CONFIG_CHECK="~XDP_SOCKETS"
+
+LLVM_MAX_SLOT=10
+
+BDEPEND="
+ virtual/pkgconfig
+"
+RDEPEND="
+ >=dev-libs/libbpf-0.0.7
+ net-libs/libpcap
+ sys-libs/zlib
+ virtual/libelf
+"
+DEPEND="${RDEPEND}
+ sys-devel/clang:10
+ sys-devel/llvm:10
+"
+
+PATCHES=( "${FILESDIR}/${P}-install.patch" )
+
+pkg_setup() {
+ llvm_pkg_setup
+}
+
+src_configure() {
+ ./configure
+}
+
+src_compile() {
+ emake \
+ PRODUCTION=1 \
+ DYNAMIC_LIBXDP=1 \
+ FORCE_SYSTEM_LIBBPF=1 \
+ PREFIX=/usr \
+ LIBDIR="/usr/$(get_libdir)" all
+}
+
+src_install() {
+ emake PREFIX=/usr LIBDIR="/usr/$(get_libdir)" DESTDIR="${D}" install
+ doman xdp-filter/xdp-filter.8
+ doman xdp-dump/xdpdump.8
+ doman xdp-loader/xdp-loader.8
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-util/xdp-tools/, dev-util/xdp-tools/files/
@ 2021-01-15 20:39 Andrew Ammerlaan
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Ammerlaan @ 2021-01-15 20:39 UTC (permalink / raw
To: gentoo-commits
commit: e9e089757702c92e2f9c72069a2e61788034fe1a
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Fri Jan 15 17:15:34 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Jan 15 17:15:34 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e9e08975
dev-util/xdp-tools: Drop old
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
dev-util/xdp-tools/Manifest | 1 -
.../xdp-tools/files/xdp-tools-1.0.1-install.patch | 38 -------------
dev-util/xdp-tools/xdp-tools-1.0.1.ebuild | 66 ----------------------
3 files changed, 105 deletions(-)
diff --git a/dev-util/xdp-tools/Manifest b/dev-util/xdp-tools/Manifest
index facab188..2919fe52 100644
--- a/dev-util/xdp-tools/Manifest
+++ b/dev-util/xdp-tools/Manifest
@@ -1,2 +1 @@
-DIST xdp-tools-1.0.1.tar.gz 150775 BLAKE2B 5b984aa20a125555d07b46c5f83f9f02f22f85130eb2d64c8808965fdc1c0903092a3de3c72c81360063b29269237cf94d74c712a88bbf0f30e239de0a499043 SHA512 918323b7ae85890c35403eab437491ad32df52f32c8abf3e698fefd09bfd445c6335730ca48fb830608a3baeb1f686c644ce992b90d5d3e1b2c8caf97832237d
DIST xdp-tools-1.1.0.tar.gz 157577 BLAKE2B 219219898cf83c72dd07ef64b3eda889ca2825ae9f21ab7714020fbc467ef37a4df978ee0c7eef45c1ebd43370ff71f43d1dab0d11507d80de3cbf39d45cab16 SHA512 31165f932dcdf8181c012500e2dc27118860d8733932ab253d02dd07a436c0ef1f5bc3253e6def716b10ff50b37854bb5e9679cc38adec27c3366823c8656232
diff --git a/dev-util/xdp-tools/files/xdp-tools-1.0.1-install.patch b/dev-util/xdp-tools/files/xdp-tools-1.0.1-install.patch
deleted file mode 100644
index b3a1b594..00000000
--- a/dev-util/xdp-tools/files/xdp-tools-1.0.1-install.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 0d6c18f8336765c83ce4125833c6b5d44b0b83e6 Mon Sep 17 00:00:00 2001
-From: Kurt Kanzenbach <kurt@kmk-computers.de>
-Date: Fri, 10 Apr 2020 15:39:13 +0200
-Subject: [PATCH] lib: xdp: make: Fix library install
-
-Two problems:
-
- * install doesn't handle symlinks
- * static libs are installed
-
-Fix it.
-
-Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
----
- lib/libxdp/Makefile | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile
-index 842c47ac9279..e59aa441eae3 100644
---- a/lib/libxdp/Makefile
-+++ b/lib/libxdp/Makefile
-@@ -49,12 +49,11 @@ install: all
- $(Q)install -d -m 0755 $(DESTDIR)$(BPF_OBJECT_DIR)
- $(Q)install -m 0644 $(LIB_HEADERS) $(DESTDIR)$(HDRDIR)/
- $(Q)install -m 0644 $(PC_FILE) $(DESTDIR)$(LIBDIR)/pkgconfig/
-- $(Q)install -m 0755 $(SHARED_LIBS) $(STATIC_LIBS) $(DESTDIR)$(LIBDIR)
-+ $(Q)cp -a $(SHARED_LIBS) $(DESTDIR)$(LIBDIR)
- $(Q)install -m 0755 $(XDP_OBJS) $(DESTDIR)$(BPF_OBJECT_DIR)
- $(Q)install -m 0755 -d $(DESTDIR)$(MANDIR)/man3
- $(Q)install -m 0644 $(MAN_FILES) $(DESTDIR)$(MANDIR)/man3
-
--
- $(OBJDIR)/libxdp.a: $(STATIC_OBJS)
- $(QUIET_LINK)$(AR) rcs $@ $^
-
---
-2.26.2
-
diff --git a/dev-util/xdp-tools/xdp-tools-1.0.1.ebuild b/dev-util/xdp-tools/xdp-tools-1.0.1.ebuild
deleted file mode 100644
index 1534a068..00000000
--- a/dev-util/xdp-tools/xdp-tools-1.0.1.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit linux-info llvm multilib
-
-DESCRIPTION="Utilities and example programs for use with XDP"
-HOMEPAGE="https://github.com/xdp-project/xdp-tools"
-SRC_URI="https://github.com/xdp-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~x86"
-
-# skip strip for eBPF object files
-RESTRICT="strip"
-
-# skip QA check(s) for eBPF samples
-QA_EXECSTACK="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
-QA_PREBUILT="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
-
-# XDP should be enabled
-CONFIG_CHECK="~XDP_SOCKETS"
-
-LLVM_MAX_SLOT=10
-
-BDEPEND="
- virtual/pkgconfig
-"
-RDEPEND="
- >=dev-libs/libbpf-0.0.7
- net-libs/libpcap
- sys-libs/zlib
- virtual/libelf
-"
-DEPEND="${RDEPEND}
- sys-devel/clang:10
- sys-devel/llvm:10
-"
-
-PATCHES=( "${FILESDIR}/${P}-install.patch" )
-
-pkg_setup() {
- llvm_pkg_setup
-}
-
-src_configure() {
- ./configure
-}
-
-src_compile() {
- emake \
- PRODUCTION=1 \
- DYNAMIC_LIBXDP=1 \
- FORCE_SYSTEM_LIBBPF=1 \
- PREFIX=/usr \
- LIBDIR="/usr/$(get_libdir)" all
-}
-
-src_install() {
- emake PREFIX=/usr LIBDIR="/usr/$(get_libdir)" DESTDIR="${D}" install
- doman xdp-filter/xdp-filter.8
- doman xdp-dump/xdpdump.8
- doman xdp-loader/xdp-loader.8
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-util/xdp-tools/, dev-util/xdp-tools/files/
@ 2021-04-24 23:19 Theo Anderson
0 siblings, 0 replies; 5+ messages in thread
From: Theo Anderson @ 2021-04-24 23:19 UTC (permalink / raw
To: gentoo-commits
commit: 23e4b9edb0150f2bd81301de5f8b4a95a5a9f221
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Sat Apr 24 10:38:51 2021 +0000
Commit: Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Sat Apr 24 10:40:30 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=23e4b9ed
dev-util/xdp-tools: Drop old
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
dev-util/xdp-tools/Manifest | 1 -
.../xdp-tools/files/xdp-tools-1.1.0-install.patch | 38 ------------
.../xdp-tools/files/xdp-tools-1.1.0-readelf.patch | 52 ----------------
dev-util/xdp-tools/xdp-tools-1.1.0.ebuild | 70 ----------------------
4 files changed, 161 deletions(-)
diff --git a/dev-util/xdp-tools/Manifest b/dev-util/xdp-tools/Manifest
index 0362a71ee..c8dff02a4 100644
--- a/dev-util/xdp-tools/Manifest
+++ b/dev-util/xdp-tools/Manifest
@@ -1,2 +1 @@
-DIST xdp-tools-1.1.0.tar.gz 157577 BLAKE2B 219219898cf83c72dd07ef64b3eda889ca2825ae9f21ab7714020fbc467ef37a4df978ee0c7eef45c1ebd43370ff71f43d1dab0d11507d80de3cbf39d45cab16 SHA512 31165f932dcdf8181c012500e2dc27118860d8733932ab253d02dd07a436c0ef1f5bc3253e6def716b10ff50b37854bb5e9679cc38adec27c3366823c8656232
DIST xdp-tools-1.1.1.tar.gz 171627 BLAKE2B 5a2009f8b171d23a0f9b91b119e4376aecdddeb6d84c4323f05c03b382d4161c0d0364ef7a34b55771fe76c920b5bb18fe46c12d15c5356db6dc34174c5e5438 SHA512 580e87d7bfa7ee5b48caebceac4928386c3e3157ebb8d5cf1dd11a98187b9d17d027ef99f6598ce9b74eed7eb9b307195c4baa199675233d06c76bc8dc4861e5
diff --git a/dev-util/xdp-tools/files/xdp-tools-1.1.0-install.patch b/dev-util/xdp-tools/files/xdp-tools-1.1.0-install.patch
deleted file mode 100644
index 702d555c6..000000000
--- a/dev-util/xdp-tools/files/xdp-tools-1.1.0-install.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 1de19829622cf394a6154834955379e7e45e0cb8 Mon Sep 17 00:00:00 2001
-From: Kurt Kanzenbach <kurt@kmk-computers.de>
-Date: Fri, 10 Apr 2020 15:39:13 +0200
-Subject: [PATCH] lib: xdp: make: Fix library install
-
-Two problems:
-
- * install doesn't handle symlinks
- * static libs are installed
-
-Fix it.
-
-Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
----
- lib/libxdp/Makefile | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/lib/libxdp/Makefile b/lib/libxdp/Makefile
-index f45cc93c3076..2efe6bbea67a 100644
---- a/lib/libxdp/Makefile
-+++ b/lib/libxdp/Makefile
-@@ -49,12 +49,11 @@ install: all
- $(Q)install -d -m 0755 $(DESTDIR)$(BPF_OBJECT_DIR)
- $(Q)install -m 0644 $(LIB_HEADERS) $(DESTDIR)$(HDRDIR)/
- $(Q)install -m 0644 $(PC_FILE) $(DESTDIR)$(LIBDIR)/pkgconfig/
-- $(Q)install -m 0755 $(SHARED_LIBS) $(STATIC_LIBS) $(DESTDIR)$(LIBDIR)
-+ $(Q)cp -a $(SHARED_LIBS) $(DESTDIR)$(LIBDIR)
- $(Q)install -m 0755 $(XDP_OBJS) $(DESTDIR)$(BPF_OBJECT_DIR)
- $(if $(MAN_FILES),$(Q)install -m 0755 -d $(DESTDIR)$(MANDIR)/man3)
- $(if $(MAN_FILES),$(Q)install -m 0644 $(MAN_FILES) $(DESTDIR)$(MANDIR)/man3)
-
--
- $(OBJDIR)/libxdp.a: $(STATIC_OBJS)
- $(QUIET_LINK)$(AR) rcs $@ $^
-
---
-2.26.2
-
diff --git a/dev-util/xdp-tools/files/xdp-tools-1.1.0-readelf.patch b/dev-util/xdp-tools/files/xdp-tools-1.1.0-readelf.patch
deleted file mode 100644
index be68db3a8..000000000
--- a/dev-util/xdp-tools/files/xdp-tools-1.1.0-readelf.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From: Kurt Kanzenbach <kurt@kmk-computers.de>
-Subject: make: Fix hardcoded readelf
-
-Don't hardcode readelf. Allow to reuse something else.
-
-Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
-
----
- lib/libxdp/Makefile | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
---- a/lib/libxdp/Makefile
-+++ b/lib/libxdp/Makefile
-@@ -26,7 +26,7 @@ TEMPLATED_SOURCES := xdp-dispatcher.c
-
- CFLAGS += -I$(HEADER_DIR) -I$(LIB_DIR)/util
- BPF_CFLAGS += -I$(HEADER_DIR)
--
-+READELF ?= readelf
-
- ifndef BUILD_STATIC_ONLY
- SHARED_LIBS := $(OBJDIR)/libxdp.so \
-@@ -88,12 +88,12 @@ $(SHARED_OBJDIR)/%.o: %.c $(EXTRA_LIB_DE
-
- XDP_IN_SHARED := $(SHARED_OBJDIR)/libxdp.o
-
--GLOBAL_SYM_COUNT = $(shell readelf -s --wide $(XDP_IN_SHARED) | \
-+GLOBAL_SYM_COUNT = $(shell $(READELF) -s --wide $(XDP_IN_SHARED) | \
- cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \
- sed 's/\[.*\]//' | \
- awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}' | \
- sort -u | wc -l)
--VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OBJDIR)/libxdp.so | \
-+VERSIONED_SYM_COUNT = $(shell $(READELF) --dyn-syms --wide $(OBJDIR)/libxdp.so | \
- grep -Eo '[^ ]+@LIBXDP_' | cut -d@ -f1 | sort -u | wc -l)
-
- check: check_abi
-@@ -105,12 +105,12 @@ check_abi: $(OBJDIR)/libxdp.so
- "versioned symbols in $^ ($(VERSIONED_SYM_COUNT))." \
- "Please make sure all symbols are" \
- "versioned in $(VERSION_SCRIPT)." >&2; \
-- readelf -s --wide $(XDP_IN_SHARED) | \
-+ $(READELF) -s --wide $(XDP_IN_SHARED) | \
- cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \
- sed 's/\[.*\]//' | \
- awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}'| \
- sort -u > $(OUTPUT)libxdp_global_syms.tmp; \
-- readelf --dyn-syms --wide $(OUTPUT)libxdp.so | \
-+ $(READELF) --dyn-syms --wide $(OUTPUT)libxdp.so | \
- grep -Eo '[^ ]+@LIBXDP_' | cut -d@ -f1 | \
- sort -u > $(OUTPUT)libxdp_versioned_syms.tmp; \
- diff -u $(OUTPUT)libxdp_global_syms.tmp \
diff --git a/dev-util/xdp-tools/xdp-tools-1.1.0.ebuild b/dev-util/xdp-tools/xdp-tools-1.1.0.ebuild
deleted file mode 100644
index 71dd1e00e..000000000
--- a/dev-util/xdp-tools/xdp-tools-1.1.0.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit linux-info llvm multilib toolchain-funcs
-
-DESCRIPTION="Utilities and example programs for use with XDP"
-HOMEPAGE="https://github.com/xdp-project/xdp-tools"
-SRC_URI="https://github.com/xdp-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~x86"
-
-# skip strip for eBPF object files
-# tests have to be run as root
-RESTRICT="strip test"
-
-# skip QA check(s) for eBPF samples
-QA_EXECSTACK="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
-QA_PREBUILT="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
-
-# XDP should be enabled
-CONFIG_CHECK="~XDP_SOCKETS"
-
-LLVM_MAX_SLOT=10
-
-BDEPEND="
- virtual/pkgconfig
-"
-RDEPEND="
- >=dev-libs/libbpf-0.0.7
- net-libs/libpcap
- sys-libs/zlib
- virtual/libelf
-"
-DEPEND="${RDEPEND}
- sys-devel/clang:10
- sys-devel/llvm:10
-"
-
-PATCHES=(
- "${FILESDIR}/${P}-install.patch"
- "${FILESDIR}/${P}-readelf.patch"
-)
-
-pkg_setup() {
- llvm_pkg_setup
-}
-
-src_configure() {
- ./configure || die
-}
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- AR="$(tc-getAR)" \
- READELF=$(tc-getREADELF) \
- PRODUCTION=1 \
- DYNAMIC_LIBXDP=1 \
- FORCE_SYSTEM_LIBBPF=1 \
- PREFIX=/usr \
- LIBDIR="/usr/$(get_libdir)" all
-}
-
-src_install() {
- emake PREFIX=/usr LIBDIR="/usr/$(get_libdir)" DESTDIR="${D}" install
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-util/xdp-tools/, dev-util/xdp-tools/files/
@ 2021-07-14 19:43 Andrew Ammerlaan
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Ammerlaan @ 2021-07-14 19:43 UTC (permalink / raw
To: gentoo-commits
commit: ff25391c8f5618d62965ffdb6cf20a53e33cbec7
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de>
AuthorDate: Tue Jul 13 19:30:54 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Jul 13 19:30:54 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff25391c
dev-util/xdp-tools: Drop old
Closes: https://bugs.gentoo.org/785370
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de>
dev-util/xdp-tools/Manifest | 1 -
.../xdp-tools/files/xdp-tools-1.1.1-install.patch | 23 -------
.../xdp-tools/files/xdp-tools-1.1.1-readelf.patch | 51 ---------------
dev-util/xdp-tools/xdp-tools-1.1.1.ebuild | 75 ----------------------
4 files changed, 150 deletions(-)
diff --git a/dev-util/xdp-tools/Manifest b/dev-util/xdp-tools/Manifest
index 7edd421bf..5ecf7cd4b 100644
--- a/dev-util/xdp-tools/Manifest
+++ b/dev-util/xdp-tools/Manifest
@@ -1,2 +1 @@
-DIST xdp-tools-1.1.1.tar.gz 171627 BLAKE2B 5a2009f8b171d23a0f9b91b119e4376aecdddeb6d84c4323f05c03b382d4161c0d0364ef7a34b55771fe76c920b5bb18fe46c12d15c5356db6dc34174c5e5438 SHA512 580e87d7bfa7ee5b48caebceac4928386c3e3157ebb8d5cf1dd11a98187b9d17d027ef99f6598ce9b74eed7eb9b307195c4baa199675233d06c76bc8dc4861e5
DIST xdp-tools-1.2.0.tar.gz 233676 BLAKE2B 488bd24c5b0c25cb90cc434c0d7cecaf0cf2818d949008fabf4a1245f773e1a1e7a6520c4155df5a6364b0cc8ce2ae49b7b428209b762ecd11f9d6adc10cc57b SHA512 484e5aed6d695665e9e7edec8033b6034281fb215c758a8a8600b5b2215c7decb538efbafa4204306497197a329c3ad7c51beb33717fbe0296a345a1aca8c0a9
diff --git a/dev-util/xdp-tools/files/xdp-tools-1.1.1-install.patch b/dev-util/xdp-tools/files/xdp-tools-1.1.1-install.patch
deleted file mode 100644
index a02fb50f1..000000000
--- a/dev-util/xdp-tools/files/xdp-tools-1.1.1-install.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From 1de19829622cf394a6154834955379e7e45e0cb8 Mon Sep 17 00:00:00 2001
-From: Kurt Kanzenbach <kurt@kmk-computers.de>
-Date: Fri, 10 Apr 2020 15:39:13 +0200
-Subject: [PATCH] lib: xdp: make: Don't install static libs
-
-Don't install static libs.
-
-Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
----
- lib/libxdp/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- a/lib/libxdp/Makefile
-+++ b/lib/libxdp/Makefile
-@@ -49,7 +49,7 @@ install: all
- $(Q)install -d -m 0755 $(DESTDIR)$(BPF_OBJECT_DIR)
- $(Q)install -m 0644 $(LIB_HEADERS) $(DESTDIR)$(HDRDIR)/
- $(Q)install -m 0644 $(PC_FILE) $(DESTDIR)$(LIBDIR)/pkgconfig/
-- $(Q)cp -fpR $(SHARED_LIBS) $(STATIC_LIBS) $(DESTDIR)$(LIBDIR)
-+ $(Q)cp -fpR $(SHARED_LIBS) $(DESTDIR)$(LIBDIR)
- $(Q)install -m 0755 $(XDP_OBJS) $(DESTDIR)$(BPF_OBJECT_DIR)
- $(if $(MAN_FILES),$(Q)install -m 0755 -d $(DESTDIR)$(MANDIR)/man3)
- $(if $(MAN_FILES),$(Q)install -m 0644 $(MAN_FILES) $(DESTDIR)$(MANDIR)/man3)
diff --git a/dev-util/xdp-tools/files/xdp-tools-1.1.1-readelf.patch b/dev-util/xdp-tools/files/xdp-tools-1.1.1-readelf.patch
deleted file mode 100644
index 2330e549d..000000000
--- a/dev-util/xdp-tools/files/xdp-tools-1.1.1-readelf.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From: Kurt Kanzenbach <kurt@kmk-computers.de>
-Subject: lib: xdp: make: Fix hardcoded readelf
-
-Don't hardcode readelf. Allow to reuse something else.
-
-Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
----
- lib/libxdp/Makefile | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
---- a/lib/libxdp/Makefile
-+++ b/lib/libxdp/Makefile
-@@ -26,7 +26,7 @@ TEMPLATED_SOURCES := xdp-dispatcher.c
-
- CFLAGS += -I$(HEADER_DIR) -I$(LIB_DIR)/util
- BPF_CFLAGS += -I$(HEADER_DIR)
--
-+READELF ?= readelf
-
- ifndef BUILD_STATIC_ONLY
- SHARED_LIBS := $(OBJDIR)/libxdp.so \
-@@ -89,12 +89,12 @@ $(SHARED_OBJDIR)/%.o: %.c $(EXTRA_LIB_DE
-
- XDP_IN_SHARED := $(SHARED_OBJDIR)/libxdp.o
-
--GLOBAL_SYM_COUNT = $(shell readelf -s --wide $(XDP_IN_SHARED) | \
-+GLOBAL_SYM_COUNT = $(shell $(READELF) -s --wide $(XDP_IN_SHARED) | \
- cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \
- sed 's/\[.*\]//' | \
- awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}' | \
- sort -u | wc -l)
--VERSIONED_SYM_COUNT = $(shell readelf --dyn-syms --wide $(OBJDIR)/libxdp.so | \
-+VERSIONED_SYM_COUNT = $(shell $(READELF) --dyn-syms --wide $(OBJDIR)/libxdp.so | \
- grep -Eo '[^ ]+@LIBXDP_' | cut -d@ -f1 | sort -u | wc -l)
-
- check: check_abi
-@@ -106,12 +106,12 @@ check_abi: $(OBJDIR)/libxdp.so
- "versioned symbols in $^ ($(VERSIONED_SYM_COUNT))." \
- "Please make sure all symbols are" \
- "versioned in $(VERSION_SCRIPT)." >&2; \
-- readelf -s --wide $(XDP_IN_SHARED) | \
-+ $(READELF) -s --wide $(XDP_IN_SHARED) | \
- cut -d "@" -f1 | sed 's/_v[0-9]_[0-9]_[0-9].*//' | \
- sed 's/\[.*\]//' | \
- awk '/GLOBAL/ && /DEFAULT/ && !/UND/ {print $$NF}'| \
- sort -u > $(OUTPUT)libxdp_global_syms.tmp; \
-- readelf --dyn-syms --wide $(OUTPUT)libxdp.so | \
-+ $(READELF) --dyn-syms --wide $(OUTPUT)libxdp.so | \
- grep -Eo '[^ ]+@LIBXDP_' | cut -d@ -f1 | \
- sort -u > $(OUTPUT)libxdp_versioned_syms.tmp; \
- diff -u $(OUTPUT)libxdp_global_syms.tmp \
diff --git a/dev-util/xdp-tools/xdp-tools-1.1.1.ebuild b/dev-util/xdp-tools/xdp-tools-1.1.1.ebuild
deleted file mode 100644
index 694cfccfb..000000000
--- a/dev-util/xdp-tools/xdp-tools-1.1.1.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit linux-info llvm multilib toolchain-funcs
-
-# version v1.1.1 is not tagged, use commit
-MY_COMMIT="69827a07b395b78a2b577c3e1af6075f8c47fdd8"
-
-DESCRIPTION="Utilities and example programs for use with XDP"
-HOMEPAGE="https://github.com/xdp-project/xdp-tools"
-SRC_URI="https://github.com/xdp-project/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~amd64 ~x86"
-
-# skip strip for eBPF object files
-# tests have to be run as root
-RESTRICT="strip test"
-
-# skip QA check(s) for eBPF samples
-QA_EXECSTACK="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
-QA_PREBUILT="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
-
-# XDP should be enabled
-CONFIG_CHECK="~XDP_SOCKETS"
-
-LLVM_MAX_SLOT=10
-
-BDEPEND="
- virtual/pkgconfig
-"
-RDEPEND="
- >=dev-libs/libbpf-0.0.7
- net-libs/libpcap
- sys-libs/zlib
- virtual/libelf
-"
-DEPEND="${RDEPEND}
- sys-devel/clang:10
- sys-devel/llvm:10
-"
-
-PATCHES=(
- "${FILESDIR}/${P}-install.patch"
- "${FILESDIR}/${P}-readelf.patch"
-)
-
-S="${WORKDIR}/xdp-tools-${MY_COMMIT}"
-
-pkg_setup() {
- llvm_pkg_setup
-}
-
-src_configure() {
- ./configure || die
-}
-
-src_compile() {
- emake \
- CC="$(tc-getCC)" \
- AR="$(tc-getAR)" \
- READELF=$(tc-getREADELF) \
- PRODUCTION=1 \
- DYNAMIC_LIBXDP=1 \
- FORCE_SYSTEM_LIBBPF=1 \
- PREFIX=/usr \
- LIBDIR="/usr/$(get_libdir)" all
-}
-
-src_install() {
- emake PREFIX=/usr LIBDIR="/usr/$(get_libdir)" DESTDIR="${D}" install
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-14 19:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-15 20:39 [gentoo-commits] repo/proj/guru:master commit in: dev-util/xdp-tools/, dev-util/xdp-tools/files/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2021-07-14 19:43 Andrew Ammerlaan
2021-04-24 23:19 Theo Anderson
2021-01-15 20:39 Andrew Ammerlaan
2020-08-29 14:14 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox