Skip to contentSkip to conversation

package/beecrypt: Replace work-around to fix gcc-4.7 compile error

PATCH New Bernd Kuhls 2 participants 2 messages Oct 19, 2014 – Oct 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/beecrypt: Replace work-around to fix gcc-4.7 compile error

---
 package/beecrypt/beecrypt-0004-gcc-4.7.patch |   19 +++++++++++++++++++
 package/beecrypt/beecrypt.mk                 |    6 ------
 2 files changed, 19 insertions(+), 6 deletions(-)
 create mode 100644 package/beecrypt/beecrypt-0004-gcc-4.7.patch
package/beecrypt/beecrypt-0004-gcc-4.7.patch new file +19 -0
new file mode 100644
index 0000000..767f789
@@ -0,0 +1,19 @@
+Really fixes gcc-4.7 related compile error:
+../../include/beecrypt/c++/util/AbstractSet.h:59:27: error: 'containsAll' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
+
+Downloaded from upstream bugtracker:
+http://sourceforge.net/p/beecrypt/patches/10/
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+
+--- a/include/beecrypt/c++/util/AbstractSet.h
++++ b/include/beecrypt/c++/util/AbstractSet.h
+@@ -56,7 +56,7 @@
+ 					if (c->size() != size())
+ 						return false;
+ 
+-					return containsAll(*c);
++					return this->containsAll(*c);
+ 				}
+ 				return false;
+ 			}
package/beecrypt/beecrypt.mk +0 -6
index e9e701b..7d2ee08 100644
@@ -11,12 +11,6 @@ BEECRYPT_INSTALL_STAGING = YES
 BEECRYPT_LICENSE = LGPLv2.1+
 BEECRYPT_LICENSE_FILES = COPYING.LIB
 
-# beecrypt contains C++ code that g++ 4.7 doesn't really
-# like. Upstream does not seem to be really active, so workaround this
-# by passing -fpermissive.
-BEECRYPT_CONF_ENV = \
-	CXXFLAGS="$(TARGET_CXXFLAGS) -fpermissive"
-
 BEECRYPT_CONF_OPTS = \
 		--disable-expert-mode \
 		--without-java \
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 package/beecrypt: Replace work-around to fix gcc-4.7 compile error

Dear Bernd Kuhls,

Quoted 7 lines · Bernd Kuhls
---
 package/beecrypt/beecrypt-0004-gcc-4.7.patch |   19 +++++++++++++++++++
 package/beecrypt/beecrypt.mk                 |    6 ------
 2 files changed, 19 insertions(+), 6 deletions(-)
 create mode 100644 package/beecrypt/beecrypt-0004-gcc-4.7.patch

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com