Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > f3d18286edea62dbae9867ab3593eb8d > files > 22

python3-3.7.6-1.mga7.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.5/Misc/python-config.sh.in
===================================================================
--- a/Misc/python-config.sh.in	2019-10-15 00:32:36.000000000 +0200
+++ b/Misc/python-config.sh.in	2019-11-01 10:08:39.978231907 +0100
@@ -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"