Sophie

Sophie

distrib > Mageia > 8 > aarch64 > by-pkgid > 0884af4350917707d81395e6624528bd > files > 14

python3-3.8.16-1.mga8.src.rpm

Author: Stig-Ørjan Smelror <smelror@gmail.com>
Date: 2018-02-23
Subject: Encountered CMP0004 error
Description: While compiling ecFlow with Python 3 support I encountered
a CMP0004 error:

Target "xxxx" links to item " -L/usr/lib64 -lpython3" which has
  leading or trailing whitespace.  This is now an error according to policy
  CMP0004.

The cause of this error is that $LIBPLUSED is not always set.
The fix is to move this to the second place.

Index: Python-3.7.4/Misc/python-config.sh.in
===================================================================
--- a/Misc/python-config.sh.in	2019-07-08 20:03:50.000000000 +0200
+++ b/Misc/python-config.sh.in	2019-07-09 18:43:29.420421542 +0200
@@ -92,7 +92,7 @@ do
             if [ "$PY_ENABLE_SHARED" = "0" ] ; then
                 LIBPLUSED="-L$LIBPL"
             fi
-            echo "$LIBPLUSED -L$libdir $LIBS"
+            echo "-L$libdir $LIBPLUSED $LIBS"
         ;;
         --extension-suffix)
             echo "$SO"