GNU bug report logs - #51024
[PATCH] gnu: veracrypt: New package

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Ryan Sundberg <ryan@HIDDEN>; Keywords: patch; dated Tue, 5 Oct 2021 06:56:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 51024 <at> debbugs.gnu.org:


Received: (at 51024) by debbugs.gnu.org; 5 Oct 2021 07:43:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 05 03:43:21 2021
Received: from localhost ([127.0.0.1]:38940 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mXf6f-0004gD-8O
	for submit <at> debbugs.gnu.org; Tue, 05 Oct 2021 03:43:21 -0400
Received: from albert.telenet-ops.be ([195.130.137.90]:44868)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1mXf6c-0004g1-EC
 for 51024 <at> debbugs.gnu.org; Tue, 05 Oct 2021 03:43:19 -0400
Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be
 ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d])
 by albert.telenet-ops.be with bizsmtp
 id 27jG260090mfAB4067jGVh; Tue, 05 Oct 2021 09:43:16 +0200
Message-ID: <11e92801d4735f81e9b18263e93c65405b6c9fe9.camel@HIDDEN>
Subject: Re: [bug#51024] [PATCH] gnu: veracrypt: New package
From: Maxime Devos <maximedevos@HIDDEN>
To: Ryan Sundberg <ryan@HIDDEN>, 51024 <at> debbugs.gnu.org
Date: Tue, 05 Oct 2021 09:43:09 +0200
In-Reply-To: <20211005065418.29878-1-ryan@HIDDEN>
References: <20211005065418.29878-1-ryan@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-NbXBIhm1E+duSef+5+NE"
User-Agent: Evolution 3.34.2 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21;
 t=1633419796; bh=jBJ38vxo0dSbiKEjaHSann3vuqwufGb0G6vv2UE4EDM=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=MbDOGQJLsBa76iepXAh3ybcOSXeXMlBy+UDuEx+0k9uiS1FjTRuVKsFmT6HteYxJH
 QQtKulq4VhdHWAG8oi92wHMVTiLMtCohVgK+CExYxoLLzrWrTfwh6ZYfDBvR6eSxoi
 auy5fBAz6gNOk72FLB0BcfJFCNRR594lH4/iFcJjDPL6HZUAWKCCBCurBCa/ffGENH
 m8CQKsnrjFTnuavKEYS01nUOmvE3y7OX2yD3tfoGos3BDTp9HVF7YlLhxnzP5OvTae
 BgfdlaYvQHBdjFw4E3W7d+8WtZiabDVh7IH2qUkO/9vhsUhfNoippAo2+bruCHbbU2
 kDRKzwOBEQPlQ==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 51024
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--=-NbXBIhm1E+duSef+5+NE
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Ryan Sundberg via Guix-patches via schreef op ma 04-10-2021 om 23:54 [-0700=
]:
> Adds a package for the Veracrypt disk encrption program
>=20
> * gnu/packages/crypto.scm: Add veracrypt
> ---
>  gnu/packages/crypto.scm | 49 +++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 49 insertions(+)
>=20
> diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
> index af1412c44e..42c9916582 100644
> --- a/gnu/packages/crypto.scm
> +++ b/gnu/packages/crypto.scm
> @@ -43,6 +43,7 @@
>    #:use-module (gnu packages admin)
>    #:use-module (gnu packages aidc)
>    #:use-module (gnu packages attr)
> +  #:use-module (gnu packages assembly)
>    #:use-module (gnu packages autotools)
>    #:use-module (gnu packages boost)
>    #:use-module (gnu packages check)
> @@ -80,6 +81,7 @@
>    #:use-module (gnu packages tcl)
>    #:use-module (gnu packages tls)
>    #:use-module (gnu packages version-control)
> +  #:use-module (gnu packages wxwidgets)
>    #:use-module (gnu packages xml)
>    #:use-module ((guix licenses) #:prefix license:)
>    #:use-module (guix packages)
> @@ -1462,3 +1464,50 @@ via FUSE without root permissions.  It is similar =
to EncFS, but provides
>  additional security and privacy measures such as hiding file sizes and d=
irectory
>  structure.  However CryFS is not considered stable yet by the developers=
.")
>      (license license:lgpl3+)))
> +
> +(define-public veracrypt
> +  (package
> +    (name "veracrypt")
> +    (version "1.24")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://www.veracrypt.fr/code/VeraCrypt/snapshot/VeraCrypt=
_"
> +             version ".tar.gz"))

On <https://veracrypt.fr/en/Home.html>, I see there's a version
VeraCrypt 1.24-Update8 with bug fixes.

> +       (sha256
> +        (base32 "0nn44x7ldkblgkndrd726nkil5bsdaki7j11xi21pr1gjrp7kq2g"))=
))
> +    (build-system gnu-build-system)
> +    (arguments
> +      '(#:phases
> +        (modify-phases %standard-phases
> +          (delete 'configure)
> +          (add-before 'build 'build-env
> +            (lambda* (#:key outputs #:allow-other-keys)
> +              (chdir "src")
> +              (setenv "CC" "gcc")

I'm surprised (setenv "CC" "gcc") was necessary, because src/Makefile
sets "export CC ?=3D gcc".

Use (cc-for-target) instead of "gcc" to make veracrypt cross-compilable.
The makefile uses "g++" in some places, shis might need to be (g++-for-targ=
et)
instead.

The makefile adds -maes, -msse2 and -msse3 on i*86 and x86_64.  You might
want to check these are normally available on all i686 CPUs.

The makefile calls "uname -m" to determine the architecture that's it being
compiled for, while that command determines the architecture of the build
machine.

There's a bunch of files in src/Boot/EFI that look like binary files.
These need to be removed or built from source.


> +              (setenv "DESTDIR" (assoc-ref outputs "out"))
> +              #t))
> +          (add-after 'install 'fix-install
> +            (lambda* (#:key outputs version #:allow-other-keys)
> +              (let ((out (assoc-ref outputs "out")))
> +                (install-file (string-append out "/usr/bin/veracrypt") (=
string-append out "/bin"))
> +                (copy-recursively (string-append out "/usr/share/applica=
tions") (string-append out "/share/applications"))
> +                (copy-recursively (string-append out "/usr/share/pixmaps=
") (string-append out "/share/pixmaps"))
> +                (copy-recursively (string-append out "/usr/share/doc/ver=
acrypt/HTML") (string-append out "/share/doc/veracrypt-1.24/HTML"))
> +                (delete-file-recursively (string-append out "/usr"))))))
> +        ; Veracrypt only has a test suite for Windows.
> +        #:tests? #f))
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)
> +       ("yasm" ,yasm)))
> +    (inputs
> +      `(("fuse" ,fuse)
> +        ("wxwidgets" ,wxwidgets)))
> +    (propagated-inputs
> +      `(("lvm2" ,lvm2)))
> +    (home-page "https://www.veracrypt.fr/")
> +    (synopsis "Disk encryption software")
> +    (description "VeraCrypt is a free open source disk encryption softwa=
re
> +based on TrueCrypt 7.1a.")
> +    (license license:asl2.0)))

src/Boot/Bios.h has a line =E2=80=98 Copyright (c) 2008-2012 TrueCrypt Deve=
lopers Association and which is governed
 by the TrueCrypt License 3.0.=E2=80=99
That license is non-free according to http://directory.fsf.org/wiki/License=
:TrueCrypt.
That line appears in other source files as well.


Greetings,
Maxime.

--=-NbXBIhm1E+duSef+5+NE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYVwCDRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7li+AQC18XPAmiptfeZrqx9Ovboy0Mdw
y5Vb51uBsQZqEkJFmQEAmSXEUJK+YSpSv8fb8DCbkiWvarL4tFashJzpe6JfVQM=
=69y1
-----END PGP SIGNATURE-----

--=-NbXBIhm1E+duSef+5+NE--





Information forwarded to guix-patches@HIDDEN:
bug#51024; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Oct 2021 06:55:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 05 02:55:02 2021
Received: from localhost ([127.0.0.1]:38853 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mXeLt-0001Bw-Tw
	for submit <at> debbugs.gnu.org; Tue, 05 Oct 2021 02:55:02 -0400
Received: from lists.gnu.org ([209.51.188.17]:41718)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ryan@HIDDEN>) id 1mXeLs-0001BT-7k
 for submit <at> debbugs.gnu.org; Tue, 05 Oct 2021 02:55:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59278)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ryan@HIDDEN>) id 1mXeLr-00012C-AS
 for guix-patches@HIDDEN; Tue, 05 Oct 2021 02:54:59 -0400
Received: from mail.arctype.co ([138.68.9.245]:55219)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ryan@HIDDEN>) id 1mXeLp-0002fa-4V
 for guix-patches@HIDDEN; Tue, 05 Oct 2021 02:54:59 -0400
Received: from authenticated-user (mail.arctype.co [138.68.9.245])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.arctype.co (Postfix) with ESMTPSA id 39D1013B22F;
 Tue,  5 Oct 2021 06:54:24 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=arctype.co; s=mail;
 t=1633416865; bh=CmWYZzvkN2S/eROgNZJk2ucOq0eyifs3gGpNfuo4Ies=;
 h=From:To:Cc:Subject:Date:From;
 b=T1uNuGOsOFzWu8Vquu8lUe+OZmKvad0XVuUHKKoqAnOuea+TLi/5kAFjSwROEmvwH
 5nzTqtK0mkuoa3/9ushdIutTuQQ/fJGmP8aXuVFE5zFLmsbSSW8fD8oL9+eiJy6x4y
 Yvfi/hRxMsBVijv7jbT0KGDGcCd5PdT87f2oRmd09lGIwDtb+0cJXXwUr5KdDVWOoo
 hNgpxrnjiZMx5e6bZiNnr0xfDSrLaloFM45uggHy4GqCbh0O4jhnhsFEyEQV/sd0te
 sfd8kXgpy2Qu0QqX0j1NFcXs++Wyx69lkJ9APJz4wpSe3YtwFSK0XbdhpM0gU5iOn6
 YjnMOde+gDxOw==
From: Ryan Sundberg <ryan@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: veracrypt: New package
Date: Mon,  4 Oct 2021 23:54:18 -0700
Message-Id: <20211005065418.29878-1-ryan@HIDDEN>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=138.68.9.245; envelope-from=ryan@HIDDEN;
 helo=mail.arctype.co
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: Ryan Sundberg <ryan@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

Adds a package for the Veracrypt disk encrption program

* gnu/packages/crypto.scm: Add veracrypt
---
 gnu/packages/crypto.scm | 49 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index af1412c44e..42c9916582 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -43,6 +43,7 @@
   #:use-module (gnu packages admin)
   #:use-module (gnu packages aidc)
   #:use-module (gnu packages attr)
+  #:use-module (gnu packages assembly)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages check)
@@ -80,6 +81,7 @@
   #:use-module (gnu packages tcl)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
+  #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages xml)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
@@ -1462,3 +1464,50 @@ via FUSE without root permissions.  It is similar to EncFS, but provides
 additional security and privacy measures such as hiding file sizes and directory
 structure.  However CryFS is not considered stable yet by the developers.")
     (license license:lgpl3+)))
+
+(define-public veracrypt
+  (package
+    (name "veracrypt")
+    (version "1.24")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://www.veracrypt.fr/code/VeraCrypt/snapshot/VeraCrypt_"
+             version ".tar.gz"))
+       (sha256
+        (base32 "0nn44x7ldkblgkndrd726nkil5bsdaki7j11xi21pr1gjrp7kq2g"))))
+    (build-system gnu-build-system)
+    (arguments
+      '(#:phases
+        (modify-phases %standard-phases
+          (delete 'configure)
+          (add-before 'build 'build-env
+            (lambda* (#:key outputs #:allow-other-keys)
+              (chdir "src")
+              (setenv "CC" "gcc")
+              (setenv "DESTDIR" (assoc-ref outputs "out"))
+              #t))
+          (add-after 'install 'fix-install
+            (lambda* (#:key outputs version #:allow-other-keys)
+              (let ((out (assoc-ref outputs "out")))
+                (install-file (string-append out "/usr/bin/veracrypt") (string-append out "/bin"))
+                (copy-recursively (string-append out "/usr/share/applications") (string-append out "/share/applications"))
+                (copy-recursively (string-append out "/usr/share/pixmaps") (string-append out "/share/pixmaps"))
+                (copy-recursively (string-append out "/usr/share/doc/veracrypt/HTML") (string-append out "/share/doc/veracrypt-1.24/HTML"))
+                (delete-file-recursively (string-append out "/usr"))))))
+        ; Veracrypt only has a test suite for Windows.
+        #:tests? #f))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("yasm" ,yasm)))
+    (inputs
+      `(("fuse" ,fuse)
+        ("wxwidgets" ,wxwidgets)))
+    (propagated-inputs
+      `(("lvm2" ,lvm2)))
+    (home-page "https://www.veracrypt.fr/")
+    (synopsis "Disk encryption software")
+    (description "VeraCrypt is a free open source disk encryption software
+based on TrueCrypt 7.1a.")
+    (license license:asl2.0)))
-- 
2.31.1





Acknowledgement sent to Ryan Sundberg <ryan@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#51024; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 5 Oct 2021 07:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.