* [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2-scrobbler/files/, media-sound/xmms2-scrobbler/
@ 2017-05-12 23:24 Sergei Trofimovich
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich @ 2017-05-12 23:24 UTC (permalink / raw
To: gentoo-commits
commit: b6488c62a9152b802681ebed1e7af92c12bf43f9
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri May 12 23:23:59 2017 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri May 12 23:23:59 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6488c62
media-sound/xmms2-scrobbler: fix gcc-7 build failure
Add missing '<stdio.h>' include for fprintf().
Package-Manager: Portage-2.3.5, Repoman-2.3.2
.../xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-gcc-7.patch | 8 ++++++++
media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild | 3 ++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-gcc-7.patch b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-gcc-7.patch
new file mode 100644
index 00000000000..383bb0596eb
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-gcc-7.patch
@@ -0,0 +1,8 @@
+diff --git a/src/submission.c b/src/submission.c
+index 422db0a..326b003 100644
+--- a/src/submission.c
++++ b/src/submission.c
+@@ -24,2 +24,3 @@
+ #include <stdlib.h>
++#include <stdio.h>
+ #include "submission.h"
diff --git a/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild b/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
index 524e5a21f24..3d8aaeaa2f9 100644
--- a/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
+++ b/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
@@ -22,6 +22,7 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-ldflags.patch
epatch "${FILESDIR}"/${P}-libs.patch
epatch "${FILESDIR}"/${P}-ld-order.patch
+ epatch "${FILESDIR}"/${P}-gcc-7.patch
}
src_compile() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2-scrobbler/files/, media-sound/xmms2-scrobbler/
@ 2017-05-17 21:11 Sergei Trofimovich
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich @ 2017-05-17 21:11 UTC (permalink / raw
To: gentoo-commits
commit: 67d54875d59e030a365d12c03fab0b59ff6582db
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed May 17 21:10:50 2017 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed May 17 21:11:21 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67d54875
media-sound/xmms2-scrobbler: tweak for next (unreleased yet) xmms2 release
Package-Manager: Portage-2.3.5, Repoman-2.3.2
.../files/xmms2-scrobbler-0.4.0-no-XPTR.patch | 14 ++++++++++++++
media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild | 3 ++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-no-XPTR.patch b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-no-XPTR.patch
new file mode 100644
index 00000000000..950509b3d2d
--- /dev/null
+++ b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-no-XPTR.patch
@@ -0,0 +1,14 @@
+diff --git a/src/xmms2-scrobbler.c b/src/xmms2-scrobbler.c
+index 244fccb..8cd06ed 100644
+--- a/src/xmms2-scrobbler.c
++++ b/src/xmms2-scrobbler.c
+@@ -534,3 +534,3 @@ on_medialib_get_info2 (xmmsv_t *val, void *udata)
+ {
+- bool reset_current_id = XPOINTER_TO_INT (udata);
++ bool reset_current_id = (bool)(uintptr_t)(udata);
+
+@@ -572,3 +572,3 @@ maybe_submit_to_profile (bool reset_current_id)
+ on_medialib_get_info2,
+- XINT_TO_POINTER (reset_current_id));
++ (void*)(uintptr_t)(reset_current_id));
+ xmmsc_result_unref (mediainfo_result);
diff --git a/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild b/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
index 3d8aaeaa2f9..6c784004bb5 100644
--- a/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
+++ b/media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild
@@ -23,10 +23,11 @@ src_prepare() {
epatch "${FILESDIR}"/${P}-libs.patch
epatch "${FILESDIR}"/${P}-ld-order.patch
epatch "${FILESDIR}"/${P}-gcc-7.patch
+ epatch "${FILESDIR}"/${P}-no-XPTR.patch
}
src_compile() {
- emake CC="$(tc-getCC)"
+ emake CC="$(tc-getCC)" VERBOSE=1
}
src_install() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-17 21:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-17 21:11 [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2-scrobbler/files/, media-sound/xmms2-scrobbler/ Sergei Trofimovich
-- strict thread matches above, loose matches on Subject: below --
2017-05-12 23:24 Sergei Trofimovich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox