pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/hplip hplip: fix botched patches and qt5 option ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/666d9d131093
branches:  trunk
changeset: 375351:666d9d131093
user:      gutteridge <gutteridge%pkgsrc.org@localhost>
date:      Sun Mar 13 05:46:55 2022 +0000

description:
hplip: fix botched patches and qt5 option packaging

When some patches were last updated, some incorrect changes were
inadvertently added. This broke some of the functionality, since there
were hard-coded paths added (e.g., "/usr/pkg/bin/python3.7").

Also fix qt5 option packaging so this actually builds again. There are
still issues that need investigation, but at least an executable can
now run and be interacted with (e.g., attaching as a plugin in Xfce).

diffstat:

 print/hplip/Makefile                                    |    4 +-
 print/hplip/PLIST.qt5                                   |  140 +---------------
 print/hplip/distinfo                                    |   10 +-
 print/hplip/options.mk                                  |    6 +-
 print/hplip/patches/patch-diagnose_queues.py            |    8 +-
 print/hplip/patches/patch-installer_dcheck.py           |   21 +-
 print/hplip/patches/patch-prnt_hpijs_foomatic-rip-hplip |   81 +---------
 print/hplip/patches/patch-scan.py                       |   17 +-
 8 files changed, 26 insertions(+), 261 deletions(-)

diffs (truncated from 434 to 300 lines):

diff -r 469cb39e4534 -r 666d9d131093 print/hplip/Makefile
--- a/print/hplip/Makefile      Sun Mar 13 04:42:56 2022 +0000
+++ b/print/hplip/Makefile      Sun Mar 13 05:46:55 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.99 2022/03/08 22:55:41 gutteridge Exp $
+# $NetBSD: Makefile,v 1.100 2022/03/13 05:46:55 gutteridge Exp $
 
 DISTNAME=      hplip-3.19.12
-PKGREVISION=   13
+PKGREVISION=   14
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=hplip/}
 
diff -r 469cb39e4534 -r 666d9d131093 print/hplip/PLIST.qt5
--- a/print/hplip/PLIST.qt5     Sun Mar 13 04:42:56 2022 +0000
+++ b/print/hplip/PLIST.qt5     Sun Mar 13 05:46:55 2022 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST.qt5,v 1.1 2016/05/28 21:03:56 schnoebe Exp $
+@comment $NetBSD: PLIST.qt5,v 1.2 2022/03/13 05:46:55 gutteridge Exp $
 bin/hp-toolbox
 share/PolicyKit/policy/com.hp.hplip.policy
+share/applications/hp-uiscan.desktop
 share/applications/hplip.desktop
 share/dbus-1/system-services/com.hp.hplip.service
 share/examples/hplip/dbus-1/system.d/com.hp.hplip.conf
@@ -292,6 +293,7 @@
 share/hplip/data/images/other/confidential_title.png
 share/hplip/data/images/other/fax.png
 share/hplip/data/images/other/fax2.png
+share/hplip/data/images/other/flat1.png
 share/hplip/data/images/other/generic_coverpage.png
 share/hplip/data/images/other/generic_title.png
 share/hplip/data/images/other/h-k-2.png
@@ -304,6 +306,7 @@
 share/hplip/data/images/other/panel_lcd.png
 share/hplip/data/images/other/pens.png
 share/hplip/data/images/other/powered_by_python.png
+share/hplip/data/images/other/resolution.png
 share/hplip/data/images/other/signal0.png
 share/hplip/data/images/other/signal1.png
 share/hplip/data/images/other/signal2.png
@@ -322,6 +325,7 @@
 share/hplip/data/images/other/v-k-3.png
 share/hplip/data/images/other/v-kc-2.png
 share/hplip/data/images/other/v-kc-3.png
+share/hplip/data/images/other/viewer.png
 share/hplip/data/images/other/zca.png
 share/hplip/ppd/HP/hp-laserjet_pro_m501dn-ps.ppd.gz
 share/hplip/ppd/HP/hp-laserjet_pro_m501n-ps.ppd.gz
@@ -329,138 +333,6 @@
 share/hplip/ppd/HP/hp-officejet_pro_8710.ppd.gz
 share/hplip/ppd/HP/hp-officejet_pro_8720.ppd.gz
 share/hplip/ppd/HP/hp-officejet_pro_8730-ps.ppd.gz
-share/hplip/ui4/__init__.py
-share/hplip/ui4/__init__.pyc
-share/hplip/ui4/aboutdialog.py
-share/hplip/ui4/aboutdialog.pyc
-share/hplip/ui4/aboutdialog_base.py
-share/hplip/ui4/aboutdialog_base.pyc
-share/hplip/ui4/aligndialog.py
-share/hplip/ui4/aligndialog.pyc
-share/hplip/ui4/aligndialog_base.py
-share/hplip/ui4/aligndialog_base.pyc
-share/hplip/ui4/cleandialog.py
-share/hplip/ui4/cleandialog.pyc
-share/hplip/ui4/cleandialog_base.py
-share/hplip/ui4/cleandialog_base.pyc
-share/hplip/ui4/colorcaldialog.py
-share/hplip/ui4/colorcaldialog.pyc
-share/hplip/ui4/colorcaldialog_base.py
-share/hplip/ui4/colorcaldialog_base.pyc
-share/hplip/ui4/devicesetupdialog.py
-share/hplip/ui4/devicesetupdialog.pyc
-share/hplip/ui4/devicesetupdialog_base.py
-share/hplip/ui4/devicesetupdialog_base.pyc
-share/hplip/ui4/deviceuricombobox.py
-share/hplip/ui4/deviceuricombobox.pyc
-share/hplip/ui4/devmgr5.py
-share/hplip/ui4/devmgr5.pyc
-share/hplip/ui4/devmgr5_base.py
-share/hplip/ui4/devmgr5_base.pyc
-share/hplip/ui4/fabgrouptable.py
-share/hplip/ui4/fabgrouptable.pyc
-share/hplip/ui4/fabnametable.py
-share/hplip/ui4/fabnametable.pyc
-share/hplip/ui4/fabwindow.py
-share/hplip/ui4/fabwindow.pyc
-share/hplip/ui4/fabwindow_base.py
-share/hplip/ui4/fabwindow_base.pyc
-share/hplip/ui4/faxsetupdialog.py
-share/hplip/ui4/faxsetupdialog.pyc
-share/hplip/ui4/faxsetupdialog_base.py
-share/hplip/ui4/faxsetupdialog_base.pyc
-share/hplip/ui4/filetable.py
-share/hplip/ui4/filetable.pyc
-share/hplip/ui4/firmwaredialog.py
-share/hplip/ui4/firmwaredialog.pyc
-share/hplip/ui4/firmwaredialog_base.py
-share/hplip/ui4/firmwaredialog_base.pyc
-share/hplip/ui4/infodialog.py
-share/hplip/ui4/infodialog.pyc
-share/hplip/ui4/infodialog_base.py
-share/hplip/ui4/infodialog_base.pyc
-share/hplip/ui4/linefeedcaldialog.py
-share/hplip/ui4/linefeedcaldialog.pyc
-share/hplip/ui4/linefeedcaldialog_base.py
-share/hplip/ui4/linefeedcaldialog_base.pyc
-share/hplip/ui4/loadpapergroupbox.py
-share/hplip/ui4/loadpapergroupbox.pyc
-share/hplip/ui4/makecopiesdialog.py
-share/hplip/ui4/makecopiesdialog.pyc
-share/hplip/ui4/makecopiesdialog_base.py
-share/hplip/ui4/makecopiesdialog_base.pyc
-share/hplip/ui4/mimetypesdialog.py
-share/hplip/ui4/mimetypesdialog.pyc
-share/hplip/ui4/mimetypesdialog_base.py
-share/hplip/ui4/mimetypesdialog_base.pyc
-share/hplip/ui4/nodevicesdialog.py
-share/hplip/ui4/nodevicesdialog.pyc
-share/hplip/ui4/nodevicesdialog_base.py
-share/hplip/ui4/nodevicesdialog_base.pyc
-share/hplip/ui4/plugindiagnose.py
-share/hplip/ui4/plugindiagnose.pyc
-share/hplip/ui4/plugindiagnose_base.py
-share/hplip/ui4/plugindiagnose_base.pyc
-share/hplip/ui4/plugindialog.py
-share/hplip/ui4/plugindialog.pyc
-share/hplip/ui4/plugindialog_base.py
-share/hplip/ui4/plugindialog_base.pyc
-share/hplip/ui4/pluginlicensedialog.py
-share/hplip/ui4/pluginlicensedialog.pyc
-share/hplip/ui4/pluginlicensedialog_base.py
-share/hplip/ui4/pluginlicensedialog_base.pyc
-share/hplip/ui4/pqdiagdialog.py
-share/hplip/ui4/pqdiagdialog.pyc
-share/hplip/ui4/pqdiagdialog_base.py
-share/hplip/ui4/pqdiagdialog_base.pyc
-share/hplip/ui4/printdialog.py
-share/hplip/ui4/printdialog.pyc
-share/hplip/ui4/printdialog_base.py
-share/hplip/ui4/printdialog_base.pyc
-share/hplip/ui4/printernamecombobox.py
-share/hplip/ui4/printernamecombobox.pyc
-share/hplip/ui4/printsettingsdialog.py
-share/hplip/ui4/printsettingsdialog.pyc
-share/hplip/ui4/printsettingsdialog_base.py
-share/hplip/ui4/printsettingsdialog_base.pyc
-share/hplip/ui4/printsettingstoolbox.py
-share/hplip/ui4/printsettingstoolbox.pyc
-share/hplip/ui4/printtestpagedialog.py
-share/hplip/ui4/printtestpagedialog.pyc
-share/hplip/ui4/printtestpagedialog_base.py
-share/hplip/ui4/printtestpagedialog_base.pyc
-share/hplip/ui4/queuesconf.py
-share/hplip/ui4/queuesconf.pyc
-share/hplip/ui4/readonlyradiobutton.py
-share/hplip/ui4/readonlyradiobutton.pyc
-share/hplip/ui4/sendfaxdialog.py
-share/hplip/ui4/sendfaxdialog.pyc
-share/hplip/ui4/sendfaxdialog_base.py
-share/hplip/ui4/sendfaxdialog_base.pyc
-share/hplip/ui4/settingsdialog.py
-share/hplip/ui4/settingsdialog.pyc
-share/hplip/ui4/settingsdialog_base.py
-share/hplip/ui4/settingsdialog_base.pyc
-share/hplip/ui4/setupdialog.py
-share/hplip/ui4/setupdialog.pyc
-share/hplip/ui4/setupdialog_base.py
-share/hplip/ui4/setupdialog_base.pyc
-share/hplip/ui4/systemtray.py
-share/hplip/ui4/systemtray.pyc
-share/hplip/ui4/systrayframe.py
-share/hplip/ui4/systrayframe.pyc
-share/hplip/ui4/systrayframe_base.py
-share/hplip/ui4/systrayframe_base.pyc
-share/hplip/ui4/ui_utils.py
-share/hplip/ui4/ui_utils.pyc
-share/hplip/ui4/upgradedialog.py
-share/hplip/ui4/upgradedialog.pyc
-share/hplip/ui4/upgradedialog_base.py
-share/hplip/ui4/upgradedialog_base.pyc
-share/hplip/ui4/wifisetupdialog.py
-share/hplip/ui4/wifisetupdialog.pyc
-share/hplip/ui4/wifisetupdialog_base.py
-share/hplip/ui4/wifisetupdialog_base.pyc
 share/hplip/ui5/__init__.py
 share/hplip/ui5/__init__.pyc
 share/hplip/ui5/aboutdialog.py
@@ -569,6 +441,8 @@
 share/hplip/ui5/queuesconf.pyc
 share/hplip/ui5/readonlyradiobutton.py
 share/hplip/ui5/readonlyradiobutton.pyc
+share/hplip/ui5/scandialog.py
+share/hplip/ui5/scandialog.pyc
 share/hplip/ui5/sendfaxdialog.py
 share/hplip/ui5/sendfaxdialog.pyc
 share/hplip/ui5/sendfaxdialog_base.py
diff -r 469cb39e4534 -r 666d9d131093 print/hplip/distinfo
--- a/print/hplip/distinfo      Sun Mar 13 04:42:56 2022 +0000
+++ b/print/hplip/distinfo      Sun Mar 13 05:46:55 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.41 2021/10/26 11:12:07 nia Exp $
+$NetBSD: distinfo,v 1.42 2022/03/13 05:46:55 gutteridge Exp $
 
 BLAKE2s (hplip-3.19.12.tar.gz) = 24ea25e3ac4ab3c521ae65acb27a88a65a164f3d93b088e33f13f97ee8ad6eae
 SHA512 (hplip-3.19.12.tar.gz) = 5552cd717ae082ee55cdb77d79e8d035d8ecb7cf23c79d659fda43468d8ed414a33c4d869eab4ab83dee836f0d1cceb74c3c4a249e26f904a5ab2350e08a5677
@@ -6,13 +6,13 @@
 SHA1 (patch-ab) = 82b8ab80f778a6a31c1031688d9a16dbd4c55462
 SHA1 (patch-ae) = c67ea6d640175a1f0518640f41b5fb58241430f1
 SHA1 (patch-configure.in) = d6e20d8d4f0b1042a32149eeca45d2ddc319f65f
-SHA1 (patch-diagnose_queues.py) = 385c694642248818b28375711df244f12e63fdb4
-SHA1 (patch-installer_dcheck.py) = 9e8e6b552f935d2ed5a61060cc0a4541095e2751
+SHA1 (patch-diagnose_queues.py) = 1f15cffafd602cc23bad0094fc5c485f24171797
+SHA1 (patch-installer_dcheck.py) = 3bfe3bd15c0a3fb968e03aa8250dc7939bfe14d1
 SHA1 (patch-io_hpmud_musb.h) = ad634f5a1f426877e1c88916b6468fcdb7598555
 SHA1 (patch-prnt_hpcups_HPCupsFilter.cpp) = 19a26044ce24433b0188c243925b4028bc388f1a
 SHA1 (patch-prnt_hpijs_context2.cpp) = f81148c1c334a9074453b27ac055833cd1669bd0
-SHA1 (patch-prnt_hpijs_foomatic-rip-hplip) = c37ed4beda5a84fac65484d11af55bf80b3f9f7c
+SHA1 (patch-prnt_hpijs_foomatic-rip-hplip) = cfec38607572af9536e7c21cfe2e491d07d3838d
 SHA1 (patch-prnt_hpijs_hjzjscolor.cpp) = 5ca9c828ba4aff17a54a803d79c2dc169975d50c
 SHA1 (patch-prnt_hpps_hppsfilter.c) = 5a3e7f3f5504fb88d58cf2b79fa138066859aa00
 SHA1 (patch-protocol_discovery_mdns.c) = e2ca43f6ab13fe2124a38bcc0eff292a57b34b06
-SHA1 (patch-scan.py) = b58ffdd4811b8b20973a07f3b9f60174a96beed4
+SHA1 (patch-scan.py) = 3ca05c3569ec78b5752af364e4d0728900076c3c
diff -r 469cb39e4534 -r 666d9d131093 print/hplip/options.mk
--- a/print/hplip/options.mk    Sun Mar 13 04:42:56 2022 +0000
+++ b/print/hplip/options.mk    Sun Mar 13 05:46:55 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.19 2021/03/10 18:53:49 adam Exp $
+# $NetBSD: options.mk,v 1.20 2022/03/13 05:46:55 gutteridge Exp $
 #
 # HPLIP dependencies are detailed in the following page:
 # http://hplipopensource.com/hplip-web/install/manual/distros/other.html
@@ -14,14 +14,14 @@
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Mqt5)
-PYTHON_VERSIONS_ACCEPTED=       27 # py-notify
+PYTHON_VERSIONS_INCOMPATIBLE=  27 # py-pyphen
 CONFIGURE_ARGS+=       --enable-gui-build
 CONFIGURE_ARGS+=       --enable-policykit
 EGFILES+=              dbus-1/system.d/com.hp.hplip.conf
 MAKE_DIRS+=            ${PKG_SYSCONFDIR}/dbus-1/system.d
 .include "../../security/policykit/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
-DEPENDS+=      ${PYPKGPREFIX}-notify-[0-9]*:../../sysutils/py-notify
+DEPENDS+=      ${PYPKGPREFIX}-notify2-[0-9]*:../../sysutils/py-notify2
 PLIST_SRC+=            PLIST.qt5
 CONFIGURE_ARGS+=       --disable-qt4
 CONFIGURE_ARGS+=       --enable-qt5
diff -r 469cb39e4534 -r 666d9d131093 print/hplip/patches/patch-diagnose_queues.py
--- a/print/hplip/patches/patch-diagnose_queues.py      Sun Mar 13 04:42:56 2022 +0000
+++ b/print/hplip/patches/patch-diagnose_queues.py      Sun Mar 13 05:46:55 2022 +0000
@@ -1,15 +1,9 @@
-$NetBSD: patch-diagnose_queues.py,v 1.3 2020/01/04 04:24:12 khorben Exp $
+$NetBSD: patch-diagnose_queues.py,v 1.4 2022/03/13 05:46:55 gutteridge Exp $
 
 Correct the spelling on the module name.
 
 --- diagnose_queues.py.orig    2019-12-10 05:00:36.000000000 +0000
 +++ diagnose_queues.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/pkg/bin/python3.7
- # -*- coding: utf-8 -*-
- #
- # (c) Copyright 2011-2015 HP Development Company, L.P.
 @@ -22,7 +22,7 @@
  from __future__ import print_function
  __version__ = '1.1'
diff -r 469cb39e4534 -r 666d9d131093 print/hplip/patches/patch-installer_dcheck.py
--- a/print/hplip/patches/patch-installer_dcheck.py     Sun Mar 13 04:42:56 2022 +0000
+++ b/print/hplip/patches/patch-installer_dcheck.py     Sun Mar 13 05:46:55 2022 +0000
@@ -1,29 +1,18 @@
-$NetBSD: patch-installer_dcheck.py,v 1.4 2020/01/04 04:24:12 khorben Exp $
+$NetBSD: patch-installer_dcheck.py,v 1.5 2022/03/13 05:46:55 gutteridge Exp $
 
 Locate libraries on systems without ldconfig(8)
 
-This only looks for libraries in pkgsrc's own library folder.
+This only looks for libraries in pkgsrc's own library folder, after the
+subst framework in Makefile operates.
 
 --- installer/dcheck.py.orig   2019-12-10 05:00:31.000000000 +0000
 +++ installer/dcheck.py
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/pkg/bin/python3.7
- # -*- coding: utf-8 -*-
- #
- # (c) Copyright 2003-2015 HP Development Company, L.P.
-@@ -99,11 +99,13 @@ def check_lib(lib, min_ver=0):
+@@ -99,6 +99,8 @@ def check_lib(lib, min_ver=0):
          #    pass
          #else:
          return True
-+    elif check_file(lib+".so","/usr/pkg/lib"):
++    elif check_file(lib+".so","/usr/lib"):
 +        return True
      else:



Home | Main Index | Thread Index | Old Index