From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 03 05:29:48 2019 Received: (at 36303) by debbugs.gnu.org; 3 Jul 2019 09:29:48 +0000 Received: from localhost ([127.0.0.1]:48383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hibaC-0005rz-LM for submit@debbugs.gnu.org; Wed, 03 Jul 2019 05:29:48 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hiba9-0005rq-1G for 36303@debbugs.gnu.org; Wed, 03 Jul 2019 05:29:42 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1562146168; cv=none; d=zoho.com; s=zohoarc; b=D5zipQfjpez8CC7GyckXEEKHiZ5TweEH0xNqs3/kgR1jYg4ycb3+9gp7IYgfLYmp5x/anSlZZsbeuZdkZb0QsfefyvZmPuXAB/BkURJ2sFAJE4TQdmQX+uR0BQF8XDjTYy5giHoSkQ9HCg15kXRLDSMo5H8zfvu/at/iN/y0b0Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562146168; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=WDpENw4DoOpwhR3Y8fbdho1L4JiDvWdMzwNm/Oas4To=; b=NTIWW9pJMlodj9dAy4GsFKPelNR1u/youX7VKXqekuKYJKgnMw3zzgbjVtQUOPLAhn14Ha3gmCc0EABcvrVpQISu+3JV1kkMZbKobNUCWpbJ1Mi9C/GftrllCNTDjoLSdlGG7btlV6LUeMgj3F7QhwdYbyfXPsaj02diLf7+wbM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=zete.tk; spf=pass smtp.mailfrom=jens@zete.tk; dmarc=pass header.from= header.from= Received: from localhost (165.84.56.164 [165.84.56.164]) by mx.zohomail.com with SMTPS id 1562146166512126.31061249721324; Wed, 3 Jul 2019 02:29:26 -0700 (PDT) From: Jens =?utf-8?Q?M=C3=B8lgaard?= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#36303] [PATCH] gnu: Add qtpass. In-Reply-To: <871rz85b5h.fsf@gnu.org> References: <87d0j81yls.fsf@zete.tk> <871rz85b5h.fsf@gnu.org> User-Agent: Emacs/26.2 (x86_64-pc-linux-gnu) Date: Wed, 03 Jul 2019 21:29:23 +1200 Message-ID: <87o92bbh58.fsf@zete.tk> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Zoho-Virus-Status: 1 X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36303 Cc: 36303@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Ludo, > Some packages have a pre-check phase that spawns Xvfb; others do: > (setenv "QT_QPA_PLATFORM" "offscreen") > Would one of these method allow us to run the tests? Yep, tests work fine with this! > Source file headers don=E2=80=99t specify any version of the GPL, so it s= hould > be =E2=80=98gpl3+=E2=80=99 (meaning =E2=80=9Cor any later version=E2=80= =9D). Ah, I thought only compatible later versions could be used, unless it was specified explicitly. I'll trust your advice and specify 'gpl3+'. I've also added a bit to install the desktop file, man-page and icon. So, patch should be good to go! Thanks, Jens M --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-qtpass.patch Content-Transfer-Encoding: quoted-printable From=209aa91d33b280197dbd590e8347260e213df623c7 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Jens=3D20M=3DC3=3DB8lgaard?=3D Date: Thu, 20 Jun 2019 19:24:47 +1200 Subject: [PATCH] gnu: Add qtpass. * gnu/packages/password-utils.scm (qtpass): New variable. =2D-- gnu/packages/password-utils.scm | 73 +++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.= scm index ed890f73c3..e1c8a10242 100644 =2D-- a/gnu/packages/password-utils.scm +++ b/gnu/packages/password-utils.scm @@ -22,6 +22,7 @@ ;;; Copyright =C2=A9 2018 Pierre Neidhardt ;;; Copyright =C2=A9 2018 Amirouche Boubekki ;;; Copyright =C2=A9 2018 Tim Gesthuizen +;;; Copyright =C2=A9 2019 Jens M=C3=B8lgaard ;;; ;;; This file is part of GNU Guix. ;;; @@ -562,6 +563,78 @@ one-time-password (OTP) secrets, generating OTP codes,= and displaying secret key URIs using the standard otpauth:// scheme.") (license license:gpl3+))) =20 +(define-public qtpass + (package + (name "qtpass") + (version "1.2.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/IJHack/QtPass.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1vfhfyccrxq9snyvayqfzm5rqik8ny2gysyv7nipc91kvhq3bhky")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; lupdate/lrelease need to find qmake. + (setenv "QMAKE" "qmake") + ;; qmake needs to find lrelease/lupdate. + (invoke "qmake" + "QMAKE_LRELEASE=3Dlrelease" + "QMAKE_LUPDATE=3Dlupdate" + (string-append "PREFIX=3D" out))))) + (add-after 'configure 'reset-resource-timestamps + ;; Reset timestamps on localization files for a reproducible bu= ild. + (lambda _ + (with-directory-excursion "localization" + (for-each (lambda (file) + (let* ((base (basename file ".qm")) + (src (string-append base ".ts")) + (st (stat src))) + (set-file-time file st))) + (find-files "." ".*\\.qm"))) + #t)) + (add-after 'install 'install-auxilliary + ;; Install man-page, icon and .desktop file. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (applications (string-append out "/share/applications"= )) + (icons (string-append out "/share/icons/hicolor/scalab= le/apps")) + (man (string-append out "/share/man/man1"))) + (install-file "qtpass.desktop" applications) + (install-file "artwork/icon.svg" icons) + (rename-file (string-append icons "/icon.svg") + (string-append icons "/qtpass-icon.svg")) + (install-file "qtpass.1" man) + #t))) + (add-before 'check 'check-setup + ;; Make Qt render "offscreen", required for tests. + (lambda _ + (setenv "QT_QPA_PLATFORM" "offscreen") + #t))))) + (native-inputs + `(("qttools" ,qttools))) + (inputs + `(("qtbase" ,qtbase) + ("qtsvg" ,qtsvg))) + (home-page "https://qtpass.org") + (synopsis "GUI for password manager password-store") + (description + "Qt-based graphical user interface for the password manager +password-store also known as pass. Can use either pass or gpg to interact +with password-store files. Features configurable password generation, +templates, clipboard handling, and per folder settings for multi-recipient +encryption.") + (license license:gpl3+))) + (define-public argon2 (package (name "argon2") =2D-=20 2.22.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE/VzWzPUn4Rzyui0RiZ866GcCScAFAl0cdXMACgkQiZ866GcC ScA90Q//QOmSkbKTZMOloJZX2Cyzbk2l+2q8hegGUsTIOTjw7+06wXpSTX08vOEb RcGxzMeD5yNGwtKVqJFLBYKdCFZXE4DNtd0gxl14Im3jqNa4lbEqpL6AB9RQqwQc 9GOQuLLowPpad0XosNtfPFTzskZGdM3+Pflf9l+MufDoi996NZ1ZUP+sWPbYnb70 ZoXYJHww5OM+JORcnh0yFUngLhBLsFW/pEw1y2C+6ENsY313+15tZYXsi65xQdm6 ON8oCuuEL8LllBbrQdwe9DigUqfEZ0ORr8bn+/GB9iFsxMl9D0qtCTfsg1tzUX4I 21/hjIF0XHKCYpR07XOg9LRRnaFgefMLoo/7guIxJ3LrLSLdv4dc+2nCN6y0kbGv q/s+2FNOmZfIferst30TB2WrpkmvmFvN4nkBuic+vmfF05JWhnHYw36iXgR1Euya hCfejOHLNxVChPUwkLLhPvJePQNP4sW8e/26Mr/8RikCN5l/FMnINTRycXT+7DzV oSL1jB51WNhuMZmTuRWd96LMYJRx1PJR2r6+IF9GlSFjLrhVUxmVvr4E/8LHwakZ kqvuiVjOY9czR4Vn3TwMUoDzz+aWIIsLtKhTkG9eqoBjpsIi9KHTaScDin+k3pdo o02HaWCYFqVPtNku4Mqqg7doc+juXX3JHwLU23R1WozhN6yYEsE= =sk+r -----END PGP SIGNATURE----- --==-=-=--