public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbpf/
Date: Tue, 21 Sep 2021 00:37:12 +0000 (UTC)	[thread overview]
Message-ID: <1632184627.5d22ff4feb4aef6552ba0f27521e01001b7a849d.chutzpah@gentoo> (raw)

commit:     5d22ff4feb4aef6552ba0f27521e01001b7a849d
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 14 19:12:54 2021 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Sep 21 00:37:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d22ff4f

dev-libs/libbpf: Port to EAPI 8

- Reorder variables per skel.ebuild
- Drop redundant COMMON_DEPEND
- Export CC, AR and other variables instead of passing them directly to emake
- Drop USE=static-libs, since the build-system doesn't offer a way to build only
  shared library, so let's just install both libraries unconditionally

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-libs/libbpf/libbpf-9999.ebuild | 38 +++++++++++++++++---------------------
 1 file changed, 17 insertions(+), 21 deletions(-)

diff --git a/dev-libs/libbpf/libbpf-9999.ebuild b/dev-libs/libbpf/libbpf-9999.ebuild
index a122d56cb68..2b8fd07a6a9 100644
--- a/dev-libs/libbpf/libbpf-9999.ebuild
+++ b/dev-libs/libbpf/libbpf-9999.ebuild
@@ -1,7 +1,7 @@
 # Copyright 2019-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit flag-o-matic toolchain-funcs
 
@@ -10,46 +10,42 @@ if [[ ${PV} =~ [9]{4,} ]]; then
 	EGIT_REPO_URI="https://github.com/libbpf/libbpf.git"
 else
 	SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-	KEYWORDS="~amd64 ~arm64 ~x86"
+	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 fi
 S="${WORKDIR}/${P}/src"
 
-HOMEPAGE="https://github.com/libbpf/libbpf"
 DESCRIPTION="Stand-alone build of libbpf from the Linux kernel"
+HOMEPAGE="https://github.com/libbpf/libbpf"
 
 LICENSE="GPL-2 LGPL-2.1 BSD-2"
 SLOT="0/${PV}"
-IUSE="+static-libs"
+IUSE="static-libs"
 
-COMMON_DEPEND="virtual/libelf
-	!<=dev-util/bcc-0.7.0"
-DEPEND="${COMMON_DEPEND}
-	sys-kernel/linux-headers"
-RDEPEND="${COMMON_DEPEND}"
+DEPEND="
+	sys-kernel/linux-headers
+	virtual/libelf"
+RDEPEND="${DEPEND}"
 
 PATCHES=(
-	"${FILESDIR}/libbpf-9999-paths.patch"
+	"${FILESDIR}"/libbpf-9999-paths.patch
 )
 
-src_compile() {
+src_configure() {
 	append-cflags -fPIC
-	emake \
-		BUILD_SHARED=y \
-		LIBSUBDIR="$(get_libdir)" \
-		$(usex static-libs 'BUILD_STATIC=y' '' '' '') \
-		CC="$(tc-getCC)" \
-		AR="$(tc-getAR)" \
-		V=1
+	tc-export CC AR
+	export LIBSUBDIR="$(get_libdir)"
+	export V=1
 }
 
 src_install() {
 	emake \
-		BUILD_SHARED=y \
-		LIBSUBDIR="$(get_libdir)" \
 		DESTDIR="${D}" \
-		$(usex static-libs 'BUILD_STATIC=y' '' '' '') \
 		install install_uapi_headers
 
+	if ! use static-libs; then
+		find "${ED}" -name '*.a' -delete || die
+	fi
+
 	insinto /usr/$(get_libdir)/pkgconfig
 	doins ${PN}.pc
 }


             reply	other threads:[~2021-09-21  0:37 UTC|newest]

Thread overview: 149+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-21  0:37 Patrick McLean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-17 13:14 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libbpf/ Arthur Zamarin
2025-01-06  9:27 Sam James
2024-12-09 12:36 Arthur Zamarin
2024-12-09 12:36 Arthur Zamarin
2024-12-09 12:36 Arthur Zamarin
2024-11-11 22:25 Sam James
2024-11-02 10:01 Arthur Zamarin
2024-11-02 10:00 Arthur Zamarin
2024-11-02 10:00 Arthur Zamarin
2024-07-11 22:05 Patrick McLean
2024-07-11 22:05 Patrick McLean
2024-06-25 16:53 Jakov Smolić
2024-06-18 18:55 Jakov Smolić
2024-05-24 18:26 Patrick McLean
2024-04-05 23:17 Patrick McLean
2024-04-05 23:17 Patrick McLean
2024-01-10 15:03 Sam James
2024-01-08 21:10 Arthur Zamarin
2024-01-08 21:10 Arthur Zamarin
2024-01-08  7:53 Sam James
2024-01-08  7:53 Sam James
2024-01-08  7:53 Sam James
2023-12-23 18:45 Jakov Smolić
2023-11-27 23:29 Patrick McLean
2023-11-27 23:22 Patrick McLean
2023-10-04 18:32 Arthur Zamarin
2023-10-03 23:04 Sam James
2023-10-03 22:45 Sam James
2023-10-03 22:41 Sam James
2023-10-03 22:40 Sam James
2023-10-03 22:39 Sam James
2023-10-03 22:39 Sam James
2023-08-27 10:44 Jakov Smolić
2023-08-27 10:42 Jakov Smolić
2023-08-02 22:08 Sam James
2023-07-11 23:55 Patrick McLean
2023-07-10 22:27 Patrick McLean
2023-06-09 17:05 Arthur Zamarin
2023-06-09 16:35 Arthur Zamarin
2023-06-09 16:13 Arthur Zamarin
2023-06-09 15:27 Arthur Zamarin
2023-06-09 14:29 Sam James
2023-05-02 17:10 Patrick McLean
2023-04-03  7:33 Jakov Smolić
2023-03-29 14:36 Sam James
2023-03-29 14:33 Sam James
2023-03-29 14:33 Sam James
2023-03-29 14:33 Sam James
2023-03-29 14:33 Sam James
2023-03-29 13:41 Sam James
2023-03-29 13:41 Sam James
2023-01-25  6:44 Jakov Smolić
2023-01-05  5:21 Sam James
2022-12-24  8:17 Sam James
2022-12-24  7:18 Sam James
2022-12-24  7:11 Sam James
2022-10-04 15:42 Jakov Smolić
2022-09-25  1:27 Sam James
2022-08-22 20:38 Patrick McLean
2022-08-22 20:38 Patrick McLean
2022-08-21 14:57 Jakov Smolić
2022-08-16 16:41 Arthur Zamarin
2022-08-16 16:41 Arthur Zamarin
2022-08-16 16:41 Arthur Zamarin
2022-08-16 16:41 Arthur Zamarin
2022-08-16 16:41 Arthur Zamarin
2022-08-16 15:07 Sam James
2022-08-16 15:07 Sam James
2022-07-14 23:02 Patrick McLean
2022-06-27 17:32 Jakov Smolić
2022-06-22 13:25 Agostino Sarubbo
2022-06-22 13:23 Agostino Sarubbo
2022-06-22 10:13 Agostino Sarubbo
2022-06-21 18:30 Arthur Zamarin
2022-06-21 16:18 Jakov Smolić
2022-06-21 16:07 Jakov Smolić
2022-06-21 15:25 Agostino Sarubbo
2022-05-16 22:58 Patrick McLean
2022-05-04  8:16 WANG Xuerui
2022-05-04  8:16 WANG Xuerui
2022-03-15 18:01 Jakov Smolić
2022-03-15 11:27 Jakov Smolić
2022-03-07 14:33 Jakov Smolić
2022-03-07  7:28 Agostino Sarubbo
2022-03-07  7:26 Agostino Sarubbo
2022-03-07  3:56 Sam James
2022-03-07  3:56 Sam James
2022-03-06 23:52 Sam James
2022-02-11 19:42 Jakov Smolić
2022-01-14  9:55 Jakov Smolić
2022-01-13 18:29 Arthur Zamarin
2022-01-13 18:29 Arthur Zamarin
2022-01-13  0:34 Sam James
2022-01-13  0:33 Sam James
2022-01-13  0:32 Sam James
2022-01-13  0:32 Sam James
2022-01-12 11:41 Jakov Smolić
2022-01-05 19:19 Jakov Smolić
2022-01-05 11:20 Sam James
2022-01-04 20:48 Sam James
2022-01-04 20:48 Sam James
2022-01-04 20:48 Sam James
2022-01-04 20:47 Sam James
2022-01-04 18:09 Jakov Smolić
2021-12-12 17:57 Jakov Smolić
2021-12-02  2:01 Patrick McLean
2021-11-29 11:46 Jakov Smolić
2021-11-17 10:52 Sam James
2021-11-16  2:53 Sam James
2021-11-10 16:47 Sam James
2021-11-10  6:03 Arthur Zamarin
2021-11-10  4:15 Sam James
2021-11-09 22:05 Jakov Smolić
2021-11-09 15:04 Jakov Smolić
2021-11-07 20:59 Jakov Smolić
2021-11-07 20:59 Jakov Smolić
2021-09-21  0:37 Patrick McLean
2021-09-21  0:37 Patrick McLean
2021-08-11 23:13 Sam James
2021-08-11  0:24 Sam James
2021-08-11  0:12 Sam James
2021-08-11  0:02 Sam James
2021-08-10 15:36 Agostino Sarubbo
2021-07-25  3:36 Matt Turner
2021-05-25 18:36 Patrick McLean
2021-05-23  0:35 Joshua Kinard
2021-04-01  9:11 Yixun Lan
2021-02-25 22:20 Sergei Trofimovich
2021-02-25  8:41 Sergei Trofimovich
2021-02-25  8:27 Sergei Trofimovich
2021-02-25  8:03 Sergei Trofimovich
2021-02-25  8:00 Sergei Trofimovich
2021-02-24 23:30 Sam James
2021-02-24 16:24 Sam James
2021-01-04 21:36 Patrick McLean
2020-10-30 21:13 Patrick McLean
2020-10-02 18:49 Patrick McLean
2020-08-25  0:11 Patrick McLean
2020-08-25  0:11 Patrick McLean
2020-08-25  0:11 Patrick McLean
2020-06-25 17:09 Patrick McLean
2020-06-19 23:22 Patrick McLean
2020-04-21 17:55 Patrick McLean
2020-04-01 17:37 Patrick McLean
2019-12-11  3:05 Patrick McLean
2019-07-24 17:23 Patrick McLean
2019-05-21 14:06 Stephen Klimaszewski
2019-03-12  6:18 Patrick McLean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1632184627.5d22ff4feb4aef6552ba0f27521e01001b7a849d.chutzpah@gentoo \
    --to=chutzpah@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox