Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] powerstat: update to 0.03.01.
@ 2023-02-27 20:08 icp1994
  2023-02-27 20:13 ` [PR PATCH] [Updated] " icp1994
  2023-03-06 20:02 ` [PR PATCH] [Merged]: " paper42
  0 siblings, 2 replies; 3+ messages in thread
From: icp1994 @ 2023-02-27 20:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

There is a new pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages powerstat
https://github.com/void-linux/void-packages/pull/42490

powerstat: update to 0.03.01.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

ref: https://github.com/void-linux/void-packages/issues/42403

A patch file from https://github.com/void-linux/void-packages/pull/42490.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-powerstat-42490.patch --]
[-- Type: text/x-diff, Size: 1411 bytes --]

From 697539a34d4807a3c6ce737e863068d5e53047c6 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Tue, 28 Feb 2023 00:53:00 +0530
Subject: [PATCH] powerstat: update to 0.03.01.

---
 srcpkgs/powerstat/template | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/powerstat/template b/srcpkgs/powerstat/template
index 2c89bbd845c2..39fc0601aaa8 100644
--- a/srcpkgs/powerstat/template
+++ b/srcpkgs/powerstat/template
@@ -1,15 +1,13 @@
 # Template file for 'powerstat'
 pkgname=powerstat
-version=0.02.25
+version=0.03.01
 revision=1
 build_style=gnu-makefile
+make_use_env=yes
 short_desc="Measures the power consumption using the ACPI battery information"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-2.0-or-later"
-homepage="http://kernel.ubuntu.com/~cking/powerstat/"
-distfiles="http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz"
-checksum=0ba3023979c494323af5090b29dd97d922ef79df1c44237443a06152fbeab136
-
-do_build() {
-	make CC=$CC CFLAGS+="-DVERSION=\\\"$version\\\" $CFLAGS" ${makejobs}
-}
+homepage="https://github.com/ColinIanKing/powerstat"
+changelog="https://raw.githubusercontent.com/ColinIanKing/powerstat/master/debian/changelog"
+distfiles="https://github.com/ColinIanKing/powerstat/archive/refs/tags/V${version}.tar.gz"
+checksum=601428cf3bba2a81fb83a9d6999a3ae4fb2d662a08435654a8aab74090f861ce

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] powerstat: update to 0.03.01.
  2023-02-27 20:08 [PR PATCH] powerstat: update to 0.03.01 icp1994
@ 2023-02-27 20:13 ` icp1994
  2023-03-06 20:02 ` [PR PATCH] [Merged]: " paper42
  1 sibling, 0 replies; 3+ messages in thread
From: icp1994 @ 2023-02-27 20:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

There is an updated pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages powerstat
https://github.com/void-linux/void-packages/pull/42490

powerstat: update to 0.03.01.
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

ref: https://github.com/void-linux/void-packages/issues/42403

A patch file from https://github.com/void-linux/void-packages/pull/42490.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-powerstat-42490.patch --]
[-- Type: text/x-diff, Size: 2447 bytes --]

From 99c9f1532eb57f2e6d9b48f89d372be415b6b659 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Tue, 28 Feb 2023 00:53:00 +0530
Subject: [PATCH] powerstat: update to 0.03.01.

Fix musl builds.
---
 .../patches/0001-strlcpy-no-static.patch      | 20 +++++++++++++++++++
 srcpkgs/powerstat/template                    | 14 ++++++-------
 2 files changed, 26 insertions(+), 8 deletions(-)
 create mode 100644 srcpkgs/powerstat/patches/0001-strlcpy-no-static.patch

diff --git a/srcpkgs/powerstat/patches/0001-strlcpy-no-static.patch b/srcpkgs/powerstat/patches/0001-strlcpy-no-static.patch
new file mode 100644
index 000000000000..e3377933c316
--- /dev/null
+++ b/srcpkgs/powerstat/patches/0001-strlcpy-no-static.patch
@@ -0,0 +1,20 @@
+Author: ptrcnull <git@ptrcnull.me>
+Date:   Sun Feb 6 08:51:27 2022 +0100
+
+    Remove "static" from strlcpy
+    
+    powerstat.c:339:15: error: static declaration of 'strlcpy' follows non-static declaration
+
+diff --git a/powerstat.c b/powerstat.c
+index cf5fc6e..7d03f66 100644
+--- a/powerstat.c
++++ b/powerstat.c
+@@ -336,7 +336,7 @@ static const int signals[] = {
+  *  strlcpy()
+  *	BSD strlcpy
+  */
+-static size_t strlcpy(char *dst, const char *src, size_t len)
++size_t strlcpy(char *dst, const char *src, size_t len)
+ {
+ 	char *d = dst;
+ 	const char *s = src;
diff --git a/srcpkgs/powerstat/template b/srcpkgs/powerstat/template
index 2c89bbd845c2..39fc0601aaa8 100644
--- a/srcpkgs/powerstat/template
+++ b/srcpkgs/powerstat/template
@@ -1,15 +1,13 @@
 # Template file for 'powerstat'
 pkgname=powerstat
-version=0.02.25
+version=0.03.01
 revision=1
 build_style=gnu-makefile
+make_use_env=yes
 short_desc="Measures the power consumption using the ACPI battery information"
 maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-2.0-or-later"
-homepage="http://kernel.ubuntu.com/~cking/powerstat/"
-distfiles="http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz"
-checksum=0ba3023979c494323af5090b29dd97d922ef79df1c44237443a06152fbeab136
-
-do_build() {
-	make CC=$CC CFLAGS+="-DVERSION=\\\"$version\\\" $CFLAGS" ${makejobs}
-}
+homepage="https://github.com/ColinIanKing/powerstat"
+changelog="https://raw.githubusercontent.com/ColinIanKing/powerstat/master/debian/changelog"
+distfiles="https://github.com/ColinIanKing/powerstat/archive/refs/tags/V${version}.tar.gz"
+checksum=601428cf3bba2a81fb83a9d6999a3ae4fb2d662a08435654a8aab74090f861ce

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: powerstat: update to 0.03.01.
  2023-02-27 20:08 [PR PATCH] powerstat: update to 0.03.01 icp1994
  2023-02-27 20:13 ` [PR PATCH] [Updated] " icp1994
@ 2023-03-06 20:02 ` paper42
  1 sibling, 0 replies; 3+ messages in thread
From: paper42 @ 2023-03-06 20:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

There's a merged pull request on the void-packages repository

powerstat: update to 0.03.01.
https://github.com/void-linux/void-packages/pull/42490

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

ref: https://github.com/void-linux/void-packages/issues/42403

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-06 20:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-27 20:08 [PR PATCH] powerstat: update to 0.03.01 icp1994
2023-02-27 20:13 ` [PR PATCH] [Updated] " icp1994
2023-03-06 20:02 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).