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.1 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,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 5A5A31F4B4 for ; Sat, 26 Dec 2020 19:31:47 +0000 (UTC) Received: from localhost ([::1]:59164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktFI2-0005mj-1y for normalperson@yhbt.net; Sat, 26 Dec 2020 14:31:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktFHy-0005mQ-Od for bug-gnulib@gnu.org; Sat, 26 Dec 2020 14:31:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38383) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktFHw-0002K7-Rv; Sat, 26 Dec 2020 14:31:40 -0500 Received: from pool-96-233-64-159.bstnma.fios.verizon.net ([96.233.64.159]:35292 helo=pdslaptop.home) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ktFHw-0004mc-Bn; Sat, 26 Dec 2020 14:31:40 -0500 Message-ID: <70222086d33beef9332730746d67a16b9112c45b.camel@gnu.org> Subject: Re: cmp/diff From: Paul Smith To: Bruno Haible , Simon Josefsson Date: Sat, 26 Dec 2020 14:31:39 -0500 In-Reply-To: <4087542.9Ba499KVGE@omega> References: <878s9k8rhw.fsf@latte.josefsson.org> <2437960.L2bZbQ6S5l@omega> <87ft3spgax.fsf@latte.josefsson.org> <4087542.9Ba499KVGE@omega> Organization: GNU's Not UNIX! Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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: , Reply-To: psmith@gnu.org Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On Sat, 2020-12-26 at 19:49 +0100, Bruno Haible wrote: > Makefile rules are written both for automated execution and for the > developers of a package. While for the automated execution of a unit > test, "cmp expected.out actual.out" is sufficient, for a developer, > "diff expected.out actual.out" is definitely nicer. Agreed. It could be possible for the configure script to check for diff and if it's not provided, replace it with cmp in situations where we only need to care about equality for correct processing (which is most places). A message could be shown to the user saying that without diff it will be hard for maintainers to assist if the configure fails. However, that seems like a lot of effort for not much gain (for the GNU project) so I'd suggest that if someone wanted something like that they would need to provide the implementation.