Hello community, here is the log from the commit of package hplip for openSUSE:Factory checked in at 2020-01-05 15:21:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hplip (Old) and /work/SRC/openSUSE:Factory/.hplip.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hplip" Sun Jan 5 15:21:11 2020 rev:128 rq:760414 version:3.19.6 Changes: -------- --- /work/SRC/openSUSE:Factory/hplip/hplip.changes 2019-10-22 15:44:03.921622326 +0200 +++ /work/SRC/openSUSE:Factory/.hplip.new.6675/hplip.changes 2020-01-05 15:21:21.617567086 +0100 @@ -1,0 +2,6 @@ +Sun Dec 15 14:46:50 UTC 2019 - Stefan BrĂ¼ns <[email protected]> + +- Pass Python includedir in CFLAGS to fix broken lookup of Python.h + in configure, fails with Python 3.8 (boo#1159242). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hplip.spec ++++++ --- /var/tmp/diff_new_pack.gDAVbM/_old 2020-01-05 15:21:22.997567778 +0100 +++ /var/tmp/diff_new_pack.gDAVbM/_new 2020-01-05 15:21:23.001567780 +0100 @@ -1,7 +1,7 @@ # # spec file for package hplip # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -325,9 +325,11 @@ # complains about missing files like NEWS, README, AUTHORS, ChangeLog # in each directory where a Makefile.am exists: AUTOMAKE='automake --foreign' autoreconf -fvi +# Fix improper method of Python.h lookup in configure, no longer working with Python 3.8 +PYTHON_INCLUDEDIR="$(python3-config --includes)" # Set our preferred architecture-specific flags for the compiler and linker: -export CFLAGS="%{optflags} -Wno-error=return-type" -export CXXFLAGS="%{optflags} -fno-strict-aliasing -Wno-error=return-type" +export CFLAGS="%{optflags} ${PYTHON_INCLUDEDIR} -Wno-error=return-type" +export CXXFLAGS="%{optflags} ${PYTHON_INCLUDEDIR} -fno-strict-aliasing -Wno-error=return-type" # --disable-pp-build disables parallel port build because parallel port support is deprecated by upstream HPLIP # and by upstream in general cf. "Parallel port printers" at https://en.opensuse.org/SDB:Installing_a_Printer # Since version 3.9.6 the default printer driver install changed from hpijs to hpcups. @@ -378,7 +380,6 @@ --with-mimedir=%{_sysconfdir}/cups \ --with-docdir=%{_defaultdocdir}/%{name} \ --with-htmldir=%{_defaultdocdir}/%{name} \ - CFLAGS='%{optflags} -Wno-error=return-type' \ PYTHON=%{pyexe} %make_build sed -i 's|ppd/hpcups/\*.ppd.gz ||g' Makefile
