From owner-p4-projects@FreeBSD.ORG Fri Aug 7 08:01:02 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4C3401065675; Fri, 7 Aug 2009 08:01:02 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8939106566B for ; Fri, 7 Aug 2009 08:01:01 +0000 (UTC) (envelope-from stas@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D7CD88FC33 for ; Fri, 7 Aug 2009 08:01:01 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n77811GO083186 for ; Fri, 7 Aug 2009 08:01:01 GMT (envelope-from stas@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n77811er083184 for perforce@freebsd.org; Fri, 7 Aug 2009 08:01:01 GMT (envelope-from stas@freebsd.org) Date: Fri, 7 Aug 2009 08:01:01 GMT Message-Id: <200908070801.n77811er083184@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to stas@freebsd.org using -f From: Stanislav Sedov To: Perforce Change Reviews Cc: Subject: PERFORCE change 167082 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 08:01:03 -0000 http://perforce.freebsd.org/chv.cgi?CH=167082 Change 167082 by stas@stas_deglitch on 2009/08/07 08:00:33 - Make valgrind build with ordinary sed by using standard POSIX regular expressions. Affected files ... .. //depot/projects/valgrind/Makefile.am#10 edit .. //depot/projects/valgrind/configure.in#9 edit Differences ... ==== //depot/projects/valgrind/Makefile.am#10 (text+ko) ==== @@ -214,44 +214,44 @@ # So we search for the line with a hex value "+ SIZEOF_HEADERS", and replace # all the hex values in that line with "valt_load_address". valt_load_address_x86_freebsd.lds: Makefile - $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | $(SED) \ - -e '1,/^=====\+$$/d' \ - -e '/^=====\+$$/d' \ - -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \ + $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | $(SED) -E \ + -e '1,/^=====+$$/d' \ + -e '/^=====+$$/d' \ + -e '/\. = 0x[0-9A-Fa-f]+ \+ SIZEOF_HEADERS/s/0x[0-9A-Fa-f]+/valt_load_address/g' > $@ \ || rm -f $@ valt_load_address_amd64_freebsd.lds: Makefile - $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | $(SED) \ - -e '1,/^=====\+$$/d' \ - -e '/^=====\+$$/d' \ + $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | $(SED) -E \ + -e '1,/^=====+$$/d' \ + -e '/^=====+$$/d' \ -e '/ALIGN/s/0x100000/0x1000/g' \ - -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \ + -e '/\. = 0x[0-9A-Fa-f]+ \+ SIZEOF_HEADERS/s/0x[0-9A-Fa-f]+/valt_load_address/g' > $@ \ || rm -f $@ valt_load_address_x86_linux.lds: Makefile - $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | $(SED) \ - -e '1,/^=====\+$$/d' \ - -e '/^=====\+$$/d' \ - -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \ + $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | $(SED) -E \ + -e '1,/^=====+$$/d' \ + -e '/^=====+$$/d' \ + -e '/\. = 0x[0-9A-Fa-f]+ \+ SIZEOF_HEADERS/s/0x[0-9A-Fa-f]+/valt_load_address/g' > $@ \ || rm -f $@ valt_load_address_amd64_linux.lds: Makefile - $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | $(SED) \ - -e '1,/^=====\+$$/d' \ - -e '/^=====\+$$/d' \ - -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \ + $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | $(SED) -E \ + -e '1,/^=====+$$/d' \ + -e '/^=====+$$/d' \ + -e '/\. = 0x[0-9A-Fa-f]+ \+ SIZEOF_HEADERS/s/0x[0-9A-Fa-f]+/valt_load_address/g' > $@ \ || rm -f $@ valt_load_address_ppc32_linux.lds: Makefile - $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | $(SED) \ - -e '1,/^=====\+$$/d' \ - -e '/^=====\+$$/d' \ - -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \ + $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | $(SED) -E \ + -e '1,/^=====+$$/d' \ + -e '/^=====+$$/d' \ + -e '/\. = 0x[0-9A-Fa-f]+ \+ SIZEOF_HEADERS/s/0x[0-9A-Fa-f]+/valt_load_address/g' > $@ \ || rm -f $@ valt_load_address_ppc64_linux.lds: Makefile - $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | $(SED) \ - -e '1,/^=====\+$$/d' \ - -e '/^=====\+$$/d' \ - -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \ + $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | $(SED) -E \ + -e '1,/^=====+$$/d' \ + -e '/^=====+$$/d' \ + -e '/\. = 0x[0-9A-Fa-f]+ \+ SIZEOF_HEADERS/s/0x[0-9A-Fa-f]+/valt_load_address/g' > $@ \ || rm -f $@ ==== //depot/projects/valgrind/configure.in#9 (text+ko) ==== @@ -93,27 +93,6 @@ AC_SUBST(ASFLAGS) ]) - -# Check we have GNU sed: some of the stuff done by "make install" relies -# on some pretty fancy sed expressions, and AIX sed doesn't produce the -# same results, causing install to fail - -AC_MSG_CHECKING([for GNU sed]) - -[sed_firstline=`${SED} --version | head -n 1`] - -case "${sed_firstline}" in - GNU*) - AC_MSG_RESULT([ok, looks like GNU sed]) - ;; - *) - AC_MSG_RESULT([please specify the path to GNU 'sed' in the SED environment variable]) - AC_MSG_RESULT([note: GNU sed is only required at build/install time, not run time]) - AC_MSG_ERROR([build/install requires that 'sed' is GNU sed]) - ;; -esac - - # We don't want gcc < 3.0 AC_MSG_CHECKING([for a supported version of gcc])