summaryrefslogtreecommitdiff
path: root/packages/perl
diff options
context:
space:
mode:
Diffstat (limited to 'packages/perl')
-rw-r--r--packages/perl/perl_5.8.8.bb19
1 files changed, 10 insertions, 9 deletions
diff --git a/packages/perl/perl_5.8.8.bb b/packages/perl/perl_5.8.8.bb
index d4124cda9a..486c999eaa 100644
--- a/packages/perl/perl_5.8.8.bb
+++ b/packages/perl/perl_5.8.8.bb
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
PRIORITY = "optional"
# We need gnugrep (for -I)
DEPENDS = "virtual/db perl-native grep-native"
-PR = "r6"
+PR = "r7"
# Major part of version
PVM = "5.8"
@@ -59,14 +59,15 @@ do_configure() {
cat $i >> config.sh-${TARGET_ARCH}-${TARGET_OS}
done
- # uclibc not checked with this version yet
- # uclicb fixups
- #for i in config.sh-*-linux; do
- # a="`echo $i|sed -e 's,^config.sh-,,; s,-linux$,,'`"
- # newfile="`echo $i|sed -e 's,-linux$,-linux-uclibc,g'`"
- # cat $i | sed -e "s,${a}-linux,${a}-linux-uclibc,g; \
- # s,d_sockatmark='define',d_sockatmark='undef',g;" > $newfile
- #done
+ # Fixups for uclibc
+ if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibcgnueabi" ]; then
+ sed -i -e "s,\(d_crypt_r=\)'define',\1'undef',g" \
+ -e "s,\(d_getnetbyname_r=\)'define',\1'undef',g" \
+ -e "s,\(d_getnetbyaddr_r=\)'define',\1'undef',g" \
+ -e "s,\(d_getnetent_r=\)'define',\1'undef',g" \
+ -e "s,\(d_sockatmark=\)'define',\1'undef',g" \
+ config.sh-${TARGET_ARCH}-${TARGET_OS}
+ fi
# Update some paths in the configuration
sed -i -e 's,@DESTDIR@,${D},g' \