From 982e968ef61a94e0de75d733e9036e5c60afca34 Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Wed, 25 Aug 2021 15:29:51 +0200 Subject: print/hplip(-plugin): update to 3.22.2 - Convert post-patch to real patches because they are easier to maintain. - Fix a NULL dereference in the scanner backend when D-Bus isn't running. - Depend on sysutils/py-distro to make hp-toolbox (Device Manager) work again. - Upstream switched to Avahi for mDNS support. Rename the SNMP option to NETWORK because it's not just SNMP now. - Don't install some programs related to uninstalling and upgrading of HPLIP and the installation of firmware plugins because they circumvent the package system. - Install icons in share/icons so desktops can choose an appropriate resolution. Portions taken from a patch by Oleg Sidorkin . PR: 255586, 257034, 257512 --- print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp (limited to 'print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp') diff --git a/print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp b/print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp new file mode 100644 index 000000000000..217e6bc7105c --- /dev/null +++ b/print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp @@ -0,0 +1,20 @@ +--- prnt/hpijs/hpcupsfax.cpp.orig 2022-02-23 07:41:05 UTC ++++ prnt/hpijs/hpcupsfax.cpp +@@ -94,7 +94,7 @@ static void GetLogLevel () + FILE *fp; + char str[258]; + char *p; +- fp = fopen ("/etc/cups/cupsd.conf", "r"); ++ fp = fopen ("/usr/local/etc/cups/cupsd.conf", "r"); + if (fp == NULL) + return; + while (!feof (fp)) +@@ -687,7 +687,7 @@ int main (int argc, char **argv) + return 1; + } + else +- chmod(hpFileName, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP ); ++ chmod(hpFileName, S_IRUSR | S_IWUSR | S_IRGRP | 0 ); + + /*********** MAIN ***********/ + -- cgit v1.2.3