On Mon, Jun 17, Richard W.M. Jones wrote:
On Mon, Jun 17, 2013 at 10:08:46AM +0200, Olaf Hering wrote:
> On Mon, Jun 17, Richard W.M. Jones wrote:
>
> > On Sun, Jun 16, 2013 at 02:55:29PM +0200, Olaf Hering wrote:
> > > For me current 1.20 branch fails to build python in SLE11.
> >
> > Does SuSE's python have a pkg-config file?
>
> SLE11 does not have it, but openSUSE 11.4+ has it.
> I think the previous code should be restored as a fallback when the .pc
> files are missing.
TBH it adds a lot of complexity to an already complex and fragile
configure script, which would hardly ever be tested.
Can't either SLE11 be fixed, or else the revert patch carried by SLE11
(the latter is what we are doing for RHEL 5)?
I have added this to the spec file to fix my build failure:
+if ! pkg-config python
+then
+ export PYTHON_LIBS="-lpython`python -c 'import distutils.sysconfig; print
(distutils.sysconfig.get_python_version ());'`"
+ export PYTHON_CFLAGS="-I`python -c 'import distutils.sysconfig; print
(distutils.sysconfig.get_python_inc ());'`"
+fi
Olaf