From: zlice <zlice@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] hardinfo: revbump for remove_linefeed fixes
Date: Fri, 14 Apr 2023 22:57:34 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43453@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 762 bytes --]
There is a new pull request by zlice against master on the void-packages repository
https://github.com/zlice/void-packages hardinfo_remove_linefeed
https://github.com/void-linux/void-packages/pull/43453
hardinfo: revbump for remove_linefeed fixes
#### 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**
#### Comments
Clicking on the `sensors` page gave `hardinfo: symbol lookup error: /usr/lib64/hardinfo/modules/devices.so: undefined symbol: remove_linefeed`
Copied what was in current `fix-runtime.patch`. Not how it worked before, last updated 2020.
A patch file from https://github.com/void-linux/void-packages/pull/43453.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-hardinfo_remove_linefeed-43453.patch --]
[-- Type: text/x-diff, Size: 3099 bytes --]
From aa296f40648bdebf883c6c28cc8957d5f948052d Mon Sep 17 00:00:00 2001
From: zlice <zlice555@gmail.com>
Date: Fri, 14 Apr 2023 16:54:50 -0400
Subject: [PATCH] hardinfo: revbump for remove_linefeed fixes
---
srcpkgs/hardinfo/patches/fix-runtime.patch | 36 +++++++++++++---------
srcpkgs/hardinfo/template | 2 +-
2 files changed, 22 insertions(+), 16 deletions(-)
diff --git a/srcpkgs/hardinfo/patches/fix-runtime.patch b/srcpkgs/hardinfo/patches/fix-runtime.patch
index 2d9afa04526c..b9c7a1d9c355 100644
--- a/srcpkgs/hardinfo/patches/fix-runtime.patch
+++ b/srcpkgs/hardinfo/patches/fix-runtime.patch
@@ -1,19 +1,19 @@
-diff --git hardinfo.h hardinfo.h
-index 9f52f63..aeb84d9 100644
---- a/hardinfo.h
-+++ b/hardinfo.h
-@@ -64,8 +64,8 @@ struct _ModuleAbout {
+--- a/hardinfo.h 2023-04-14 16:50:28.324202873 -0400
++++ b/hardinfo.h 2023-04-14 16:51:11.470129493 -0400
+@@ -64,9 +64,9 @@
};
/* String utility functions */
-inline void remove_quotes(gchar *str);
-inline char *strend(gchar *str, gchar chr);
+-inline void remove_linefeed(gchar *str);
+void remove_quotes(gchar *str);
+char *strend(gchar *str, gchar chr);
- inline void remove_linefeed(gchar *str);
++void remove_linefeed(gchar *str);
gchar *strreplace(gchar *string, gchar *replace, gchar new_char);
-@@ -91,7 +91,7 @@ gpointer __idle_free(gpointer ptr, gchar *f, gint l);
+ /* Widget utility functions */
+@@ -91,7 +91,7 @@
gchar *find_program(gchar *program_name);
@@ -22,11 +22,9 @@ index 9f52f63..aeb84d9 100644
void nonblock_sleep(guint msec);
void open_url(gchar *url);
GSList *modules_load_selected(void);
-diff --git util.c util.c
-index 266ce4e..e6c81fd 100644
---- a/util.c
-+++ b/util.c
-@@ -111,7 +111,7 @@ gchar *seconds_to_string(unsigned int seconds)
+--- a/util.c 16:50:36.611380820 -0400
++++ b/util.c 2023-04-14 16:51:25.031420828 -0400
+@@ -111,7 +111,7 @@
plural(hours), minutes, plural(minutes));
}
@@ -35,7 +33,7 @@ index 266ce4e..e6c81fd 100644
{
if (size < KiB)
return g_strdup_printf("%.1f B", size);
-@@ -123,7 +123,7 @@ inline gchar *size_human_readable(gfloat size)
+@@ -123,7 +123,7 @@
return g_strdup_printf("%.1f GiB", size / GiB);
}
@@ -44,7 +42,7 @@ index 266ce4e..e6c81fd 100644
{
if (!str)
return NULL;
-@@ -135,7 +135,7 @@ inline char *strend(gchar * str, gchar chr)
+@@ -135,7 +135,7 @@
return str;
}
@@ -53,4 +51,12 @@ index 266ce4e..e6c81fd 100644
{
if (!str)
return;
-
+@@ -146,7 +146,7 @@
+ strend(str, '"');
+ }
+
+-inline void remove_linefeed(gchar * str)
++void remove_linefeed(gchar * str)
+ {
+ strend(str, '\n');
+ }
diff --git a/srcpkgs/hardinfo/template b/srcpkgs/hardinfo/template
index 6c2745d675c3..fdb2d40ea575 100644
--- a/srcpkgs/hardinfo/template
+++ b/srcpkgs/hardinfo/template
@@ -1,7 +1,7 @@
# Template file for 'hardinfo'
pkgname=hardinfo
version=0.5.1
-revision=12
+revision=13
build_style=gnu-configure
hostmakedepends="pkg-config which"
makedepends="gtk+-devel libsoup-devel desktop-file-utils"
next reply other threads:[~2023-04-14 20:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-14 20:57 zlice [this message]
2023-06-27 22:31 ` classabbyamp
2023-06-27 22:33 ` [PR PATCH] [Updated] " zlice
2023-06-27 22:37 ` [PR PATCH] [Merged]: " classabbyamp
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43453@inbox.vuxu.org \
--to=zlice@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).