On 2025-07-07 23:16, Cristian Le via devel wrote:

On July 8, 2025 6:16:21 AM GMT+02:00, Luya Tshimbalanga<l...@fedoraproject.org> 
wrote:
Hello team,

Upstream luxcore made a change to their 2.10 version release requiring a new 
luxcoredeps dependencies via conan build manager. Can someone help to 
effectively build a packaged version?
Just ignore the luxcoredeps. You luxcore itself should work just fine using the 
`find_package` commands [1]. You unfortunately have to track those manually.

It seems like luxcore has a hard dependencies with luxcoredeps hence the following failure:

'''

LuxCore Dependencies - Required version: 1.0.0
-- Configuring incomplete, errors occurred!
CMake Error at CMakeLists.txt:65 (IF):
  if given arguments:

    "NOT" "1.0.0" "VERSION_EQUAL"

  Unknown arguments specified
'''

 Maybe removing that luxcoredeps?

I attached luxcorerender.spec for reference.


Maybe we could dig deep into the conan ecosystem and find ways to mirror the 
dependencies like PyPI, but I don't know of efforts of working on that.

[1]:https://github.com/search?q=repo%3ALuxCoreRender%2FLuxCore%20find_package&type=code
Hopefully someone will figure out as the documentation is quite scarce.

--
Luya Tshimbalanga
Fedora Design Team
Fedora Design Suite maintainer

%undefine __cmake_in_source_build

Name:           luxcorerender
Version:        2.10.0
Release:        %autorelease
Summary:        Physically based unbiased rendering system

License:        Apache-2.0
URL:            https://luxcorerender.org/
Source0:        https://github.com/LuxCoreRender/LuxCore/archive/refs/tags/wheels-v%{version}.tar.gz
Source1:        https://github.com/LuxCoreRender/BlendLuxCore/archive/refs/tags/v%{version}.tar.gz
Source3:        org.%{name}.blendluxcore.metainfo.xml

# Essential system integration patch
#Patch3:         LuxCore-system-bcd.patch

ExclusiveArch:  x86_64

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  conan
BuildRequires:  pybind11-devel
BuildRequires:  blender-rpm-macros

# Core rendering dependencies
BuildRequires:  bcd-devel
BuildRequires:  embree3-devel
BuildRequires:  openvdb-devel
BuildRequires:  oidn-devel
BuildRequires:  pkgconfig(tbb)
BuildRequires:  pkgconfig(glfw3)
BuildRequires:  cmake(OpenImageIO)
BuildRequires:  cmake(OpenEXR)

%description
LuxCoreRender implements state-of-the-art light transport algorithms for 
photorealistic rendering. Features hybrid CPU/GPU acceleration, 
spectral rendering, and advanced material modeling.

%package core
Summary:        Core runtime components
Obsoletes:      LuxRender-core < 2.0

%description core
Contains the main rendering engine and essential libraries for scene processing 
and light simulation.

%package -n blender-%{name}
Summary:        Blender 4.2+ integration plugin
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description -n blender-%{name}
Blender extension for exporting scenes and materials to LuxCore Renderer. 
Supports Cycles material conversion and interactive rendering.

%package devel
Summary:        Development headers and libraries
Requires:       %{name}-core%{?_isa} = %{version}-%{release}

%description devel
Header files and build configuration for developing LuxCore-based applications.

%prep
%autosetup -p1 -a1 -n LuxCore-wheels-v%{version}

%build
%cmake \
    -DBUILD_SHARED_LIBS=ON \
    -DCMAKE_CXX_STANDARD=20 \
    -DCONAN_PROFILE=default \
    -DPYLUXCORE_BINDINGS=ON
%cmake_build

%install
%cmake_install
mkdir -p %{buildroot}%{blender_extensions}/%{name}
cp -a BlendLuxCore-blendluxcore_v%{version}/* %{buildroot}%{blender_extensions}/%{name}
install -Dpm 644 %{SOURCE3} %{buildroot}%{_metainfodir}/org.%{name}.blendluxcore.metainfo.xml

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.xml

%files
%license LICENSE
%doc README.md AUTHORS

%files core
%{_bindir}/luxcore*
%{_libdir}/liblux*.so.*

%files -n blender-%{name}
%{_metainfodir}/org.%{name}.*.xml
/%{blender_extensions}/%{name}

%files devel
%{_includedir}/{luxcore,luxrays}
%{_libdir}/pkgconfig/*.pc

%changelog
%autochangelog

Attachment: OpenPGP_0x529982C2682F5484.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to