From b655a8fb4174515d6546e605224349114d3a32c8 Mon Sep 17 00:00:00 2001 From: RJ Sampson Date: Sat, 12 Oct 2024 07:33:20 -0600 Subject: [PATCH] fix(gtk-3): Compile gschemas post-install and add subpackage gschemas need to be compiled post-install otherwise they will not be found at runtime Additionally, add a subpackage containing the compiled schemas as post-install triggers are not ran during image assembly Signed-off-by: RJ Sampson --- gtk-3.yaml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/gtk-3.yaml b/gtk-3.yaml index 535488f7cea..9d3bae72ba4 100644 --- a/gtk-3.yaml +++ b/gtk-3.yaml @@ -1,10 +1,17 @@ package: name: gtk-3 version: 3.24.43 - epoch: 1 + epoch: 2 description: The GTK+ Toolkit (v3) copyright: - license: LGPL-2.1-or-later + scriptlets: + post-install: | + #!/bin/sh + glib-compile-schemas /usr/share/glib-2.0/schemas + +vars: + gschemas: "usr/share/glib-2.0/schemas" # creates a new var that contains only the major and minor version to be used in the fetch URL # e.g. 2.46.0 will create a new var mangled-package-version=2.46 @@ -99,7 +106,7 @@ pipeline: - uses: strip subpackages: - - name: gtk-3-dev + - name: ${{package.name}}-dev pipeline: - uses: split/dev dependencies: @@ -116,16 +123,27 @@ subpackages: - wayland-dev description: gtk+3 dev - - name: gtk-3-doc + - name: ${{package.name}}-doc pipeline: - uses: split/manpages description: gtk+3 manpages - - name: gtk-3-lang + - name: ${{package.name}}-lang pipeline: - uses: split/locales description: gtk+3 locales + - name: ${{package.name}}-compiled-gschemas + description: Compiled gschemas for GTK 3 + dependencies: + runtime: + - ${{package.name}} + pipeline: + - runs: | + glib-compile-schemas "${{targets.destdir}}/${{vars.gschemas}}" + install -Dm755 "${{targets.destdir}}/${{vars.gschemas}}/gschemas.compiled" "${{targets.contextdir}}/${{vars.gschemas}}/gschemas.compiled" + rm "${{targets.destdir}}/${{vars.gschemas}}/gschemas.compiled" + update: enabled: true release-monitor: