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 gJfgL5/xWmd2qQAAe85BDQ:P1 (envelope-from ) for ; Thu, 12 Dec 2024 14:22:24 +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 gJfgL5/xWmd2qQAAe85BDQ (envelope-from ) for ; Thu, 12 Dec 2024 15:22:23 +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=LgAuUVw6; dkim=fail ("headers rsa verify failed") header.d=icepic.de header.s=x header.b="Y 0IU5jq"; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734013343; a=rsa-sha256; cv=none; b=KirihGef57N9zgqxfFt/qMPRiyLL8tR7NAwiS3b2hxoK1jaEuwQ1X0qndPNLTKNmEhsoyQ ofs4pjmEfFtwodfGLDehnNi7nu48VOnktwRqsdX9X/9eS3TpCUP+G9qW6DXgy9h04y0fHS Zrzws9UE2Ve2vwiT5bGYvov+Ggk14YSOcEGrfgWlehJ1R6xrucXD1KvVNQccFAQnwMJA3b QUEN8rukUgsmyknmbg6tmK+exVHKYdO44WGIXrb78ro1NViZqxvAGAFtqpFhyXzy09vP+N ZM/Y3QfOp9QZJkrPJehvhoE2ilc40K4ID3ig0NchB4RYhoiKiDm23HopmLO7Hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=LgAuUVw6; dkim=fail ("headers rsa verify failed") header.d=icepic.de header.s=x header.b="Y 0IU5jq"; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734013343; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=DC+O32huDXLxdJ9cNj5cFMFmjamUetiLn03EHj5X4GQ=; b=iNbGSzLH/lb6ORRWUFWgPmULKEwK1nd2Dxnv62VLHCVd5PDPzr338slwaysGnE18+bm8yb yOrP1QQhWTGBiJRSQKnFRkCT4j9Vv+lOqE+mm3f+lgtqH1I3lnTM+eU/z9MdljBkn55pwp c+Z2sczR7ny8D5RArnUe8xwjaeqHGzgt4J2i5o3d+Uz4sb/1GIVwXLEAIG3m306M6VTD3n GA5VakyOJWjDcxhcB+d0DSfipZIwCfdAhdOCy1LP+8rOmi7WBilVxrjHUGOGx+WVxwp+Br hRQ7gVQ4IlDZJ3E/tY/U2Rjf2PrmCaFUiQXgj0Z66ZUlRfN8EDczk998BLA5qA== 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 122B866514 for ; Thu, 12 Dec 2024 15:22:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLjqO-00007b-79; Thu, 12 Dec 2024 09:07:09 -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 1tLjpL-0007qw-Vj for guix-patches@gnu.org; Thu, 12 Dec 2024 09:06:04 -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 1tLjpL-0001vs-0T for guix-patches@gnu.org; Thu, 12 Dec 2024 09:06:03 -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=DC+O32huDXLxdJ9cNj5cFMFmjamUetiLn03EHj5X4GQ=; b=LgAuUVw63p29L+qbpkAufWQfQb4yh5Sf/1Crvwq221G+yPXjRgOZL7yg0LjPce+rFNxxSrCoImDBfLUWDdwMklfpi1E5aBPZNBVtCuUWDWQPxDamKC66R/n9RRX/20ohdlM9P3ljqnu5GD7aA7L/Z7VbwRmUyIj6zVnLqAYFv3MXdhPjs8o4j8MUaQIE0y4ge0vXtOu8DOxIP18PicWUpnmYlU4eT8GgL8oErB0ds3tTc8YoYe3saYGojjRkWEiXFnNwf5C7c8mxcyZCEjZHiCiy6cBYV3Dcy4ggBU+lvuetjAjcMAkQ8+qrVkSxxmjYoKKh5bAxv3lB09UfLMUI0A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLjpK-0002dr-Ji for guix-patches@gnu.org; Thu, 12 Dec 2024 09:06:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74830] [PATCH] gnu: libcbor: Fix cross-compiling to 32-bit architecture Resent-From: Christoph Buck Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Thu, 12 Dec 2024 14:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74830 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74830@debbugs.gnu.org Cc: Christoph Buck , ( , Christopher Baines , Ludovic Court?s , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice , jgart X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: ( , Christopher Baines , Ludovic Court?s , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice , jgart Received: via spool by submit@debbugs.gnu.org id=B.17340123169794 (code B ref -1); Thu, 12 Dec 2024 14:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2024 14:05:16 +0000 Received: from localhost ([127.0.0.1]:38243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLjoZ-0002Xd-FC for submit@debbugs.gnu.org; Thu, 12 Dec 2024 09:05:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:36208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLjoU-0002Vy-14 for submit@debbugs.gnu.org; Thu, 12 Dec 2024 09:05:13 -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 1tLjoI-000750-99 for guix-patches@gnu.org; Thu, 12 Dec 2024 09:05:00 -0500 Received: from mail-108-mta182.mxroute.com ([136.175.108.182]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLjoE-0001fI-UG for guix-patches@gnu.org; Thu, 12 Dec 2024 09:04:58 -0500 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta182.mxroute.com (ZoneMTA) with ESMTPSA id 193bb2fc1130003e01.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 12 Dec 2024 14:04:49 +0000 X-Zone-Loop: 41d340ec30082aeda48f7414b7f55a33cdc72f58b616 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=icepic.de; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To: From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=DC+O32huDXLxdJ9cNj5cFMFmjamUetiLn03EHj5X4GQ=; b=Y 0IU5jqL557woSwo52ofeelwadD/XAmm70Rxudywh1Y+bWBQyJdp23gBFd9+J7KK1ahUImxyF+b6IA jpgp9eF0x0Qk163ET17JUHXTZHd0MgTAOlhRFUiKxjjUk0B2/8/gcWB97BH4CvWAL6taAdY40cDKq yWq9FCKTQH6K1W3Vm0BFiNw85DyBf550nrjJFyWBxPNDbYUHBBANkZA9vp4zUQxeeCYZxgX+Hq87v 8WjPk0zrJcZMU+0rb/1ISVQcgPLQ7rG5JI2X3VcBCl1a4jwj/0MyxDdMvk/8uJtBfwZiV+2bQT5M7 AKPJZ1UC1MyHmcCaytR6Iwd2bArhS+OiQ==; From: Christoph Buck Date: Thu, 12 Dec 2024 14:04:35 +0000 Message-ID: <62a9e8b6613b09d0a260007aa2c79ad05cf774df.1734012275.git.dev@icepic.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: dev@icepic.de Received-SPF: pass client-ip=136.175.108.182; envelope-from=dev@icepic.de; helo=mail-108-mta182.mxroute.com 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=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-Spam-Score: -1.09 X-Spam-Score: -1.09 X-Migadu-Queue-Id: 122B866514 X-Migadu-Scanner: mx12.migadu.com X-TUID: g1F+kLMeCUDe * gnu/packages/compression.scm (libcbor)[arguments]: Disable examples because they don't build during cross-compilation. The callback definition `find_string` in examples/streaming_parser.c uses `size_t` as type for argument `len` which is 4 bytes on a 32bit platform. However, the callback handler of type `cbor_callbacks.string` to which `find_string` is assigned expects an `uint64_t`. Since the examples are not required this patch will disable them from the build. Change-Id: I596a62a9d0ab936179c8344e91ecc2cb0419316f --- gnu/packages/compression.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 99ea090091..eb3968cbce 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -2919,6 +2919,7 @@ (define-public libcbor "-DCMAKE_BUILD_TYPE=Release" "-DBUILD_SHARED_LIBS=ON" "-DCBOR_CUSTOM_ALLOC=ON" + "-DWITH_EXAMPLES=OFF" (string-append "-DCMAKE_INSTALL_LIBDIR=" lib) (string-append "-DCMAKE_INSTALL_RPATH=" lib))))) (synopsis "The C library for parsing and generating CBOR") base-commit: d916d3b1568a2def0dfb9089d61f2202db35beb7 -- 2.46.0