mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/wvstreams: Updated for version 4.6.1.
This update includes a patch to build against glibc-2.12.x. I actually did this update, but I shot it over to vbatts for a lookie before going any further with it... That said, blame me if there are problems... :-) Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
48934c2eac
commit
051ada2455
3 changed files with 31 additions and 12 deletions
23
libraries/wvstreams/wvstreams-4.6.1-glibc212.patch
Normal file
23
libraries/wvstreams/wvstreams-4.6.1-glibc212.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
http://bugs.gentoo.org/333301
|
||||
|
||||
--- ipstreams/wvunixdgsocket.cc
|
||||
+++ ipstreams/wvunixdgsocket.cc
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "wvunixdgsocket.h"
|
||||
-#ifdef MACOS
|
||||
+#if defined(MACOS) || defined(__GNUC__)
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
--- streams/wvatomicfile.cc
|
||||
+++ streams/wvatomicfile.cc
|
||||
@@ -11,7 +11,8 @@
|
||||
#include "wvfileutils.h"
|
||||
#include "wvstrutils.h"
|
||||
|
||||
-#ifdef MACOS
|
||||
+#if defined(MACOS) || defined(__GNUC__)
|
||||
+#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
|
@ -5,16 +5,14 @@
|
|||
# Written by Vincent Batts, vbatts@batts.mine.nu
|
||||
|
||||
PRGNAM=wvstreams
|
||||
VERSION=4.6
|
||||
VERSION=4.6.1
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -53,9 +51,11 @@ find . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
# Fix a build error with glibc-2.12.x
|
||||
patch -p0 < $CWD/wvstreams-4.6.1-glibc212.patch
|
||||
|
||||
# configure doesn't support disabling static libraries
|
||||
# Don't manually remove them either, as wvdial won't build then :)
|
||||
# * Build without dbus support, since it requires the static dbus lib
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
@ -65,7 +65,6 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--disable-testgui \
|
||||
--without-dbus \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
|
@ -77,10 +76,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
|||
# Let's not clobber the config file
|
||||
mv $PKG/etc/uniconf.conf $PKG/etc/uniconf.conf.new
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="wvstreams"
|
||||
VERSION="4.6"
|
||||
VERSION="4.6.1"
|
||||
HOMEPAGE="http://alumnit.ca/wiki/index.php?page=WvStreams"
|
||||
DOWNLOAD="http://wvstreams.googlecode.com/files/wvstreams-4.6.tar.gz"
|
||||
MD5SUM="4ee8ccfe6dfc29bf952d58fa23626c97"
|
||||
DOWNLOAD="http://wvstreams.googlecode.com/files/wvstreams-4.6.1.tar.gz"
|
||||
MD5SUM="2760dac31a43d452a19a3147bfde571c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Vincent Batts"
|
||||
|
|
Loading…
Reference in a new issue