From: "Andreas Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: xfce-extra/xfce4-diskperf-plugin/files/, xfce-extra/xfce4-diskperf-plugin/
Date: Fri, 4 May 2018 17:57:36 +0000 (UTC) [thread overview]
Message-ID: <1525456635.a78bbc4236ed08c205b57be153c900f9f6e7d32c.dilfridge@gentoo> (raw)
commit: a78bbc4236ed08c205b57be153c900f9f6e7d32c
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri May 4 17:57:15 2018 +0000
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri May 4 17:57:15 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a78bbc42
xfce-extra/xfce4-diskperf-plugin: Add patch to avoid name clash, bug 611418
Patch by Nico R.
Closes: https://bugs.gentoo.org/611418
Package-Manager: Portage-2.3.31, Repoman-2.3.9
.../xfce4-diskperf-plugin-2.6.1-majorminor.patch | 58 ++++++++++++++++++++++
.../xfce4-diskperf-plugin-2.6.1.ebuild | 2 +
2 files changed, 60 insertions(+)
diff --git a/xfce-extra/xfce4-diskperf-plugin/files/xfce4-diskperf-plugin-2.6.1-majorminor.patch b/xfce-extra/xfce4-diskperf-plugin/files/xfce4-diskperf-plugin-2.6.1-majorminor.patch
new file mode 100644
index 00000000000..c0515f1558b
--- /dev/null
+++ b/xfce-extra/xfce4-diskperf-plugin/files/xfce4-diskperf-plugin-2.6.1-majorminor.patch
@@ -0,0 +1,58 @@
+From: Nico R. <n-roeser@gmx.net>
+Date: Sun, 28 Jan 2018 15:15:07 +0100
+Subject: [PATCH] work around glibc namespace pollution
+
+---
+ panel-plugin/devperf.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/panel-plugin/devperf.c b/panel-plugin/devperf.c
+index 29bcb87..95d2f0e 100644
+--- a/panel-plugin/devperf.c
++++ b/panel-plugin/devperf.c
+@@ -69,7 +69,7 @@ static int DevGetPerfData1 (dev_t p_iDevice, struct devperf_t *p_poPerf)
+ iMinorNo = minor(p_iDevice);
+ struct timeval oTimeStamp;
+ FILE *pF;
+- unsigned int major, minor, rsect, wsect, ruse, wuse, use;
++ unsigned int majorNo, minorNo, rsect, wsect, ruse, wuse, use;
+ int running;
+ char acStats[128];
+ int c, n;
+@@ -80,10 +80,10 @@ static int DevGetPerfData1 (dev_t p_iDevice, struct devperf_t *p_poPerf)
+ return (-1);
+ }
+ while (1) {
+- n = fscanf (pF, "%u %u", &major, &minor);
++ n = fscanf (pF, "%u %u", &majorNo, &minorNo);
+ if (n != 2)
+ goto Error;
+- if ((major != iMajorNo) || (minor != iMinorNo)) {
++ if ((majorNo != iMajorNo) || (minorNo != iMinorNo)) {
+ while ((c = fgetc (pF)) && (c != '\n')); /* Goto next line */
+ continue;
+ }
+@@ -126,7 +126,7 @@ static int DevGetPerfData2 (dev_t p_iDevice, struct devperf_t *p_poPerf)
+ iMinorNo = p_iDevice & 0xFF;
+ struct timeval oTimeStamp;
+ FILE *pF;
+- unsigned int major, minor, rsect, wsect, ruse, wuse, use;
++ unsigned int majorNo, minorNo, rsect, wsect, ruse, wuse, use;
+ int running;
+ int c, n;
+
+@@ -138,9 +138,9 @@ static int DevGetPerfData2 (dev_t p_iDevice, struct devperf_t *p_poPerf)
+ while ((c = fgetc (pF)) && (c != '\n')); /* Skip the header line */
+ while ((n = fscanf (pF,
+ "%u %u %*u %*s %*u %*u %u %u %*u %*u %u %u %d %u %*u",
+- &major, &minor, &rsect, &ruse, &wsect,
++ &majorNo, &minorNo, &rsect, &ruse, &wsect,
+ &wuse, &running, &use)) == 8)
+- if ((major == iMajorNo) && (minor == iMinorNo)) {
++ if ((majorNo == iMajorNo) && (minorNo == iMinorNo)) {
+ fclose (pF);
+ gettimeofday (&oTimeStamp, 0);
+ p_poPerf->timestamp_ns =
+--
+2.16.1
+
diff --git a/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1.ebuild b/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1.ebuild
index ebebf441233..54497d9226f 100644
--- a/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1.ebuild
+++ b/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1.ebuild
@@ -23,6 +23,8 @@ DEPEND="${RDEPEND}
DOCS=( AUTHORS ChangeLog NEWS README )
+PATCHES=( "${FILESDIR}/${P}-majorminor.patch" )
+
pkg_preinst() {
gnome2_icon_savelist
}
next reply other threads:[~2018-05-04 17:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-04 17:57 Andreas Hüttel [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-09-24 16:49 [gentoo-commits] repo/gentoo:master commit in: xfce-extra/xfce4-diskperf-plugin/files/, xfce-extra/xfce4-diskperf-plugin/ Michał Górny
2019-10-20 10:24 Michał Górny
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=1525456635.a78bbc4236ed08c205b57be153c900f9f6e7d32c.dilfridge@gentoo \
--to=dilfridge@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