From patchwork Wed Apr 30 00:15:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: nomike X-Patchwork-Id: 42165 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 EFC6D27BC4B; Wed, 30 Apr 2025 01:16:20 +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_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 5434627BC49 for ; Wed, 30 Apr 2025 01:16:20 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u9v7R-0008R1-9B; Tue, 29 Apr 2025 20:16:09 -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 1u9v7L-0008PX-4j for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:03 -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 1u9v7K-0000sb-Rn for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:02 -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:In-Reply-To:References:Subject; bh=2wAHgX5J/E6ycCbOQ0GakWpMjx4LHtEl3ZbQstiCeTg=; b=aU8bjtAriKy8X6L+5Xf0j/KQE/xedNADR2B6PETiHBLJYBuQ0fTCyDWKLq/p31UU8EH8vRvy6te2d+QtxdfbKqDZx5Fdd81QMd/djiTozGXG4OZNIeKV7lYDI3Nj4xIvDG+5eG+a77fF/d1yuI41cl+D0wk11N99A2D9jg1GXDb17FgvGIlqQU2qylpSSKI+sxMk4ZY8vze1I4asO84IinFjvfkeYnzl/Fwc/8MdIAKEBTmnyc1dRwGr7bJiRhWhgP/hhDd0M0if9Oxc27AZREdAySrlRYIBfWC3mCtbHjLiEovqhSQYHbUSdU4hI/0LZwrXfaq4HHfRXp7MR/w+2A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u9v7K-0007MT-Lm for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78154] [PATCH 1/5] gnu: Add catch2-3.8 References: <20250430001153.893176-1-nomike@nomike.com> In-Reply-To: <20250430001153.893176-1-nomike@nomike.com> Resent-From: nomike Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Apr 2025 00:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78154 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78154@debbugs.gnu.org Cc: nomike Received: via spool by 78154-submit@debbugs.gnu.org id=B78154.174597212128193 (code B ref 78154); Wed, 30 Apr 2025 00:16:02 +0000 Received: (at 78154) by debbugs.gnu.org; 30 Apr 2025 00:15:21 +0000 Received: from localhost ([127.0.0.1]:37489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9v6e-0007Ke-JG for submit@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:20 -0400 Received: from olivedrab.birch.relay.mailchannels.net ([23.83.209.135]:56595) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9v6b-0007KS-TT for 78154@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:18 -0400 X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A2B3B843A48; Wed, 30 Apr 2025 00:15:16 +0000 (UTC) Received: from pdx1-sub0-mail-a217.dreamhost.com (trex-3.trex.outbound.svc.cluster.local [100.116.137.217]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 52D3A8441A7; Wed, 30 Apr 2025 00:15:16 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1745972116; a=rsa-sha256; cv=none; b=Ds4H4r0pl69asEqJnZjgwFkX4TEwLRR0vhZimUMjWc+hcCk9Y06bTz1w7GC1g7lhaddDA4 PoOovC5Nhr90lV0xWmO/dG3ONMD6nLv30tXyTGSjl8G3+aLKt2uCKPacnmkFqS1Ttl/v7A MuVteNx3Oefp2+c7VU5FjoblWoSzSI4i0DkTa370HxsQqujUoZ6FHFiOpctxKX+JkJeTv1 JBwAFahojDWaC+5X1s3vOVRj1KQgnkqaT72hkAe2lDKFjsC6Fgyhf4GnG/ttHKKh265p3a 8Iu56kseQZ55L+MOhsH2jgQwpSbxvD80G0fHbJBND0hoxj26eGQxKzLJWUHi4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1745972116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=2wAHgX5J/E6ycCbOQ0GakWpMjx4LHtEl3ZbQstiCeTg=; b=6neCIOrrggu0ssOOZbJN2xZZ1f572UByZckgdT/xU5U0euI+aYjICiD1zhIQQQN+v2sJce mTvIVar0YkrwtiBgTb3KX7UBPhtBLWkOnMHuwiardQ807Asz2nplk5CVcAOji/ut3WBtmC HLIjpk5dwIXPV1rtjK8gJtNrflfTSCFfdkGRoroa2tAbKWgwO92mCgRxgbn7qJWhKNP0IA SCrE7cmfy6HlcmeakeTkYbRGy0TogxTOBlDB91+Fme3cwFJYQLph9CIHT0f4FvY5F/v1oE gicwMA7iuqzeKNdKkgWJi5wB/+lURK8I/opBhFFwJDbxBXF9AXTMp1mKehPA6A== ARC-Authentication-Results: i=1; rspamd-684646cf5b-hhvpn; auth=pass smtp.auth=dreamhost smtp.mailfrom=nomike@nomike.com X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|nomike@nomike.com X-MailChannels-Auth-Id: dreamhost X-Illustrious-Lettuce: 20e311603d8533a7_1745972116564_2962038791 X-MC-Loop-Signature: 1745972116564:383412917 X-MC-Ingress-Time: 1745972116564 Received: from pdx1-sub0-mail-a217.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.116.137.217 (trex/7.0.3); Wed, 30 Apr 2025 00:15:16 +0000 Received: from localhost (84-112-221-106.cable.dynamic.surfer.at [84.112.221.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nomike@nomike.com) by pdx1-sub0-mail-a217.dreamhost.com (Postfix) with ESMTPSA id 4ZnHkq5slhz65; Tue, 29 Apr 2025 17:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomike.com; s=dreamhost; t=1745972116; bh=2wAHgX5J/E6ycCbOQ0GakWpMjx4LHtEl3ZbQstiCeTg=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=Ce49H+DYimuFWxw5flZQv4npict+9VQmSlzYaG+qgkCpOIpYrmXxl6rOlhjMxjHIy cSx6AiZcccGhnhpogbX3oqW8Jfr0qyivHT+fQCtM02rVlG6SozViGMl+oteIUcI7tz GZ2egT+D0fcHHDBkJbabnIm/nOxxXVTwvXilRWUnAcNtXCIDRu6kLwtExBHMgq6UW6 NIXagqwtniw1echTTtUY2BGBhvEbEwOMDKcpbP8Mvpz71TFVW7N2Fobyz5+OTrsuD0 oMhylf1i3pM2Mok5eZmXm3m66nsz0UciRyY2tHjJ52neLVhf4ccPe+7ugmoc9ujKkH ncUJHswWh90sQ== From: nomike Date: Wed, 30 Apr 2025 02:15:03 +0200 Message-ID: <20250430001507.912670-1-nomike@nomike.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.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: , 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 * gnu/packages/check.scm (catch2-3.8): New variable Change-Id: I8286d4b71fc09bbcdc483c920710dc881fc82aba --- gnu/packages/check.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 3fe7214645..8e498ed3e5 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -54,6 +54,7 @@ ;;; Copyright © 2024 Navid Afkhami ;;; Copyright © 2024, 2025 gemmaro ;;; Copyright © 2024 Ashvith Shetty +;;; Copyright © 2025 nomike Postmann ;;; ;;; This file is part of GNU Guix. ;;; @@ -735,6 +736,33 @@ (define-public catch2-3 a multi-paradigm automated test framework for C++ and Objective-C.") (license license:boost1.0))) +(define-public catch2-3.8 + (package + (name "catch2") + (version "3.8.1") + (home-page "https://github.com/catchorg/Catch2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/catchorg/Catch2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0v1k14n02aiw4rv5sxhc5612cjhkdj59cjpm50qfxhapsdv54n3f")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list "-DCATCH_DEVELOPMENT_BUILD=ON" "-DCATCH_ENABLE_WERROR=OFF" + "-DBUILD_SHARED_LIBS=ON"))) + (inputs (list python-wrapper)) + (synopsis "Automated test framework for C++ and Objective-C") + (description + "Catch2 stands for C++ Automated Test Cases in Headers and is +a multi-paradigm automated test framework for C++ and Objective-C.") + (license license:boost1.0))) + (define-public cmdtest (package (name "cmdtest") From patchwork Wed Apr 30 00:15:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: nomike X-Patchwork-Id: 42167 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 1D7F927BC4D; Wed, 30 Apr 2025 01:16:43 +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_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 2D27327BC49 for ; Wed, 30 Apr 2025 01:16:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u9v7d-0008VK-3H; Tue, 29 Apr 2025 20:16:21 -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 1u9v7L-0008QC-UH for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:05 -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 1u9v7L-0000sm-Kn for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:03 -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:References:In-Reply-To:Date:From:To:Subject; bh=4ZX35F1rrL9Wg4INigrNf2EtkdibM1wPso6zjputKZ0=; b=NtEYSMS3SXrAPvetLBqEfW8Sbvf0qXdmSsi6twRkBmzlPpBTQrFsjHGQ+vMRey9T0CYuaUrOx2SxMjlM6ntC3MIbEiFmZVY5FKuvFa4rh19EUN0ooaXP8MsGENpseEwHYykDRfEfzqcjCSpd6GutdOcQz7anoIr8ILkxeFHLeoc0XI6tEorcQ1ZVD85eoib3WMquHZHtC0os0Huh67tl8H1q2ckjSDqtTyAZiBGIuA0edzMEz47tsVEJDE+r11oGDVyTwc16u4sZOEyooYjnjXpfxcW4UWfwHF6KK/D5sNczDM1JX6KwLiFV7r/kwEzWSwfKpz7g6vGIsXAUgDuyhw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u9v7L-0007Mc-Ei for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78154] [PATCH 2/5] gnu: Add version 7.6.1 of opencascade-occt Resent-From: nomike Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Apr 2025 00:16:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78154 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78154@debbugs.gnu.org Cc: nomike Received: via spool by 78154-submit@debbugs.gnu.org id=B78154.174597215428252 (code B ref 78154); Wed, 30 Apr 2025 00:16:03 +0000 Received: (at 78154) by debbugs.gnu.org; 30 Apr 2025 00:15:54 +0000 Received: from localhost ([127.0.0.1]:37492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9v7B-0007Lb-9K for submit@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:53 -0400 Received: from beige.banana.relay.mailchannels.net ([23.83.217.16]:64517) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9v78-0007LO-3f for 78154@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:51 -0400 X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id C77A284449E; Wed, 30 Apr 2025 00:15:48 +0000 (UTC) Received: from pdx1-sub0-mail-a217.dreamhost.com (trex-4.trex.outbound.svc.cluster.local [100.113.14.132]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 7780F843FD2; Wed, 30 Apr 2025 00:15:48 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1745972148; a=rsa-sha256; cv=none; b=uDw2/5MRuhcryIZ4LufDmP2WTGTH04N9fWsPYdO0TujBlu5TNlFzoaXHveh0F7peShURhp EFr279OvDd0CroPzTCr28D/TqremMKDakP3ONTkVkgunESnlxiX048OkIu2JwtpUEpDuoc kswbglKfkjCbgp7oaPrFtW3wdFQ15XQV4LUIjYPdJO/bCT1aGw/qZGZ3kG3wNKFwjoNvQu klSDlj3FV0uaRk31lMz6VvVCRRGZ6LR51+WXyoeAaixuoI+u4oLXu1F3ydh0QeSPXcfQ0Z fDWHqwExqiyKABy0e3xKZDW6PSgrMLOl/GFQZoTTSWJvaB0/FuECtOnbDaULkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1745972148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4ZX35F1rrL9Wg4INigrNf2EtkdibM1wPso6zjputKZ0=; b=mExYqB780/2oQRhuAa6JBsTmZQIC5eokaL/KjAkjCvjxxqtRBc5BaOmeizkQCXCbvdfGQi sqkcHgrwdh7T9PzbjLkLahinLdXnLLsgM22HHg5ITabGkOqknRKmJ9egqnuAJLRs+tvhBz lbyEswk5TZ0sTw2Y+czbh3Cra1SXNlOnFqsfEy9LgX9zN9ygpGhvjswFnsHTWtACNS/0SR Pnt/w08yI7ACutFMCtep24NMaY68L/nSzaDnB36A3h8WYBStQ2rcAhbWuIDZAvr7DUuZ0h wVTj9KvsOTU2+fgJtuIqzQF9QOLA9iWqhaWV4DT12pZ2M/1AghnZC4Q6XUZTlw== ARC-Authentication-Results: i=1; rspamd-684646cf5b-zx482; auth=pass smtp.auth=dreamhost smtp.mailfrom=nomike@nomike.com X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com X-MC-Relay: Bad X-MailChannels-SenderId: dreamhost|x-authsender|nomike@nomike.com X-MailChannels-Auth-Id: dreamhost X-Invention-Sponge: 722dc2e62b425554_1745972148711_3422471031 X-MC-Loop-Signature: 1745972148711:4031831773 X-MC-Ingress-Time: 1745972148711 Received: from pdx1-sub0-mail-a217.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.113.14.132 (trex/7.0.3); Wed, 30 Apr 2025 00:15:48 +0000 Received: from localhost (84-112-221-106.cable.dynamic.surfer.at [84.112.221.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nomike@nomike.com) by pdx1-sub0-mail-a217.dreamhost.com (Postfix) with ESMTPSA id 4ZnHlR42zRz65; Tue, 29 Apr 2025 17:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomike.com; s=dreamhost; t=1745972148; bh=4ZX35F1rrL9Wg4INigrNf2EtkdibM1wPso6zjputKZ0=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=cTfLM5t7oRinCIFEAYZieVt0KFI2WtsbY8/U0ohAvm08GoTyUUdUTThMDO/WzJFPK zjiNBSq0eL1wJapMZ7K3X9C7G6cDQ7bdbQaO/sxiV2UX7SWl6hXl04GxbHj4WjwNl/ PUXnItFOuggqF5rm77P+3RpjNpCDhZSGyK3Vr5qdzOGzM8rQhV1QCVrC6iRFveHR16 6zTAOsenWpGy37dBvxX0KgeYEC7Pl48+QgJP1maYTd+CJ/Ww/x8PEfRKX2wZtWEqvm RxZIRElY8n/82uzP0Xxu2ShEBTLmwUUGqBsnQ4YmOwrnFB8ruPqgpWrR+bhy6+7KIX YEdsGuBdmNjNA== From: nomike Date: Wed, 30 Apr 2025 02:15:04 +0200 Message-ID: <20250430001507.912670-2-nomike@nomike.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250430001507.912670-1-nomike@nomike.com> References: <20250430001507.912670-1-nomike@nomike.com> MIME-Version: 1.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: , 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 * gnu/packages/maths.scm (opencascade-occt-7.6.1): New variable Change-Id: I4ade08f8e9db19c4aea115ab838ed163661ab3d4 --- gnu/packages/maths.scm | 98 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 0b653f4daf..face2f6da3 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -69,6 +69,7 @@ ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2025 Luca Cirrottola ;;; Copyright © 2025 Maxim Cournoyer +;;; Copyright © 2025 nomike Postmann ;;; ;;; This file is part of GNU Guix. ;;; @@ -3305,6 +3306,103 @@ (define-public octave #t)))))) (synopsis "High-level language for numerical computation (with GUI)"))) +(define-public opencascade-occt-7.6.1 + ;; As of version 2.9.2 PrusaSlicer has a hard dependency on this version of OCCT + ;; "because newer versions are triangulating chamfers incorrectly.". + ;; See https://github.com/prusa3d/PrusaSlicer/commit/c6a02106fd1d3caa9a48a6b7c2bdd04546b24485 + (package + (name "opencascade-occt") + (version "7.6.1") + (properties '((release-tag-prefix . "^V") + (release-tag-version-delimiter . "_"))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.dev.opencascade.org/repos/occt.git") + (commit (string-append "V" + (string-map (lambda (x) + (if (eq? x #\.) #\_ x)) + version))))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cc7n4rs26lm1awwn2bijvjq9b3kz204ffnks02lrpgs7pf8yk8b")) + (modules '((guix build utils))) + (snippet '(begin + ;; Remove files specific to non-free operating systems. + (delete-file-recursively "samples/ios") + (delete-file-recursively "samples/mfc") + (delete-file-recursively "samples/qt/FuncDemo") + (delete-file "genconf.bat") + (delete-file "gendoc.bat") + (delete-file "genproj.bat") + (delete-file "upgrade.bat") + ;; Remove references to deleted files. + (substitute* "dox/FILES_HTML.txt" + ((".*standard.*") + "") + ((".*UIKitSample.*") + "")) + #t)))) + (build-system cmake-build-system) + (arguments + '( ;There is no test target for make. OCCT provides an + + ;; 'Automated Testing System', which may be accessed after + ;; installation via the draw.sh script. draw.sh is located in + ;; the bin directory. For details see: + ;; https://www.opencascade.com/doc/occt-7.3.0/overview/html/\ + ;; occt_dev_guides__tests.html + #:tests? #f + ;; Configure without freeimage: attempting to link against the + ;; freeimage version 3.17 library leads to 'undefined + ;; reference' errors. + #:configure-flags (list "-DUSE_FREEIMAGE:BOOL=OFF" + "-DUSE_TBB:BOOL=ON" + "-DUSE_VTK:BOOL=OFF" + "-DBUILD_DOC_Overview:BOOL=OFF" + "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" + "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" + "-UCMAKE_INSTALL_LIBDIR"))) + (native-inputs (list doxygen fontconfig)) + (inputs (list freetype + ;; ("freeimage" ,freeimage) + glu + libxext + libxi + libxmu + mesa + tbb-2020 + tcl + tk)) + ;; TODO: build Overview documentation and add 'doc' output. + (home-page "https://www.opencascade.com") + (synopsis "Libraries for 3D modeling and numerical simulation") + (description + "Open CASCADE is a set of libraries for the development of applications +dealing with 3D CAD data or requiring industrial 3D capabilities. It includes +C++ class libraries providing services for 3D surface and solid modeling, CAD +data exchange, and visualization. It is used for development of specialized +software dealing with 3D models in design (CAD), manufacturing (CAM), +numerical simulation (CAE), measurement equipment (CMM), and quality +control (CAQ) domains. + +This is the certified version of the Open Cascade Technology (OCCT) library.") + (license (list ;OCCT library: + license:lgpl2.1 ;with an exception for the use of header + ;; files, see OCCT_LGPL_EXCEPTION.txt. + ;; Files src/OpenGl/glext.h, adm/cmake/cotire.cmake and + ;; src/OpenGl/OpenGl_HaltonSampler.hxx: + license:expat + ;; Files src/ExprIntrp/ExprIntrp.tab.* and + ;; src/StepFile/step.tab.*: + license:gpl3+ ;with Bison 2.2 exception. + ;; File src/NCollection/NCollection_UtfIterator.lxx: + (license:non-copyleft + "https://www.unicode.org/license.html") + ;; File src/NCollection/NCollection_StdAllocator.hxx: + license:public-domain)))) + (define-public opencascade-occt (package (name "opencascade-occt") From patchwork Wed Apr 30 00:15:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: nomike X-Patchwork-Id: 42168 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 994CB27BC49; Wed, 30 Apr 2025 01:16:43 +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_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 7F1F827BC4B for ; Wed, 30 Apr 2025 01:16:42 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u9v7i-00008w-La; Tue, 29 Apr 2025 20:16:26 -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 1u9v7M-0008QO-SZ for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:05 -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 1u9v7M-0000tM-Id for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:04 -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:References:In-Reply-To:Date:From:To:Subject; bh=eE3WalMYZsz2k8+v4VwyCqPHCynlxfJ1CAlGeGNI2D8=; b=buucuVUwpoD1Cei4AU7cL25vwdOzMUHPKEiboAmAxxGURqf1Qw2IVq5gdNek6SqyUD27Nm+204b6it5GgqL31O/Z2Lq73zCE3qZ0QcwDQ+rN3SD9/nL5w/1UUau316T8PScfaqktdJiHJ9+w2tYbcwjpQ0Rx1lVGXhRsBnxdyRhOG8J9aBQ3kvShCIceVTMkOhL7NvrLCkRBeUsRkFnwOlJREmrdzhhcxBWEoq6VExlxto1LMIGhSxB17HRFeFEPvMhmci6qjOnKOu8tfdKUfy8kTMFDyJxalznZ8VjhlK271/iZ+sMQcC4wgpf1BMBuUSwq3eUfjIPIDl3m/YB4Mg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u9v7M-0007Mr-CD for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78154] [PATCH 3/5] gnu: Add hidapi-cmake Resent-From: nomike Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Apr 2025 00:16:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78154 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78154@debbugs.gnu.org Cc: nomike Received: via spool by 78154-submit@debbugs.gnu.org id=B78154.174597215828268 (code B ref 78154); Wed, 30 Apr 2025 00:16:04 +0000 Received: (at 78154) by debbugs.gnu.org; 30 Apr 2025 00:15:58 +0000 Received: from localhost ([127.0.0.1]:37495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9v7F-0007Ls-OW for submit@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:58 -0400 Received: from butterfly.cherry.relay.mailchannels.net ([23.83.223.27]:18561) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9v7C-0007Lc-OG for 78154@debbugs.gnu.org; Tue, 29 Apr 2025 20:15:56 -0400 X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AED892C49F5; Wed, 30 Apr 2025 00:15:53 +0000 (UTC) Received: from pdx1-sub0-mail-a217.dreamhost.com (trex-9.trex.outbound.svc.cluster.local [100.113.64.140]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2F6CF2C462E; Wed, 30 Apr 2025 00:15:53 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1745972153; a=rsa-sha256; cv=none; b=IfJT6C9d9WqRgHJg/pOwJ7NozmGCTA4A6zCeOt+Bd1DAhAyzYvl89AfE0v/tCacgwx4eB8 LyuXHcSus7qcqKONssSyvF3KeMcXgyWLUdRZMjRuqt6gCnbo5b5Ur9D+sg73DjvMimbILy mTKgs6kaa0mPFmmSU2nNrJbZIsxeL/9lCZLuuD9C1qQeoQv+giJsEYqzbQLXTFsWen0sQz WU9nwG8eYXwzTMcQM+SCdnzIyjtjA6GwCEbewDBYMar6VHCIjXoMOvD1r2Ria9ybPtB5yy PER+d8bIPOfhmvMnY9W5t41MXx7/03mSq4oFPHGtBknAOrnE2EEEt10xKlguLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1745972153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=eE3WalMYZsz2k8+v4VwyCqPHCynlxfJ1CAlGeGNI2D8=; b=UWM399grYlCBGz7Jc38EHs181nA72+34TQE94rxTLckRiUKRytgna99hPuSt0G3kI4Mh+v Is/z6DSUpPgyvm6tQdSFNK+wTLvjNQtGj830cEcXTLOacA2A5XPBkhpul+yf4zM58wTkUt +ewhEAk3b7bo/gZg5hzH0hfBvNNq2J5wiClF8DnkCBlwa7jqHbjCHFWLIEse8l+GuFX8jW 01Funb6qQEH5w9cyY0MF9x4VVU/gUBtH8B3/BOOH3HKixXmzg9ID5zU5j2yZd7oupirdVO t0wrfxfVNb/DNouS0baoVwnciNRln+sJrmpren2myaZLnVo93/g3u/d23H8j0w== ARC-Authentication-Results: i=1; rspamd-684646cf5b-zx482; auth=pass smtp.auth=dreamhost smtp.mailfrom=nomike@nomike.com X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com X-MC-Relay: Bad X-MailChannels-SenderId: dreamhost|x-authsender|nomike@nomike.com X-MailChannels-Auth-Id: dreamhost X-Illustrious-Gusty: 236d4d563229452b_1745972153592_3465072443 X-MC-Loop-Signature: 1745972153592:3711972484 X-MC-Ingress-Time: 1745972153592 Received: from pdx1-sub0-mail-a217.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.113.64.140 (trex/7.0.3); Wed, 30 Apr 2025 00:15:53 +0000 Received: from localhost (84-112-221-106.cable.dynamic.surfer.at [84.112.221.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nomike@nomike.com) by pdx1-sub0-mail-a217.dreamhost.com (Postfix) with ESMTPSA id 4ZnHlX4vZWz65; Tue, 29 Apr 2025 17:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomike.com; s=dreamhost; t=1745972153; bh=eE3WalMYZsz2k8+v4VwyCqPHCynlxfJ1CAlGeGNI2D8=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=N5svxAGs+0vnJYdyAzz9EvUVTw6exJKhvRvJuYNRBv6O7ZlbjAd7plZ2sNwTcQvGu HoGzAAWBYHs56paHjcly1oF4OmnW/lPel1o8FKKqJ4b2CL8nwqDPJkbspq0BxTIlDF 1IsdX6xnxFMFwXfUrxHQUPOgVdpUd4HCNmBtKB3uNsS3EWY9WgsjeEEsqP1ptm8vVm uClPU6LpuYvanhmBitswHASXgstcwpZfyQXbQ2Z3ev272VsKnd84nBeBkfXqD7mgcm sGkvyLI96S9SW+0yxN1uXnNqAx0OIflYCFflxahkzzB4J9gSQT+kkQwwVR3aJdvu8S VQRGlRY59d6hA== From: nomike Date: Wed, 30 Apr 2025 02:15:05 +0200 Message-ID: <20250430001507.912670-3-nomike@nomike.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250430001507.912670-1-nomike@nomike.com> References: <20250430001507.912670-1-nomike@nomike.com> MIME-Version: 1.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: , 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 * gnu/packages/libusb.scm (hidapi-cmake): New variable Change-Id: I8a0c324544d9de0bfa63c85d88c6e3721cdd6ecd --- gnu/packages/libusb.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index a6e24f8c41..3ad17a474e 100644 --- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2023 Sharlatan Hellseher ;;; Copyright © 2023 Foundation Devices, Inc. ;;; Copyright © 2024 hapster +;;; Copyright © 2025 nomike Postmann ;;; ;;; This file is part of GNU Guix. ;;; @@ -712,6 +713,35 @@ (define-public hidapi license:bsd-3 (license:non-copyleft "file://LICENSE-orig.txt"))))) +(define-public hidapi-cmake + (package + (name "hidapi-cmake") + (version "0.14.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libusb/hidapi") + (commit (string-append "hidapi-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "121laqsml0104d1h4hp115gp21qiqi0r9dgcaqdi9ismmq3b6yx7")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f)) + (inputs (list libusb eudev)) + (native-inputs (list autoconf automake libtool pkg-config)) + (home-page "https://github.com/libusb/hidapi") + (synopsis "HID API library - CMake version") + (description + "HIDAPI is a library which allows an application to interface with USB and Bluetooth +HID-Class devices. This version is built using CMake instead of autoconf/automake which +has been deprecated by the hidapi project") + ;; HIDAPI can be used under one of three licenses. + (license (list license:gpl3 license:bsd-3 + (license:non-copyleft "file://LICENSE-orig.txt"))))) + (define-public python-hid (package (name "python-hid") From patchwork Wed Apr 30 00:15:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: nomike X-Patchwork-Id: 42166 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 2AB0D27BC4B; Wed, 30 Apr 2025 01:16:32 +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_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 B3D5F27BC49 for ; Wed, 30 Apr 2025 01:16:31 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u9v7g-00008j-N7; Tue, 29 Apr 2025 20:16:25 -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 1u9v7N-0008QQ-GA for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:05 -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 1u9v7N-0000uA-5O for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:05 -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:References:In-Reply-To:Date:From:To:Subject; bh=umIbhvhptnzqDm/wQdwRDLYo4OSq80uE2bSMjierzu4=; b=idA62nFwVLret1ZVouzzp0K5l1+jtphGi93Hoz6JrWP5iOd7dEfeVRUjdmrpXege931tDKUHbAz6p+mwLjbWz3/y65Pklvvpi2BGdM+CME2GK+wYF8mfseqAh5jm3HlAs/rSI0bRDTh4hoLbiNLgxnk5ydccsx3iyzATSI0c/AESwMBG4+DM7Ljw7ZHdpaA1FS+RqnJaslhY6s/jk2bEedS09ySHO8fiwOP/eT+RLNkyQzlWd+T3QLOzc67CLLSshwmUqVJenIyA955I+jveH4tInAUvRL2U4FkWk1zWiEGEEVp64dIIhEG52I9Y8BtaI9z2r7zUHowSsoLW6wY3/Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u9v7M-0007My-Ut for guix-patches@gnu.org; Tue, 29 Apr 2025 20:16:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78154] [PATCH 4/5] gnu: Update prusa-libbgcode Resent-From: nomike Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Apr 2025 00:16:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78154 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78154@debbugs.gnu.org Cc: nomike Received: via spool by 78154-submit@debbugs.gnu.org id=B78154.174597216428320 (code B ref 78154); Wed, 30 Apr 2025 00:16:04 +0000 Received: (at 78154) by debbugs.gnu.org; 30 Apr 2025 00:16:04 +0000 Received: from localhost ([127.0.0.1]:37500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9v7L-0007Mb-8u for submit@debbugs.gnu.org; Tue, 29 Apr 2025 20:16:03 -0400 Received: from bactrian.aspen.relay.mailchannels.net ([23.83.221.9]:45241) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9v7I-0007M0-As for 78154@debbugs.gnu.org; Tue, 29 Apr 2025 20:16:01 -0400 X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AEA0F4E41AA; Wed, 30 Apr 2025 00:15:58 +0000 (UTC) Received: from pdx1-sub0-mail-a217.dreamhost.com (trex-4.trex.outbound.svc.cluster.local [100.113.14.132]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4E54D4E4A1B; Wed, 30 Apr 2025 00:15:58 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1745972158; a=rsa-sha256; cv=none; b=K86MaLiLr7Q2MkzOvu71SPuikLqrhflkzMSMRa+D5CTqKcYenuftu7eD7O9/9wc3w+rbS5 sdBX4TCvXXNi0/Q2yNi0guIQHN98nXtsPOUtdD30bSalG0p75CtgQII6oTiAZHZwFr57g0 7ghAzW/rkAjzwmabQUK8JO+Bs+EIfI7Mj45q1ktUvLOl6jvk/thQ8LXQtxKq5Av+B9gIyv 9Qzk7u/IDF1CJ52vUYa5Jv4n0UybSvDKUnVIGawevagOqQvhw5FBtk1l16E+eEu4Qfp/XO F4dgIeBMJcpXnQkhCS/MddtqCvAeRW9SCkQGp+aqFK1sE/i5yi/HPymW2B32Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1745972158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=umIbhvhptnzqDm/wQdwRDLYo4OSq80uE2bSMjierzu4=; b=DsV+roWzEsNyP5JdZ27yG/3yubqwdtgG8cqNiWx09SgowIklSs/XmTv4hmITZMLOEXhbYl fUqYWXlEImWilOkSF3wE0epCMcgzzkEUume4vXMMMYTUpYaVUljcTh/OzBeN9OWWOipULR 9URN4+Cv4LWb/vj1aAyt5LNtORwPN7e127YufExWZtTyCkbbuheRoqY4zqwuI5gY9Guvnb 1fSPD2l16fO8SyPKxz2YMD5vZim/uoLtrA+/BIeUX/2bScYqg285ZNtzG2lMAiYi07qLMZ n09PUPA5Qf8wAFC9TvTXPuaoREVjatEJIRHEte+XP8buDN7IjStvp9eklcw8gw== ARC-Authentication-Results: i=1; rspamd-684646cf5b-2xs5b; auth=pass smtp.auth=dreamhost smtp.mailfrom=nomike@nomike.com X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com X-MC-Relay: Bad X-MailChannels-SenderId: dreamhost|x-authsender|nomike@nomike.com X-MailChannels-Auth-Id: dreamhost X-Imminent-White: 513f205523bd97fe_1745972158544_876423521 X-MC-Loop-Signature: 1745972158544:2521273322 X-MC-Ingress-Time: 1745972158544 Received: from pdx1-sub0-mail-a217.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.113.14.132 (trex/7.0.3); Wed, 30 Apr 2025 00:15:58 +0000 Received: from localhost (84-112-221-106.cable.dynamic.surfer.at [84.112.221.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nomike@nomike.com) by pdx1-sub0-mail-a217.dreamhost.com (Postfix) with ESMTPSA id 4ZnHld5lyCz65; Tue, 29 Apr 2025 17:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomike.com; s=dreamhost; t=1745972158; bh=umIbhvhptnzqDm/wQdwRDLYo4OSq80uE2bSMjierzu4=; h=From:To:Cc:Subject:Date:Content-Transfer-Encoding; b=E1HOPtyiOZr9gdeBW6eCLkl9OUmShSMo+iksqQ1dcgoXEsBMGmMwWUrbl7h450c4e K/dwP1AscF18FPsN7NToWUmKlQLCqy1hdALCGo9UXSdev3mWCwrd61Hk4RTh6VBjWr 6q5R0qFzSAosLEc8aNyfTkaWbHDjcaIEsAVveqTuyjn5a7W2godrMlf7tY6fUZDyvn 3K31xwY4hhjsdaNgdWT0kBg2WegOj/lsBS/bNf/SptKUdzWraGYszO3GTu5cGAWys5 jBDDDlm/L095b28o13Nj2QH+C4kgm/JeUX9zog9VrQcFlSYNxmUEu0PR5YzEGHOvl+ S+65hjfgqe/YA== From: nomike Date: Wed, 30 Apr 2025 02:15:06 +0200 Message-ID: <20250430001507.912670-4-nomike@nomike.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250430001507.912670-1-nomike@nomike.com> References: <20250430001507.912670-1-nomike@nomike.com> MIME-Version: 1.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: , 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 Change-Id: Ic29aec26c37103ba40a55d090a349aba0ef9a035 --- gnu/packages/engineering.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index f472d1127f..440c075156 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -4355,8 +4355,8 @@ (define (fix-external-library cmake source) (define-public prusa-libbgcode ;; Use the latest commit since there are no proper releases nor tags, see ;; . - (let ((commit "8ae75bd0eea622f0e34cae311b3bd065b55eae9b") - (revision "0")) + (let ((commit "5041c093b33e2748e76d6b326f2251310823f3df") + (revision "1")) (package (name "prusa-libbgcode") (version (git-version "0.0.0" revision commit)) @@ -4368,8 +4368,8 @@ (define-public prusa-libbgcode (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "0fjx2ijz9zqpqs486lcrrrhqvmfzrpb8j6v57l0jiynavwv3kznw")))) - (native-inputs (list catch2)) + (base32 "0ivc0zhpf0gz55jfj0gbkff6yw5gpwazk94asldzznn7x9jmbb0i")))) + (native-inputs (list catch2-3.8)) (propagated-inputs (list zlib boost heatshrink)) (build-system cmake-build-system) (home-page "https://github.com/prusa3d/libbgcode") From patchwork Wed Apr 30 00:15:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: nomike X-Patchwork-Id: 42169 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 4DC0127BC4B; Wed, 30 Apr 2025 01:17:18 +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_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 CB72227BC49 for ; Wed, 30 Apr 2025 01:17:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u9v8S-0000fX-KM; Tue, 29 Apr 2025 20:17:12 -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 1u9v8J-0000dI-59 for guix-patches@gnu.org; Tue, 29 Apr 2025 20:17:05 -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 1u9v8H-00013K-TE for guix-patches@gnu.org; Tue, 29 Apr 2025 20:17:02 -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:References:In-Reply-To:Date:From:To:Subject; bh=4p1tfDI1IhUWIKe0EwFP+pnfsz/42lbi5aTkzOylFY4=; b=uvM4RdRntRgnukQAt1oMCoywBwUq+jc5BdSEKSykMTt5w+v5E19ch7yxZhKniGAUXwievvv6Ong2fZEbrUF1RMvfNq/Kaxx93Url1+zIB0JmJwxNhstpDkSz9F0NOBXBFdXZouR3wX2k66Bsl3aZmSaYnsBmYCmV8DN3nc/6bZ2rMnxHQ+KB0UTvyrsJsQ9n7obEPfn/PhuK/nVsaqL7DSGIePz0qwktlAEytdGqaEySCyg4Xp65JHfQRFUrLKMdEFMa45HBHvgzT7GlioY/RfKDrjgzF4iNzI1XXja0XPFUPH5jObqrTUJjScK3drJR74Kq/RFUfJnC4efVPVZ1ZA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u9v8H-0007P4-Lr for guix-patches@gnu.org; Tue, 29 Apr 2025 20:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78154] [PATCH 5/5] gnu: Update prusa-slicer to version 2.9.2 Resent-From: nomike Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Apr 2025 00:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78154 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78154@debbugs.gnu.org Cc: nomike Received: via spool by 78154-submit@debbugs.gnu.org id=B78154.174597216828361 (code B ref 78154); Wed, 30 Apr 2025 00:17:01 +0000 Received: (at 78154) by debbugs.gnu.org; 30 Apr 2025 00:16:08 +0000 Received: from localhost ([127.0.0.1]:37505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u9v7P-0007NM-1N for submit@debbugs.gnu.org; Tue, 29 Apr 2025 20:16:08 -0400 Received: from seashell.cherry.relay.mailchannels.net ([23.83.223.162]:35009) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u9v7K-0007MC-Fp for 78154@debbugs.gnu.org; Tue, 29 Apr 2025 20:16:05 -0400 X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 622E91650ED; Wed, 30 Apr 2025 00:16:01 +0000 (UTC) Received: from pdx1-sub0-mail-a217.dreamhost.com (trex-6.trex.outbound.svc.cluster.local [100.113.55.212]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 1A8F516373F; Wed, 30 Apr 2025 00:16:01 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1745972161; a=rsa-sha256; cv=none; b=lpni5l0nF28Vjxcr3urXZ8izdvzKcD4tojZ19FQLG1vpuq8p91FWSYRXcRZmTnrf58jmDJ lORi7/na5bi9AJj3UFpQnKXLZ9e2qgZPzGibZ4n2eJL1VusTtjqRhsKgyLbXspCDbvyYuo sv/oTLl21iPDcJimEsBh1Hk5BRXLjtDC/7NW3ZLfrtCYSbL/1jn4LXCppilpIBQNZxfWmg 7KgmJhT49/7SBFVPJGdnsbQxM1NDTqnJmO6vPh5Dm05dl9HgLCfISSi+a36t9SCsTEK3eC LoEwvRd4apagw4ekcBNSK/yGfgmDid+sUfYXCwfCeQ7CJBAeeLkrvT2L3m+zTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1745972161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4p1tfDI1IhUWIKe0EwFP+pnfsz/42lbi5aTkzOylFY4=; b=uup9jhrbfvR/xC9uRa2md29MH2okdQDFkPgLF2N5lypJqf581AUHp/ECXthJm5J1UVJVHV MV/QFQK4yHfNVLunvlFaeVBGNiw5P0d6SAIJIoqrA3Iio9/acByWWuVt25zNkT3UjkVEOc RrknZiXnvlVsLO6JJ+dHnr2yXgMtGbgLvRbhUhK+o8QwjQ5QAHwBh2iJZpSjahbiFzqVNy OiyGxDTqi9fJJaWod9xHflNkgWjb+x5hZmszfVqc982ebwOsW/E7y8+yVJTUDop77o9AwP nNysYws+ugT1T8awM5w/zw7JsK73tiSYv7ZwHKh7E7M4cbXpiRrfCZ1ESZeAoA== ARC-Authentication-Results: i=1; rspamd-684646cf5b-xmrnh; auth=pass smtp.auth=dreamhost smtp.mailfrom=nomike@nomike.com X-Sender-Id: dreamhost|x-authsender|nomike@nomike.com X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|nomike@nomike.com X-MailChannels-Auth-Id: dreamhost X-Cooing-Broad: 2e56611b44e37f65_1745972161337_3046044979 X-MC-Loop-Signature: 1745972161336:3576106395 X-MC-Ingress-Time: 1745972161336 Received: from pdx1-sub0-mail-a217.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.113.55.212 (trex/7.0.3); Wed, 30 Apr 2025 00:16:01 +0000 Received: from localhost (84-112-221-106.cable.dynamic.surfer.at [84.112.221.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nomike@nomike.com) by pdx1-sub0-mail-a217.dreamhost.com (Postfix) with ESMTPSA id 4ZnHlh3v4Nz8y; Tue, 29 Apr 2025 17:16:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomike.com; s=dreamhost; t=1745972160; bh=4p1tfDI1IhUWIKe0EwFP+pnfsz/42lbi5aTkzOylFY4=; h=From:To:Cc:Subject:Date:Content-Type:Content-Transfer-Encoding; b=STvapNz4Xvzvy5Z0ZtHTiK7VKKfrEHP5qEuBAar9MVQp3A2F1MQry53k7D3tb/Qie l6mgPb0JyCEKwKfwWNbtDTOu7/UuUtLcd90DoJu6ybNoMu9CSODNjO0qiI4c7QrWHe ja9xHchZSpvkjg4M0MsmhKX0CgsYRvM5sNT4aWSLTEdoORamGij9TNUyU39ts/68AF EyMVjiBaEqtpgHf5GggPxvJiFeEuzqr6LtSjelgo0wfJZMcjHjnTmYdIJiQQ5BW9p9 oP20fdbkcZp2nJjhI4Lg3XjoiU6vsB8o537Ogn4zwQven8/I1g8/KQ3yiWpIwrghPD Nvk5K9+vfuDJw== From: nomike Date: Wed, 30 Apr 2025 02:15:07 +0200 Message-ID: <20250430001507.912670-5-nomike@nomike.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250430001507.912670-1-nomike@nomike.com> References: <20250430001507.912670-1-nomike@nomike.com> MIME-Version: 1.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: , 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 Change-Id: Ibf59b2efb751c3ea0b555c2e4e914e5c095d5413 --- gnu/packages/engineering.scm | 191 ++++++++++-------- ...0-dont-force-link-to-wayland-and-x11.patch | 12 ++ .../patches/prusa-slicer-2.8.1-cgal-6.0.patch | 191 ++++++++++++++++++ .../patches/prusa-slicer-2.8.1-fstream.patch | 42 ++++ .../patches/prusa-slicer-fix-tests.patch | 17 -- 5 files changed, 348 insertions(+), 105 deletions(-) create mode 100644 gnu/packages/patches/prusa-slicer-2.6.0-dont-force-link-to-wayland-and-x11.patch create mode 100644 gnu/packages/patches/prusa-slicer-2.8.1-cgal-6.0.patch create mode 100644 gnu/packages/patches/prusa-slicer-2.8.1-fstream.patch delete mode 100644 gnu/packages/patches/prusa-slicer-fix-tests.patch diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 440c075156..ce8ae4e347 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -42,6 +42,7 @@ ;;; Copyright © 2024 Juliana Sims ;;; Copyright © 2024 Nguyễn Gia Phong ;;; Copyright © 2025 Frederick Muriuki Muriithi +;;; Copyright © 2025 nomike Postmann ;;; ;;; This file is part of GNU Guix. ;;; @@ -169,6 +170,7 @@ (define-module (gnu packages engineering) #:use-module (gnu packages tree-sitter) #:use-module (gnu packages version-control) #:use-module (gnu packages web) + #:use-module (gnu packages webkit) #:use-module (gnu packages wxwidgets) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xiph) @@ -4402,104 +4404,117 @@ (define-public prusa-libbgcode (define-public prusa-slicer (package (name "prusa-slicer") - (version "2.7.4") + (version "2.9.2") (source (origin (method git-fetch) - (uri - (git-reference - (url "https://github.com/prusa3d/PrusaSlicer") - (commit (string-append "version_" version)))) + (uri (git-reference + (url "https://github.com/prusa3d/PrusaSlicer") + (commit (string-append "version_" version)))) (file-name (git-file-name name version)) - (sha256 (base32 "0s1cfvhfilyv0y98asr61c6rwlgyr1hf5v5hg8q9zwmzm2bkcql3")) - (patches (search-patches "prusa-slicer-fix-tests.patch")) + (sha256 + (base32 "05zwwhqv3fjg9rx6a4ga55f4ic1136f6lwms0kb4kaq50w9dvxwg")) + (patches (search-patches + "prusa-slicer-2.6.0-dont-force-link-to-wayland-and-x11.patch" + "prusa-slicer-2.8.1-cgal-6.0.patch" + "prusa-slicer-2.8.1-fstream.patch")) (modules '((guix build utils))) - (snippet - `(begin - ;; Prusa slicer bundles a lot of dependencies in src/ directory. - ;; Most of them contain prusa-specific modifications (e.g. avrdude), - ;; but others do not. Here we replace the latter with Guix packages. - ;; Remove bundled libraries that were not modified by Prusa Slicer developers. - (delete-file-recursively "src/hidapi") - (delete-file-recursively "src/eigen") - (delete-file-recursively "src/libigl/igl") - (substitute* "CMakeLists.txt" - (("add_library\\(libexpat INTERFACE\\)") - "")) - (substitute* "src/libigl/CMakeLists.txt" - (("target_link_libraries\\(libigl INTERFACE igl::core\\)") "")) - (substitute* "src/CMakeLists.txt" - (("add_subdirectory\\(hidapi\\)") - "pkg_check_modules(HIDAPI REQUIRED hidapi-hidraw)") - (("include_directories\\(hidapi/include\\)") - "include_directories()")) - (substitute* "src/slic3r/CMakeLists.txt" - (("add_library\\(libslic3r_gui.*" all) - (string-append - all - "\ntarget_include_directories(libslic3r_gui PUBLIC ${HIDAPI_INCLUDE_DIRS})\n")) - (("\\bhidapi\\b") "${HIDAPI_LIBRARIES}")))))) + (snippet `(begin + ;; Prusa slicer bundles a lot of dependencies in src/ directory. + ;; Most of them contain prusa-specific modifications (e.g. avrdude), + ;; but others do not. Here we replace the latter with Guix packages. + ;; Remove bundled libraries that were not modified by Prusa Slicer + ;; developers. + + ;; un-bundling hidapi + ;; https://github.com/prusa3d/PrusaSlicer/issues/14505 + (delete-file-recursively "bundled_deps/hidapi") + (substitute* "bundled_deps/CMakeLists.txt" + (("add_subdirectory\\(hidapi\\)") + "")) + (substitute* "src/slic3r/CMakeLists.txt" + (("hidapi") + "hidapi::hidapi") + (("add_library\\(libslic3r_gui.*" all) + (string-append all "\nfind_package(hidapi REQUIRED)\n"))) + + ;; un-bundling libigl + (delete-file-recursively "bundled_deps/libigl/igl") + (substitute* "bundled_deps/libigl/CMakeLists.txt" + (("target_link_libraries\\(libigl INTERFACE igl::core\\)") + "")) + ;; Fix libsoup double linking + (substitute* "src/slic3r/CMakeLists.txt" + ((" webkit2gtk-4.1") + "")))))) (build-system cmake-build-system) (arguments - (list #:configure-flags - #~(list "-DSLIC3R_FHS=1" ;; Use The Filesystem Hierarchy Standard. - "-DSLIC3R_GTK=3" ;; Use GTK+ - ;; Use wxWidgets 3.0.x.x to prevent GUI crashes when adding support enforcers. - "-DSLIC3R_WX_STABLE=1" - (format #f "-Dlibigl_DIR=~a" - (search-input-directory %build-inputs - "lib/cmake/igl/")) - (format #f "-DCatch2_DIR=~a" - (search-input-directory %build-inputs - "lib/cmake/Catch2/"))) - #:phases - #~(modify-phases %standard-phases - (add-after 'unpack 'fix-include-paths - (lambda _ - (substitute* "tests/libslic3r/test_quadric_edge_collapse.cpp" - (("#include ") - "#include "))))))) - (native-inputs - (list pkg-config catch2)) - (inputs - (list boost - cereal - cgal - curl - dbus - eigen - eudev - expat - glew - glib - gmp - gtk+ - heatshrink - hidapi - ilmbase - libigl - libjpeg-turbo - libpng - mesa - mpfr - nanosvg - nlopt - opencascade-occt - openvdb - pango - prusa-libbgcode - ;; XXX: Using Prusa wxWidgets fork as PrusaSlicer segfaults when compiled - ;; with regular wxwidgets. - prusa-wxwidgets - qhull - tbb - zlib)) + (list + #:configure-flags + #~(list "-DSLIC3R_FHS=1" ;Use The Filesystem Hierarchy Standard. + "-DSLIC3R_GTK=3" ;Use GTK+ + ;; Use wxWidgets 3.0.x.x to prevent GUI crashes when adding support + ;; enforcers. + "-DSLIC3R_WX_STABLE=1" + (format #f "-Dlibigl_DIR=~a" + (search-input-directory %build-inputs "lib/cmake/igl/")) + (format #f "-DCatch2_DIR=~a" + (search-input-directory %build-inputs + "lib/cmake/Catch2/"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-include-paths + (lambda _ + (substitute* "tests/libslic3r/test_quadric_edge_collapse.cpp" + (("#include ") + "#include ")) + (substitute* "src/slic3r/GUI/Mouse3DController.hpp" + (("#include \"hidapi.h\"") + "#include \"hidapi/hidapi.h\""))))))) + (native-inputs (list pkg-config catch2-3.8)) + (inputs (list boost + cereal + catch2-3.8 + cgal + curl + dbus + eigen + eudev + `(,expat "static") + glew + glib + gmp + gtk+ + heatshrink + hidapi-cmake + ilmbase + libigl + libjpeg-turbo + libpng + mesa + mpfr + nanosvg + nlopt + opencascade-occt-7.6.1 + openssl + openvdb + pango + prusa-libbgcode + ;; XXX: Using Prusa wxWidgets fork as PrusaSlicer + ;; segfaults when compiled with regular wxwidgets. + prusa-wxwidgets + qhull + tbb + webkitgtk-with-libsoup2 + z3 + zlib)) (home-page "https://www.prusa3d.com/prusaslicer/") - (synopsis "G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)") - (description "PrusaSlicer takes 3D models (STL, OBJ, AMF) and converts them into + (synopsis + "G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)") + (description + "PrusaSlicer takes 3D models (STL, OBJ, AMF) and converts them into G-code instructions for FFF printers or PNG layers for mSLA 3D printers.") (license license:agpl3) - ;; Mark as tunable to take advantage of SIMD code in Eigen and in libigl. (properties '((tunable? . #t))))) diff --git a/gnu/packages/patches/prusa-slicer-2.6.0-dont-force-link-to-wayland-and-x11.patch b/gnu/packages/patches/prusa-slicer-2.6.0-dont-force-link-to-wayland-and-x11.patch new file mode 100644 index 0000000000..1d36fcbb7b --- /dev/null +++ b/gnu/packages/patches/prusa-slicer-2.6.0-dont-force-link-to-wayland-and-x11.patch @@ -0,0 +1,12 @@ +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -115,9 +115,6 @@ if (SLIC3R_GUI) + # libslic3r_gui will link to opengl anyway, so lets override wx + list(FILTER wxWidgets_LIBRARIES EXCLUDE REGEX OpenGL) + +- if (UNIX AND NOT APPLE) +- list(APPEND wxWidgets_LIBRARIES X11 wayland-client wayland-egl EGL) +- endif () + # list(REMOVE_ITEM wxWidgets_LIBRARIES oleacc) + message(STATUS "wx libs: ${wxWidgets_LIBRARIES}") + diff --git a/gnu/packages/patches/prusa-slicer-2.8.1-cgal-6.0.patch b/gnu/packages/patches/prusa-slicer-2.8.1-cgal-6.0.patch new file mode 100644 index 0000000000..3aac479197 --- /dev/null +++ b/gnu/packages/patches/prusa-slicer-2.8.1-cgal-6.0.patch @@ -0,0 +1,191 @@ +From a9283c62cec2b802aa2133c92b7ff5bf320c0bb6 Mon Sep 17 00:00:00 2001 +From: Laurent Rineau +Date: Sat, 13 Jul 2024 01:19:21 +0200 +Subject: [PATCH] compatibility with CGAL-6.0 (and 5.6.x) + +updated for 2.8.1 + +--- a/src/libslic3r/CutSurface.cpp ++++ b/src/libslic3r/CutSurface.cpp +@@ -4,6 +4,14 @@ + ///|/ + #include "CutSurface.hpp" + ++template ++auto access_pmap(std::optional opt) -> T { ++ return opt.value(); ++} ++ ++template ++auto access_pmap(Pair pair) { return pair.first; } ++ + /// models_input.obj - Check transormation of model to each others + /// projection_center.obj - circle representing center of projection with correct distance + /// {M} .. model index +@@ -31,6 +39,7 @@ using namespace Slic3r; + #include + #include + #include ++#include + #include + #include + #include +@@ -1021,8 +1030,8 @@ priv::CutMesh priv::to_cgal(const ExPolygons &shapes, + if (shapes.empty()) return {}; + + CutMesh result; +- EdgeShapeMap edge_shape_map = result.add_property_map(edge_shape_map_name).first; +- FaceShapeMap face_shape_map = result.add_property_map(face_shape_map_name).first; ++ EdgeShapeMap edge_shape_map = access_pmap((result.add_property_map(edge_shape_map_name))); ++ FaceShapeMap face_shape_map = access_pmap((result.add_property_map(face_shape_map_name))); + + std::vector indices; + auto insert_contour = [&projection, &indices, &result, +@@ -1432,17 +1441,17 @@ priv::CutAOIs priv::cut_from_model(CutMesh &cgal_model, + const ExPolygonsIndices &s2i) + { + // pointer to edge or face shape_map +- VertexShapeMap vert_shape_map = cgal_model.add_property_map(vert_shape_map_name, nullptr).first; ++ VertexShapeMap vert_shape_map = access_pmap((cgal_model.add_property_map(vert_shape_map_name, nullptr))); + + // detect anomalities in visitor. + bool is_valid = true; + // NOTE: map are created when convert shapes to cgal model +- const EdgeShapeMap& edge_shape_map = cgal_shape.property_map(edge_shape_map_name).first; +- const FaceShapeMap& face_shape_map = cgal_shape.property_map(face_shape_map_name).first; ++ const EdgeShapeMap& edge_shape_map = access_pmap((cgal_shape.property_map(edge_shape_map_name))); ++ const FaceShapeMap& face_shape_map = access_pmap((cgal_shape.property_map(face_shape_map_name))); + Visitor visitor{cgal_model, cgal_shape, edge_shape_map, face_shape_map, vert_shape_map, &is_valid}; + + // a property map containing the constrained-or-not status of each edge +- EdgeBoolMap ecm = cgal_model.add_property_map(is_constrained_edge_name, false).first; ++ EdgeBoolMap ecm = access_pmap((cgal_model.add_property_map(is_constrained_edge_name, false))); + const auto &p = CGAL::parameters::visitor(visitor) + .edge_is_constrained_map(ecm) + .throw_on_self_intersection(false); +@@ -1451,7 +1460,7 @@ priv::CutAOIs priv::cut_from_model(CutMesh &cgal_model, + + if (!is_valid) return {}; + +- FaceTypeMap face_type_map = cgal_model.add_property_map(face_type_map_name, FaceType::not_constrained).first; ++ FaceTypeMap face_type_map = access_pmap((cgal_model.add_property_map(face_type_map_name, FaceType::not_constrained))); + + // Select inside and outside face in model + set_face_type(face_type_map, cgal_model, vert_shape_map, ecm, cgal_shape, s2i); +@@ -1587,8 +1596,8 @@ void priv::collect_surface_data(std::queue &process, + + void priv::create_reduce_map(ReductionMap &reduction_map, const CutMesh &mesh) + { +- const VertexShapeMap &vert_shape_map = mesh.property_map(vert_shape_map_name).first; +- const EdgeBoolMap &ecm = mesh.property_map(is_constrained_edge_name).first; ++ const VertexShapeMap &vert_shape_map = access_pmap((mesh.property_map(vert_shape_map_name))); ++ const EdgeBoolMap &ecm = access_pmap((mesh.property_map(is_constrained_edge_name))); + + // check if vertex was made by edge_2 which is diagonal of quad + auto is_reducible_vertex = [&vert_shape_map](VI reduction_from) -> bool { +@@ -1773,10 +1782,10 @@ priv::VDistances priv::calc_distances(const SurfacePatches &patches, + for (const SurfacePatch &patch : patches) { + // map is created during intersection by corefine visitor + const VertexShapeMap &vert_shape_map = +- models[patch.model_id].property_map(vert_shape_map_name).first; ++ access_pmap((models[patch.model_id].property_map(vert_shape_map_name))); + uint32_t patch_index = &patch - &patches.front(); + // map is created during patch creation / dividing +- const CvtVI2VI& cvt = patch.mesh.property_map(patch_source_name).first; ++ const CvtVI2VI& cvt = access_pmap((patch.mesh.property_map(patch_source_name))); + // for each point on outline + for (const Loop &loop : patch.loops) + for (const VI &vi_patch : loop) { +@@ -2666,7 +2675,7 @@ priv::SurfacePatch priv::create_surface_patch(const std::vector &fis, + /* const */ CutMesh &mesh, + const ReductionMap *rmap) + { +- auto is_counted = mesh.add_property_map("v:is_counted").first; ++ auto is_counted = access_pmap((mesh.add_property_map("v:is_counted"))); + uint32_t count_vertices = 0; + if (rmap == nullptr) { + for (FI fi : fis) +@@ -2696,7 +2705,7 @@ priv::SurfacePatch priv::create_surface_patch(const std::vector &fis, + cm.reserve(count_vertices, count_edges, count_faces); + + // vertex conversion function from mesh VI to result VI +- CvtVI2VI mesh2result = mesh.add_property_map("v:mesh2result").first; ++ CvtVI2VI mesh2result = access_pmap((mesh.add_property_map("v:mesh2result"))); + + if (rmap == nullptr) { + for (FI fi : fis) { +@@ -2748,7 +2757,7 @@ priv::SurfacePatch priv::create_surface_patch(const std::vector &fis, + assert(count_edges >= cm.edges().size()); + + // convert VI from this patch to source VI, when exist +- CvtVI2VI cvt = cm.add_property_map(patch_source_name).first; ++ CvtVI2VI cvt = access_pmap((cm.add_property_map(patch_source_name))); + // vi_s .. VertexIndex into mesh (source) + // vi_d .. new VertexIndex in cm (destination) + for (VI vi_s : mesh.vertices()) { +@@ -2939,7 +2948,7 @@ bool priv::is_patch_inside_of_model(const SurfacePatch &patch, + uint32_t priv::get_shape_point_index(const CutAOI &cut, const CutMesh &model) + { + // map is created during intersection by corefine visitor +- const VertexShapeMap &vert_shape_map = model.property_map(vert_shape_map_name).first; ++ const VertexShapeMap &vert_shape_map = access_pmap((model.property_map(vert_shape_map_name))); + // for each half edge of outline + for (HI hi : cut.second) { + VI vi = model.source(hi); +@@ -2964,7 +2973,7 @@ priv::SurfacePatch priv::separate_patch(const std::vector& fis, + patch_new.model_id = patch.model_id; + patch_new.shape_id = patch.shape_id; + // fix cvt +- CvtVI2VI cvt = patch_new.mesh.property_map(patch_source_name).first; ++ CvtVI2VI cvt = access_pmap((patch_new.mesh.property_map(patch_source_name))); + for (VI &vi : cvt) { + if (!vi.is_valid()) continue; + vi = cvt_from[vi]; +@@ -2982,9 +2991,9 @@ void priv::divide_patch(size_t i, SurfacePatchesEx &patches) + CutMesh& cm = patch.mesh; + assert(!cm.faces().empty()); + std::string patch_number_name = "f:patch_number"; +- CutMesh::Property_map is_processed = cm.add_property_map(patch_number_name, false).first; ++ CutMesh::Property_map is_processed = access_pmap((cm.add_property_map(patch_number_name, false))); + +- const CvtVI2VI& cvt_from = patch.mesh.property_map(patch_source_name).first; ++ const CvtVI2VI& cvt_from = access_pmap((patch.mesh.property_map(patch_source_name))); + + std::vector fis; + fis.reserve(cm.faces().size()); +@@ -3085,7 +3094,7 @@ priv::SurfacePatches priv::diff_models(VCutAOIs &cuts, + CutAOIs &model_cuts = cuts[model_index]; + CutMesh &cut_model_ = cut_models[model_index]; + const CutMesh &cut_model = cut_model_; +- ReductionMap vertex_reduction_map = cut_model_.add_property_map(vertex_reduction_map_name).first; ++ ReductionMap vertex_reduction_map = access_pmap((cut_model_.add_property_map(vertex_reduction_map_name))); + create_reduce_map(vertex_reduction_map, cut_model); + + for (size_t cut_index = 0; cut_index < model_cuts.size(); ++cut_index, ++index) { +@@ -3171,7 +3180,7 @@ bool priv::is_over_whole_expoly(const CutAOI &cutAOI, + const CutMesh &mesh) + { + // NonInterupted contour is without other point and contain all from shape +- const VertexShapeMap &vert_shape_map = mesh.property_map(vert_shape_map_name).first; ++ const VertexShapeMap &vert_shape_map = access_pmap((mesh.property_map(vert_shape_map_name))); + for (HI hi : cutAOI.second) { + const IntersectingElement *ie_s = vert_shape_map[mesh.source(hi)]; + const IntersectingElement *ie_t = vert_shape_map[mesh.target(hi)]; +@@ -3708,7 +3717,7 @@ void priv::store(const CutMesh &mesh, const FaceTypeMap &face_type_map, const st + } + + CutMesh &mesh_ = const_cast(mesh); +- auto face_colors = mesh_.add_property_map("f:color").first; ++ auto face_colors = access_pmap((mesh_.add_property_map("f:color"))); + for (FI fi : mesh.faces()) { + auto &color = face_colors[fi]; + switch (face_type_map[fi]) { +@@ -3734,7 +3743,7 @@ void priv::store(const CutMesh &mesh, const ReductionMap &reduction_map, const s + std::string off_file = dir + "model" + std::to_string(reduction_order++) + ".off"; + + CutMesh &mesh_ = const_cast(mesh); +- auto vertex_colors = mesh_.add_property_map("v:color").first; ++ auto vertex_colors = access_pmap((mesh_.add_property_map("v:color"))); + // initialize to gray color + for (VI vi: mesh.vertices()) + vertex_colors[vi] = CGAL::Color{127, 127, 127}; diff --git a/gnu/packages/patches/prusa-slicer-2.8.1-fstream.patch b/gnu/packages/patches/prusa-slicer-2.8.1-fstream.patch new file mode 100644 index 0000000000..f550c53d3f --- /dev/null +++ b/gnu/packages/patches/prusa-slicer-2.8.1-fstream.patch @@ -0,0 +1,42 @@ +--- a/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp ++++ b/src/slic3r/GUI/Gizmos/GLGizmoSVG.cpp +@@ -1595,7 +1595,7 @@ void GLGizmoSVG::draw_filename(){ + if (dlg.ShowModal() == wxID_OK ){ + last_used_directory = dlg.GetDirectory(); + std::string out_path_str(into_u8(dlg.GetPath())); +- boost::nowide::ofstream stream(out_path_str); ++ std::ofstream stream(out_path_str); + if (stream.is_open()){ + stream << *svg.file_data; + +--- a/src/slic3r/GUI/PresetArchiveDatabase.cpp ++++ b/src/slic3r/GUI/PresetArchiveDatabase.cpp +@@ -515,7 +515,7 @@ void PresetArchiveDatabase::load_app_manifest_json() + if (!fs::exists(path, ec) || ec) { + copy_initial_manifest(); + } +- boost::nowide::ifstream file(path.string()); ++ std::ifstream file(path.string()); + std::string data; + if (file.is_open()) { + std::string line; +@@ -682,7 +682,7 @@ void PresetArchiveDatabase::save_app_manifest_json() const + data += "]"; + + std::string path = get_stored_manifest_path().string(); +- boost::nowide::ofstream file(path); ++ std::ofstream file(path); + if (file.is_open()) { + file << data; + file.close(); +--- a/src/slic3r/Utils/Http.cpp ++++ b/src/slic3r/Utils/Http.cpp +@@ -302,7 +302,7 @@ void Http::priv::form_add_file(const char *name, const fs::path &path, const cha + //FIXME may throw! Is the caller aware of it? + void Http::priv::set_post_body(const fs::path &path) + { +- boost::nowide::ifstream file(path.string()); ++ std::ifstream file(path.string()); + std::string file_content { std::istreambuf_iterator(file), std::istreambuf_iterator() }; + postfields = std::move(file_content); + } diff --git a/gnu/packages/patches/prusa-slicer-fix-tests.patch b/gnu/packages/patches/prusa-slicer-fix-tests.patch deleted file mode 100644 index da9a5307f9..0000000000 --- a/gnu/packages/patches/prusa-slicer-fix-tests.patch +++ /dev/null @@ -1,17 +0,0 @@ -This patch comes from Gentoo: - portage/media-gfx/prusaslicer/files/prusaslicer-2.5.0_rc1-fix-tests.patch - ---- a/tests/fff_print/test_data.cpp -+++ b/tests/fff_print/test_data.cpp -@@ -4,10 +4,9 @@ - #include "libslic3r/GCodeReader.hpp" - #include "libslic3r/Config.hpp" - #include "libslic3r/Print.hpp" --#include "libslic3r/Format/OBJ.hpp" --#include "libslic3r/Format/STL.hpp" - - #include -+#include - #include - - #include