Bug 2344533 - blender-rpm-macros doesn't set blender_api
Summary: blender-rpm-macros doesn't set blender_api
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: blender
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Luya Tshimbalanga
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-09 11:45 UTC by Bruno Postle
Modified: 2025-04-10 04:31 UTC (History)
6 users (show)

Fixed In Version: blender-4.4.0-3.fc42 blender-4.2.8-1.fc40 blender-4.4.0-1.fc41
Clone Of:
Environment:
Last Closed: 2025-04-04 08:15:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bruno Postle 2025-02-09 11:45:11 UTC
The macros.blender file has a '@VERSION@' placeholder where a number such as '4.3' is expected (so these macros are not usable in a .spec file):

# cat /usr/lib/rpm/macros.d/macros.blender
%blender_api @VERSION@

%blender_datadir %{_datadir}/blender/%{blender_api}
%blender_libdir %{_libdir}/blender/%{blender_api}
%blender_extensions %{blender_datadir}/scripts/addons_core
%blender_modules %{blender_datadir}/scripts/modules
%blender_preset %{blender_datadir}/scripts/presets

Reproducible: Always

Steps to Reproduce:
# rpm --eval '%{blender_api}'
@VERSION@

# rpm --eval '%{blender_datadir}'
/usr/share/blender/@VERSION@
Actual Results:  
results contain '@VERSION@'

Expected Results:  
results should contain '4.3' instead of '@VERSION@'

Comment 1 Luya Tshimbalanga 2025-03-31 23:11:11 UTC
We found the culprit on this line:
"sed -e 's/@VERSION@/%{blender_api}/g' %{buildroot}%{macrosdir}/macros.%{name}"

which should be

"sed -i 's/@VERSION@/%{blender_api}/g' %{buildroot}%{macrosdir}/macros.%{name}".

Comment 2 Fedora Update System 2025-04-02 00:02:10 UTC
FEDORA-2025-13d9605fa0 (blender-4.4.0-2.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-13d9605fa0

Comment 3 Fedora Update System 2025-04-02 00:02:31 UTC
FEDORA-2025-7d46c08fda (blender-4.2.8-1.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7d46c08fda

Comment 4 Fedora Update System 2025-04-02 01:13:57 UTC
FEDORA-2025-13d9605fa0 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-13d9605fa0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-13d9605fa0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-04-02 02:30:44 UTC
FEDORA-2025-7d46c08fda has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-7d46c08fda`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-7d46c08fda

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-04-02 04:12:07 UTC
FEDORA-2025-4a498908a2 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-4a498908a2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-4a498908a2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2025-04-03 03:42:55 UTC
FEDORA-2025-13d9605fa0 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-13d9605fa0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-13d9605fa0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-04-04 08:15:45 UTC
FEDORA-2025-13d9605fa0 (blender-4.4.0-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2025-04-10 02:45:51 UTC
FEDORA-2025-7d46c08fda (blender-4.2.8-1.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-04-10 04:31:04 UTC
FEDORA-2025-4a498908a2 (blender-4.4.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.