[packman] Mesa-libva compiled with H.264 and HEVC support for Leap 16.0

Giacomo Comes gcomes at gmx.com
Mon Dec 8 04:19:45 CET 2025


On Sat, Dec 06, 2025 at 05:39:39PM +0100, Olaf Hering wrote:
> Fri, 05 Dec 2025 13:26:40 +0200 "Silviu Marin-Caea" <silviumc at fastmail.fm>:
> 
> > Will there be any for SLE16?
> 
> The Mesa variant included in 16.0 does not support this feature.
> You may need to open an issue at bugzilla.suse.com so that someone can work on it.
 
There is nothing wrong in the Mesa package for Leap 16.0
It builds on my machine with the video codes enabled just fine.
I can also build it on openSUSE's obs.
The issue appears to be with packman's obs.
There the build process fails with the error message:
  /usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found
   Unable to generate bindings: clang diagnosed error: /usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found
The build process does not find the include file "cassert".
Such file is present in the package libstdc++6-devel-gcc13 which is
loaded in the build environmetn. However on packam, it is not found
while building Mesa.
It is possible to use a workaround to fix the issue.
In Mesa.spec chenge the lines:
  %ifarch %ix86
              -Dcpp_args="$(echo %{optflags}|sed 's/-flto=auto//')"
  %else
              -Dcpp_args="%{optflags}"
  %endif
to:
  %ifarch %ix86
              -Dcpp_args="$(echo %{optflags}|sed 's/-flto=auto//')"
  %else
              -Dcpp_args="%{optflags} -I%{_includedir}/c++/13 -I%{_includedir}/c++/13/x86_64-suse-linux"
  %endif
With that you can build successfully Mesa on packam's obs.
Look at https://pmbs.links2linux.de/package/show/home:gcomes.pmbs/A_16.0-Mesa
for a working example.

Giacomo




More information about the Packman mailing list