Packaging OpenStack client fails due to non-standard header
Gerard Braad
me at gbraad.nl
Tue Dec 6 03:33:45 UTC 2016
On Tue, Dec 6, 2016 at 11:14 AM, Gerard Braad <me at gbraad.nl> wrote:
> bash-4.3# cat /usr/include/python3.4m/pyconfig.h
> <snip />
> #include <bits/wordsize.h>
> <snip />
When compiling within the flatpak environment, eg.
flatpak build openstack-client bash
bash-4.3# wget https://pypi.python.org/packages/a7/4c/8e0771a59fd6e55aac993a7cc1b6a0db993f299514c464ae6a1ecf83b31d/netifaces-0.10.5.tar.gz#md5=5b4d1f1310ed279e6df27ef3a9b71519
bash-4.3# tar zxvf netifaces-0.10.5.tar.gz
bash-4.3# cd netifaces-0.10.5
bash-4.3# pip install --user .
will fail... this is because the command that runs does not include
the -I/usr/include
x86_64-unknown-linux-gcc -m64 -march=core2 -mtune=core2 -msse3
-mfpmath=sse -DNDEBUG -fno-inline
--sysroot=/srv/sdkbuilder/work/build/x86_64/freedesktop-sdk-base-1-4/build/x86_64/tmp-glibc/sysroots/qemux86-64
-Wno-unused-result -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -O2 -pipe
-g -feliminate-unused-debug-types -fPIC -DNETIFACES_VERSION=0.10.4
-I/usr/include/python3.4m -c netifaces.c -o
build/temp.linux-x86_64-3.4/netifaces.o
However, in comparison this is not something that is needed on Fedora
(outside flatpak):
$ dnf install python-devel redhat-rpm-config
$ pip install --user .
Processing /home/fedora/netifaces-0.10.5
Installing collected packages: netifaces
Running setup.py install for netifaces ... done
Successfully installed netifaces-0.10.5
So this is likely something specific to the Python install or compiler
toolchain inside the SDK.
regards,
Gerard
--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]
More information about the xdg-app
mailing list