Bug 2426269

Summary: libaom-devel is missing static library
Product: [Fedora] Fedora Reporter: Miloš Komarčević <kmilos>
Component: aomAssignee: Multimedia SIG <multimedia-sig>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: decathorpe, eclipseo, multimedia-sig, ngompa13
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: aom-3.13.1-4.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-05 21:57:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2425867    

Description Miloš Komarčević 2025-12-30 14:50:03 UTC
The aom recipe explicitly removes the static library from packaging for some reason (there is no comment as to why?): https://src.fedoraproject.org/rpms/aom/blob/rawhide/f/aom.spec#_111

This now creating a problem for e.g. libheif which in 1.21.0 switched to using the cmake config files aom supplies, which define the AOM::aom_static target missing the actual artifact

CMake Error at /usr/lib64/cmake/AOM/AOMTargets.cmake:107 (message):
  The imported target "AOM::aom_static" references the file
     "/usr/lib64/libaom.a"
  but this file does not exist.  Possible reasons include:
  * The file was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and contained
     "/usr/lib64/cmake/AOM/AOMTargets.cmake"
  but not all the files it references.
Call Stack (most recent call first):
  /usr/lib64/cmake/AOM/AOMConfig.cmake:43 (include)
  cmake/modules/FindAOM.cmake:1 (find_package)
  CMakeLists.txt:224 (find_package)
-- Configuring incomplete, errors occurred!

Reproducible: Always

Comment 1 Fabio Valentini 2025-12-30 15:20:48 UTC
> (there is no comment as to why?)

See Packaging Guidelines:

> In general, packagers SHOULD NOT ship static libraries.

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_packaging_static_libraries

So not shipping the static library is the correct thing to do, it just looks like the CMake files also need an adjustment for this.

Comment 2 Miloš Komarčević 2025-12-30 16:25:50 UTC
Ah, ok, thanks. So the exported CMake config needs to be fixed instead indeed.

Comment 3 Miloš Komarčević 2025-12-30 17:20:59 UTC
I think dropping aom_static from here:

https://aomedia.googlesource.com/aom/+/refs/tags/v3.13.1/build/cmake/aom_install.cmake#82

should handle both the CMake config file and skip installing the actual artifact so the "rm" workaround can also be dropped from the spec file.

Could also remove the whole block defining AOM_STATIC_LIBRARIES here:

https://aomedia.googlesource.com/aom/+/refs/tags/v3.13.1/build/cmake/config.cmake.in#13

Comment 4 Dominik 'Rathann' Mierzejewski 2026-01-02 14:25:43 UTC
FYI I'm working on this because this breaks libheif update.

Comment 5 Miloš Komarčević 2026-01-03 09:17:46 UTC
Thanks for working on this.

I really think dropping the AOM_STATIC_LIBRARIES variable as well would be formally correct.

Comment 6 Fedora Update System 2026-01-03 09:38:31 UTC
FEDORA-2026-f6c05db0d7 (aom-3.13.1-3.fc44 and libheif-1.21.1-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f6c05db0d7

Comment 7 Fedora Update System 2026-01-03 16:23:30 UTC
FEDORA-2026-f6c05db0d7 (aom-3.13.1-3.fc44 and libheif-1.21.1-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Dominik 'Rathann' Mierzejewski 2026-01-05 14:41:13 UTC
(In reply to Miloš Komarčević from comment #5)
> Thanks for working on this.
> 
> I really think dropping the AOM_STATIC_LIBRARIES variable as well would be
> formally correct.

Thanks for the tip, new build with that removed will be released shortly.

Comment 9 Dominik 'Rathann' Mierzejewski 2026-01-05 15:40:30 UTC
FEDORA-2026-653fbb5876 (aom-3.13.1-4.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-653fbb5876

Comment 10 Dominik 'Rathann' Mierzejewski 2026-01-05 21:57:28 UTC
FEDORA-2026-653fbb5876 (aom-3.13.1-4.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Miloš Komarčević 2026-01-06 06:54:00 UTC
Thanks, looks good!