summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch31
-rw-r--r--meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb (renamed from meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb)9
2 files changed, 3 insertions, 37 deletions
diff --git a/meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch b/meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch
deleted file mode 100644
index 9423141962..0000000000
--- a/meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 7df10d91db6f533cc0f6c09f4ae8ad92918c6160 Mon Sep 17 00:00:00 2001
2From: Matteo Croce <mcroce@microsoft.com>
3Date: Tue, 26 Jan 2021 12:41:47 +0100
4Subject: [PATCH] install: don't preserve file owner
5
6'cp -p' preserve file ownership, this may leave files owned by the
7current in user in /lib .
8
9Upstream-status: Submitted (0.4 release) [https://github.com/libbpf/libbpf/commit/767d82caab7e54238f2fc6f40ab1e4af285f2abe]
10
11Signed-off-by: Matteo Croce <mcroce@microsoft.com>
12---
13 Makefile | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/Makefile b/Makefile
17index da33613..ab66edc 100644
18--- a/Makefile
19+++ b/Makefile
20@@ -130,7 +130,7 @@ define do_s_install
21 $(Q)if [ ! -d '$(DESTDIR)$2' ]; then \
22 $(INSTALL) -d -m 755 '$(DESTDIR)$2'; \
23 fi;
24- $(Q)cp -fpR $1 '$(DESTDIR)$2'
25+ $(Q)cp -fR $1 '$(DESTDIR)$2'
26 endef
27
28 install: all install_headers install_pkgconfig
29--
302.29.2
31
diff --git a/meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb b/meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb
index 57e8376b5e..27df98c3e7 100644
--- a/meta-oe/recipes-kernel/libbpf/libbpf_0.3.bb
+++ b/meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb
@@ -6,24 +6,21 @@ LICENSE = "LGPLv2.1+"
6 6
7# There is a typo in the filename, LPGL should really be LGPL. 7# There is a typo in the filename, LPGL should really be LGPL.
8# Keep this until the correct name is set upstream. 8# Keep this until the correct name is set upstream.
9LIC_FILES_CHKSUM = "file://../LICENSE.LPGL-2.1;md5=b370887980db5dd40659b50909238dbd" 9LIC_FILES_CHKSUM = "file://../LICENSE.LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
10 10
11DEPENDS = "zlib elfutils" 11DEPENDS = "zlib elfutils"
12 12
13do_compile[depends] += "virtual/kernel:do_shared_workdir" 13do_compile[depends] += "virtual/kernel:do_shared_workdir"
14 14
15SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https" 15SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https"
16SRCREV = "051a4009f94d5633a8f734ca4235f0a78ee90469" 16SRCREV = "db9614b6bd69746809d506c2786f914b0f812c37"
17
18# Backported from version 0.4
19SRC_URI += "file://0001-install-don-t-preserve-file-owner.patch"
20 17
21PACKAGE_ARCH = "${MACHINE_ARCH}" 18PACKAGE_ARCH = "${MACHINE_ARCH}"
22COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64).*-linux" 19COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64).*-linux"
23 20
24S = "${WORKDIR}/git/src" 21S = "${WORKDIR}/git/src"
25 22
26EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir}" 23EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}"
27 24
28inherit pkgconfig 25inherit pkgconfig
29 26