aboutsummaryrefslogtreecommitdiff
path: root/mesa-quilt
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-12-19 11:32:54 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-19 11:32:54 +0100
commit2c4afb84effbbdf7451ab9de0e1fb891165c834a (patch)
treef813b07fd780f9681a2c80d67858127f9b9fe996 /mesa-quilt
parent10871bba071d8358eb5917daf986800178933419 (diff)
downloadnx-libs-2c4afb84effbbdf7451ab9de0e1fb891165c834a.tar.gz
nx-libs-2c4afb84effbbdf7451ab9de0e1fb891165c834a.tar.bz2
nx-libs-2c4afb84effbbdf7451ab9de0e1fb891165c834a.zip
mesa-quilt: ignore user configuration file when applying MESA patches.
Diffstat (limited to 'mesa-quilt')
-rwxr-xr-xmesa-quilt11
1 files changed, 10 insertions, 1 deletions
diff --git a/mesa-quilt b/mesa-quilt
index 2aec761a5..d0764c119 100755
--- a/mesa-quilt
+++ b/mesa-quilt
@@ -17,6 +17,8 @@
# Free Software Foundation, Inc.,
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+set -x
+
d=. ; while [ ! -d "$d/nx-X11/extras" ] && [ "$(readlink -e "$d")" != "/" ]; do d="$d/.."; done
# only continue, if in nx-libs tree
@@ -36,7 +38,14 @@ if [ -d "$d/nx-X11/extras" ]; then
cd "$d/nx-X11/extras/Mesa/"
- quilt "$@"
+ # "--quiltrc -" disables reading global or user-local configuration files.
+ # These can override the environment settings if the quiltrc is not
+ # carefully crafted.
+ # For instance, it should set variables only if they aren't already
+ # provided through the environment, but since the quiltrc file is
+ # actually sourced as a shell script, there's no way to assume that
+ # a user's quiltrc is "sane".
+ quilt --quiltrc - "$@"
cd - 1> /dev/null