diff options
author | fanquake <fanquake@gmail.com> | 2020-08-18 15:12:56 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-08-25 14:37:45 +0800 |
commit | 3aaa39d436aa32489aa136d6b3d714220535ec1e (patch) | |
tree | ceda346995a180c57ec4e08d9aea2509827d3f9a /depends/patches/qt/dont_hardcode_pwd.patch | |
parent | 9d440f4e11f7d610f3bcf1fb587d71ed2581a6c1 (diff) |
build: replace pwd sed in qt package with a patch
Diffstat (limited to 'depends/patches/qt/dont_hardcode_pwd.patch')
-rw-r--r-- | depends/patches/qt/dont_hardcode_pwd.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/depends/patches/qt/dont_hardcode_pwd.patch b/depends/patches/qt/dont_hardcode_pwd.patch new file mode 100644 index 0000000000..a74e9cb098 --- /dev/null +++ b/depends/patches/qt/dont_hardcode_pwd.patch @@ -0,0 +1,27 @@ +commit 0e953866fc4672486e29e1ba6d83b4207e7b2f0b +Author: fanquake <fanquake@gmail.com> +Date: Tue Aug 18 15:09:06 2020 +0800 + + Don't hardcode pwd path + + Let a man use his builtins if he wants to! Also, removes the unnecessary + assumption that pwd lives under /bin/pwd. + + See #15581. + +diff --git a/qtbase/configure b/qtbase/configure +index 08b49a8d..faea5b55 100755 +--- a/qtbase/configure ++++ b/qtbase/configure +@@ -36,9 +36,9 @@ + relconf=`basename $0` + # the directory of this script is the "source tree" + relpath=`dirname $0` +-relpath=`(cd "$relpath"; /bin/pwd)` ++relpath=`(cd "$relpath"; pwd)` + # the current directory is the "build tree" or "object tree" +-outpath=`/bin/pwd` ++outpath=`pwd` + + WHICH="which" + |