|
| 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}* |
0 commit comments