summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-04-27 07:17:13 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-04-27 07:17:13 +0000
commite155d2f0f7b2b4e2e72b16bae08ff399cdeb73e4 (patch)
tree1a14118de396a9f798072b5ac41bcdbdb0a14c9b /media-libs/musicbrainz/files
parentStable on alpha, bug 88831. (diff)
downloadhistorical-e155d2f0f7b2b4e2e72b16bae08ff399cdeb73e4.tar.gz
historical-e155d2f0f7b2b4e2e72b16bae08ff399cdeb73e4.tar.bz2
historical-e155d2f0f7b2b4e2e72b16bae08ff399cdeb73e4.zip
Added patch to compile with gcc 4.0, fixes #90478. Revision bump because the previous was stable and this can change the behaviour on 64-bit systems.
Package-Manager: portage-2.0.51.20-r4
Diffstat (limited to 'media-libs/musicbrainz/files')
-rw-r--r--media-libs/musicbrainz/files/digest-musicbrainz-2.1.1-r11
-rw-r--r--media-libs/musicbrainz/files/musicbrainz-2.1.1-gcc4.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/media-libs/musicbrainz/files/digest-musicbrainz-2.1.1-r1 b/media-libs/musicbrainz/files/digest-musicbrainz-2.1.1-r1
new file mode 100644
index 000000000000..51912cee09a2
--- /dev/null
+++ b/media-libs/musicbrainz/files/digest-musicbrainz-2.1.1-r1
@@ -0,0 +1 @@
+MD5 4f753d93a85cf413e00f1394b8cbd269 libmusicbrainz-2.1.1.tar.gz 528162
diff --git a/media-libs/musicbrainz/files/musicbrainz-2.1.1-gcc4.patch b/media-libs/musicbrainz/files/musicbrainz-2.1.1-gcc4.patch
new file mode 100644
index 000000000000..c2b07c1783f3
--- /dev/null
+++ b/media-libs/musicbrainz/files/musicbrainz-2.1.1-gcc4.patch
@@ -0,0 +1,12 @@
+diff -ur libmusicbrainz-2.1.1/lib/comhttpsocket.cpp libmusicbrainz-2.1.1-gcc4/lib/comhttpsocket.cpp
+--- libmusicbrainz-2.1.1/lib/comhttpsocket.cpp 2004-03-16 01:34:22.000000000 +0100
++++ libmusicbrainz-2.1.1-gcc4/lib/comhttpsocket.cpp 2005-04-27 08:52:55.243936504 +0200
+@@ -194,7 +194,7 @@
+ // advance to the data now, if there is any in this first buffer.
+ char* pData = strstr(HeaderBuffer, "\r\n\r\n");
+ if (pData) pData += 4;
+- int nOffset = (int)pData - (int)HeaderBuffer;
++ ptrdiff_t nOffset = (ptrdiff_t)pData - (ptrdiff_t)HeaderBuffer;
+ if (nTotal - nOffset >= nLen) // case 1: entire requested read is in header chunk
+ {
+ memcpy(pBuffer, pData, nLen);