mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
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
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST pmtools-20110323.tar.gz 62002 BLAKE2B f1de2e266d72c8a69a61df0fc57bc0b27e9a4fc89f840e893b8fbb1bc93ec54dc5f502a1066d17d082341c99b829189911d558261409455fd1db368924fbea59 SHA512 81108c011b45c58c02013a3653c2d00bc2a9a9d80bf85438a193a4fed04a3fd2890d9cd4d64ab455e3e9c1613d35a6be59698395d9a27ca0a858e3935439bafd
|
||||
DIST pmtools-20130209.tar.gz 52952 BLAKE2B bf628f458f8bddb4dc7d18866026c0e45343c88686a57121a2bb5856c0816c90a85bb67636a77258530b18b8e4e72868d991eefb280741f60ac5ac8a90bbc75b SHA512 696af0967caed1ff51411c1bc5b01cbb300f465cb3c28d9d5b1d456d85a50d173a343e32a162fa1ea836f825365997c9bdf109595be737c7e01391b9d7ace6c5
|
||||
|
||||
21
sys-power/pmtools/files/pmtools-20110323-r2-types.patch
Normal file
21
sys-power/pmtools/files/pmtools-20110323-r2-types.patch
Normal file
@@ -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;
|
||||
54
sys-power/pmtools/pmtools-20130209.ebuild
Normal file
54
sys-power/pmtools/pmtools-20130209.ebuild
Normal file
@@ -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*
|
||||
}
|
||||
Reference in New Issue
Block a user