From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yN8PEbkYGmEKYwAAgWs5BA (envelope-from ) for ; Mon, 16 Aug 2021 09:50:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iDbBDLkYGmGaDAAAB5/wlQ (envelope-from ) for ; Mon, 16 Aug 2021 07:50:17 +0000 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 7AA6D16F81 for ; Mon, 16 Aug 2021 09:50:16 +0200 (CEST) Received: from localhost ([::1]:44584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFXNu-0006di-G8 for larch@yhetil.org; Mon, 16 Aug 2021 03:50:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFXNi-0006an-Bp for guix-patches@gnu.org; Mon, 16 Aug 2021 03:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFXNi-0003Yj-4b for guix-patches@gnu.org; Mon, 16 Aug 2021 03:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFXNh-00022Y-TK for guix-patches@gnu.org; Mon, 16 Aug 2021 03:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50052] [PATCH] Add prusa-slicer Resent-From: Ivan Gankevich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Aug 2021 07:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50052 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Daniel Trujillo Viedma Cc: 50052@debbugs.gnu.org Received: via spool by 50052-submit@debbugs.gnu.org id=B50052.16291001757808 (code B ref 50052); Mon, 16 Aug 2021 07:50:01 +0000 Received: (at 50052) by debbugs.gnu.org; 16 Aug 2021 07:49:35 +0000 Received: from localhost ([127.0.0.1]:48395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFXND-00021o-3d for submit@debbugs.gnu.org; Mon, 16 Aug 2021 03:49:35 -0400 Received: from mail.spbu.ru ([195.70.197.23]:53618 helo=cgp2.pu.ru) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFXN6-00021V-VD for 50052@debbugs.gnu.org; Mon, 16 Aug 2021 03:49:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=spbu.ru; s=20180812; bh=k+ZYF7VHJiCB5U0c+CFagZ8NtHuTaTa4y7ZK5P4cr68=; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; b=Mg1acIVItjoimkg 1JwqhwZG7qbupByEgVYJt6EZCNGorNUi4AwSOD2uiro3TCQsBLHFT5KvplHpKfvRK7JekD2mwH7OH FPXzbF4jFDI0bx7iovl76aFtK6Q/vtc3IjUnJexg1l8s5Fdbxvp6W/5kp3QqHCG3fwYLshuNXy1gj zGg8lTIcrWjdEgshU2+iUl9tFLnNv3mI0hkY8Ri0OIqWmH3ScmnsuGNL9qJQ+XLIWqc/tvJghabgT jrXjaOjzNX8ScaXp6T2JUJXJiylDhGP5PLboEaxmgoDxLtYExSZY3Lwe/fLvmyQzw1bq1xo3hZ4l0 +5qn6Xsl9ICG4GQKOCg== Received: from [172.27.221.159] (account st018947@spbu.ru HELO localhost) by spbu.ru (CommuniGate Pro SMTP 6.2.15) with ESMTPSA id 178567488; Mon, 16 Aug 2021 10:49:17 +0300 Date: Mon, 16 Aug 2021 10:49:17 +0300 From: Ivan Gankevich Message-ID: References: <0654f9e7-8c1d-aa4c-3240-54faf3defb2f@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629100217; h=from:from:sender:sender: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: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=Ng1MhDywAH44znrQvroeSLT3d0/5zIhZNCereLDYOAg=; b=BZckch6zeE0N9R6kdItyqZSEadXxr7b1zhk4EWJTSm8yGihyQnYwY7NLbTnXuhzEycMeSl 013l/nzQDyYbCEDN61oviBoo5fbBcreAh3zHDxEDhIYFXjx/PHek/8nszNlwVW0KpSFGNU L70JgWe4TzrS3Lkyr69sEPiEQGHFiHLY4Qzgqnq8+NUO2Mi2zn4YQDjbsA5snUVA+yXuSu H3xF6i5r4uMJUAGdLnyDles3CHaw4dX1SC4uBOpZs6eAInAbYIYztKiuDoHNir8d8O9Ggy HntI4Aoel+FG1UiW9UIP44SleoeCa+6N/r6Eiism+LWCEGUbXZ2l7yHoADEQhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629100217; a=rsa-sha256; cv=none; b=MvRcYn4dctHToRCosNDtVPXnTponRUc6CHbmL3Nxn5U2cZ0vU8tdxa4wRvmOUfhrwE0x4V H5WiUs2oT3rA/ZGzSgzZVk0JyTllUx8evjdBgdKeBf6HLxVssgmIv5R7AJPBg+HCjNzyVT Ev+dsp/2r193ZJFk9sU8duPwWBJMEkjZUBVK8ICU7ietP50PYhlZ/UFxbLOceSWgWCfw6a uG1rxy5JIkjtxozrIMXVK8B3r+TQCjckUcA6l2FZiS0ptpFFRi+eHyhT/jAZ+xukZvDXsn qjCvi0h+x6cCKqtLEKDwf11JqWJ0yL7EcDIw5vouWyIa6iUlbPHHdM4EuWpq9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spbu.ru header.s=20180812 header.b=Mg1acIVI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=spbu.ru header.s=20180812 header.b=Mg1acIVI; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 7AA6D16F81 X-Spam-Score: -0.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: R/2P+XIV83im >Hi! I'm Daniel Trujillo, Hello, Daniel! >I don't know if these kind of packages are of interest, but this is >PrusaSlicer [0], a software to prepare 3D printings (hence I put it in >engineering.scm). I have submitted “prusa-slicer” together with “libigl” on July 23 but did’t get any response: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49713 We should probably check prior submissions to not duplicate our effort. >The packaged version, 2.3.3 is the latest stable available at this >moment. But this version has as important problem [1]: It cannot be >invoked just naming the executable (through $PATH), because then, it >can't locate the resources directory. I learned **the hard way** that >the fix was applied *after* the release of the 2.3.3 version, so I >decided to backport the fix adding a patch because it's a show-stopper >to have to type the path to the executable in /gnu/store/... That's >the reason why the patch attached to this email contains, not only the >additions to engineering.scm, but also a patch that implements the >solution in the version 2.3.3 codebase (It's quite simple, it uses a >boost function to determine the path to the executable rather than >relying on argv[0]). This issue is fixed by adding “-DSLIC3R_FHS=1” to #:configure-flags. No need to patch the source code. >* In order for the above $PATH issue fix to work, it's crucial that >the cmake variable SLIC3R_FHS is set to off. This is the default value >according to the CMakeLists.txt, but because it's so important, >probably it should have been included in the configure-flags argument? >Just for clarity. Set it to ON and you don’t have to patch the code. >I hope everything is in order, I'm looking forward to see your >comments, and hope I can start contributing more packages to Guix!! Prusa slicer bundles a lot of third-party libraries. Most of them contain prusa-specific modifications, but some don’t. “libigl”, “eigen” and “hidapi” can be unbundled, so that we can use versions of these libraries provided by Guix. >+ ("cereal" ,cereal) You need to patch “cereal” library definition in order for Prusa slicer to find this library. I have included this in my patch as well. Regards, Ivan