From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Help with hplip-qt5 Date: Thu, 8 Jun 2017 18:59:59 +0000 Message-ID: <20170608185959.twjpbezor37tjjjr@abyayala> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="iglannkibk6w5prh" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ2ff-0004wp-4A for guix-devel@gnu.org; Thu, 08 Jun 2017 15:00:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJ2fb-0006k5-V6 for guix-devel@gnu.org; Thu, 08 Jun 2017 15:00:39 -0400 Received: from aibo.runbox.com ([91.220.196.211]:57424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJ2fb-0006iL-Ik for guix-devel@gnu.org; Thu, 08 Jun 2017 15:00:35 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dJ2fZ-0002fW-G2 for guix-devel@gnu.org; Thu, 08 Jun 2017 21:00:33 +0200 Received: from [46.183.221.231] (helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1dJ2fN-0003xL-7x for guix-devel@gnu.org; Thu, 08 Jun 2017 21:00:23 +0200 Content-Disposition: inline List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --iglannkibk6w5prh Content-Type: multipart/mixed; boundary="mnmkple4fbeh26je" Content-Disposition: inline --mnmkple4fbeh26je Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Adjusting priorities is a nice thing to do. This package is a border case=E2=80=A6 It fits into the scope of my system work and can not be ignored or handed off. I don't find the previous conversations on this, it must have been with a different thread subject. My intention is to add the qt UI of hplip. This touches some use of package definitions which aren't commonly used so much and I haven't used myself. What you get with the 'hplip-qt5' patch is this: Backtrace: In ice-9/eval.scm: 177:49 19 (lp (#= =E2=80=A6)) 177:49 18 (lp (#= =E2=80=A6)) 177:49 17 (lp (#= =E2=80=A6)) 177:49 16 (lp (#= =E2=80=A6)) 177:49 15 (lp (#= =E2=80=A6)) 177:49 14 (lp (#= =E2=80=A6)) 177:49 13 (lp (#= =E2=80=A6)) 177:49 12 (lp (#= =E2=80=A6)) 177:49 11 (lp (#= =E2=80=A6)) 177:49 10 (lp (#= =E2=80=A6)) 177:49 9 (lp (#= =E2=80=A6)) 177:49 8 (lp (#= =E2=80=A6)) 177:32 7 (lp (#)) 196:43 6 (_ #(#(#(#(#(#(#(#(# =E2=80=A6) =E2=80=A6= ) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 163:9 5 (_ #(#(#(#(#(#(#(#(# =E2=80=A6) =E2=80=A6= ) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 173:47 4 (_ #(#(#(#(#(#(#(#(# =E2=80=A6) =E2=80=A6= ) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 159:9 3 (_ #(#(#(#(#(#(#(#(# =E2=80=A6) =E2=80=A6= ) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 159:9 2 (_ #(#(#(#(#(#(#(#(# =E2=80=A6) =E2=80=A6= ) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 223:20 1 (proc #(#(#(#(#(#(#(#(# =E2=80=A6) =E2=80=A6= ) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) In unknown file: 0 (%resolve-variable (7 . %outputs) #) ERROR: In procedure %resolve-variable: ERROR: Unbound variable: %outputs --=20 ng0 OpenPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588 --mnmkple4fbeh26je Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-hplip-qt5.patch" Content-Transfer-Encoding: quoted-printable =46rom 421a9e9d782804f9390c8a1f133800610e921f5f Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Thu, 29 Dec 2016 11:42:43 +0000 Subject: [PATCH 1/2] gnu: Add hplip-qt5. * gnu/packages/cups.scm (hplip-qt5): New variable. --- gnu/packages/cups.scm | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm index accfe410b..608eda39b 100644 --- a/gnu/packages/cups.scm +++ b/gnu/packages/cups.scm @@ -5,6 +5,7 @@ ;;; Copyright =C2=A9 2016 Danny Milosavljevic ;;; Copyright =C2=A9 2017 Leo Famulari ;;; Copyright =C2=A9 2017 Mark H Weaver +;;; Copyright =C2=A9 2017 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -25,6 +26,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages avahi) @@ -40,7 +42,8 @@ #:use-module (gnu packages glib) #:use-module (gnu packages pdf) #:use-module (gnu packages pkg-config) - #:use-module (gnu packages tls)) + #:use-module (gnu packages tls) + #:use-module (gnu packages qt)) =20 ;; Delay to avoid module circularity problems. (define ghostscript/cups @@ -445,3 +448,38 @@ device-specific programs to convert and print many typ= es of files.") ;; TODO: Make hp-setup find python-dbus. ("python-dbus" ,python-dbus))) (native-inputs `(("pkg-config" ,pkg-config))))) + +(define-public hplip-qt5 + (package + (inherit hplip) + (name "hplip-qt5") + (arguments + `(,@(substitute-keyword-arguments (package-arguments hplip) + ((#:configure-flags flags ''()) + `("--disable-network-build" + ,(string-append "--prefix=3D" (assoc-ref %outputs "out")) + ,(string-append "--sysconfdir=3D" (assoc-ref %outputs "out")= "/etc") + ;; Disable until mime.types merging works (FIXME). + "--disable-fax-build" + "--enable-hpcups-install" + "--enable-new-hpcups" + "--enable-cups_ppd_install" + "--enable-cups_drv_install" + "--enable-gui-build" + "--disable-qt4" + "--enable-qt5" + ;; TODO add foomatic drv install eventually. + ;; TODO --enable-policykit eventually. + ,(string-append "--with-cupsfilterdir=3D" + (assoc-ref %outputs "out") "/lib/cups/filter= ") + ,(string-append "--with-cupsbackenddir=3D" + (assoc-ref %outputs "out") "/lib/cups/backen= d") + ,(string-append "--with-icondir=3D" + (assoc-ref %outputs "out") "/share/applicati= ons") + ,(string-append "--with-systraydir=3D" + (assoc-ref %outputs "out") "/etc/xdg")))))) + (inputs + `(("python-pyqt" ,python-pyqt) + ("python-pygobject" ,python-pygobject) + ("python-sip" ,python-sip) + ,@(package-inputs hplip))))) --=20 2.13.0 --mnmkple4fbeh26je-- --iglannkibk6w5prh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEqIyK3RKYKNfqwC5S4i+bv+40hYgFAlk5nq8ACgkQ4i+bv+40 hYhznRAAs534Mmg6RsXn6v1qvaA55j0cD734GeMZmfTJQ6zYimHqIKZOdyeQmbhE G4P+iDzptVX8VvDVTHw93Dofq2iuIL/IDNZwr0I/fjOBrFEXQ64r4k0FnRFDLxJw cSMyqJZa64UUBJHvrorNlSsZli0T+0nvgz1tP4SKM59OQu2/ndHJvi1Bgift/isz DnpMpDoDLeFUzo3RcQwsBDXybMJH8qqu3bdXlWVQ9ZXMUe7Y/SeQ/Q/8aINZGEL1 t6pL3wpE8JdrGCRbYHlQMC/BMOpzcJ8JvSIHZ/ohnZGY3Lurl33XhLMWZ0VwB1Mb M/I05p2tusP70DFPX1h8d/wm7lDmPTsT8+CpztNI6rVHo9W9vpC9YAkk6yt6ss+E apM0ur060FFg1HgNjmgMrTucEGtxXT+duMmtjDT6Ytkrp9B1LCkWjIA1ge3f9Hpi PpdqLN7oHRw4dOaiur86EwTvfEJD1usCF7SpgZqcuYudcSjaNTahjPFjR77IJgKl BL1uiEUtEVK9Dy2+/FGDzksC26+n8jS9Mzg1vzk+DsQcsIw/QZlL5ImfHttHrv3w CokgxI1Ug6scLJXltROacrqlHm1nTohloF8pVypXmHdPyTjNzpAHUGPHGfsfbYgP owinzeZY3b2pXkJGeVjlJ8icJZgnGgMM9lw9Ik1oepidDCoJLzA= =HE2X -----END PGP SIGNATURE----- --iglannkibk6w5prh--