From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6JMVN+96imKMMQEAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 20:03:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QJIFN+96imIiUgEAauVa8A (envelope-from ) for ; Sun, 22 May 2022 20:03:27 +0200 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 98FCF3A4DA for ; Sun, 22 May 2022 20:03:27 +0200 (CEST) Received: from localhost ([::1]:43752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nspvK-00028Y-PS for larch@yhetil.org; Sun, 22 May 2022 14:03:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nspud-00028M-JQ for guix-devel@gnu.org; Sun, 22 May 2022 14:02:45 -0400 Received: from mail-4323.proton.ch ([185.70.43.23]:50538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nspuY-00016t-KX for guix-devel@gnu.org; Sun, 22 May 2022 14:02:42 -0400 Date: Sun, 22 May 2022 18:02:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail2; t=1653242547; x=1653501747; bh=Jybe0aXDlSBVsvMRBfXV0w++iw2AhYfm/UP/jDMv9JE=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=CZvo+LKcwj4vJ84Aj6FNyz5qhIxjhk9VovgnVWRA5CSIcxLn2R+HYZ5nzNWWNFKC0 kR2EqDUxUEwh2nhKpJIrEZvnbTwKBLb+5+e0P+slKvEFyLqYJmGkXrw5MOJ4m3ypAX Ek58PfHrt/Qotuo5TGyDPdG9ZnzFmntxv7zeRkNzQXhnFpWD8IfJSM6qv1/RoDr1V9 EbdtNygSg8V1li6BqZENbx1gg2g+BU7W3c9KCbgQd0cE43PhncjZu3Ry74DWLlsFup 7YsIeYJghj1iauuZhPA027XELyhK6kiIFoEfe5D9cUqLryFidVfNMurhrx3kDRXrSi 0QBjwYzO1sfLA== To: =?utf-8?Q?Th=C3=A9o_Maxime_Tyburn?= From: Ekaitz Zarraga Cc: Maxime Devos , guix-devel@gnu.org Subject: Re: Blender export backend missing Message-ID: In-Reply-To: <87v8tx8nt3.fsf@gmail.com> References: <87pmk9bqj7.fsf@gmail.com> <6ba84a62baba44e2f680ee64f37a53146c2c4c02.camel@telenet.be> <87tu9jq3sx.fsf@gmail.com> <87v8tx8nt3.fsf@gmail.com> Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=ekaitz@elenq.tech; helo=mail-4323.proton.ch 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653242607; h=from:from:sender:sender:reply-to: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Jybe0aXDlSBVsvMRBfXV0w++iw2AhYfm/UP/jDMv9JE=; b=Lffuo3/YL4PfxvqOx+0cNlKb4AfaKy/uatLO0hLB5GUiJhvz5WzO7cYyQHs1MyuBYeeMjC aWSHz6VdiXdv6P1TK2rHxsGWgZ8q01OuR+wpDzYXbCOESy95SOnnBJK16bV9c1qcK65vx3 mIypnS/r5QGVN1JjgbkB4kFlYOncpwL5D0rzug3g3awbDpu9GRsVOlcMWRwOQyvUWUobmu FM0ZzWdklPM+ZD4qX4JZOtdqMc8xW726JNnDqOh1+1gbbIqJTggR4h99KbJMbEs35UUK0U dSPNPpcEWvuFQthS0Q61b2RPJ47sb9QpMsvvjK0BBVzFPPouuWElPbAA4MWROA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653242607; a=rsa-sha256; cv=none; b=SU5W7L/mbD7+RMxt/JUOE8g6yq8oaG0aEja7MRnUTAFjttPKSn9Lw2eX38F9kAOAFkh91J 57BDMdz9VtlNYvZo37zgq3OAQ4Hcdod+gXDFu/+zoOxN/zff0wSUXGI0mluuxKMSWJHJOJ CAb55CE8OGOWT3dyJiyf9UpORIMInVR9lf7yGtiXRpZU6oTRkEIH0tSraa6TBZmh4TWwoI JgaruLagpZhfYvrWoG4BbJjO7D+9Xl40lhY3YCttNTne6KzMa6eTkd2O1a28uS4Ibz8hqw iTr+CN5GJ8iYQPgPO6kvVU0/Tvm5guXJe14cbb1V8UQV8d/BjvEh8EH4btApQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=CZvo+LKc; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=CZvo+LKc; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 98FCF3A4DA X-Spam-Score: -8.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: Wjo9vPRdAq6r Hi ------- Original Message ------- On Sunday, May 22nd, 2022 at 3:49 PM, Th=C3=A9o Maxime Tyburn wrote: > Hi > > Ekaitz Zarraga ekaitz@elenq.tech writes: > > > Make sure the version of alembic we have packaged is the one Blender ex= pects. > > > > Sometimes the APIs change and that may led to that kind of errors. > > > The version of alembic that blender 3.0.1 requires is the same we > have. > > The problem might come from another version mismastch problem. Namely > with OpenEXR. OpenEXR > version 2.x provided Imath inside of its subdirectory Ilmbase, for > which we also have a separate package. From version 3.x of OpenEXR, Imath > became a separate package. The guix blender package still uses openexr > version 2.x. and its subpackage ilmbase. However guix package alembic use= s the new imath. Blender > upstream actually also expect openexr 3.x and imath. > > The quick and dirty fix is to just downgrade alembic. I just tried it > and it works. So at least we can work with alembic files in blender now. > > A better fix would be to add openexr 3.x and imath > to blender package=E2=80=99s inputs and remove openexr-2 and ilmbase. > > I tried that but it doesn=E2=80=99t work. The error is > --8<---------------cut here---------------start------------->8--- > > CMake Error: The following variables are used in this project, but they a= re set to NOTFOUND. > Please set them or make sure they are set and tested correctly in the CMa= ke files: > OPENEXR_HALF_LIBRARY (ADVANCED) > linked by target "cycles_scene" in directory /tmp/guix-build-blender-3.0.= 1.drv-0/blender-3.0.1/intern/cycles/scene > OPENEXR_ILMIMF_LIBRARY (ADVANCED) > linked by target "cycles_scene" in directory /tmp/guix-build-blender-3.0.= 1.drv-0/blender-3.0.1/intern/cycles/scene > --8<---------------cut here---------------end--------------->8--- > > > It seems this is due to some error in the cmake of blender=E2=80=99s sour= ce. Some > other packge maintainers have come across the same issue aparently > https://devtalk.blender.org/t/building-blender-2-93-3-with-the-new-half-i= mplementation-of-openexr-that-uses-half-of-imath/20074. > I guess it has not been fixed in upstream blender yet. There is a patch t= hough > here > https://github.com/bartoszek/AUR-blender-2.83-git/blob/master/openexr3.pa= tch > > So this could be the better solution if want to rely on that patch. Do we= ? > I also have no idea how to apply a patch from another repo in a package > definition though. Any idea? > > A general build / packaging question: For testing purposes I sometimes wa= nt to just try some command in the > build environment. Like applying this patch for example. Is there a > simple way to somehow enter the build env and do things from there > imperatively, just to quickly check some things? > > Best, > > Th=C3=A9o You can try to build the package with `guix build -K` and then interact wit= h the build process. The -K is going to keep the build directory and gives = you the folder where it was building everything, then you can `cd` there an= d use the environment file that appears there to set up the same container = where guix was building the package. You just need to load the file to your= shell. Also, you can add the patches directly with the guix package itself, look h= ow `4store` does it: it adds a `patches` field in the `source` and those ar= e applied when the code is downloaded. If the patch you want to apply is small you can do it with regex substituti= ons too, but this looks better for your case. I know this is a huge effort, I had to deal with similar things in Blender = and Meshlab in the past, so I'm here to help! Good job, Ekaitz