pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap On Debian/Ubuntu Linux, system's awk is mawk...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3cba71b5772a
branches:  trunk
changeset: 618557:3cba71b5772a
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sat May 11 23:42:44 2013 +0000

description:
On Debian/Ubuntu Linux, system's awk is mawk, and mawk does not
understand some regexp like [[:space:]].
ELF shared lib check is not working properly with mawk.

diffstat:

 bootstrap/bootstrap |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0e539d4c2850 -r 3cba71b5772a bootstrap/bootstrap
--- a/bootstrap/bootstrap       Sat May 11 23:33:14 2013 +0000
+++ b/bootstrap/bootstrap       Sat May 11 23:42:44 2013 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.191 2013/03/11 22:48:23 tcort Exp $
+# $NetBSD: bootstrap,v 1.192 2013/05/11 23:42:44 ryoon Exp $
 #
 # Copyright (c) 2001-2011 Alistair Crooks <agc%NetBSD.org@localhost>
 # All rights reserved.
@@ -620,7 +620,13 @@
                root_group=root
        fi
        need_bsd_install=no
-       need_awk=no
+       # Debian/Ubuntu's awk is mawk, and mawk does not understand
+       # some regexp used in pkgsrc/mk.
+       if [ -f /etc/debian_version ]; then
+               need_awk=yes
+       else
+               need_awk=no
+       fi
        need_sed=no
        set_opsys=no
        machine_arch=`uname -m | sed -e 's/i.86/i386/'`



Home | Main Index | Thread Index | Old Index