From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.6 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A354B1F4B4 for ; Sat, 26 Dec 2020 17:33:01 +0000 (UTC) Received: from localhost ([::1]:38600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktDR6-0005Zk-BY for normalperson@yhbt.net; Sat, 26 Dec 2020 12:33:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktDR3-0005Zd-2O for bug-gnulib@gnu.org; Sat, 26 Dec 2020 12:32:57 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.24]:22183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktDR0-00075P-Ow for bug-gnulib@gnu.org; Sat, 26 Dec 2020 12:32:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1609003971; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:To:From:From:Subject: Sender; bh=d9zuLs6/qiCXfsCRZOl6AjdINLQGClXr3BlTyEJp9IU=; b=TMYGGd9CopsKdUWovjSgtuX/T2n16A01cv3svXsyxN5gOgYeYGq+bFSQ7fg+1P8oVQ Qth1EDYXFQqzZgaimc2v7vb+2ejWUHI+GIakrcTVdJKM5OiBmRBXJi+LWoYdhrWXrB9h ffLM9n++FddT7t5L2USJ2qyPKzvXqjtQV82x0foJxJhSodrtpW2DqSv/9jiGbh83SQkl MLJ+ked4mfJDeS5a03AjJV+tonwattdCbx5RDm70Mn2G33lVVzzoXjSCX3JVobe2LtW9 AWJLBU/sTv7Sh+BzJ0NX7c8QT5TFCp/hnJRALcSg++LCAcyv87MDU/U0lhTcvfyxbDeS RJcQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqfzyPs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.10.7 DYNA|AUTH) with ESMTPSA id e012d5wBQHWm6yC (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sat, 26 Dec 2020 18:32:48 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org, Simon Josefsson Subject: Re: cmp/diff Date: Sat, 26 Dec 2020 18:32:47 +0100 Message-ID: <2437960.L2bZbQ6S5l@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <878s9k8rhw.fsf@latte.josefsson.org> References: <878s9k8rhw.fsf@latte.josefsson.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.24; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -36 X-Spam_score: -3.7 X-Spam_bar: --- X-Spam_report: (-3.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.619, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Simon, > Essentialy it boils down to: > > ../../gltests/test-binary-io.sh: line 8: cmp: command not found > test-init.sh: failed test: err not empty: ../../gltests/init.sh: line 648: cmp: command not found > ../../gltests/test-perror.sh: line 14: diff: command not found 'cmp' and 'diff' are among the programs that a 'configure' script and a Makefile can assume to be present, see the GNU Coding Standards . > What do you think about rewriting these self-tests to avoid cmp/diff? There is no adequate replacement. It would be possible to use 'md5sum' instead of 'cmp'; but since 'md5sum' is not in the above list from the GNU Coding Standards, this is not a useful direction. Gnulib makes sure to pave over differences between different 'diff' implementations; this was already a major headache. See tests/init.sh lines 589..669. > https://gitlab.com/libidn/libidn/-/jobs/932649011 The Gitlab jobs typically start by installing packages into the build environment. Yours has $ pacman -Sy --noconfirm make gcc I guess that adding 'diffutils' to this package list will solve the problem. > I read the DEPENDENCIES file a bit more careful after noticing that it > has several mandatory dependencies that I find questionable, and I > noticed this in the beginning: > > The following packages are needed by maintainers for using > 'gnulib-tool'. > > It doesn't say the packages are required for users building gnulib-based > packages. I can live with having diffutils installed as a maintainer. > Was this subtle distinction intentional? Yes, of course, we make a distinction between the packages needed for creating the tarballs and the packages needed to build+install the tarballs. The GNU Coding Standards matters for the latter. Bruno