Skip to content

Commit 2c4afb8

Browse files
committed
mesa-quilt: ignore user configuration file when applying MESA patches.
1 parent 10871bb commit 2c4afb8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

mesa-quilt

+10-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
# Free Software Foundation, Inc.,
1818
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
1919

20+
set -x
21+
2022
d=. ; while [ ! -d "$d/nx-X11/extras" ] && [ "$(readlink -e "$d")" != "/" ]; do d="$d/.."; done
2123

2224
# only continue, if in nx-libs tree
@@ -36,7 +38,14 @@ if [ -d "$d/nx-X11/extras" ]; then
3638

3739
cd "$d/nx-X11/extras/Mesa/"
3840

39-
quilt "$@"
41+
# "--quiltrc -" disables reading global or user-local configuration files.
42+
# These can override the environment settings if the quiltrc is not
43+
# carefully crafted.
44+
# For instance, it should set variables only if they aren't already
45+
# provided through the environment, but since the quiltrc file is
46+
# actually sourced as a shell script, there's no way to assume that
47+
# a user's quiltrc is "sane".
48+
quilt --quiltrc - "$@"
4049

4150
cd - 1> /dev/null
4251

0 commit comments

Comments
 (0)