hplip: bump to 3.20.9
authorLuiz Angelo Daros de Luca <redacted>
Sun, 22 Nov 2020 05:27:41 +0000 (02:27 -0300)
committerLuiz Angelo Daros de Luca <redacted>
Sun, 22 Nov 2020 05:32:00 +0000 (02:32 -0300)
Signed-off-by: Luiz Angelo Daros de Luca <redacted>
utils/hplip/Makefile
utils/hplip/patches/020-remove_cups_dep_on_scan.patch

index 4fdb529b4ec62a2ec50e3a21a7f6f89ddee9c58a..3fd36f0f520a7b0a25cb378754701d9b643880f6 100644 (file)
@@ -9,12 +9,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=hplip
-PKG_VERSION:=3.19.12
-PKG_RELEASE:=2
+PKG_VERSION:=3.20.9
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/hplip
-PKG_HASH:=b7f398502fb659e0de8e54976237e3c6a64fec0b3c36054a515876f7b006b255
+PKG_HASH:=36251189aa9cc349f6a3eacbb7ac3c4fd26fc9f087c9f75cee051010c85d2ddf
 
 PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
 PKG_LICENSE:=GPL-2.0 GPL-2.0-or-later
index c3aba2a2f82120345e12485ecc9ae6ac0a63447a..e055656c8d107c577f77ceff312fbf6564a5b96a 100644 (file)
@@ -1,5 +1,7 @@
---- a/Makefile.am
-+++ b/Makefile.am
+Index: hplip-3.20.9/Makefile.am
+===================================================================
+--- hplip-3.20.9.orig/Makefile.am
++++ hplip-3.20.9/Makefile.am
 @@ -71,7 +71,7 @@ else
  libsane_hpaio_la_LDFLAGS = -version-info 1:0:0
  endif
  #libsane_hpaio_la_CFLAGS = -DWITH_NONAMESPACES -DSOAP_DEBUG
  libsane_hpaio_la_CFLAGS = $(DBUS_CFLAGS) -Iprotocol
  
---- a/scan/sane/hpaio.c
-+++ b/scan/sane/hpaio.c
-@@ -34,7 +34,6 @@
+Index: hplip-3.20.9/scan/sane/hpaio.c
+===================================================================
+--- hplip-3.20.9.orig/scan/sane/hpaio.c
++++ hplip-3.20.9/scan/sane/hpaio.c
+@@ -34,9 +34,7 @@
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
 -#include <cups/cups.h>
  #include "hpmud.h"
+-#include "avahiDiscovery.h"
  #include "hp_ipp.h"
  #include "soap.h"
-@@ -145,98 +144,6 @@ static int GetUriLine(char *buf, char *u
+ #include "soapht.h"
+@@ -146,98 +144,6 @@ static int GetUriLine(char *buf, char *u
     return i;
  }
  
  static int AddDevice(char *uri)
  {
      struct hpmud_model_attributes ma;
-@@ -289,7 +196,6 @@ static int DevDiscovery(int localOnly)
+@@ -290,7 +196,6 @@ static int DevDiscovery(int localOnly)
      char uri[HPMUD_LINE_SIZE];
      char *tail = message;
      int i, scan_type, cnt=0, total=0, bytes_read;
      char* token = NULL;
      enum HPMUD_RESULT stat;
  
-@@ -304,33 +210,6 @@ static int DevDiscovery(int localOnly)
+@@ -305,39 +210,6 @@ static int DevDiscovery(int localOnly)
          total += AddDevice(uri);
      }
-     memset(message, 0, sizeof(message));
+     //memset(message, 0, sizeof(message));
 -    /* Look for Network Scan devices if localonly flag if FALSE. */
 -    if (!localOnly)
 -    {   
 -            free(cups_printer);
 -#ifdef HAVE_LIBNETSNMP
 -        /* Discover NW scanners using Bonjour*/
--        bytes_read = mdns_probe_nw_scanners(message, sizeof(message), &cnt);
--        token = strtok(message, ";");
--        while (token)
--        {
--            total += AddDevice(token);
--            token = strtok(NULL, ";");
+-        //bytes_read = avahi_probe_nw_scanners();
+-        if( (avahi_probe_nw_scanners() == AVAHI_STATUS_OK) && (aUriBuf != NULL) )
+-        {           
+-          token = strtok(aUriBuf, ";");
+-          while (token)
+-          {
+-              total += AddDevice(token);
+-              token = strtok(NULL, ";");
+-          }
+-          free(aUriBuf);
+-          aUriBuf = NULL;
 -        }
 -#endif
 -        if(!total)
 -          SendScanEvent("hpaio:/net/HP_Scan_Devices?ip=1.1.1.1", EVENT_ERROR_NO_PROBED_DEVICES_FOUND);
 -        }
 -    }
+-
  bugout:
     return total;
+ }
git clone https://git.99rst.org/PROJECT