diff options
author | 2024-06-22 14:12:22 -0700 | |
---|---|---|
committer | 2024-06-22 14:14:36 -0700 | |
commit | 5ccfb3ce0e2dd3d30e2a19ef5c3da0c7fb421dec (patch) | |
tree | c464c2a437ce7fecf4ac2aeb50e5426fffb1066c /sys-power | |
parent | app-shells/bash: do not update internal window title of screen and tmux (diff) | |
download | gentoo-5ccfb3ce0e2dd3d30e2a19ef5c3da0c7fb421dec.tar.gz gentoo-5ccfb3ce0e2dd3d30e2a19ef5c3da0c7fb421dec.tar.bz2 gentoo-5ccfb3ce0e2dd3d30e2a19ef5c3da0c7fb421dec.zip |
sys-power/pmtools: bump to 20130209
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://bugs.gentoo.org/874702
Closes: https://bugs.gentoo.org/565232
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/pmtools/Manifest | 1 | ||||
-rw-r--r-- | sys-power/pmtools/files/pmtools-20110323-r2-types.patch | 21 | ||||
-rw-r--r-- | sys-power/pmtools/pmtools-20130209.ebuild | 54 |
3 files changed, 76 insertions, 0 deletions
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* +} |