Hello community, here is the log from the commit of package libguestfs for openSUSE:Factory checked in at 2017-09-09 20:25:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libguestfs (Old) and /work/SRC/openSUSE:Factory/.libguestfs.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "libguestfs" Sat Sep 9 20:25:57 2017 rev:54 rq:521910 version:1.36.5 Changes: -------- --- /work/SRC/openSUSE:Factory/libguestfs/libguestfs.changes 2017-09-04 12:35:03.946115530 +0200 +++ /work/SRC/openSUSE:Factory/.libguestfs.new/libguestfs.changes 2017-09-09 20:25:57.886910697 +0200 @@ -1,0 +2,6 @@ +Mon Sep 4 19:15:25 UTC 2017 - cbosdonnat@suse.com + +- Tweak configuration before building for python3 or PyString_* + symbols will still be missing + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libguestfs.spec ++++++ --- /var/tmp/diff_new_pack.zKKboB/_old 2017-09-09 20:25:58.922764692 +0200 +++ /var/tmp/diff_new_pack.zKKboB/_new 2017-09-09 20:25:58.926764128 +0200 @@ -653,8 +653,16 @@ sed -i -e "s:libraries=:library_dirs=['$RPM_BUILD_ROOT/%{_libdir}'], libraries=:" setup.py make stamp-extra-files # Build needs libguestfs library to be installed -%python_build -%python_install + +# HACKY! Change config.h for python2 +echo '#define HAVE_PYSTRING_ASSTRING 1' >> config.h +%python2_build +%python2_install + +# HACKY! Change config.h for python3 +sed 's/\(#define HAVE_PYSTRING_ASSTRING 1\)/\/* \1 *\//' -i config.h +%python3_build +%python3_install popd %endif