From patchwork Mon Mar 29 14:17:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ekaitz Zarraga X-Patchwork-Id: 28171 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 D95AF27BC64; Mon, 29 Mar 2021 15:18:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3F48627BC63 for ; Mon, 29 Mar 2021 15:18:22 +0100 (BST) Received: from localhost ([::1]:49112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQsij-0008Uo-Bz for patchwork@mira.cbaines.net; Mon, 29 Mar 2021 10:18:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQsiQ-0008Tc-DM for guix-patches@gnu.org; Mon, 29 Mar 2021 10:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQsiQ-0000eA-2F for guix-patches@gnu.org; Mon, 29 Mar 2021 10:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQsiP-0008J8-Tz for guix-patches@gnu.org; Mon, 29 Mar 2021 10:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47467] [PATCH]: Fix Blender missing Voxel Remesher Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Mar 2021 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47467 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47467@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.161702746231903 (code B ref -1); Mon, 29 Mar 2021 14:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2021 14:17:42 +0000 Received: from localhost ([127.0.0.1]:49176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQsi2-0008IP-1h for submit@debbugs.gnu.org; Mon, 29 Mar 2021 10:17:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:50056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQshz-0008IH-UZ for submit@debbugs.gnu.org; Mon, 29 Mar 2021 10:17:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQshz-0008D4-NK for guix-patches@gnu.org; Mon, 29 Mar 2021 10:17:35 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:27409) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQshu-0000Kh-VS for guix-patches@gnu.org; Mon, 29 Mar 2021 10:17:35 -0400 Date: Mon, 29 Mar 2021 14:17:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail3; t=1617027447; bh=CuvFw8BHtwwyMDQxP79wpULHNCju1AvRDe7WgvxKcBw=; h=Date:To:From:Reply-To:Subject:From; b=Wa+IpX1vlfLehmR2zd0SuFJZYSFO+VnHUgw7GKcHwXVUJeFqnTxhjzpKisvzNMOqr dLdzKXIy/IGUR6KCbMWOmsf1bGGaGFTsRV3rWc8fO/zUAQvGh8f8U6sQ+ZxlWDEzGj NsLj0skMPkrwXgfh8OlXlwmDOLICynV1C6XwdBrVGf7Gq5yvRKfRQhEGA7o/OOltui A2mSzlo4COm8QbbVrlZ4QbRlbipEpW0Zr/NGR9RDIWOeNzmPCaTMQRIHSvAYH2WflG b923S3EgHeSMccaWA8sWZ9V7SEf+aoxLsnZZLuVf/u7Y5m/REl28VQlevfBFblujgf FHbwrDJoICYyg== From: Ekaitz Zarraga Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.131; envelope-from=ekaitz@elenq.tech; helo=mail-40131.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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: , Reply-To: Ekaitz Zarraga Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hi, According to bug#47463[^1], Blender is missing a dependency that doesn't allow to run the Voxel Remesher. This series of patches solve that. I have a comment on the first one. I'm not sure if I did it right. I don't see a better way to set the `rpath` correcty. It should find the lib by itself but the package has an executable as ouput that doesn't find the library the package itself generates. Removing the extra phase I added shows the RPATH is set to `lib` instead to the absolute path of the library so the runpath check fails to execute. This is the best way I found to solve that but I'm sure whoever that gets this patch knows a better way to handle that. I tested Blender with this and it runs the Voxel Remesher as expected. Please, don't hesitate to send me any comment. Thanks! [^1]: https://lists.gnu.org/archive/html/bug-guix/2021-03/msg00647.html From 630ebdeec1b8524d09c811ac93dbbe46d31daa45 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 29 Mar 2021 16:05:04 +0200 Subject: [PATCH 2/2] gnu: blender: Update dependencies * gnu/packages/graphics.scm (blender): Add dependencies and flags --- gnu/packages/graphics.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm index b4df9f5c04..ddf6a6c2ba 100644 --- a/gnu/packages/graphics.scm +++ b/gnu/packages/graphics.scm @@ -534,6 +534,8 @@ volumetric applications typically encountered in feature film production.") "-DWITH_INSTALL_PORTABLE=OFF" "-DWITH_JACK=ON" "-DWITH_MOD_OCEANSIM=ON" + "-DWITH_OPENVDB=ON" + "-DWITH_TBB=ON" "-DWITH_OPENSUBDIV=ON" "-DWITH_PYTHON_INSTALL=OFF" (string-append "-DPYTHON_LIBRARY=python" ,python-version) @@ -589,6 +591,8 @@ volumetric applications typically encountered in feature film production.") ("pugixml" ,pugixml) ("python" ,python) ("python-numpy" ,python-numpy) + ("openvdb" ,openvdb) + ("libxxf86vm" ,libxxf86vm) ("tbb" ,tbb) ("zlib" ,zlib) ("embree" ,embree))) -- 2.31.0