1
0
forked from ports/contrib

qca: fixed gcc47 compilation (Thanks to Danny)

This commit is contained in:
Jose V Beneyto 2013-11-01 13:54:00 +01:00
parent 0c49565c5a
commit a4f84be4e7
3 changed files with 36 additions and 9 deletions

View File

@ -1 +1,2 @@
dffc7367152d8888c1447253a0387a2a gcc47.patch
fc15bd4da22b8096c51fcfe52d2fa309 qca-2.0.3.tar.bz2

View File

@ -6,16 +6,25 @@
name=qca
version=2.0.3
release=1
source=(http://delta.affinix.com/download/$name/2.0/$name-$version.tar.bz2)
release=2
source=(http://delta.affinix.com/download/$name/2.0/$name-$version.tar.bz2 \
gcc47.patch)
build() {
cd $name-$version
./configure --prefix=/usr \
--qtdir=/usr/share/qt4
make
make INSTALL_ROOT=$PKG install
mv $PKG/usr/share/man $PKG/usr
rm -f $(find $PKG -name '*.debug') $(find $PKG -name 'README')
}
patch -p1 -i $SRC/gcc47.patch
./configure --prefix=/usr \
--qtdir=/usr/share/qt4 \
--disable-tests \
--release \
--no-separate-debug-info
[ "$CXX" ] || CXX=g++
make CXX="$CXX" $MAKEFLAGS
make INSTALL_ROOT=$PKG install
mv $PKG/usr/share/man $PKG/usr
rm $PKG/usr/share/qca/certs/README
}

17
qca/gcc47.patch Normal file
View File

@ -0,0 +1,17 @@
--- ./src/botantools/botan/botan/secmem.h.orig 2012-01-07 20:09:35.427999593 +0100
+++ ./src/botantools/botan/botan/secmem.h 2012-01-07 20:09:52.540001422 +0100
@@ -214,11 +214,11 @@
SecureVector(u32bit n = 0) { MemoryRegion<T>::init(true, n); }
SecureVector(const T in[], u32bit n)
- { MemoryRegion<T>::init(true); set(in, n); }
+ { MemoryRegion<T>::init(true); this->set(in, n); }
SecureVector(const MemoryRegion<T>& in)
- { MemoryRegion<T>::init(true); set(in); }
+ { MemoryRegion<T>::init(true); this->set(in); }
SecureVector(const MemoryRegion<T>& in1, const MemoryRegion<T>& in2)
- { MemoryRegion<T>::init(true); set(in1); append(in2); }
+ { MemoryRegion<T>::init(true); this->set(in1); append(in2); }
};
/*************************************************