public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-power/pmtools/, sys-power/pmtools/files/
Date: Sat, 22 Jun 2024 21:14:39 +0000 (UTC)	[thread overview]
Message-ID: <1719090876.5ccfb3ce0e2dd3d30e2a19ef5c3da0c7fb421dec.robbat2@gentoo> (raw)

commit:     5ccfb3ce0e2dd3d30e2a19ef5c3da0c7fb421dec
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 22 21:12:22 2024 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Jun 22 21:14:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ccfb3ce

sys-power/pmtools: bump to 20130209

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
Closes: https://bugs.gentoo.org/874702
Closes: https://bugs.gentoo.org/565232

 sys-power/pmtools/Manifest                         |  1 +
 .../pmtools/files/pmtools-20110323-r2-types.patch  | 21 +++++++++
 sys-power/pmtools/pmtools-20130209.ebuild          | 54 ++++++++++++++++++++++
 3 files changed, 76 insertions(+)

diff --git a/sys-power/pmtools/Manifest b/sys-power/pmtools/Manifest
index e8878e1ef742..f01fbcc156ae 100644
--- a/sys-power/pmtools/Manifest
+++ b/sys-power/pmtools/Manifest
@@ -1 +1,2 @@
 DIST pmtools-20110323.tar.gz 62002 BLAKE2B f1de2e266d72c8a69a61df0fc57bc0b27e9a4fc89f840e893b8fbb1bc93ec54dc5f502a1066d17d082341c99b829189911d558261409455fd1db368924fbea59 SHA512 81108c011b45c58c02013a3653c2d00bc2a9a9d80bf85438a193a4fed04a3fd2890d9cd4d64ab455e3e9c1613d35a6be59698395d9a27ca0a858e3935439bafd
+DIST pmtools-20130209.tar.gz 52952 BLAKE2B bf628f458f8bddb4dc7d18866026c0e45343c88686a57121a2bb5856c0816c90a85bb67636a77258530b18b8e4e72868d991eefb280741f60ac5ac8a90bbc75b SHA512 696af0967caed1ff51411c1bc5b01cbb300f465cb3c28d9d5b1d456d85a50d173a343e32a162fa1ea836f825365997c9bdf109595be737c7e01391b9d7ace6c5

diff --git a/sys-power/pmtools/files/pmtools-20110323-r2-types.patch b/sys-power/pmtools/files/pmtools-20110323-r2-types.patch
new file mode 100644
index 000000000000..bdff55d26315
--- /dev/null
+++ b/sys-power/pmtools/files/pmtools-20110323-r2-types.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/874702#c8
+--- pmtools-orig/madt/madt.c	2005-11-12 04:07:04.000000000 +1100
++++ pmtools/madt/madt.c	2024-06-06 12:04:59.554214977 +1000
+@@ -42,7 +42,7 @@
+ /* read standard input
+  * write decoded madt to standard output
+  */
+-get_next_entry(acpi_table_entry_header * entry_header)
++int get_next_entry(acpi_table_entry_header * entry_header)
+ {
+ 	size_t retval;
+ 
+@@ -53,7 +53,7 @@
+ 
+ u8	buffer[1024];
+ 
+-main()
++int main()
+ {
+ 	size_t retval;
+ 	struct acpi_table_madt *madt_header;

diff --git a/sys-power/pmtools/pmtools-20130209.ebuild b/sys-power/pmtools/pmtools-20130209.ebuild
new file mode 100644
index 000000000000..b0f2450048c8
--- /dev/null
+++ b/sys-power/pmtools/pmtools-20130209.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Collection of tools for ACPI and power management"
+HOMEPAGE="https://github.com/anyc/pmtools/"
+SRC_URI="https://github.com/anyc/pmtools/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+# dev-lang/perl - RDEPEND for the pmtest tooling, which only works on much older kernels.
+RDEPEND="
+	>=sys-power/iasl-20090521
+"
+
+PATCHES=(
+	# All merged upstream in 20230209
+	#"${FILESDIR}"/${PN}-20100123-acpixtract-pmtools.patch
+	#"${FILESDIR}"/${PN}-20100123-madt.patch
+	#"${FILESDIR}"/${PN}-20071116-64bit.patch
+	#"${FILESDIR}"/${PN}-20101124-cflags-ldflags.patch
+
+	# New patches
+	"${FILESDIR}"/pmtools-20110323-r2-types.patch
+)
+
+src_prepare() {
+	default
+
+	# update version info
+	sed -i -e "s|20060324|20110323|" acpixtract/acpixtract.c || die
+
+	strip-unsupported-flags
+}
+
+src_compile() {
+	# respect user's LDFLAGS
+	emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+	newbin acpidump/acpidump acpidump-pmtools
+	newbin acpixtract/acpixtract acpixtract-pmtools
+	dobin madt/madt
+
+	dodoc README madt/README.madt
+	use doc && dodoc madt/APIC*
+}


             reply	other threads:[~2024-06-22 21:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-22 21:14 Robin H. Johnson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-06 20:33 [gentoo-commits] repo/gentoo:master commit in: sys-power/pmtools/, sys-power/pmtools/files/ Jakov Smolić

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=1719090876.5ccfb3ce0e2dd3d30e2a19ef5c3da0c7fb421dec.robbat2@gentoo \
    --to=robbat2@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