From patchwork Fri Sep 13 20:13:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 67941 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4CDFD27BBE9; Fri, 13 Sep 2024 21:14:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2D31727BBE2 for ; Fri, 13 Sep 2024 21:14:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spCg0-0004Ak-Le; Fri, 13 Sep 2024 16:13:56 -0400 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 1spCfy-00044T-0F for guix-patches@gnu.org; Fri, 13 Sep 2024 16:13:54 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spCfx-0007fi-AJ for guix-patches@gnu.org; Fri, 13 Sep 2024 16:13:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=aSf84HIqnUGyv3vvcTqHlmsNUa1Nj/eF8ppCB82/2UY=; b=sa22vZJCgY3vFuV+XcisWuBsaly87ZHpFLRt8AcD4RAtkm8X09kmq3InB+M+zsDxVhuokj/DYZJTSFcj57x6N8CziXhBqYhuvyQQ4zJrZXEEH6z2e7Pt8d4MYiPZ1jqDzUe0EoyUQe/xK4SiEb42FhkXByh2L5xiw6beKJoqV16uvfa0Jxila6a4+yDNvVw0Ha88UghSoZr9k3MoetqOb44kfAfk2t3JgmpSEn5ypnLZkLnSL5fcBY3MkRa1jlyrGQQf76eRB01bt8FKsLO6SLqw9hvHls3ImGMlLCU6G87tDFOZmJ2w+GUlqtYg68/BKUtsr+iajhLBBzdfkL5HDQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spCg6-0006C1-QD for guix-patches@gnu.org; Fri, 13 Sep 2024 16:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73235] [PATCH] gnu: gauche: Fix build, enable TLS, and use gexps. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Sep 2024 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73235 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73235@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172625842223756 (code B ref -1); Fri, 13 Sep 2024 20:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2024 20:13:42 +0000 Received: from localhost ([127.0.0.1]:44315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spCfl-0006B4-T4 for submit@debbugs.gnu.org; Fri, 13 Sep 2024 16:13:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:58092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spCfj-0006Av-Ew for submit@debbugs.gnu.org; Fri, 13 Sep 2024 16:13:40 -0400 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 1spCfZ-00041H-AP for guix-patches@gnu.org; Fri, 13 Sep 2024 16:13:29 -0400 Received: from smtp.forwardemail.net ([207.246.76.47]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1spCfX-0007e7-I8 for guix-patches@gnu.org; Fri, 13 Sep 2024 16:13:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antr.me; h=Content-Type: MIME-Version: Message-ID: Date: Subject: To: From; q=dns/txt; s=fe-d5cf982890; t=1726258401; bh=aSf84HIqnUGyv3vvcTqHlmsNUa1Nj/eF8ppCB82/2UY=; b=XGt449P0Pp19QgGYT4CUVnnG6FUOVF+4xYywuS+NnbbfZ4CxwlRup+C2kgqBnpksJ5aWzsh/A grr7m+Kk/j8BzFi26Di1I15nOySm7FGFGMJw5pvrGQ0lD4ydBpEUyJSuNigtBieeMJ35J7b02mS brYz4BZa0iTzSm8wtxXzNsY= Date: Fri, 13 Sep 2024 20:13:18 +0000 Message-ID: <87ikuz2ty9.fsf@antr.me> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; mail@antr.me, smtp.forwardemail.net, 207.246.76.47 X-ForwardEmail-ID: 66e49cdf6c57d9a68975b82b Received-SPF: pass client-ip=207.246.76.47; envelope-from=SRS0=0bc9=QM=antr.me=mail@fe-bounces.antr.me; helo=smtp.forwardemail.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches There is a known test issue that will be fixed next release: https://github.com/shirok/Gauche/issues/1044 * gnu/packages/scheme.scm (gauche): Fix build failure and enable TLS. [arguments]: Set #:tests? to #f until next release, and add --with-tls configure flag. [inputs]: Add mbedtls. Change-Id: Iceacb882e74f5a8e3e11d663cca51baafbcbeb69 --- Resolves https://issues.guix.gnu.org/73113 gnu/packages/scheme.scm | 58 +++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 28 deletions(-) base-commit: f1bdb291dc5d65de2c88e339df5e515fb4b3544c diff --git a/gnu/packages/scheme.scm b/gnu/packages/scheme.scm index 647f7e71d2..6f9d00e440 100644 --- a/gnu/packages/scheme.scm +++ b/gnu/packages/scheme.scm @@ -1098,38 +1098,40 @@ (define-public gauche (base32 "10zpbbikkcpdzk6c52wkckiyhn7nhnqjv2djdzyjr0n8qxxy4hrn")))) (build-system gnu-build-system) (inputs - (list libatomic-ops slib zlib)) + (list libatomic-ops mbedtls slib zlib)) (native-inputs (list texinfo openssl ; needed for tests pkg-config)) ; needed to find external libatomic-ops (arguments - `(#:configure-flags - (list (string-append "--with-slib=" - (assoc-ref %build-inputs "slib") - "/lib/slib")) - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-/bin/sh - ;; Needed only for tests. - (lambda _ - (substitute* '("test/www.scm" - "ext/tls/test.scm" - "lib/gauche/package/util.scm" - "libsrc/gauche/process.scm") - (("/bin/sh") (which "sh"))))) - (add-after 'build 'build-doc - (lambda _ - (with-directory-excursion "doc" - (invoke "make" "info")))) - (add-before 'check 'patch-network-tests - ;; Remove net checks. - (lambda _ - (delete-file "test/net.scm") - (invoke "touch" "test/net.scm"))) - (add-after 'install 'install-docs - (lambda _ - (with-directory-excursion "doc" - (invoke "make" "install"))))))) + (list #:tests? #f ; 9 ffitest failures, known issue (fixed in 0.9.16): + ;; https://github.com/shirok/Gauche/issues/1044 + #:configure-flags + #~(list (string-append "--with-slib=" #$(this-package-input "slib") + "/lib/slib") + "--with-tls=mbedtls") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-/bin/sh + ;; Needed only for tests. + (lambda _ + (substitute* '("test/www.scm" + "ext/tls/test.scm" + "lib/gauche/package/util.scm" + "libsrc/gauche/process.scm") + (("/bin/sh") (which "sh"))))) + (add-after 'build 'build-doc + (lambda _ + (with-directory-excursion "doc" + (invoke "make" "info")))) + (add-before 'check 'patch-network-tests + ;; Remove net checks. + (lambda _ + (delete-file "test/net.scm") + (invoke "touch" "test/net.scm"))) + (add-after 'install 'install-docs + (lambda _ + (with-directory-excursion "doc" + (invoke "make" "install"))))))) (synopsis "Scheme scripting engine") (description "Gauche is a R7RS Scheme scripting engine aiming at being a handy tool that helps programmers and system administrators to write small to