From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-5.7 required=3.0 tests=AWL,BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 96C2320968 for ; Sun, 1 Jan 2017 10:20:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754636AbdAAKUK (ORCPT ); Sun, 1 Jan 2017 05:20:10 -0500 Received: from mout.web.de ([212.227.17.12]:60672 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752517AbdAAKUJ (ORCPT ); Sun, 1 Jan 2017 05:20:09 -0500 Received: from birne.lan ([195.252.60.88]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LsyZi-1cUcDO48za-012byK; Sun, 01 Jan 2017 11:19:57 +0100 Subject: Re: Test failures when Git is built with libpcre and grep is built without it To: "A. Wilcox" , git@vger.kernel.org References: <58688C9F.4000605@adelielinux.org> From: =?UTF-8?Q?Torsten_B=c3=b6gershausen?= Message-ID: <38525b2e-2a5f-941f-2eca-912632f9a2ec@web.de> Date: Sun, 1 Jan 2017 11:19:51 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <58688C9F.4000605@adelielinux.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:64Qon0fqlpPCVxoImK1sl+nGWNKqrdEewBUyUjs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V Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On 01.01.17 05:59, A. Wilcox wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Hello! > > I'm attempting to package Git for our new Linux distribution and I > have run in to a failure on our PowerPC builder while running the test > suite. > > The PowerPC builder runs a tiny version of grep(1) that was not built > with PCRE. As such, grep -P returns 2 and prints: > > grep: support for the -P option is not compiled into this > - --disable-perl-regexp binary > > However, our Git build *does* link against libpcre. This causes a > tests numbered 142 and 143 to fail in t7810-grep.sh. > > I am not sure the best way to handle this but I felt it would be > prudent to inform you of this issue. I will be happy to provide any > other information you may require. The first thing you can do is to run the test with debug and verbose: debug=t verbose=t ./t7810-grep.sh and post the output of these 2 test cases here: (mine looks like this) expecting success: echo "ab:a+bc" >expected && git \ -c grep.patterntype=extended \ -c grep.patterntype=fixed \ -c grep.patterntype=basic \ grep "a+b*c" ab >actual && test_cmp expected actual ok 142 - grep pattern with grep.patternType=extended, =fixed, =basic expecting success: echo "ab:abc" >expected && git grep -F -G -E "a+b*c" ab >actual && test_cmp expected actual ok 143 - grep -F -G -E pattern