public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clippy/
Date: Tue, 17 May 2022 01:06:44 +0000 (UTC)	[thread overview]
Message-ID: <1652749577.0e4bdd6bbebca017d6099c62090116306d1c1a89.sam@gentoo> (raw)

commit:     0e4bdd6bbebca017d6099c62090116306d1c1a89
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sun May 15 01:05:34 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 17 01:06:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e4bdd6b

dev-util/clippy: Fix clippy install with slibtool

Installing a file created by libtool is not portable for slibtool and
this will result in installing the slibtool shell wrapper script for
clippy and not the clippy binary.

This additionally fails when compiling net-misc/frr which will use the
shell wrapper script that does not work outside of the build directory.

The 'make install' target is not appropriate for --enable-clippy-only
and fixing that seems like significant work so just use shell instead to
find the correct file.

I bumped the ebuild revision because this causes a build failure in frr.

Bug: https://bugs.gentoo.org/830087
Signed-off-by: orbea <orbea <AT> riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/25491
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/clippy/clippy-8.2.2-r1.ebuild | 46 ++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/dev-util/clippy/clippy-8.2.2-r1.ebuild b/dev-util/clippy/clippy-8.2.2-r1.ebuild
new file mode 100644
index 000000000000..5b4cdd92cece
--- /dev/null
+++ b/dev-util/clippy/clippy-8.2.2-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="frr-${PV}"
+PYTHON_COMPAT=( python3_{8..10} )
+inherit autotools python-single-r1
+
+DESCRIPTION="Standalone clippy tool built from FRR sources"
+HOMEPAGE="https://frrouting.org/"
+SRC_URI="https://github.com/FRRouting/frr/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/frr-${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# standalone clippy does not have any tests
+# restrict to prevent bug 811753
+RESTRICT="test"
+
+DEPEND="
+	${PYTHON_DEPS}
+	virtual/libelf:=
+"
+RDEPEND="${DEPEND}"
+BDEPEND="sys-devel/flex"
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	econf --enable-clippy-only
+}
+
+src_install() {
+	# 830087
+	find "lib" -type f -name "clippy" -print0 |
+		xargs -0 file | grep executable | grep ELF | cut -f 1 -d : |
+		xargs -I '{}' dobin '{}' ||
+		die "Failed to install 'lib/clippy'"
+}


             reply	other threads:[~2022-05-17  1:06 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-17  1:06 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-09 17:31 [gentoo-commits] repo/gentoo:master commit in: dev-util/clippy/ Eli Schwartz
2024-10-07  2:40 Sam James
2024-10-04  8:13 Sam James
2024-07-30  8:49 Pacho Ramos
2024-03-21  5:54 Joonas Niilola
2024-02-09 13:19 Joonas Niilola
2023-12-27  0:20 Jakov Smolić
2023-12-24  1:02 Sam James
2023-10-11 21:07 Jakov Smolić
2023-10-11 21:07 Jakov Smolić
2023-08-27 10:39 Jakov Smolić
2023-08-27 10:39 Jakov Smolić
2023-07-24  7:49 Jakov Smolić
2023-07-14 13:32 Jakov Smolić
2023-07-14 13:32 Jakov Smolić
2023-07-11 14:02 Jakov Smolić
2023-05-05  6:24 Jakov Smolić
2023-04-04  8:07 Jakov Smolić
2023-04-03  7:33 Jakov Smolić
2023-03-29 14:36 Sam James
2023-03-29 14:36 Sam James
2023-02-09 17:51 Sergey Popov
2023-02-04 23:37 Sam James
2022-12-08 13:11 Sergey Popov
2022-06-21 16:22 Jakov Smolić
2022-06-21 16:06 Jakov Smolić
2022-06-21 16:06 Jakov Smolić
2022-05-30 13:53 Jakov Smolić
2022-05-30  6:58 Agostino Sarubbo
2022-05-28 15:58 Jakov Smolić
2022-04-27 22:23 Jakov Smolić
2022-02-24  9:38 Jakov Smolić
2022-02-24  9:37 Jakov Smolić
2022-02-24  9:37 Jakov Smolić
2021-12-12 18:01 Jakov Smolić
2021-12-12 17:58 Jakov Smolić
2021-12-12 17:58 Jakov Smolić
2021-11-11 10:56 Jakov Smolić
2021-10-14 13:38 Sergey Popov
2021-10-05  7:17 Jakov Smolić
2021-10-05  7:17 Jakov Smolić
2021-08-28  9:12 Jakov Smolić
2021-08-25  7:40 Sergey Popov
2021-08-22 21:53 David Seifert
2021-05-15  2:21 Sam James
2021-03-30  9:31 David Seifert

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=1652749577.0e4bdd6bbebca017d6099c62090116306d1c1a89.sam@gentoo \
    --to=sam@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