From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-kernel/zenpower3/, sys-kernel/zenpower3/files/
Date: Sat, 28 Dec 2024 20:08:11 +0000 (UTC) [thread overview]
Message-ID: <1735354158.e8182c52475e6ab21711ba7121f29f3e73b495de.flow@gentoo> (raw)
commit: e8182c52475e6ab21711ba7121f29f3e73b495de
Author: kernaltrap <kernaltrap <AT> gmail <DOT> com>
AuthorDate: Sat Dec 28 02:49:18 2024 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Dec 28 02:49:18 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e8182c52
sys-kernel/zenpower3: add 9999 package
The upstream used in the versioned zenpower3 package is dead. The best fix would be to fallback to live, and use the original upstream (0.2.0 was using a fork of zenpower).
Signed-off-by: kernaltrap <kernaltrap <AT> gmail.com>
.../zenpower3-9999-use-symlink-to-detect-kernel-version.patch | 9 +++++++++
sys-kernel/zenpower3/zenpower3-0.2.0.ebuild | 1 -
.../{zenpower3-0.2.0.ebuild => zenpower3-9999.ebuild} | 11 ++++++++---
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/sys-kernel/zenpower3/files/zenpower3-9999-use-symlink-to-detect-kernel-version.patch b/sys-kernel/zenpower3/files/zenpower3-9999-use-symlink-to-detect-kernel-version.patch
new file mode 100644
index 000000000..e92abc955
--- /dev/null
+++ b/sys-kernel/zenpower3/files/zenpower3-9999-use-symlink-to-detect-kernel-version.patch
@@ -0,0 +1,9 @@
+--- a/Makefile 2024-12-27 20:38:15.878880229 -0600
++++ b/Makefile 2024-12-27 20:38:36.776225483 -0600
+@@ -1,5 +1,5 @@
+ VERSION := 0.1.12
+-TARGET := $(shell uname -r)
++TARGET ?= $(shell uname -r)
+ DKMS_ROOT_PATH := /usr/src/zenpower-$(VERSION)
+
+ KERNEL_MODULES := /lib/modules/$(TARGET)
diff --git a/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild b/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
index 906bf5c7c..d9b81129f 100644
--- a/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
+++ b/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
@@ -9,7 +9,6 @@ DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
HOMEPAGE="https://git.exozy.me/a/zenpower3"
SRC_URI="https://git.exozy.me/a/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"
-
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
diff --git a/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild b/sys-kernel/zenpower3/zenpower3-9999.ebuild
similarity index 70%
copy from sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
copy to sys-kernel/zenpower3/zenpower3-9999.ebuild
index 906bf5c7c..787bed043 100644
--- a/sys-kernel/zenpower3/zenpower3-0.2.0.ebuild
+++ b/sys-kernel/zenpower3/zenpower3-9999.ebuild
@@ -7,8 +7,14 @@ inherit linux-mod-r1
DESCRIPTION="Linux kernel driver for reading sensors of AMD Zen family CPUs"
HOMEPAGE="https://git.exozy.me/a/zenpower3"
-SRC_URI="https://git.exozy.me/a/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}"
+if [[ ${PV} -eq 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ocerman/zenpower"
+ S="${WORKDIR}/${PN}-9999"
+else
+ SRC_URI="https://git.exozy.me/a/zenpower3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}"
+fi
LICENSE="GPL-2"
SLOT="0"
@@ -28,6 +34,5 @@ src_compile() {
src_install() {
linux-mod-r1_src_install
- dobin zp_read_debug.sh
dodoc README.md
}
next reply other threads:[~2024-12-28 20:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-28 20:08 Florian Schmaus [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-29 17:49 [gentoo-commits] repo/proj/guru:master commit in: sys-kernel/zenpower3/, sys-kernel/zenpower3/files/ Florian Schmaus
2024-12-28 20:08 Florian Schmaus
2023-12-26 19:23 David Roman
2022-03-07 15:15 Ronny Gutbrod
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=1735354158.e8182c52475e6ab21711ba7121f29f3e73b495de.flow@gentoo \
--to=flow@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