Without the function of download the firmware into the printer,
printers that do not have internal non-volatile memory
Hp Laserjet 1000 1005 1018 1020 stop working
| ... | ... | --- a/hplip-3.20.9-udev-rules.patch |
| ... | ... | +++ b/hplip-3.20.9-udev-rules.patch |
| ... | ... | @@ -3,20 +3,12 @@ diff -ruN a/data/rules/56-hpmud.rules b/data/rules/56-hpmud.rules |
| 3 | 3 |
+++ b/data/rules/56-hpmud.rules 2020-11-18 20:07:21.577059348 +0900
|
| 4 | 4 |
@@ -1,6 +1,6 @@
|
| 5 | 5 |
# HPLIP udev rules file. Notify console user if plugin support is required for this device.
|
| 6 |
|
|
| 6 |
|
|
| 7 | 7 |
-ACTION!="add", GOTO="hpmud_rules_end"
|
| 8 | 8 |
+ACTION=="remove", GOTO="hpmud_rules_end"
|
| 9 | 9 |
SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
|
| 10 | 10 |
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hpmud_usb_rules"
|
| 11 | 11 |
GOTO="hpmud_rules_end"
|
| 12 |
@@ -12,7 +12,4 @@
|
|
| 13 |
# ENV{ID_HPLIP}="1" is for Ubuntu udev-acl
|
|
| 14 |
ATTR{idVendor}=="03f0", ENV{ID_USB_INTERFACES}=="*:0701??:*|*:ffcc00:", OWNER="root", GROUP="lp", MODE="0664", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"
|
|
| 15 |
|
|
| 16 |
-# This rule will check the smart install feature, plugin status and firmware download for the required printers.
|
|
| 17 |
-ENV{hp_test}=="yes", PROGRAM="/bin/sh -c 'logger -p user.info loading HP Device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c '/usr/bin/nohup /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM}'"
|
|
| 18 |
-
|
|
| 19 |
LABEL="hpmud_rules_end"
|
|
| 20 | 12 |
diff -ruN a/Makefile.am b/Makefile.am
|
| 21 | 13 |
--- a/Makefile.am 2020-09-23 14:24:21.000000000 +0900
|
| 22 | 14 |
+++ b/Makefile.am 2020-11-18 20:08:01.717759569 +0900
|
| ... | ... | --- a/hplip.spec |
| ... | ... | +++ b/hplip.spec |
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 |
Summary: HP printer/all-in-one driver infrastructure
|
| 22 | 22 |
Name: hplip
|
| 23 | 23 |
Version: 3.23.8
|
| 24 |
Release: 1
|
|
| 24 |
Release: 2
|
|
| 25 | 25 |
License: GPLv2+ and MIT
|
| 26 | 26 |
Group: System/Printing
|
| 27 | 27 |
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
| ... | ... | @@ -184,9 +184,6 @@ Patch56: hplip-revert-plugins.patch |
| … | … | |
| 184 | 184 |
Patch101: hplip-3.20.9-desktop-files-fixes.patch
|
| 185 | 185 |
# (Anssi) Apply udev rules even on ACTION=="change", otherwise the permissions
|
| 186 | 186 |
# do not get applied in %%post on a new installation:
|
| 187 |
# (abondrov) Don't run firmware download and other stuff from
|
|
| 188 |
# hp-config_usb_printer which we don't use (and don't install)
|
|
| 189 |
# for security reasons (Fedora's way)
|
|
| 190 | 187 |
# See https://bugs.mageia.org/show_bug.cgi?id=10072#c34 for discussion
|
| 191 | 188 |
# Move udev rules to /lib/udev/rules.d (bug #748208)
|
| 192 | 189 |
Patch102: hplip-3.20.9-udev-rules.patch
|
| ... | ... | @@ -719,9 +716,6 @@ rm -f %{buildroot}%{_datadir}/hplip/uiscan.py* |
| … | … | |
| 716 | 716 |
rm -f %{buildroot}%{_datadir}/hplip/dat2drv*
|
| 717 | 717 |
|
| 718 | 718 |
|
| 719 |
# We don't allow hplip to download firmware for security reasons
|
|
| 720 |
rm -f %{buildroot}%{_bindir}/hp-config_usb_printer
|
|
| 721 |
rm -f %{buildroot}%{_datadir}/hplip/config_usb_printer.*
|
|
| 722 | 719 |
# Used in 56-hpmud_sysfs.rules which is obsolete
|
| 723 | 720 |
# Not a normal systemd unit, an instanced one
|
| 724 | 721 |
rm -f %{buildroot}%{_prefix}/lib/systemd/system/hplip-printer@.service
|
| ... | ... | @@ -834,6 +828,7 @@ done |
| … | … | |
| 828 | 828 |
%{_bindir}/hp-align
|
| 829 | 829 |
%{_bindir}/hp-clean
|
| 830 | 830 |
%{_bindir}/hp-colorcal
|
| 831 |
%{_bindir}/hp-config_usb_printer
|
|
| 831 | 832 |
%{_bindir}/hp-devicesettings
|
| 832 | 833 |
%{_bindir}/hp-diagnose_plugin
|
| 833 | 834 |
%{_bindir}/hp-diagnose_queues
|
| ... | ... | @@ -898,7 +893,7 @@ done |
| … | … | |
| 893 | 893 |
%{_datadir}/hplip/check-plugin.py*
|
| 894 | 894 |
%{_datadir}/hplip/clean.py*
|
| 895 | 895 |
%{_datadir}/hplip/colorcal.py*
|
| 896 |
#{_datadir}/hplip/config_usb_printer.py*
|
|
| 896 |
%{_datadir}/hplip/config_usb_printer.py*
|
|
| 897 | 897 |
%{_datadir}/hplip/devicesettings.py*
|
| 898 | 898 |
%{_datadir}/hplip/diagnose_plugin.py*
|
| 899 | 899 |
%{_datadir}/hplip/diagnose_queues.py*
|
New comment