libraries/dietlibc: Updated for version 0.33.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Markus Reichelt 2013-05-19 09:12:06 -04:00 committed by dsomero
parent b4f7361d06
commit 51621821b7
4 changed files with 21 additions and 19 deletions

View file

@ -1,5 +1,5 @@
You can verify that dietlibc was successfully installed on your system
by entering the following on a bash prompt, f.e.:
by entering the following on a bash prompt (as non-root user), e.g.:
printf '#include <unistd.h>\nint main(){write(1,"hello\\n",6);}\n' >_tmp.c
diet gcc -O2 -s _tmp.c
@ -10,8 +10,8 @@ you should see "hello" printed on screen
"size a.out" entered on prompt should print something like like this:
text data bss dec hex filename
679 8 40 727 2d7 a.out
1292 12 72 1376 560 a.out
Please note: You may get strange results on Slackware 13-64 multilib systems,
Please note: You may get strange results on Slackware multilib systems,
(like $ARCH being ignored by dietlibc's make itself).
Therefore it is recommended to build only on clean (64/32bit) installs.

View file

@ -2,7 +2,7 @@
# Slackware build script for dietlibc
# Copyright (c) 2010 Markus Reichelt, Aachen, DE
# Copyright (c) 2010-2013 Markus Reichelt, Aachen, DE
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@ -22,18 +22,16 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
PRGNAM=dietlibc
VERSION=${VERSION:-0.32}
VERSION=${VERSION:-0.33}
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
@ -66,7 +64,11 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
make
make install DESTDIR=$PKG
@ -76,7 +78,7 @@ cat $CWD/profile.d/dietlibc.sh > $PKG/etc/profile.d/dietlibc.sh
cat $CWD/profile.d/dietlibc.csh > $PKG/etc/profile.d/dietlibc.csh
chmod 0755 $PKG/etc/profile.d/*
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/opt/diet/man -type f -exec gzip -9 {} \;

View file

@ -1,10 +1,10 @@
PRGNAM="dietlibc"
VERSION="0.32"
VERSION="0.33"
HOMEPAGE="http://www.fefe.de/dietlibc/"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/dietlibc-0.32.tar.bz2"
MD5SUM="0098761c17924c15e21d25acdda4a8b5"
DOWNLOAD="http://www.fefe.de/dietlibc/dietlibc-0.33.tar.bz2"
MD5SUM="9d541b9a6623b04ec12e5248b82db7c0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="markus reichelt"
MAINTAINER="Markus Reichelt"
EMAIL="slackbuilds@mareichelt.de"

View file

@ -1,9 +1,9 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
dietlibc: diet libc (a libc optimized for small size)