mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
add patches for libofa and libtunepipe due to remove curl/types.h in new curl
svn path=/nixpkgs/trunk/; revision=30261
This commit is contained in:
parent
1b9adf9951
commit
25d6f604bb
13
pkgs/development/libraries/libofa/curl-types.patch
Normal file
13
pkgs/development/libraries/libofa/curl-types.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff -rc libofa-0.9.3/examples/protocol.cpp libofa-0.9.3-new/examples/protocol.cpp
|
||||||
|
*** libofa-0.9.3/examples/protocol.cpp 2006-05-10 14:05:42.000000000 -0400
|
||||||
|
--- libofa-0.9.3-new/examples/protocol.cpp 2011-11-06 09:24:05.653283203 -0500
|
||||||
|
***************
|
||||||
|
*** 12,18 ****
|
||||||
|
#include <map>
|
||||||
|
#include <expat.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
- #include <curl/types.h>
|
||||||
|
#include <curl/easy.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
--- 12,17 ----
|
@ -5,7 +5,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ expat curl fftw ];
|
propagatedBuildInputs = [ expat curl fftw ];
|
||||||
|
|
||||||
patches = [ ./libofa-0.9.3-gcc-4.patch ./libofa-0.9.3-gcc-4.3.patch ./gcc-4.x.patch ];
|
patches = [ ./libofa-0.9.3-gcc-4.patch ./libofa-0.9.3-gcc-4.3.patch ./gcc-4.x.patch ./curl-types.patch ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://musicip-libofa.googlecode.com/files/${name}.tar.gz";
|
url = "http://musicip-libofa.googlecode.com/files/${name}.tar.gz";
|
||||||
|
@ -1,177 +1,237 @@
|
|||||||
diff --git a/include/tunepimp-0.5/metadata.h b/include/tunepimp-0.5/metadata.h
|
diff -rc libtunepimp-0.5.3/include/tunepimp-0.5/metadata.h libtunepimp-0.5.3-new/include/tunepimp-0.5/metadata.h
|
||||||
index f9bab5d..ea08cf5 100644
|
*** libtunepimp-0.5.3/include/tunepimp-0.5/metadata.h 2006-11-18 05:52:08.000000000 -0500
|
||||||
--- a/include/tunepimp-0.5/metadata.h
|
--- libtunepimp-0.5.3-new/include/tunepimp-0.5/metadata.h 2011-11-06 09:00:14.816684749 -0500
|
||||||
+++ b/include/tunepimp-0.5/metadata.h
|
***************
|
||||||
@@ -29,6 +29,7 @@
|
*** 29,34 ****
|
||||||
|
--- 29,35 ----
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
+#include <cstring>
|
+ #include <cstring>
|
||||||
|
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
#include "tp_c.h"
|
#include "tp_c.h"
|
||||||
diff --git a/lib/c_wrapper.cpp b/lib/c_wrapper.cpp
|
diff -rc libtunepimp-0.5.3/lib/c_wrapper.cpp libtunepimp-0.5.3-new/lib/c_wrapper.cpp
|
||||||
index 760cc08..66c6111 100644
|
*** libtunepimp-0.5.3/lib/c_wrapper.cpp 2006-11-18 05:52:33.000000000 -0500
|
||||||
--- a/lib/c_wrapper.cpp
|
--- libtunepimp-0.5.3-new/lib/c_wrapper.cpp 2011-11-06 09:00:14.816684749 -0500
|
||||||
+++ b/lib/c_wrapper.cpp
|
***************
|
||||||
@@ -43,6 +43,7 @@
|
*** 43,48 ****
|
||||||
if (obj == NULL) return;
|
--- 43,49 ----
|
||||||
|
if (obj == NULL) return;
|
||||||
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
+#include <cstdlib>
|
+ #include <cstdlib>
|
||||||
|
|
||||||
class NotifyData
|
class NotifyData
|
||||||
{
|
{
|
||||||
diff --git a/lib/fileio.cpp b/lib/fileio.cpp
|
diff -rc libtunepimp-0.5.3/lib/fileio.cpp libtunepimp-0.5.3-new/lib/fileio.cpp
|
||||||
index a1602da..abe2b24 100644
|
*** libtunepimp-0.5.3/lib/fileio.cpp 2006-11-18 05:52:33.000000000 -0500
|
||||||
--- a/lib/fileio.cpp
|
--- libtunepimp-0.5.3-new/lib/fileio.cpp 2011-11-06 09:00:14.816684749 -0500
|
||||||
+++ b/lib/fileio.cpp
|
***************
|
||||||
@@ -27,6 +27,8 @@
|
*** 27,32 ****
|
||||||
|
--- 27,34 ----
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
+#include <string.h>
|
+ #include <string.h>
|
||||||
+#include <stdlib.h>
|
+ #include <stdlib.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -122,7 +124,8 @@ int taccess(const char *pathname, int mode, const char *encoding)
|
***************
|
||||||
|
*** 122,128 ****
|
||||||
|
|
||||||
void tmktempname(const char *path, char *newPath, int newPathLen)
|
void tmktempname(const char *path, char *newPath, int newPathLen)
|
||||||
{
|
{
|
||||||
- char *ptr, *temp;
|
! char *ptr, *temp;
|
||||||
+ char *temp;
|
|
||||||
+ const char *ptr;
|
|
||||||
|
|
||||||
temp = (char *)malloc(strlen(path) + 32);
|
temp = (char *)malloc(strlen(path) + 32);
|
||||||
ptr = strrchr(path, dirSepChar);
|
ptr = strrchr(path, dirSepChar);
|
||||||
diff --git a/lib/metadata.cpp b/lib/metadata.cpp
|
--- 124,131 ----
|
||||||
index 0a1a70a..dcd0aa1 100644
|
|
||||||
--- a/lib/metadata.cpp
|
|
||||||
+++ b/lib/metadata.cpp
|
|
||||||
@@ -24,8 +24,9 @@
|
|
||||||
$Id: metadata.cpp 8359 2006-08-07 20:34:50Z luks $
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------*/
|
void tmktempname(const char *path, char *newPath, int newPathLen)
|
||||||
-#include <math.h>
|
{
|
||||||
-#include <stdio.h>
|
! char *temp;
|
||||||
+#include <cmath>
|
! const char *ptr;
|
||||||
+#include <cstdio>
|
|
||||||
+#include <cstdlib>
|
|
||||||
#include "metadata.h"
|
|
||||||
#include "../config.h"
|
|
||||||
using namespace std;
|
|
||||||
diff --git a/lib/protocol.cpp b/lib/protocol.cpp
|
|
||||||
index 83e8b33..3436f80 100644
|
|
||||||
--- a/lib/protocol.cpp
|
|
||||||
+++ b/lib/protocol.cpp
|
|
||||||
@@ -8,6 +8,7 @@
|
|
||||||
-------------------------------------------------------------------*/
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
+#include <string.h>
|
|
||||||
#include <string>
|
|
||||||
#include <map>
|
|
||||||
#include <expat.h>
|
|
||||||
diff --git a/lib/readmeta.cpp b/lib/readmeta.cpp
|
|
||||||
index 7f325de..5e5513a 100644
|
|
||||||
--- a/lib/readmeta.cpp
|
|
||||||
+++ b/lib/readmeta.cpp
|
|
||||||
@@ -30,7 +30,8 @@
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#include <stdio.h>
|
temp = (char *)malloc(strlen(path) + 32);
|
||||||
+#include <cstdio>
|
ptr = strrchr(path, dirSepChar);
|
||||||
+#include <cstdlib>
|
diff -rc libtunepimp-0.5.3/lib/metadata.cpp libtunepimp-0.5.3-new/lib/metadata.cpp
|
||||||
#ifndef WIN32
|
*** libtunepimp-0.5.3/lib/metadata.cpp 2006-11-18 05:52:33.000000000 -0500
|
||||||
#include <unistd.h>
|
--- libtunepimp-0.5.3-new/lib/metadata.cpp 2011-11-06 09:00:14.817684754 -0500
|
||||||
#endif
|
***************
|
||||||
diff --git a/lib/tunepimp.cpp b/lib/tunepimp.cpp
|
*** 24,31 ****
|
||||||
index bf09383..f1b9b56 100644
|
$Id: metadata.cpp 8359 2006-08-07 20:34:50Z luks $
|
||||||
--- a/lib/tunepimp.cpp
|
|
||||||
+++ b/lib/tunepimp.cpp
|
|
||||||
@@ -30,7 +30,8 @@
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#include <stdio.h>
|
----------------------------------------------------------------------------*/
|
||||||
+#include <cstdio>
|
! #include <math.h>
|
||||||
+#include <cstdlib>
|
! #include <stdio.h>
|
||||||
#include <map>
|
#include "metadata.h"
|
||||||
using namespace std;
|
#include "../config.h"
|
||||||
|
using namespace std;
|
||||||
|
--- 24,32 ----
|
||||||
|
$Id: metadata.cpp 8359 2006-08-07 20:34:50Z luks $
|
||||||
|
|
||||||
diff --git a/lib/utf8/utf8util.cpp b/lib/utf8/utf8util.cpp
|
----------------------------------------------------------------------------*/
|
||||||
index a066956..6ea86e4 100644
|
! #include <cmath>
|
||||||
--- a/lib/utf8/utf8util.cpp
|
! #include <cstdio>
|
||||||
+++ b/lib/utf8/utf8util.cpp
|
! #include <cstdlib>
|
||||||
@@ -26,6 +26,7 @@
|
#include "metadata.h"
|
||||||
----------------------------------------------------------------------------*/
|
#include "../config.h"
|
||||||
|
using namespace std;
|
||||||
|
diff -rc libtunepimp-0.5.3/lib/protocol.cpp libtunepimp-0.5.3-new/lib/protocol.cpp
|
||||||
|
*** libtunepimp-0.5.3/lib/protocol.cpp 2006-11-28 15:25:04.000000000 -0500
|
||||||
|
--- libtunepimp-0.5.3-new/lib/protocol.cpp 2011-11-06 09:00:23.281742454 -0500
|
||||||
|
***************
|
||||||
|
*** 8,18 ****
|
||||||
|
-------------------------------------------------------------------*/
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string>
|
||||||
|
#include <map>
|
||||||
|
#include <expat.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
- #include <curl/types.h>
|
||||||
|
#include <curl/easy.h>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
#include <stdio.h>
|
--- 8,18 ----
|
||||||
+#include <stdlib.h>
|
-------------------------------------------------------------------*/
|
||||||
#include "utf8util.h"
|
#include <stdio.h>
|
||||||
#include "utf8.h"
|
#include <stdlib.h>
|
||||||
#ifdef WIN32
|
+ #include <string.h>
|
||||||
diff --git a/plugins/mp3/id3_2_3_meta.cpp b/plugins/mp3/id3_2_3_meta.cpp
|
#include <string>
|
||||||
index fa9a7e0..efac1c9 100644
|
#include <map>
|
||||||
--- a/plugins/mp3/id3_2_3_meta.cpp
|
#include <expat.h>
|
||||||
+++ b/plugins/mp3/id3_2_3_meta.cpp
|
#include <curl/curl.h>
|
||||||
@@ -26,6 +26,7 @@
|
#include <curl/easy.h>
|
||||||
----------------------------------------------------------------------------*/
|
using namespace std;
|
||||||
|
|
||||||
#include <stdio.h>
|
diff -rc libtunepimp-0.5.3/lib/readmeta.cpp libtunepimp-0.5.3-new/lib/readmeta.cpp
|
||||||
+#include <stdlib.h>
|
*** libtunepimp-0.5.3/lib/readmeta.cpp 2006-11-18 05:52:33.000000000 -0500
|
||||||
#include <assert.h>
|
--- libtunepimp-0.5.3-new/lib/readmeta.cpp 2011-11-06 09:00:14.817684754 -0500
|
||||||
#include <ctype.h>
|
***************
|
||||||
#include <musicbrainz/mb_c.h>
|
*** 30,36 ****
|
||||||
diff --git a/plugins/mp3/id3_meta.cpp b/plugins/mp3/id3_meta.cpp
|
#endif
|
||||||
index d860bf6..804ca5c 100644
|
#endif
|
||||||
--- a/plugins/mp3/id3_meta.cpp
|
|
||||||
+++ b/plugins/mp3/id3_meta.cpp
|
|
||||||
@@ -26,6 +26,7 @@
|
|
||||||
----------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
! #include <stdio.h>
|
||||||
+#include <stdlib.h>
|
#ifndef WIN32
|
||||||
#include <time.h>
|
#include <unistd.h>
|
||||||
#include <ctype.h>
|
#endif
|
||||||
#include <musicbrainz/mb_c.h>
|
--- 30,37 ----
|
||||||
diff --git a/plugins/mp4/mp4.cpp b/plugins/mp4/mp4.cpp
|
#endif
|
||||||
index 9f741e3..dcc7ec9 100644
|
#endif
|
||||||
--- a/plugins/mp4/mp4.cpp
|
|
||||||
+++ b/plugins/mp4/mp4.cpp
|
|
||||||
@@ -27,7 +27,8 @@
|
|
||||||
|
|
||||||
#include <string.h>
|
! #include <cstdio>
|
||||||
#include <stdio.h>
|
! #include <cstdlib>
|
||||||
-#include <mp4.h>
|
#ifndef WIN32
|
||||||
+#include <stdlib.h>
|
#include <unistd.h>
|
||||||
+#include <mp4v2/mp4v2.h>
|
#endif
|
||||||
#include "metadata.h"
|
diff -rc libtunepimp-0.5.3/lib/tunepimp.cpp libtunepimp-0.5.3-new/lib/tunepimp.cpp
|
||||||
#include "plugin.h"
|
*** libtunepimp-0.5.3/lib/tunepimp.cpp 2006-11-18 05:52:33.000000000 -0500
|
||||||
#ifndef WIN32
|
--- libtunepimp-0.5.3-new/lib/tunepimp.cpp 2011-11-06 09:00:14.818684760 -0500
|
||||||
diff --git a/plugins/wma/wma.cpp b/plugins/wma/wma.cpp
|
***************
|
||||||
index 3d7a50a..a28901c 100644
|
*** 30,36 ****
|
||||||
--- a/plugins/wma/wma.cpp
|
#endif
|
||||||
+++ b/plugins/wma/wma.cpp
|
#endif
|
||||||
@@ -27,6 +27,7 @@
|
|
||||||
|
|
||||||
#include <string.h>
|
! #include <stdio.h>
|
||||||
#include <stdio.h>
|
#include <map>
|
||||||
+#include <stdlib.h>
|
using namespace std;
|
||||||
#include <wmafile.h>
|
|
||||||
#include "metadata.h"
|
|
||||||
#include "plugin.h"
|
|
||||||
diff --git a/plugins/wma/wmafile.cpp b/plugins/wma/wmafile.cpp
|
|
||||||
index 1b38af8..31fa150 100644
|
|
||||||
--- a/plugins/wma/wmafile.cpp
|
|
||||||
+++ b/plugins/wma/wmafile.cpp
|
|
||||||
@@ -19,6 +19,7 @@
|
|
||||||
* USA *
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
+#include <string.h>
|
--- 30,37 ----
|
||||||
#include <tstring.h>
|
#endif
|
||||||
#include <wmafile.h>
|
#endif
|
||||||
#include <wmatag.h>
|
|
||||||
|
! #include <cstdio>
|
||||||
|
! #include <cstdlib>
|
||||||
|
#include <map>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
diff -rc libtunepimp-0.5.3/lib/utf8/utf8util.cpp libtunepimp-0.5.3-new/lib/utf8/utf8util.cpp
|
||||||
|
*** libtunepimp-0.5.3/lib/utf8/utf8util.cpp 2006-11-18 05:52:26.000000000 -0500
|
||||||
|
--- libtunepimp-0.5.3-new/lib/utf8/utf8util.cpp 2011-11-06 09:00:14.818684760 -0500
|
||||||
|
***************
|
||||||
|
*** 26,31 ****
|
||||||
|
--- 26,32 ----
|
||||||
|
----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+ #include <stdlib.h>
|
||||||
|
#include "utf8util.h"
|
||||||
|
#include "utf8.h"
|
||||||
|
#ifdef WIN32
|
||||||
|
diff -rc libtunepimp-0.5.3/plugins/mp3/id3_2_3_meta.cpp libtunepimp-0.5.3-new/plugins/mp3/id3_2_3_meta.cpp
|
||||||
|
*** libtunepimp-0.5.3/plugins/mp3/id3_2_3_meta.cpp 2006-11-18 05:51:07.000000000 -0500
|
||||||
|
--- libtunepimp-0.5.3-new/plugins/mp3/id3_2_3_meta.cpp 2011-11-06 09:00:14.818684760 -0500
|
||||||
|
***************
|
||||||
|
*** 26,31 ****
|
||||||
|
--- 26,32 ----
|
||||||
|
----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+ #include <stdlib.h>
|
||||||
|
#include <assert.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <musicbrainz/mb_c.h>
|
||||||
|
diff -rc libtunepimp-0.5.3/plugins/mp3/id3_meta.cpp libtunepimp-0.5.3-new/plugins/mp3/id3_meta.cpp
|
||||||
|
*** libtunepimp-0.5.3/plugins/mp3/id3_meta.cpp 2006-11-18 05:51:07.000000000 -0500
|
||||||
|
--- libtunepimp-0.5.3-new/plugins/mp3/id3_meta.cpp 2011-11-06 09:00:14.818684760 -0500
|
||||||
|
***************
|
||||||
|
*** 26,31 ****
|
||||||
|
--- 26,32 ----
|
||||||
|
----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+ #include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
#include <musicbrainz/mb_c.h>
|
||||||
|
diff -rc libtunepimp-0.5.3/plugins/mp4/mp4.cpp libtunepimp-0.5.3-new/plugins/mp4/mp4.cpp
|
||||||
|
*** libtunepimp-0.5.3/plugins/mp4/mp4.cpp 2006-11-18 05:51:08.000000000 -0500
|
||||||
|
--- libtunepimp-0.5.3-new/plugins/mp4/mp4.cpp 2011-11-06 09:00:14.819684766 -0500
|
||||||
|
***************
|
||||||
|
*** 27,33 ****
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
! #include <mp4.h>
|
||||||
|
#include "metadata.h"
|
||||||
|
#include "plugin.h"
|
||||||
|
#ifndef WIN32
|
||||||
|
--- 27,34 ----
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
! #include <stdlib.h>
|
||||||
|
! #include <mp4v2/mp4v2.h>
|
||||||
|
#include "metadata.h"
|
||||||
|
#include "plugin.h"
|
||||||
|
#ifndef WIN32
|
||||||
|
diff -rc libtunepimp-0.5.3/plugins/wma/wma.cpp libtunepimp-0.5.3-new/plugins/wma/wma.cpp
|
||||||
|
*** libtunepimp-0.5.3/plugins/wma/wma.cpp 2006-11-18 05:51:28.000000000 -0500
|
||||||
|
--- libtunepimp-0.5.3-new/plugins/wma/wma.cpp 2011-11-06 09:00:14.819684766 -0500
|
||||||
|
***************
|
||||||
|
*** 27,32 ****
|
||||||
|
--- 27,33 ----
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
+ #include <stdlib.h>
|
||||||
|
#include <wmafile.h>
|
||||||
|
#include "metadata.h"
|
||||||
|
#include "plugin.h"
|
||||||
|
diff -rc libtunepimp-0.5.3/plugins/wma/wmafile.cpp libtunepimp-0.5.3-new/plugins/wma/wmafile.cpp
|
||||||
|
*** libtunepimp-0.5.3/plugins/wma/wmafile.cpp 2006-11-18 05:51:28.000000000 -0500
|
||||||
|
--- libtunepimp-0.5.3-new/plugins/wma/wmafile.cpp 2011-11-06 09:00:14.819684766 -0500
|
||||||
|
***************
|
||||||
|
*** 19,24 ****
|
||||||
|
--- 19,25 ----
|
||||||
|
* USA *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
+ #include <string.h>
|
||||||
|
#include <tstring.h>
|
||||||
|
#include <wmafile.h>
|
||||||
|
#include <wmatag.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user