From 615f9fd363264f6e9da2e9f42642f50695f97291d74520becb2ecf7437160c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 2 Jan 2020 12:40:01 +0000 Subject: [PATCH] Accepting request 757182 from home:StefanBruens:branches:Printing OBS-URL: https://build.opensuse.org/request/show/757182 OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=182 --- hplip.changes | 6 ++++++ hplip.spec | 9 +++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hplip.changes b/hplip.changes index bda9376..9848712 100644 --- a/hplip.changes +++ b/hplip.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 15 14:46:50 UTC 2019 - Stefan BrĂ¼ns + +- Pass Python includedir in CFLAGS to fix broken lookup of Python.h + in configure, fails with Python 3.8 (boo#1159242). + ------------------------------------------------------------------- Wed Oct 16 07:48:29 UTC 2019 - Andreas Schneider diff --git a/hplip.spec b/hplip.spec index 2a2b78e..3a8b9f7 100644 --- a/hplip.spec +++ b/hplip.spec @@ -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 @@ sed -i -e 's|%{_datadir}/icons/Humanity/devices/48/printer.svg|printer|' hp-uisc # 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 @@ export CXXFLAGS="%{optflags} -fno-strict-aliasing -Wno-error=return-type" --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