From b3ec575433403bb3fb00b90cd6339bfeddfc203731b546c798e38fe543083c1c Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Thu, 24 Jan 2013 14:31:28 +0000 Subject: [PATCH] Accepting request 149796 from home:jsmeix:branches:Printing Create /var/log/hp/tmp/ directory (bnc#800312) OBS-URL: https://build.opensuse.org/request/show/149796 OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=61 --- hplip.changes | 7 +++++++ hplip.spec | 12 ++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/hplip.changes b/hplip.changes index b5181f1..05f2d9c 100644 --- a/hplip.changes +++ b/hplip.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Jan 24 14:51:24 CET 2013 - jsmeix@suse.de + +- Create /var/log/hp/tmp/ directory that is needed by hp-sendfax + as a workaround until HPLIP upstream implemented it correctly + see https://bugs.launchpad.net/bugs/1016507 (bnc#800312). + ------------------------------------------------------------------- Thu Nov 29 15:27:51 CET 2012 - jsmeix@suse.de diff --git a/hplip.spec b/hplip.spec index de69bf0..497b851 100644 --- a/hplip.spec +++ b/hplip.spec @@ -1,7 +1,7 @@ # # spec file for package hplip # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - Name: hplip # BuildRequires foomatic-filters to avoid /usr/lib/rpm/brp-symlink ERROR: # link target doesn't exist (neither in build root nor in installed system): @@ -408,6 +407,11 @@ chmod a+x %{buildroot}%{_datadir}/hplip/fax/pstotiff # regarding owner and permissions see the "files hpijs" section below # and Patch102 no-chgrp_lp_hplip_Logdir.diff: test -d %{buildroot}/var/lib/hp || install -d %{buildroot}/var/lib/hp +# Create a /var/log/hp/tmp/ directory that is needed by hp-sendfax +# as a workaround until HPLIP upstream implemented it correctly +# see https://bugzilla.novell.com/show_bug.cgi?id=800312 +# and https://bugs.launchpad.net/bugs/1016507 +install -d %{buildroot}/var/log/hp/tmp # Provide hplip_cron as /usr/share/doc/packages/hplip/hplip_cron # see Patch103 no-hplip_cron.diff: install -m 644 data/rules/hplip_cron %{buildroot}%{_defaultdocdir}/%{name}/ @@ -676,6 +680,10 @@ exit 0 # Use fixed "/var/log/hp" because this is hardcoded in the HPLIP sources. # Regarding attr(0775,root,lp) see disable-chgrp_lp.diff (Patch102): %dir %attr(0775,root,lp) /var/log/hp +# Regarding attr(0775,root,lp) for /var/log/hp/tmp +# see https://bugzilla.novell.com/show_bug.cgi?id=800312#c0 +# i.e. it is reasonable secure and hp-sendfax works with it: +%dir %attr(0775,root,lp) /var/log/hp/tmp # Use fixed "/var/lib/hp" because this is hardcoded in the HPLIP sources: %dir /var/lib/hp