diff options
author | Jeroen Roovers <jer@gentoo.org> | 2008-11-17 07:21:43 +0000 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2008-11-17 07:21:43 +0000 |
commit | 80b1efa9beedf47d456114d6e252db790d3c466d (patch) | |
tree | 2972710940645e4eea56c57fc46119f81c0b810d /app-arch/pbzip2/files | |
parent | Stable for HPPA (bug #247089). (diff) | |
download | gentoo-2-80b1efa9beedf47d456114d6e252db790d3c466d.tar.gz gentoo-2-80b1efa9beedf47d456114d6e252db790d3c466d.tar.bz2 gentoo-2-80b1efa9beedf47d456114d6e252db790d3c466d.zip |
Patch for uclibc support (no getloadavg, bug #246810). Let make pick up CFLAGS from environment. Use canonical CXX.
(Portage version: 2.2_rc14/cvs/Linux 2.6.25-gentoo-r7-JeR i686)
Diffstat (limited to 'app-arch/pbzip2/files')
-rw-r--r-- | app-arch/pbzip2/files/pbzip2-1.0.2-uclibc.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-arch/pbzip2/files/pbzip2-1.0.2-uclibc.patch b/app-arch/pbzip2/files/pbzip2-1.0.2-uclibc.patch new file mode 100644 index 000000000000..4fe1f48bdac4 --- /dev/null +++ b/app-arch/pbzip2/files/pbzip2-1.0.2-uclibc.patch @@ -0,0 +1,24 @@ +diff -urp pbzip2-1.0.2/pbzip2.cpp pbzip2-1.0.2-uclibc/pbzip2.cpp +--- pbzip2-1.0.2/pbzip2.cpp 2007-07-27 12:41:47.000000000 -0400 ++++ pbzip2-1.0.2-uclibc/pbzip2.cpp 2008-11-14 22:26:24.000000000 -0500 +@@ -128,7 +128,7 @@ + //#define PBZIP_NO_LOADAVG + + // detect systems that are known not to support load average code +-#if defined (WIN32) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (__BORLANDC__) || defined (__hpux) || defined (__osf__) ++#if defined (WIN32) || defined (__CYGWIN32__) || defined (__MINGW32__) || defined (__BORLANDC__) || defined (__hpux) || defined (__osf__) || defined(__UCLIBC__) + #define PBZIP_NO_LOADAVG + #endif + +@@ -1607,7 +1607,11 @@ void usage(char* progname) + { + banner(); + fprintf(stderr, "\nInvalid command line! Aborting...\n\n"); ++#if defined(PBZIP_NO_LOADAVG) ++ fprintf(stderr, "Usage: %s [-1 .. -9] [-b#cdfkp#qrtV] <filename> <filename2> <filenameN>\n", progname); ++#else + fprintf(stderr, "Usage: %s [-1 .. -9] [-b#cdfklp#qrtV] <filename> <filename2> <filenameN>\n", progname); ++#endif + fprintf(stderr, " -b# : where # is the file block size in 100k (default 9 = 900k)\n"); + fprintf(stderr, " -c : output to standard out (stdout)\n"); + fprintf(stderr, " -d : decompress file\n"); |