Subject: [PATCH] gnu: git-crypt: Fix build

From: Giovanni Biscuolo <[email-masked]>
Date: Mon, 01 May 2023 18:57:08 +0200

Hello,

From 09aab815c7b0afddc020fb47e6beca524ea4e886 Mon Sep 17 00:00:00 2001
Message-Id: <[email-masked]>
From: Giovanni Biscuolo <[email-masked]>
Date: Mon, 1 May 2023 18:34:57 +0200
Subject: [PATCH] gnu: git-crypt: Fix build
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Avoid this compilation warning:

warning: ‘int AES_set_encrypt_key(const unsigned char*, int, AES_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

Fixes bug#63202

* gnu/packages/version-control.scm: Add CXXFLAGS=-DOPENSSL_API_COMPAT=0x30000000L to build environment
---
 gnu/packages/version-control.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index c2ec490383..ba213bafa6 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -936,6 +936,7 @@ (define-public git-crypt
              #t))
          (replace 'build
            (lambda _
+             (setenv "CXXFLAGS" "-DOPENSSL_API_COMPAT=0x30000000L")
              (invoke "make" "ENABLE_MAN=yes")))
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)

base-commit: 0c6a7e1045cbd06336ef3699734a803a2e4038e5
-- 
2.39.2

Happy hacking!

-- 
Giovanni Biscuolo

Xelera IT Infrastructures