Accepting request 198327 from home:jsmeix:branches:Printing
Added udev rule that only uploads firmware into printer that need it (see upstream bug https://bugs.launchpad.net/hplip/+bug/1220628/comments/18) OBS-URL: https://build.opensuse.org/request/show/198327 OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=79
This commit is contained in:
11
hplip.spec
11
hplip.spec
@@ -15,6 +15,7 @@
|
||||
# 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):
|
||||
@@ -331,30 +332,30 @@ with the scan drivers in HPLIP for standard HP all-in-one printers.
|
||||
%setup -q
|
||||
# Patch10 fix-uninitialized-variables.diff
|
||||
# fixes "... is used uninitialized ..." warnings:
|
||||
%patch10
|
||||
%patch10 -b .fix-uninitialized-variables.orig
|
||||
# Patch101 change-udev-rules.diff
|
||||
# changes the udev rules file 56-hpmud.rules
|
||||
%patch101
|
||||
%patch101 -b .change-udev-rules.orig
|
||||
# Patch102 disable-chgrp_lp.diff deactivates the "chgrp lp" in Makefile.am
|
||||
# because during build this results "Operation not permitted".
|
||||
# Instead it is done in the files section via attr(0775,root,lp)
|
||||
# where mode 0775 is used instead of mode 0777 as in Makefile.am
|
||||
# because a public writable directory /var/log/hp/ is not allowed
|
||||
# to avoid security issues:
|
||||
%patch102
|
||||
%patch102 -b .disable-chgrp_lp.orig
|
||||
# Patch104 neither-add_user_to_group-nor-open_mdns_port.diff
|
||||
# removes add_user_to_group and open_mdns_port.diff from distros.dat for SUSE distros
|
||||
# to avoid security issues when normal users get added to system groups 'lp' and 'sys'
|
||||
# see https://bugs.launchpad.net/bugs/1197416 and https://bugs.launchpad.net/bugs/1112306
|
||||
# and to avoid security issues when ports in the firewall get opened
|
||||
# see https://bugs.launchpad.net/bugs/426161
|
||||
%patch104
|
||||
%patch104 -b .neither-add_user_to_group-nor-open_mdns_port.orig
|
||||
# Patch105 deactivate-add_group-function.diff
|
||||
# deactivates the add_group function that would add the groups ('lp') to user
|
||||
# which would cause security issues see https://bugs.launchpad.net/bugs/1197416
|
||||
# that would happen in any case via a fallback command in an "else" clause
|
||||
# even if this functionality was explicitly disabled in distros.dat
|
||||
%patch105
|
||||
%patch105 -b .deactivate-add_group-function.orig
|
||||
|
||||
%build
|
||||
# If AUTOMAKE='automake --foreign' is not set, autoreconf (in fact automake)
|
||||
|
Reference in New Issue
Block a user