From 2c4afb84effbbdf7451ab9de0e1fb891165c834a Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Tue, 19 Dec 2017 11:32:54 +0100 Subject: mesa-quilt: ignore user configuration file when applying MESA patches. --- mesa-quilt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3