Title: python3 python-config script generates invalid includes
Type: Stage:
Components: Cross-Build Versions: Python 3.4
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Alex.Willmer, matthewlweber
Priority: normal Keywords: patch

Created on 2017-10-06 13:37 by matthewlweber, last changed 2017-10-06 17:48 by matthewlweber.

File name Uploaded Description Edit matthewlweber, 2017-10-06 17:48
Messages (1)
msg303819 - (view) Author: (matthewlweber) Date: 2017-10-06 13:37
Related to

If building in a path that starts with /usr, the includedir=$(echo "@includedir@" | sed "s#^$prefix_build#$prefix_real#") assignment in the ends up having the path it processes ran through a path substitution once before this line is executed because the @includedir@ in the is set to the string '${prefix}/include'.  ${prefix} is assigned just above includedir in to prefix=$(echo "$prefix_build" | sed "s#^$prefix_build#$prefix_real#")

I believe we need to update the includedir to 

includedir=$(echo "@includedir@")

Or rename the prefix variable in so that there isn't a naming conflict if a string is passed in via @includedir@ with that variable.

Without fixing this you end up with multiple /usr substitutions in the includedir string, each replaced with the real path.  ie resulting in an invalid path.
Date User Action Args
2017-10-06 17:48:03matthewlwebersetfiles: +
keywords: + patch
2017-10-06 13:37:29matthewlwebercreate