ports/lang/python39/files/patch-Misc__python-config.sh.in
Wen Heping a18bc2a806 - Repocopy lang/python38 --> lang/python39 and update to 3.9.0
PR:		250160
Submitted by:	wen@(myself)
2020-10-12 13:52:42 +00:00

11 lines
464 B
Bash

--- Misc/python-config.sh.in.orig 2018-07-13 21:07:16 UTC
+++ Misc/python-config.sh.in
@@ -15,7 +15,7 @@ fi
# Returns the actual prefix where this script was installed to.
installed_prefix ()
{
- RESULT=$(dirname $(cd $(dirname "$1") && pwd -P))
+ RESULT=$(dirname $(cd $(dirname $(realpath "$1")) && pwd -P))
if which readlink >/dev/null 2>&1 ; then
if readlink -f "$RESULT" >/dev/null 2>&1; then
RESULT=$(readlink -f "$RESULT")