Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=13148fdc24272da0dc856c74665e5d9c3385dd74

commit 13148fdc24272da0dc856c74665e5d9c3385dd74
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Jul 28 10:14:21 2009 +0200

codeblocks-8.02-2-i686
*added patch fo fix build

diff --git a/source/xapps-extra/codeblocks/FrugalBuild 
b/source/xapps-extra/codeblocks/FrugalBuild
index e03a360..5854fb2 100644
--- a/source/xapps-extra/codeblocks/FrugalBuild
+++ b/source/xapps-extra/codeblocks/FrugalBuild
@@ -14,8 +14,10 @@ _F_sourceforge_ext="-src.tar.bz2"
options=('scriptlet' 'force')
Finclude sourceforge
url="http://www.codeblocks.org/";
+source=($source glibc210.diff)
Fconfopts="$Fconfopts --with-contrib-plugins=all,-wxsmith"
-sha1sums=('078932cfd4fee2066ec931cb6dfa8079235c1237')
+sha1sums=('078932cfd4fee2066ec931cb6dfa8079235c1237' \
+          'eb0de1aae2de9501d524726c985c2c719da36433')
export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"

# optimization OK
diff --git a/source/xapps-extra/codeblocks/glibc210.diff 
b/source/xapps-extra/codeblocks/glibc210.diff
new file mode 100644
index 0000000..8ba93e0
--- /dev/null
+++ b/source/xapps-extra/codeblocks/glibc210.diff
@@ -0,0 +1,50 @@
+From a7f611bd46b1a29e0a5ac3fde563bfaeb3f573e4 Mon Sep 17 00:00:00 2001
+From: Dan Horak <d...@danny.cz>
+Date: Wed, 18 Feb 2009 12:59:45 +0100
+Subject: [PATCH] drop const modifier for compatibility with recent ISO C++ 
standards
+
+---
+ src/src/prefix.cpp |    4 ++--
+ src/src/prefix.h   |    4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/src/prefix.cpp b/src/src/prefix.cpp
+index 5fb6246..6b8901e 100644
+--- a/src/src/prefix.cpp
++++ b/src/src/prefix.cpp
+@@ -387,7 +387,7 @@ br_strndup (char *str, size_t size)
+  * br_extract_dir ("/usr/local/foobar");  --> Returns: "/usr/local"
+  */
+ char *
+-br_extract_dir (const char *path)
++br_extract_dir (char *path)
+ {
+       char *end, *result;
+
+@@ -422,7 +422,7 @@ br_extract_dir (const char *path)
+  * br_extract_prefix ("/usr/local/libfoo.so");       --> Returns "/usr"
+  */
+ char *
+-br_extract_prefix (const char *path)
++br_extract_prefix (char *path)
+ {
+       char *end, *tmp, *result;
+
+diff --git a/src/src/prefix.h b/src/src/prefix.h
+index 0406f29..6c15bc6 100644
+--- a/src/src/prefix.h
++++ b/src/src/prefix.h
+@@ -111,8 +111,8 @@ char *br_prepend_prefix    (void *symbol, char *path);
+ #endif
+
+ char *br_strcat       (const char *str1, const char *str2);
+-char *br_extract_dir  (const char *path);
+-char *br_extract_prefix(const char *path);
++char *br_extract_dir  (char *path);
++char *br_extract_prefix(char *path);
+
+
+ #ifdef __cplusplus
+--
+1.6.0.6
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to