xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 5 22:46:08 UTC 2019


 hw/xfree86/sdksyms.sh |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 6f41bf31051ec915cb4316421d3b7eddfebdd8c6
Author: Ross Burton <ross.burton at intel.com>
Date:   Thu Aug 1 15:24:51 2019 +0100

    sdksyms.sh: don't embed the build path
    
    This script generates a header that has a comment containing the build path for
    no real reason.  As this source can end up deployed on targets in debug packages
    this means there is both potentially sensitive information leakage about the
    build environment, and a source of change for reproducible builds.

diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh
index 39e33711d..bdf47a71a 100755
--- a/hw/xfree86/sdksyms.sh
+++ b/hw/xfree86/sdksyms.sh
@@ -302,13 +302,16 @@ LC_ALL=C
 export LC_ALL
 ${CPP:-cpp} "$@" sdksyms.c > /dev/null || exit $?
 ${CPP:-cpp} "$@" sdksyms.c | ${AWK:-awk} -v topdir=$topdir '
+function basename(file) {
+    sub(".*/", "", file)
+    return file
+}
 BEGIN {
     sdk = 0;
     print("/*");
     print(" * These symbols are referenced to ensure they");
     print(" * will be available in the X Server binary.");
     print(" */");
-    printf("/* topdir=%s */\n", topdir);
     print("_X_HIDDEN void *xorg_symbols[] = {");
 
     printf("sdksyms.c:") > "sdksyms.dep";
@@ -337,7 +340,7 @@ BEGIN {
 	# remove quotes
 	gsub(/"/, "", $3);
 	line = $2;
-	header = $3;
+	header = basename($3);
 	if (! headers[$3]) {
 	    printf(" \\\n  %s", $3) >> "sdksyms.dep";
 	    headers[$3] = 1;


More information about the xorg-commit mailing list