This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author matthewlweber
Recipients Alex.Willmer, matthewlweber
Date 2017-10-06.13:37:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507297049.36.0.213398074469.issue31713@psf.upfronthosting.co.za>
In-reply-to
Content
Related to https://bugs.python.org/issue22907

If building in a path that starts with /usr, the includedir=$(echo "@includedir@" | sed "s#^$prefix_build#$prefix_real#") assignment in the python-config.sh ends up having the path it processes ran through a path substitution once before this line is executed because the @includedir@ in the python-config.sh.in is set to the string '${prefix}/include'.  ${prefix} is assigned just above includedir in python-config.sh 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 python-config.sh 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.
History
Date User Action Args
2017-10-06 13:37:29matthewlwebersetrecipients: + matthewlweber, Alex.Willmer
2017-10-06 13:37:29matthewlwebersetmessageid: <1507297049.36.0.213398074469.issue31713@psf.upfronthosting.co.za>
2017-10-06 13:37:29matthewlweberlinkissue31713 messages
2017-10-06 13:37:28matthewlwebercreate