Skip to content

Commit b29bf1f

Browse files
committed
umpf: special-case version fixup for Mesa >= 24.2.0
libgallium is versioned with project_version, so patch PACKAGE_VERSION instead. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
1 parent b10a8fb commit b29bf1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

umpf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,6 +1196,11 @@ rebase_end() {
11961196
# the project version is used in library names
11971197
sed -i "s/@VCS_TAG@/\0.${version}/" src/version/version.h.in &&
11981198
git add src/version/version.h.in
1199+
elif grep -sq "'gallium-@0@'.format(meson.project_version())" src/gallium/targets/dri/meson.build; then
1200+
# for Mesa >= 24.20 fixup PACKAGE_VERSION
1201+
# the project version is used in library names
1202+
sed -i "s/-DPACKAGE_VERSION=[^,]*/\0 + '.${version}'/" meson.build &&
1203+
git add meson.build
11991204
elif [ -e "${meson_build}" ]; then
12001205
case "${project}" in
12011206
libcamera)

0 commit comments

Comments
 (0)