libraries/log4cpp: Updated for version 1.1.3.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2021-10-02 21:15:13 +02:00 committed by Willy Sudiarto Raharjo
parent b663ef4d04
commit 8d995f8f2b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 6 additions and 35 deletions

View file

@ -1,26 +0,0 @@
Index: log4cpp-1.0/src/BasicLayout.cpp
===================================================================
--- log4cpp-1.0.orig/src/BasicLayout.cpp 2008-03-14 16:06:57.000000000 -0400
+++ log4cpp-1.0/src/BasicLayout.cpp 2008-03-14 16:07:11.000000000 -0400
@@ -15,6 +15,8 @@
#include <sstream>
#endif
+#include <memory>
+
namespace log4cpp {
BasicLayout::BasicLayout() {
Index: log4cpp-1.0/src/PatternLayout.cpp
===================================================================
--- log4cpp-1.0.orig/src/PatternLayout.cpp 2008-03-14 16:07:33.000000000 -0400
+++ log4cpp-1.0/src/PatternLayout.cpp 2008-03-14 16:07:49.000000000 -0400
@@ -370,7 +370,7 @@
literal = "";
}
if ((minWidth != 0) || (maxWidth != 0)) {
- component = new FormatModifierComponent(component, std::abs(minWidth), maxWidth, minWidth < 0);
+ component = new FormatModifierComponent(component, std::abs((float)minWidth), maxWidth, minWidth < 0);
minWidth = maxWidth = 0;
}
_components.push_back(component);

View file

@ -29,7 +29,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=log4cpp
VERSION=${VERSION:-1.0}
VERSION=${VERSION:-1.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -73,9 +73,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
rm -rf $PRGNAM
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
cd $PRGNAM
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -83,9 +83,6 @@ 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 {} \;
# apply patches
patch -Np1 -i $CWD/gcc43.patch
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \

View file

@ -1,8 +1,8 @@
PRGNAM="log4cpp"
VERSION="1.0"
VERSION="1.1.3"
HOMEPAGE="http://log4cpp.sourceforge.net/"
DOWNLOAD="https://downloads.sourceforge.net/log4cpp/log4cpp-1.0.tar.gz"
MD5SUM="1face50ead0790d1297dfb04bacf273c"
DOWNLOAD="https://downloads.sourceforge.net/log4cpp/log4cpp-1.1.3.tar.gz"
MD5SUM="b9e2cee932da987212f2c74b767b4d8b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""