hplip: bump to 3.21.2
authorLuiz Angelo Daros de Luca <[email protected]>
Mon, 22 Feb 2021 18:18:53 +0000 (15:18 -0300)
committerLuiz Angelo Daros de Luca <[email protected]>
Tue, 23 Feb 2021 02:28:44 +0000 (23:28 -0300)
Patches refreshed:
* 010-libusb_fix.patch
* 020-remove_cups_dep_on_scan.patch
* 060-fix-uclibc.patch renamed to 060-fix-glibc.patch

Signed-off-by: Luiz Angelo Daros de Luca <[email protected]>
utils/hplip/Makefile
utils/hplip/patches/010-libusb_fix.patch
utils/hplip/patches/020-remove_cups_dep_on_scan.patch
utils/hplip/patches/060-fix-glibc.patch [new file with mode: 0644]
utils/hplip/patches/060-fix-uclibc.patch [deleted file]

index 131a75d7e8dc060629d5f3c86b78fb1c8232341d..cb4112aebd2767461c9bcf2f4b8f3348816b2df9 100644 (file)
@@ -1,7 +1,4 @@
 #
-# Copyright (C) 2006-2011 OpenWrt.org
-# Copyright (C) 2017-2018 Luiz Angelo Daros de Luca <[email protected]>
-#
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
@@ -9,12 +6,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=hplip
-PKG_VERSION:=3.20.9
-PKG_RELEASE:=3
+PKG_VERSION:=3.21.2
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/hplip
-PKG_HASH:=36251189aa9cc349f6a3eacbb7ac3c4fd26fc9f087c9f75cee051010c85d2ddf
+PKG_HASH:=410421a13e62205d41bacd3215993c89e513fb4d7fab07e23e2720465aea7c41
 
 PKG_MAINTAINER:=Luiz Angelo Daros de Luca <[email protected]>
 PKG_LICENSE:=GPL-2.0 GPL-2.0-or-later
index 924c12773db622d151f437d1496432c5c5575bd9..b630c1c342afb5dc6287c73482a5249f29b31130 100644 (file)
@@ -20,7 +20,7 @@
  # ui (qt3)
 --- a/configure.in
 +++ b/configure.in
-@@ -601,6 +601,10 @@ if test "$class_driver" = "no" && test "
+@@ -611,6 +611,10 @@ if test "$class_driver" = "no" && test "
     else
        AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb 1.0 support], 2)])
        AC_CHECK_HEADERS(libusb-1.0/libusb.h, ,[AC_MSG_ERROR([cannot find libusb-1.0-devel support], 11)])
index 81af3b836cf120cf2fc6e12a908c8b7e8d36ae62..b7dd6c030b486376253348db46c64706ee9672d0 100644 (file)
  
 --- a/scan/sane/hpaio.c
 +++ b/scan/sane/hpaio.c
-@@ -34,9 +34,7 @@
+@@ -34,7 +34,6 @@
  #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"
- #include "soapht.h"
-@@ -146,98 +144,6 @@ static int GetUriLine(char *buf, char *u
+ #ifdef HAVE_LIBAVAHI
+@@ -150,98 +149,6 @@ static int GetUriLine(char *buf, char *u
     return i;
  }
  
  static int AddDevice(char *uri)
  {
      struct hpmud_model_attributes ma;
-@@ -290,7 +196,6 @@ static int DevDiscovery(int localOnly)
+@@ -294,7 +201,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;
  
-@@ -305,39 +210,6 @@ static int DevDiscovery(int localOnly)
+@@ -308,38 +214,6 @@ static int DevDiscovery(int localOnly)
+         GetUriLine(tail, uri, &tail);
          total += AddDevice(uri);
      }
-     //memset(message, 0, sizeof(message));
 -    /* Look for Network Scan devices if localonly flag if FALSE. */
 -    if (!localOnly)
 -    {   
 -        }
 -        if (cups_printer)
 -            free(cups_printer);
--#ifdef HAVE_LIBNETSNMP
+-#ifdef HAVE_LIBAVAHI
 -        /* Discover NW scanners using Bonjour*/
--        //bytes_read = avahi_probe_nw_scanners();
 -        if( (avahi_probe_nw_scanners() == AVAHI_STATUS_OK) && (aUriBuf != NULL) )
 -        {           
 -          token = strtok(aUriBuf, ";");
diff --git a/utils/hplip/patches/060-fix-glibc.patch b/utils/hplip/patches/060-fix-glibc.patch
new file mode 100644 (file)
index 0000000..6a35c74
--- /dev/null
@@ -0,0 +1,15 @@
+Fix missing definition of uint64_t while compiling
+under uclibc or glibc
+
+https://bugs.launchpad.net/hplip/+bug/1826965
+
+--- a/scan/sane/OrbliteScan/LinuxCommon.h
++++ b/scan/sane/OrbliteScan/LinuxCommon.h
+@@ -2,6 +2,7 @@
+ #define H_LinuxCommon\r
\r
+ #include <sys/types.h>\r
++#include <stdint.h>\r
\r
+ /* Common typedefs for Linux */\r
\r
diff --git a/utils/hplip/patches/060-fix-uclibc.patch b/utils/hplip/patches/060-fix-uclibc.patch
deleted file mode 100644 (file)
index d941d83..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-Fix missing definition of uint64_t while compiling
-under uclibc
-
-https://bugs.launchpad.net/hplip/+bug/1826965
-
---- a/scan/sane/OrbliteScan/LinuxCommon.h
-+++ b/scan/sane/OrbliteScan/LinuxCommon.h
-@@ -2,6 +2,7 @@
- #define H_LinuxCommon\r
\r
- #include <sys/types.h>\r
-+#include <stdint.h>\r
\r
- /* Common typedefs for Linux */\r
\r