From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1553540-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 09ACF158089 for <garchives@archives.gentoo.org>; Sun, 10 Sep 2023 23:48:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34AA62BC01E; Sun, 10 Sep 2023 23:48:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A6732BC01E for <gentoo-commits@lists.gentoo.org>; Sun, 10 Sep 2023 23:48:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 30DB1335C4E for <gentoo-commits@lists.gentoo.org>; Sun, 10 Sep 2023 23:48:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AE5BB1139 for <gentoo-commits@lists.gentoo.org>; Sun, 10 Sep 2023 23:48:44 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1694389715.ea693b93b97f68109c3c19a83d410ca5b3c73080.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/hdparm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/hdparm/hdparm-9.65-r1.ebuild X-VCS-Directories: sys-apps/hdparm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ea693b93b97f68109c3c19a83d410ca5b3c73080 X-VCS-Branch: master Date: Sun, 10 Sep 2023 23:48:44 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e39e0fe2-0f8a-4eae-907e-ef6242795bf9 X-Archives-Hash: 682599049733314e4778378d06bb2742 commit: ea693b93b97f68109c3c19a83d410ca5b3c73080 Author: Daniil Lunev <dlunev <AT> google <DOT> com> AuthorDate: Sun Sep 10 23:03:31 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Sep 10 23:48:35 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea693b93 sys-apps/hdparm: fix post-build strip Export STRIP only for emake step, to avoid confusing portage's strip step. - strip: strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version + strip: llvm-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version /sbin/hdparm -strip: Unable to recognise the format of the input file `/build/cherry/tmp/portage/sys-apps/hdparm-9.65/image/sbin/hdparm' [sam: I can't reproduce STRIP=: failing but the issue is clear here anyway, we don't want to interfere with the environment's STRIP (even if maybe Portage should ignore ebuild tampering with it). Just do the cleaner thing which makes the ebuild simpler as a bonus.] Closes: https://bugs.gentoo.org/913959 Signed-off-by: Daniil Lunev <dlunev <AT> google.com> Closes: https://github.com/gentoo/gentoo/pull/32718 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/hdparm/hdparm-9.65-r1.ebuild | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/sys-apps/hdparm/hdparm-9.65-r1.ebuild b/sys-apps/hdparm/hdparm-9.65-r1.ebuild new file mode 100644 index 000000000000..7e814b104e2e --- /dev/null +++ b/sys-apps/hdparm/hdparm-9.65-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Utility to change hard drive performance parameters" +HOMEPAGE="https://sourceforge.net/projects/hdparm/" +SRC_URI="mirror://sourceforge/hdparm/${P}.tar.gz" + +# GPL-2 only +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="static" + +PATCHES=( + "${FILESDIR}"/${PN}-9.60-build.patch +) + +src_prepare() { + default + + use static && append-ldflags -static +} + +src_compile() { + emake STRIP="true" CC="$(tc-getCC)" +} + +src_install() { + into / + dosbin hdparm contrib/idectl + + newinitd "${FILESDIR}"/hdparm-init-8 hdparm + newconfd "${FILESDIR}"/hdparm-conf.d.3 hdparm + + doman hdparm.8 + dodoc hdparm.lsm Changelog README.acoustic hdparm-sysconfig + + docinto wiper + dodoc wiper/{README.txt,wiper.sh} + docompress -x /usr/share/doc/${PF}/wiper/wiper.sh +}