From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4EhqOjElbWeMTwAAe85BDQ:P1 (envelope-from ) for ; Thu, 26 Dec 2024 09:43:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4EhqOjElbWeMTwAAe85BDQ (envelope-from ) for ; Thu, 26 Dec 2024 10:43:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=HCwHJxUa; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freeshell.de (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735206193; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=hTk11eILm8Ivnmi581PlIIADvjrBKhAp26qGsQCvIi4=; b=VHcID14qKRQEPwityy5jIB7gbDGDWh6b4A4c3AiMU4sWQxwkfQQbn2oWtjMgaDyphExN29 ROEApMnUzX9nxf1ilP/ncEO9YwZc4vOakcSIOLM2dAUirs34G00AtmvvgTL+l2O873Ewod IIUeEhjhryEJqWT49nMitZDJSWDfJRO2/llYlbW8VxUMlKzF8TVN9a+PdGazyAO25STK5I VfDP2t90x1Sq99Hbh3KtlvLGBfKHPliZ2CtjA9kQjHkFN1V4JTiANGF+mdLo8LKOmP30PW +pfR3KcZuyRGABYWZobLa6GrKy3ximGVDPK0lMbZO1Z9l3fn71cv7samhUC6Jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=HCwHJxUa; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=freeshell.de (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735206193; a=rsa-sha256; cv=none; b=lYOvaSdlxu920pOS3PHTtrjZfS77PNmcISd5H7TiOMtAyQsLCkMW0qMvoZU+LsPRGEaqPr 8UiBDcB+mtk7rxlsBaDQtnrk2pY3LIcPoDy/SbzRzLDZOOCE1+dF/j6GNXYELzQO9Iclsx r2V12CEemXnWOlTauGNZO8vTRbHvdLW6E3tTEOZ0b3QJjSNUEWrs/367Mw9dM/tXbctn6p qqkTItSUX1ppUAV/7+NTlKu9gVTgI4AJtMEVLMTueqb7lGJdJbTydelVTM9OHFwn1vw7gB ezv8s+6It4jxhivzHfAAtTxPGBPUxUPiMmACGHSQbEbyqTRDItZhrSGL2kUddA== 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 84AC222E5A for ; Thu, 26 Dec 2024 10:43:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQkOX-0004sm-M1; Thu, 26 Dec 2024 04:43:05 -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 1tQkOU-0004sZ-Pb for guix-patches@gnu.org; Thu, 26 Dec 2024 04:43:03 -0500 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 1tQkOU-0000yr-Ar for guix-patches@gnu.org; Thu, 26 Dec 2024 04:43:02 -0500 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=hTk11eILm8Ivnmi581PlIIADvjrBKhAp26qGsQCvIi4=; b=HCwHJxUafBisqSi566KuExisC97UHON4PHMu2GxAVpZy5UF1wZ8wlRwekAtubMg2EVFGsE57kcKzDXqOyoqPyLmBZ76wIpnHW9haqUZaU2wOKTeJFLNvqvzUpOnXx8tqwMBXIgQ/7Y5i1Mqur0ORlF8F63JFL72vyom0GJA1Nlvk2U0YrGMxt9Ya4f8jiUfyU69ZwTv3JGjn4RsSo4XxKTIFcli4EcVRdbPPnmLr54u8PXYOcEdjXxwKME57UFvpNjKAqye5IX19FJUSeCMfd84+LzCArSEjhDagLcFt2odJU/9bJkJuU3O3w0mqAk11uLSxnUqDethF0rW5N83w1A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQkOT-0004DF-Tv for guix-patches@gnu.org; Thu, 26 Dec 2024 04:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75112] [PATCH] gnu: csvkit: Fix tests. Resent-From: Wiktor =?UTF-8?Q?=C5=BBelazny?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Dec 2024 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75112 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75112@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173520617316172 (code B ref -1); Thu, 26 Dec 2024 09:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Dec 2024 09:42:53 +0000 Received: from localhost ([127.0.0.1]:40120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQkOL-0004Cm-Go for submit@debbugs.gnu.org; Thu, 26 Dec 2024 04:42:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:55236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQkOJ-0004Cd-8q for submit@debbugs.gnu.org; Thu, 26 Dec 2024 04:42:51 -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 1tQkOI-0004rc-WD for guix-patches@gnu.org; Thu, 26 Dec 2024 04:42:51 -0500 Received: from freeshell.de ([116.202.128.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQkOH-0000yH-6a for guix-patches@gnu.org; Thu, 26 Dec 2024 04:42:50 -0500 Received: from localhost.localdomain (cst-prg-19-252.cust.vodafone.cz [46.135.19.252]) (Authenticated sender: wz) by freeshell.de (Postfix) with ESMTPSA id 02AD2B220B30 for ; Thu, 26 Dec 2024 10:42:43 +0100 (CET) From: Wiktor =?UTF-8?Q?=C5=BBelazny?= Date: Thu, 26 Dec 2024 10:41:07 +0100 Message-ID: <7c73aa954dc114f107c1159659c847d9c61d4788.1735205925.git.wz@freeshell.de> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=116.202.128.144; envelope-from=wz@freeshell.de; helo=freeshell.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 1.73 X-Spam-Score: 1.73 X-Migadu-Queue-Id: 84AC222E5A X-TUID: xqZmUxC4+K0n * gnu/packages/wireservice.scm (csvkit): Fix tests [source]: Apply patch. [native-inputs]: Add (libc-utf8-locales-for-target). * gnu/packages/patches/csvkit-set-locale-for-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Change-Id: I787c0da270fa4062491efcfa0c55a1b8bbac7b59 --- gnu/local.mk | 1 + .../patches/csvkit-set-locale-for-tests.patch | 13 +++++++++++++ gnu/packages/wireservice.scm | 7 +++++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 gnu/packages/patches/csvkit-set-locale-for-tests.patch diff --git a/gnu/local.mk b/gnu/local.mk index 84160f407a..838c2a06b3 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1131,6 +1131,7 @@ dist_patch_DATA = \ %D%/packages/patches/crc32c-unbundle-googletest.patch \ %D%/packages/patches/crda-optional-gcrypt.patch \ %D%/packages/patches/clucene-contribs-lib.patch \ + %D%/packages/patches/csvkit-set-locale-for-tests.patch \ %D%/packages/patches/cube-nocheck.patch \ %D%/packages/patches/cups-minimal-Address-PPD-injection-issues.patch \ %D%/packages/patches/curl-CVE-2024-8096.patch \ diff --git a/gnu/packages/patches/csvkit-set-locale-for-tests.patch b/gnu/packages/patches/csvkit-set-locale-for-tests.patch new file mode 100644 index 0000000000..52f6a5d517 --- /dev/null +++ b/gnu/packages/patches/csvkit-set-locale-for-tests.patch @@ -0,0 +1,13 @@ +Contents copied from python-agate. See +https://github.com/wireservice/agate/issues/712 for the source and the +rationale. + +diff --git a/tests/__init__.py b/tests/__init__.py +index e69de29..ee8beb5 100644 +--- a/tests/__init__.py ++++ b/tests/__init__.py +@@ -0,0 +1,4 @@ ++import locale ++ ++# The test fixtures can break if the locale is non-US. ++locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') diff --git a/gnu/packages/wireservice.scm b/gnu/packages/wireservice.scm index df630023cf..914945cf54 100644 --- a/gnu/packages/wireservice.scm +++ b/gnu/packages/wireservice.scm @@ -217,10 +217,13 @@ (define-public csvkit (uri (pypi-uri "csvkit" version)) (sha256 (base32 - "08wj0hlmbdmklar12cjzqp91vcxzwifsvmgasszas8kbiyvvgpdy")))) + "08wj0hlmbdmklar12cjzqp91vcxzwifsvmgasszas8kbiyvvgpdy")) + (patches (search-patches + "csvkit-set-locale-for-tests.patch")))) (build-system python-build-system) (native-inputs - (list python-psycopg2 ; to test PostgreSQL support + (list (libc-utf8-locales-for-target) + python-psycopg2 ; to test PostgreSQL support python-sphinx python-sphinx-rtd-theme)) (inputs (list python-agate-dbf python-agate-excel python-agate-sql base-commit: e16cdcf37d8223b3634ec5e658356c3b7f154859 -- 2.46.0