From nobody Mon Oct 09 18:45:58 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S47KK2Vw1z4w5Dq for ; Mon, 9 Oct 2023 18:46:13 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S47KH6TkZz4QXC for ; Mon, 9 Oct 2023 18:46:11 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=eTHnlh9b; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::112d) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-5a7a77e736dso8174247b3.1 for ; Mon, 09 Oct 2023 11:46:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1696877171; x=1697481971; darn=freebsd.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=NWPaEOfTcKfIdopVs6Tx+ccdBiknwsNFEdI73jTzcCs=; b=eTHnlh9b1d6J4Ug2gFpvcugjjtiS/BAfCMbLiDSBZ6vTlI11pHfQb0EFlht8FN2PtW Z+kjtqrSM9cAmKUH7Z2EBZSjfH3P5jTtn7LIDM/17P1b5lzwVQ8OVUsco6Grlh+Qo382 ams69uW0tVbYisZIyp+Hu5uHB/wv7/fVZqS6SlZqILxeH7SF0DfiPl1ABLi93Tax1962 dqGJiQ386dzE17riYgLpG3DnbGmU3exl6eqzcF+hdOE01qUEVyOFJlxrqKAuErRYRO3R ZJUtRZnuVBwd9im03TwkqYfPCiQC+1Noxzr75Ur1oQnyjcK+jq3gUHog6b9zvr2D64cI hAWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696877171; x=1697481971; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NWPaEOfTcKfIdopVs6Tx+ccdBiknwsNFEdI73jTzcCs=; b=cEEHMgDbGhnzHQ6tFb807Ae1pu0GxFZPrYx3hAtgllhEVDNCfg/UnjRsikPF5i9Jq7 sMtRGFEgOObDWFvtjul+N1Iwvcr61tbHBL3B4zanFFj/8hrWt/MRaEu8nh6Omb0g0sN3 CR465P2iaJ0HrWhPgncqO3P1HyolCzN2b987LBVVDwiBr7Q5AL44RtGET7AVL6qjec3s F68T5Xv0sVLGIJIf4hzN2C+guMSId/X6FsblW2B8L8FlrCTYomXnyN7CupoMKIUCO9TB eD7aGhcVp/VUZOj2o52Ph6CYa+5UQe9gAHvWI0MopM7OO2M/qP2e5kc0HpbPyg6Daiky OMCA== X-Gm-Message-State: AOJu0Yxn8650Lkj7DCNERPNOokgkARU1z0cWHo7uFfVZ6pD83GM4Si0p pdMT9mggQ41JilNnJxNLuIeTzydlUDWfJHkLPI0= X-Google-Smtp-Source: AGHT+IGefKBjZL8Wf5x88qcIA3A9vjwd+FkeC3qnQoYxNuVSAJqRR1giDRyOXbJSGxDC0ql3PHn5yQ== X-Received: by 2002:a5b:64c:0:b0:d9a:42b6:5d9d with SMTP id o12-20020a5b064c000000b00d9a42b65d9dmr1050320ybq.30.1696877170973; Mon, 09 Oct 2023 11:46:10 -0700 (PDT) Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id w66-20020a25df45000000b00babcd913630sm218304ybg.3.2023.10.09.11.46.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Oct 2023 11:46:10 -0700 (PDT) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-5a7ac4c3666so6781167b3.3; Mon, 09 Oct 2023 11:46:10 -0700 (PDT) X-Received: by 2002:a0d:eb0b:0:b0:59f:4ef0:b4b6 with SMTP id u11-20020a0deb0b000000b0059f4ef0b4b6mr17023419ywe.26.1696877170097; Mon, 09 Oct 2023 11:46:10 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 From: Tomek CEDRO Date: Mon, 9 Oct 2023 20:45:58 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: cad/BambuStudio misc/OpenVDB cad/PrusaSlicer OpenEXR 3.x + Imath To: yuri@freebsd.org, teodorsigaev@gmail.com Cc: freebsd-ports Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112d:from]; BLOCKLISTDE_FAIL(0.00)[209.85.128.174:server fail,2607:f8b0:4864:20::112d:server fail]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; FREEMAIL_TO(0.00)[freebsd.org,gmail.com]; DKIM_TRACE(0.00)[cedro.info:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[cedro.info]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4S47KH6TkZz4QXC Hello World :-) I am porting BambuStudio a 3D Print software to FreeBSD [1]. It uses PrusaSlicer library as backend. This depends on OpenVDB that yet depends on the OpenEXR. Changes in OpenEXR 3.x obsoletes IlmBase and puts some components of OpenEXR 2.x + IlmBase to OpenEXR 3.x + Imath [2]. This blocks build of BambuStudio as upstream of OpenVDB [3] and PrusaSlicer [4] still depends on IlmBase and requires update to OpenEXR 3.x + Imath. I can see that our Ports already have OpenEXR 3 and Imath. But I am not familiar with internals of OpenVDB, OpenEXR, and PrusaSlicer. I have already reported problem to the upstreams [1][3][4]. The best sutiation would be to patch the upstreams. So far I can see that ports use local patches (lots of them for PrusaSlicer). I am planning to provide port specific patches to the upstream as an example to enable out-of-the-box build on FreeBSD. PrusaSlicer library is a submodule of BambuStudio and will require flawless unpatched build. If anyone is interested in updating OpenVDB and PrusaSlicer upstream to build on FreeBSD or have comments on what (not) to do here then any hints are welcome :-) Thank you for your time :-) Tomek [1] https://github.com/bambulab/BambuStudio/issues/2606 [2] https://openexr.com/en/latest/PortingGuide.html?highlight=ilmbase [3] https://github.com/AcademySoftwareFoundation/openvdb/issues/1541 [4] https://github.com/prusa3d/PrusaSlicer/issues/11444 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info