From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CCBF11581FB for ; Sun, 24 Nov 2024 03:20:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B7CBE0833; Sun, 24 Nov 2024 03:20:29 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C7E79E0833 for ; Sun, 24 Nov 2024 03:20:27 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 22F4E340A12 for ; Sun, 24 Nov 2024 03:20:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A779D81 for ; Sun, 24 Nov 2024 03:20:24 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1732417890.2517c840b2ec40bdfa1b6575fd7cf84a2cd9904f.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/hdapsd/files/, app-laptop/hdapsd/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-laptop/hdapsd/files/hdapsd-20141203-usage-doesnt-take-args.patch app-laptop/hdapsd/hdapsd-20141203-r3.ebuild X-VCS-Directories: app-laptop/hdapsd/ app-laptop/hdapsd/files/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 2517c840b2ec40bdfa1b6575fd7cf84a2cd9904f X-VCS-Branch: master Date: Sun, 24 Nov 2024 03:20:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d368dad0-0256-481d-8980-c764f8eb6db5 X-Archives-Hash: f7cb0bac766829b771e2833f5e8247da commit: 2517c840b2ec40bdfa1b6575fd7cf84a2cd9904f Author: Michael Orlitzky gentoo org> AuthorDate: Sun Nov 24 03:05:57 2024 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Sun Nov 24 03:11:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2517c840 app-laptop/hdapsd: trivial patch to fix the build with gcc-15 I'm doing this one straight to stable because, ultimately, the stabilization process is that I say to stabilize it. So long as it builds, this package requires special hardware to actually test, and it's hardware that hasn't been made for a looooong time. Closes: https://bugs.gentoo.org/944301 Signed-off-by: Michael Orlitzky gentoo.org> .../hdapsd-20141203-usage-doesnt-take-args.patch | 23 ++++++++++++++++++++++ app-laptop/hdapsd/hdapsd-20141203-r3.ebuild | 5 +++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/app-laptop/hdapsd/files/hdapsd-20141203-usage-doesnt-take-args.patch b/app-laptop/hdapsd/files/hdapsd-20141203-usage-doesnt-take-args.patch new file mode 100644 index 000000000000..4723aeb543d6 --- /dev/null +++ b/app-laptop/hdapsd/files/hdapsd-20141203-usage-doesnt-take-args.patch @@ -0,0 +1,23 @@ +From f74b32c417af940dc1ebb64cde49503253064c28 Mon Sep 17 00:00:00 2001 +From: Evgeni Golov +Date: Thu, 30 May 2024 17:32:56 +0200 +Subject: [PATCH] don't pass argv to usage, it doesn't take any params + +thanks clang! +--- + src/hdapsd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/hdapsd.c b/src/hdapsd.c +index 03d21a1..92c6f25 100644 +--- a/src/hdapsd.c ++++ b/src/hdapsd.c +@@ -1027,7 +1027,7 @@ int main (int argc, char** argv) + } + + if (disklist == NULL) +- usage(argv); ++ usage(); + + /* Let's see if we're on a ThinkPad or on an *Book */ + if (!position_interface) diff --git a/app-laptop/hdapsd/hdapsd-20141203-r3.ebuild b/app-laptop/hdapsd/hdapsd-20141203-r3.ebuild index dc97598dd6d8..e887d92dc008 100644 --- a/app-laptop/hdapsd/hdapsd-20141203-r3.ebuild +++ b/app-laptop/hdapsd/hdapsd-20141203-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,10 +13,11 @@ SLOT="0" KEYWORDS="amd64 x86" IUSE="libconfig" -BDEPEND="" DEPEND="libconfig? ( dev-libs/libconfig:= )" RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/${P}-usage-doesnt-take-args.patch" ) + pkg_setup() { # We require the hdaps module which can either come from either the # kernel itself (CONFIG_SENSORS_HDAPS) or from the tp_smapi package.