gfxstream: don't dump genvk.py args to generated files
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Full command lines include full path to the output file, which triggers
reproducibility warnings (e.g. in Yocto builds). Drop the args and print
only a basename of the script used to generate the file.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38875>
This commit is contained in:
Dmitry Baryshkov 2025-11-19 11:36:42 +02:00 committed by Marge Bot
parent ffbe6470a2
commit 4315c28739

View file

@ -285,13 +285,7 @@ def banner_command(argv):
Return a string corresponding to the command, with platform-specific
paths removed."""
def makePosixRelative(someArg):
# Do not use relative for /tmp/ to avoid effects of checkout location
if os.path.exists(someArg) and someArg != "/tmp/":
return str(PurePosixPath(Path(os.path.relpath(someArg))))
return someArg
return ' '.join(map(makePosixRelative, argv))
return os.path.basename(argv[0])
def envGetOrDefault(key, default=None):
if key in os.environ: