Skip to content

Commit ab891f5

Browse files
authored
Merge pull request #72 from lumag/mesa
Add mesa snapshot overlay
2 parents 95a5a9b + bdb399b commit ab891f5

File tree

5 files changed

+903
-2
lines changed

5 files changed

+903
-2
lines changed

.github/workflows/static-checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
run: |
6262
# Run shellcheck against all files outside .git/ that `file` reports
6363
# as text/x-shellscript
64+
#
65+
# Ignore the double quoting warning, script authors have better
66+
# knowledge of variable contents.
67+
export SHELLCHECK_OPTS="-e SC2086"
6468
find . -path ./.git -prune -o -print0 | \
6569
xargs -0n1 sh -c 'test "$(file --brief --mime-type "$1")" = "text/x-shellscript" && printf "%s\000" "$1"' -- | \
6670
xargs -0t shellcheck
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
# shellcheck disable=SC2153 # DSC_FILE is guaranteed to be defined by build-deb.py
11+
DEB_FILE=${DSC_FILE%%.dsc}.debian.tar.xz
12+
ORIG_FILE=$(echo ${DSC_FILE} | sed -e 's/-.*/.orig.tar.xz/')
13+
14+
rm -rf mesa
15+
git clone --depth 1 https://gitlab.freedesktop.org/mesa/mesa
16+
17+
cd mesa
18+
git fetch --depth 1 origin ${COMMIT##origin/}
19+
20+
date=$(git log -1 --format=%cd --date=format:%Y%m%d ${COMMIT})
21+
subject=$(git log -1 --format="%h (\"%s\")" ${COMMIT})
22+
version=25.2.0~git${date}
23+
24+
rm -rf ../mesa-${version}
25+
mkdir ../mesa-${version}
26+
git archive --format=tar HEAD | tar x -C ../mesa-${version}
27+
28+
cd ../mesa-${version}
29+
30+
rm -rf debian
31+
tar xJf ${DEB_FILE}
32+
33+
cat >> debian/changelog.tmp << EOF
34+
mesa (${version}-0qcom1) testing; urgency=medium
35+
36+
* Build git version from ${date}, commit ${subject}
37+
- d/libegl-mesa0.symbols: include GL interop symbols into, exported by
38+
libEGL_mesa.so.0
39+
- d/p/etnaviv-add-support-for-texelfetch.patch: drop, applied upstream
40+
- debian/patches/path_max.diff: refresh
41+
- d/rules: dropped removal of mme_{fermi,tu104}_sim_hw_test
42+
- pull in NVK dependency, librust-rustc-hash-2-dev
43+
- opt-in and enable several OpenCL drivers by default: asahi, freedreno and
44+
radeonsi
45+
* Drop support for features removed upstream:
46+
- XA tracker, dropped packages: libxatracker2, libxatracker-dev.
47+
- D3D9 tracker, dropped packages libd3dadapter9-mesa,
48+
libd3dadapter9-mesa-dev.
49+
- Clover, removed clover files from d/mesa-opencl-icd.install.
50+
* Backport to trixie:
51+
- Build with LLVM 19 since LLVM 20 is not available in trixie.
52+
- d/control: regenerate
53+
* Feature patches:
54+
- d/p/35316.patch: freedreno: Add sampling support for RGB/BGR
55+
24-bit component texture formats.
56+
57+
-- Dmitry Baryshkov <[email protected]> Wed, 11 Jun 2025 14:58:50 +0300
58+
59+
EOF
60+
cat debian/changelog >> debian/changelog.tmp
61+
mv debian/changelog.tmp debian/changelog
62+
63+
# orig.tar.xz generation skips all .git* files, drop them from the source dir too.
64+
rm -rf .git*
65+
66+
debian/rules regen_control
67+
debian/rules clean
68+
debian/rules gentarball
69+
70+
rm -rf ../mesa
71+
72+
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)