From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kJKtFi2ltmSpagAASxT56A (envelope-from ) for ; Tue, 18 Jul 2023 16:43:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eICHFi2ltmR/nQAAauVa8A (envelope-from ) for ; Tue, 18 Jul 2023 16:43:57 +0200 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 1F4913B9FB for ; Tue, 18 Jul 2023 16:43:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=okn4e2KG; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689691437; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=5QTvMQjTe9k7h+h5glKkUFI5ff+hB+mx8y/KAekkCL4=; b=N36LkFqBtrnkWFcvyJIW2kgfIpX5mJw5TVNKpLv1lyCvQ/TOJqvFvSvKUY8aVhIIVW6Ku1 1/HhZSek0dro8e5dCSXXv9uf2A5h36CGPy1xPgimb0Tv5xLHsHIbB8L/NGSnNFhyU+gwlq /d8KYyG+yMlp8LJe3ePtGIUzjwjN2jS5HAKRTvLVOewIOuP1VKIJeAXK30tamC9CAVWHPe DIDDL4ru1EesUnafgQx1ma/ZdLbMkRkWYPvfxcomRRpLZtjJP7BAtpsgKYAFJKYtLnz6L2 y4pK3IKHJiFE/T/Ln8T23KuCx059UeGlzroB0zpqr28e8eVMiPX+1cAqb98Fzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689691437; a=rsa-sha256; cv=none; b=OGihQaCAjXuBdNda5L3afSayR5LhKc4NseeuE4RmUB79KteIL4fpa0lvGeXoCybdsNMI/o pt7fjnT7i/uLWkatp2yYkUIlMrghUUkDN0gseBN1c8oe/b3fGIAlSKB6srGfFJq/6Sgo4U 6tK+mpCrPkOFbaxaNXA1raQBnPZH1jQU06ear5X/XAPmNBdGgXaSGHv/kbgKxCly5TXfim 88hVmoEyx5++drGXEU4Lw26wuKmZhopwu1TRlgX0rQw3jM1sRi+UGFx+eth6vjTXEm+06h dpGZI7/3+m1Oe1IlvrhyTGhMULnDxDf8vM2l+PFWeaQPL1MiQGvnLrDrTTDkoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=okn4e2KG; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLltz-0007kM-E4; Tue, 18 Jul 2023 10:42:11 -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 1qLltu-0007ac-Eh for guix-patches@gnu.org; Tue, 18 Jul 2023 10:42:06 -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 1qLltu-0000uv-6p for guix-patches@gnu.org; Tue, 18 Jul 2023 10:42:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qLltu-0006dn-3V for guix-patches@gnu.org; Tue, 18 Jul 2023 10:42:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64711] [PATCH 16/43] gnu: libgpg-error: Skip failing test on the Hurd. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jul 2023 14:42:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64711 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64711@debbugs.gnu.org Received: via spool by 64711-submit@debbugs.gnu.org id=B64711.168969128425275 (code B ref 64711); Tue, 18 Jul 2023 14:42:06 +0000 Received: (at 64711) by debbugs.gnu.org; 18 Jul 2023 14:41:24 +0000 Received: from localhost ([127.0.0.1]:53778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLltD-0006ZV-9C for submit@debbugs.gnu.org; Tue, 18 Jul 2023 10:41:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qLlt4-0006Xe-C4 for 64711@debbugs.gnu.org; Tue, 18 Jul 2023 10:41:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLlsz-0000co-53; Tue, 18 Jul 2023 10:41:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=5QTvMQjTe9k7h+h5glKkUFI5ff+hB+mx8y/KAekkCL4=; b=okn4e2KGaOW/xbKl/zMt lAtIB64RZdOiY/UG2HtVjBJd1i0OaP9zp6qtd+NClrCamO7b/+qt3fcm6AUn+h7Qt36Jz04yrJXgn 52dM6Idm8cN+v7iQ41wr0iGA2FNHuD3vbkTOAXHkVXo/dgX47BI+AraslsMEOo2cAfNSVhrCRhX2Y mRsDgrziYN5CUhsebk13lChsTuBB9F5ZdSutoTxCp4BsM6HQt8XYpBOdip0Upwb47tzrcnygsKqci tg2dbLRiB2lftihbtID/vJZdGImNHQM1LAj5Bib+1Bw4hM0v0Ka0y14uX3t7DJAI5HjZjL44BA4OI yVejrqHLtmWD4A==; Received: from 2a02-a462-da03-1-aeb0-2f5e-e96a-dccb.fixed6.kpn.net ([2a02:a462:da03:1:aeb0:2f5e:e96a:dccb] helo=drakenpad.fritz.box) by fencepost.gnu.org with esmtpa (Exim 4.90_1) (envelope-from ) id 1qLlsy-0004hp-8l; Tue, 18 Jul 2023 10:41:08 -0400 From: Janneke Nieuwenhuizen Date: Tue, 18 Jul 2023 16:40:09 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , 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 X-Migadu-Spam-Score: -4.35 X-Spam-Score: -4.35 X-Migadu-Queue-Id: 1F4913B9FB X-Migadu-Scanner: mx1.migadu.com X-TUID: tEHbtlXwau7e * gnu/packages/gnupg.scm (libgpg-error)[arguments]: When building natively on the Hurd, add phase 'skip-tests'. --- gnu/packages/gnupg.scm | 82 ++++++++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 34 deletions(-) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index 49d29ed9bd..4a9a8fbb57 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Nikita Domnitskii ;;; Copyright © 2021 Aleksandr Vityazev ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2023 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -94,40 +95,42 @@ (define-public libgpg-error (version "1.45") (source (origin - (method url-fetch) - (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-" - version ".tar.bz2")) - (sha256 - (base32 - "09haz1kk48b8q0hd58g98whylah0fp121yfgjms7pzsbzgj8w3sp")))) + (method url-fetch) + (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-" + version ".tar.bz2")) + (sha256 + (base32 + "09haz1kk48b8q0hd58g98whylah0fp121yfgjms7pzsbzgj8w3sp")))) (build-system gnu-build-system) (arguments - (if (%current-target-system) - `(#:modules ((guix build gnu-build-system) - (guix build utils)) - #:phases - (modify-phases %standard-phases - ;; If this is left out, some generated header - ;; files will be sprinkled with ‘\c’, which - ;; the compiler won't like. - (add-after 'unpack 'fix-gen-lock-obj.sh - (lambda _ - (substitute* "src/gen-lock-obj.sh" - (("if test -n `echo -n`") "if ! test -n `echo -n`")))) - ;; When cross-compiling, some platform specific properties cannot - ;; be detected. Create a symlink to the appropriate platform - ;; file if required. Note that these platform files depend on - ;; both the operating system and architecture! - ;; - ;; See Cross-Compiling section at: - ;; https://github.com/gpg/libgpg-error/blob/master/README - (add-after 'unpack 'cross-symlinks - (lambda _ - (define (link triplet source) - (symlink (string-append "lock-obj-pub." triplet ".h") - (string-append "src/syscfg/lock-obj-pub." - source ".h"))) - ,(let* ((target (%current-target-system)) + (cond + ((%current-target-system) + (list + #:modules '((guix build gnu-build-system) + (guix build utils)) + #:phases + #~(modify-phases %standard-phases + ;; If this is left out, some generated header + ;; files will be sprinkled with ‘\c’, which + ;; the compiler won't like. + (add-after 'unpack 'fix-gen-lock-obj.sh + (lambda _ + (substitute* "src/gen-lock-obj.sh" + (("if test -n `echo -n`") "if ! test -n `echo -n`")))) + ;; When cross-compiling, some platform specific properties cannot + ;; be detected. Create a symlink to the appropriate platform + ;; file if required. Note that these platform files depend on + ;; both the operating system and architecture! + ;; + ;; See Cross-Compiling section at: + ;; https://github.com/gpg/libgpg-error/blob/master/README + (add-after 'unpack 'cross-symlinks + (lambda _ + (define (link triplet source) + (symlink (string-append "lock-obj-pub." triplet ".h") + (string-append "src/syscfg/lock-obj-pub." + source ".h"))) + #$(let* ((target (%current-target-system)) (architecture (string-take target (string-index target #\-)))) (cond ((target-linux? target) @@ -140,8 +143,19 @@ (define-public libgpg-error ;; configuration, as this is not correct for ;; all architectures. (_ #t))) - (#t #t))))))) - '())) + (#t #t)))))))) + ((system-hurd?) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'skip-tests + (lambda _ + (substitute* + "tests/t-syserror.c" + (("(^| )main *\\(.*" all) + (string-append all "{\n exit (77);//")))))))) + (else + '()))) (native-inputs (list gettext-minimal)) (home-page "https://gnupg.org") (synopsis "Library of error values for GnuPG components") -- 2.40.1