Skip to content

Commit ddf2221

Browse files
committed
overlay-debs: add Mesa snapshot
In order to evaluate upstream Mesa on the RB1 board, package the snapshot of the Mesa development tree. This package will go away once Mesa 25.2 gets released and enters Debian experimental or unstable. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent bfcd4d9 commit ddf2221

File tree

3 files changed

+574
-0
lines changed

3 files changed

+574
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#! /bin/sh
2+
#
3+
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
6+
COMMIT=${COMMIT:-origin/main}
7+
8+
set -e
9+
10+
DEB_FILE=${DSC_FILE%%.dsc}.debian.tar.xz
11+
ORIG_FILE=$(echo ${DSC_FILE} | sed -e 's/-.*/.orig.tar.xz/')
12+
13+
rm -rf mesa
14+
git clone --depth 1 https://gitlab.freedesktop.org/mesa/mesa
15+
16+
cd mesa
17+
git fetch --depth 1 origin ${COMMIT##origin/}
18+
19+
date=$(git log -1 --format=%cd --date=format:%Y%m%d ${COMMIT})
20+
subject=$(git log -1 --format="%h (\"%s\")" ${COMMIT})
21+
version=25.2.0~git${date}
22+
23+
rm -rf ../mesa-${version}
24+
mkdir ../mesa-${version}
25+
git archive --format=tar HEAD | tar x -C ../mesa-${version}
26+
27+
cd ../mesa-${version}
28+
29+
rm -rf debian
30+
tar xJf ${DEB_FILE}
31+
32+
cat >> debian/changelog.tmp << EOF
33+
mesa (${version}-0qcom1) testing; urgency=medium
34+
35+
* Build git version from ${date}, commit ${subject}
36+
- d/libegl-mesa0.symbols: include GL interop symbols into, exported by
37+
libEGL_mesa.so.0
38+
- d/p/etnaviv-add-support-for-texelfetch.patch: drop, applied upstream
39+
- debian/patches/path_max.diff: refresh
40+
- d/rules: dropped removal of mme_{fermi,tu104}_sim_hw_test
41+
- pull in NVK dependency, librust-rustc-hash-2-dev
42+
* Drop support for features removed upstream:
43+
- XA tracker, dropped packages: libxatracker2, libxatracker-dev.
44+
- D3D9 tracker, dropped packages libd3dadapter9-mesa,
45+
libd3dadapter9-mesa-dev.
46+
- Clover, removed clover files from d/mesa-opencl-icd.install.
47+
* Backport to trixie:
48+
- Build with LLVM 19 since LLVM 20 is not available in trixie.
49+
- d/control: regenerate
50+
51+
-- Dmitry Baryshkov <[email protected]> Wed, 11 Jun 2025 14:58:50 +0300
52+
53+
EOF
54+
cat debian/changelog >> debian/changelog.tmp
55+
mv debian/changelog.tmp debian/changelog
56+
57+
# orig.tar.xz generation skips all .git* files, drop them from the source dir too.
58+
rm -rf .git*
59+
60+
debian/rules regen_control
61+
debian/rules clean
62+
debian/rules gentarball
63+
64+
rm -rf ../mesa
65+
66+
rm ${DSC_FILE} ${DEB_FILE} ${ORIG_FILE}*
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dsc_url: "https://snapshot.debian.org/archive/debian/20250519T203618Z/pool/main/m/mesa/mesa_25.1.0-1.dsc"
2+
dsc_sha256sum: "d06c1b0ee300f096de2ac59a2e9583349ca79322612f4502baa5e78ff0be4290"
3+
debdiff_file: "mesa_25.2.0.debdiff"
4+
script: mesa-snapshot.sh
5+
suite: trixie
6+
env:
7+
COMMIT: 7fd99c88b9cd5c0c8c1cb3e92383acac5cb8220b

0 commit comments

Comments
 (0)