perl/locale-gettext: Patched a bug in gettext.pm

https://bugzilla.novell.com/show_bug.cgi?id=353715

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
dsomero 2012-09-24 18:58:31 -04:00
parent b49c32a42d
commit 820c53b266
2 changed files with 29 additions and 16 deletions

View File

@ -24,15 +24,13 @@
PRGNAM=locale-gettext
VERSION=${VERSION:-1.05}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
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
@ -51,24 +49,28 @@ cd gettext-$VERSION || exit 1
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
perl Makefile.PL PREFIX=/usr || exit 1
make || exit 1
make pure_vendor_install DESTDIR=$PKG || exit 1
#https://bugzilla.novell.com/show_bug.cgi?id=353715
patch -p0 -i $CWD/posix.patch
perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
INSTALLVENDORMAN3DIR=/usr/man/man3
make
make test
make install DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
find $PKG -depth -type d -empty -delete || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/man $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
rm -rf $PKG/usr/share
# Remove 'special' files
find $PKG -name perllocal.pod \
-o -name "\.packlist" \
-o -name "*.bs" \
| xargs rm -f
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View File

@ -0,0 +1,11 @@
# https://bugzilla.novell.com/show_bug.cgi?id=353715
--- gettext.pm
+++ gettext.pm
@@ -32,6 +32,7 @@
=cut
use Carp;
+use POSIX;
require Exporter;
require DynaLoader;