From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eI4+BnTPrmM+hAEAbAwnHQ (envelope-from ) for ; Fri, 30 Dec 2022 12:45:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8KlLBnTPrmP0EAEA9RJhRA (envelope-from ) for ; Fri, 30 Dec 2022 12:45:56 +0100 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 aspmx1.migadu.com (Postfix) with ESMTPS id B3074353C7 for ; Fri, 30 Dec 2022 12:45:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBDpG-000719-TR; Fri, 30 Dec 2022 06:45:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pBDot-0006t1-QN for guix-patches@gnu.org; Fri, 30 Dec 2022 06:45:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pBDot-00069M-6g for guix-patches@gnu.org; Fri, 30 Dec 2022 06:45:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBDos-0005Jv-Ol for guix-patches@gnu.org; Fri, 30 Dec 2022 06:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60358] [PATCH v4 2/3] gnu: gnulib: Enable tests. References: In-Reply-To: Resent-From: Vivien Kraus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Dec 2022 11:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60358 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60358@debbugs.gnu.org Cc: Liliana Marie Prikler Received: via spool by 60358-submit@debbugs.gnu.org id=B60358.167240067320379 (code B ref 60358); Fri, 30 Dec 2022 11:45:02 +0000 Received: (at 60358) by debbugs.gnu.org; 30 Dec 2022 11:44:33 +0000 Received: from localhost ([127.0.0.1]:33648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBDoO-0005Ic-QC for submit@debbugs.gnu.org; Fri, 30 Dec 2022 06:44:33 -0500 Received: from planete-kraus.eu ([89.234.140.182]:39758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBDoI-0005Hz-3Y for 60358@debbugs.gnu.org; Fri, 30 Dec 2022 06:44:27 -0500 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 0047fb39; Fri, 30 Dec 2022 11:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h=from :date:subject:to:cc:message-id:mime-version; s=dkim; bh=xYq/XG5k zEXMhfgsT4iVf3k7aww=; b=W1vF/gnMIUqPWon9r8hFpPSejFKchoFg25GBrgD5 GF/JeeSR6awyi1lFeHQ9YdfvwrvjBdxRbmny2ONXFtn7uyDzo6T7YRRHUduyaMyA d/dIcAALFNfsTYIfR2tEx7u1dkcEfDn9prFXQPOkfOOk+DYGIZLsCcBKny4Qyc0g B2o= Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 8dee6878 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 30 Dec 2022 11:44:20 +0000 (UTC) Date: Fri, 30 Dec 2022 12:30:54 +0100 Message-ID: <5447da6c7608ffc02eec8ecfd83f9e7d78a29926.camel@planete-kraus.eu> MIME-Version: 1.0 User-Agent: Evolution 3.46.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Vivien Kraus X-ACL-Warn: , Vivien Kraus via Guix-patches From: Vivien Kraus via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672400755; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BmnFEauawOatXYhFyrw7+pdAMu27ww8Y7V0Lf/VPdQA=; b=OvRe+AXgHobYqNbFERMslBgdOCWlhQgEKV46pwA76T5Uco5KVRDOUIyBc1CWlWDACBpmcs bBNy0aXNzu9jgbMMIj0/UkYBu5baw7mayq+73O80p7BO3CTyYi3hX+tP/1grkbrUA3U3Ul DChmDuHEAVzfotcRl86JV+XGBGSoYcON7THIymtHIclKEWoC0QUj9ZozGTtt0P/6pArErs jTqB303fh3u0CCkd8ESL+S46OVXC7OTPdzZzkF6l4DwYNKVZZhGz9o3cu8e2CuP8YUMeVa xa+K0gvFwYcK01tMuXnk0+gunM2Ii/YULglNkAM1j8s9NP5LCrJBA/uxM0V3bg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b="W1vF/gnM"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672400755; a=rsa-sha256; cv=none; b=F8qzoPYhBgXZt4NVRGCVpUKn1uSiQK8gMMXRNGja6zY4+xdZfm4pac1oISCUgeOc6ujItV rbQactstJVbeT4N+um3WBMEIMqRxc5SyNKWxOqxtaUxK37zuLry0tTaJJQQeeRCX9ysA4t MwFViDhGbKwZJ+lxT1pNuSe9MEcqSoylVFGmGpuDht9g+KgeFiTuD8JID4OB2w38KuYEzc uuD4/CRepyotDNKmRmqbcszpaw1KPCuHHLobICD2eR63TeAH+8o+sD5T2DXOboY1nVOyUS JAS09pZKU7+f67V8KhEDUTu0H2F6i7LRMZ9OYsfPzk2g6SumDKaSW/Zn0ysZqw== X-Spam-Score: -2.03 X-Migadu-Queue-Id: B3074353C7 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=planete-kraus.eu header.s=dkim header.b="W1vF/gnM"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.03 X-TUID: jStUg2yi7SXr * gnu/packages/build-tools.scm (gnulib-checkout) [fix-tests]: New phase. Create a git repository so that every file is committed. * gnu/packages/build-tools.scm (gnulib-checkout): [disable-failing-tests]: New phase. * gnu/packages/build-tools.scm (gnulib-checkout): [install]: Delete the fake git repository. * gnu/packages/build-tools.scm (gnulib-checkout): [native-inputs]: Add more tools for the tests. --- gnu/packages/build-tools.scm | 54 +++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index bde4ee0973..5fa2b7234c 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -43,11 +43,14 @@ (define-module (gnu packages build-tools) #:use-module (guix build-system cmake) #:use-module (gnu packages) #:use-module (gnu packages adns) + #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) + #:use-module (gnu packages code) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages cppi) #:use-module (gnu packages elf) #:use-module (gnu packages linux) #:use-module (gnu packages lisp) @@ -830,16 +833,59 @@ (define*-public (gnulib-checkout #:key (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda _ + (substitute* "Makefile" + (("-f maint.mk syntax-check") + "_gl-Makefile=yes -f maint.mk syntax-check")) + (invoke "git" "init") + (invoke "git" "config" "user.name" "Guix") + (invoke "git" "config" "user.email" "guix@localhost") + (invoke "git" "add" ".") + (invoke "git" "commit" "-m" + "Syntax checks are only run against committed files, so commit everything."))) + (add-after 'fix-tests 'disable-failing-tests + (lambda _ + (substitute* "cfg.mk" + (("local-checks-to-skip =") + "local-checks-to-skip = \\ + sc_Wundef_boolean \\ + sc_file_system \\ + sc_indent \\ + sc_keep_gnulib_texi_files_mostly_ascii \\ + sc_prohibit_assert_without_use \\ + sc_prohibit_close_stream_without_use \\ + sc_prohibit_defined_have_decl_tests \\ + sc_prohibit_doubled_word \\ + sc_prohibit_empty_lines_at_EOF \\ + sc_prohibit_intprops_without_use \\ + sc_prohibit_openat_without_use \\ + sc_prohibit_test_minus_ao \\ + sc_unportable_grep_q")) + (substitute* "Makefile" + (("sc_check_sym_list") + "disabled_check_sym_list") + (("sc_cpp_indent_check") + "disabled_cpp_indent_check") + (("sc_check_copyright") + "disabled_check_copyright") + (("sc_prohibit_AC_LIBOBJ_in_m4") + "disabled_prohibit_AC_LIBOBJ_in_m4") + (("sc_prefer_ac_check_funcs_once") + "disabled_prefer_ac_check_funcs_once") + (("sc_prohibit_leading_TABs") + "disabled_prohibit_leading_TABs")))) (delete 'configure) (replace 'install (lambda _ (install-file "gnulib-tool" (string-append #$output "/bin")) - (copy-recursively "." (string-append #$output "/src/gnulib/"))))) - #:tests? #f)) ;; Tests are syntax and indentation checks for the - ;; maintainer. And they are failing. + (delete-file-recursively ".git") + (copy-recursively "." (string-append #$output "/src/gnulib/"))))))) (inputs ;; Shebangs for some auxiliary build files. - (list python perl clisp)) + (list python perl clisp + ;; Programs for the tests: + cppi indent git autoconf)) (home-page "https://www.gnu.org/software/gnulib/") (synopsis "Source files to share among distributions") (description -- 2.38.1