mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
development/avarice: Fixed build with gcc-5.2.0.
SlackBuild script cleanup. Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
b2cd7af725
commit
ad751bb65c
2 changed files with 36 additions and 6 deletions
|
@ -40,10 +40,9 @@ set -e
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf avarice-$VERSION avarice-build-$VERSION
|
||||
tar xvf $CWD/avarice-$VERSION.tar.bz2
|
||||
mkdir avarice-build-$VERSION
|
||||
cd avarice-build-$VERSION
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
@ -51,9 +50,17 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Fix for gcc-5.2.0 (-current)
|
||||
# http://anonscm.debian.org/cgit/collab-maint/avarice.git/plain/debian/patches/bug-777789-gcc-5.patch?id=f8686dbd02cc6710e36f31ab118a46ed0adc758c
|
||||
patch -p1 < $CWD/bug-777789-gcc-5.patch
|
||||
|
||||
rm -rf $TMP/$PRGNAM-build-$VERSION
|
||||
mkdir $TMP/$PRGNAM-build-$VERSION
|
||||
cd $TMP/$PRGNAM-build-$VERSION
|
||||
|
||||
CFLAGS_FOR_BUILD="$SLKCFLAGS" \
|
||||
CXXFLAGS_FOR_BUILD="$SLKCFLAGS" \
|
||||
../avarice-$VERSION/configure \
|
||||
../$PRGNAM-$VERSION/configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
|
@ -74,7 +81,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
|
|||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
for file in COPYING* ChangeLog AUTHORS INSTALL NEWS; do
|
||||
cp ../avarice-$VERSION/$file $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp ../$PRGNAM-$VERSION/$file $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
done
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
23
development/avarice/bug-777789-gcc-5.patch
Normal file
23
development/avarice/bug-777789-gcc-5.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
Description: Fix FTBFS for GCC 5
|
||||
Author: Tobias Frost <tobi@debian.org>
|
||||
Bug: https://sourceforge.net/p/avarice/patches/34/
|
||||
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777789
|
||||
Last-Update: 2015-05-18
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/src/pragma.h
|
||||
+++ b/src/pragma.h
|
||||
@@ -28,9 +28,10 @@
|
||||
*/
|
||||
#if defined(__GNUC__)
|
||||
# if __GNUC__ > 4
|
||||
-# define PRAGMA_DIAG_PUSH _Pragma(GCC diagnostic push)
|
||||
-# define PRAGMA_DIAG_POP _Pragma(GCC diagnostic pop)
|
||||
-# define PRAGMA_DIAG_IGNORED(x) _Pragma(GCC diagnostic ignored x)
|
||||
+# define PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push")
|
||||
+# define PRAGMA_DIAG_POP _Pragma("GCC diagnostic pop")
|
||||
+# define PRAGMA_(x) _Pragma(#x)
|
||||
+# define PRAGMA_DIAG_IGNORED(x) PRAGMA_(GCC diagnostic ignored x)
|
||||
# elif __GNUC__ == 4
|
||||
# if __GNUC_MINOR__ >= 6
|
||||
# define PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push")
|
Loading…
Reference in a new issue