Skip to content

Commit

Permalink
refactor: add libglvnd as dependency for mesa (#33540)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechka authored Nov 8, 2024
1 parent 7871c2b commit dd40120
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 22 deletions.
5 changes: 3 additions & 2 deletions firefox.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: firefox
version: 132.0.1
epoch: 0
epoch: 1
description: Firefox web browser
copyright:
- license: GPL-3.0-only AND LGPL-2.1-only AND LGPL-3.0-only AND MPL-2.0
Expand All @@ -10,7 +10,8 @@ package:
no-provides: true
dependencies:
runtime:
- mesa-gl
- mesa
- mesa-glx
- pciutils-libs

vars:
Expand Down
4 changes: 2 additions & 2 deletions glew.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: glew
version: 2.2.0
epoch: 1
epoch: 2
description: "A cross-platform C/C++ extension loading library"
copyright:
- license: GPL-2.0-or-later
Expand All @@ -17,7 +17,7 @@ environment:
- libxi-dev
- libxmu-dev
- mesa-dev
- mesa-gl
- mesa-glx
- mesa-libgallium
- openssf-compiler-options
- wolfi-base
Expand Down
5 changes: 2 additions & 3 deletions gst-plugins-bad.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: gst-plugins-bad
version: 1.24.9
epoch: 0
epoch: 1
description: GStreamer streaming media framework bad plug-ins
copyright:
- license: GPL-2.0-or-later AND LGPL-2.0-or-later
Expand Down Expand Up @@ -34,9 +34,8 @@ environment:
- libxv-dev
- mesa-dev
- mesa-gbm
- mesa-gl
- mesa-glapi
- mesa-gles
- mesa-glx
- mesa-libgallium
- meson
- openssf-compiler-options
Expand Down
5 changes: 2 additions & 3 deletions gst-plugins-base.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package:
name: gst-plugins-base
version: 1.24.9
epoch: 0
epoch: 2
description: GStreamer streaming media framework base plug-ins
copyright:
- license: GPL-2.0-or-later AND LGPL-2.0-or-later
Expand Down Expand Up @@ -34,9 +34,8 @@ environment:
- mesa-dev
- mesa-egl
- mesa-gbm
- mesa-gl
- mesa-glapi
- mesa-gles
- mesa-glx
- mesa-libgallium
- meson
- openssf-compiler-options
Expand Down
35 changes: 29 additions & 6 deletions mesa.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package:
name: mesa
version: 24.2.6
epoch: 1
epoch: 2
description: Mesa DRI OpenGL library
copyright:
- license: MIT AND SGI-B-2.0 AND BSL-1.0
dependencies:
runtime:
- libglvnd

vars:
llvm-ver: 19
Expand All @@ -25,6 +28,7 @@ environment:
- gettext
- glslang-dev
- libdrm-dev
- libglvnd-dev
- libtool
- libva
- libva-dev
Expand Down Expand Up @@ -84,6 +88,7 @@ pipeline:
-Dvulkan-layers=$_vulkan_layers \
-Dplatforms=x11,wayland \
-Dllvm=enabled \
-Dglvnd=true \
-Dshared-llvm=enabled \
-Dshared-glapi=enabled \
-Dgbm=enabled \
Expand Down Expand Up @@ -113,28 +118,46 @@ pipeline:
data:
- name: libs
items:
gles: libGLES*
egl: libEGL
gl: libGL
egl: libEGL_mesa
glx: libGLX_mesa
glapi: libglapi
xatracker: libxatracker*
osmesa: libOSMesa
gbm: libgbm
libd3dadapter9: d3d/d3dadapter9
libgallium: libgallium-${{package.version}}

- name: transitive
items:
gl: ""
gles: ""

subpackages:
- range: libs
name: mesa-${{range.key}}
description: mesa ${{range.key}}
dependencies:
runtime:
- libglvnd
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/lib
mv ${{targets.destdir}}/usr/lib/${{range.value}}.so* ${{targets.subpkgdir}}/usr/lib
- range: transitive
name: mesa-${{range.key}}
description: mesa transitive package for ${{range.key}}
dependencies:
runtime:
- mesa
- mesa-glx

- name: mesa-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- libglvnd-dev
description: mesa dev
test:
pipeline:
Expand All @@ -145,12 +168,12 @@ test:
contents:
packages:
- gcc
- libglvnd-dev
- libx11-dev
- libxext-dev
- mesa-dev
- mesa
- wget
- glibc-dev
- mesa-gl
pipeline:
- name: Compile and run glxgears
runs: |
Expand Down
5 changes: 2 additions & 3 deletions qt5-qtbase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package:
name: qt5-qtbase
version: 5.15.15
epoch: 3
epoch: 4
description: Qt5 - QtBase components
copyright:
- license: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
Expand Down Expand Up @@ -48,8 +48,7 @@ environment:
- mesa
- mesa-dev
- mesa-egl
- mesa-gl
- mesa-gles
- mesa-glx
- mtdev-dev
- openssf-compiler-options
- openssh-client
Expand Down
5 changes: 2 additions & 3 deletions qt6-qtbase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package:
name: qt6-qtbase
version: 6.8.0
epoch: 2
epoch: 3
description: qt
copyright:
- license: LGPL-3.0-or-later
Expand Down Expand Up @@ -43,8 +43,7 @@ environment:
- mesa
- mesa-dev
- mesa-egl
- mesa-gl
- mesa-gles
- mesa-glx
- nodejs
- openssf-compiler-options
- perl
Expand Down

0 comments on commit dd40120

Please sign in to comment.