pycryptodome: new recipe (#7714)

* pycryptodome: new recipe

* Add the "separate_namespace" version: pycryptodomex.

This one installs as "Cryptodome", as to not conflict with pycrypto.

Minor clean ups on both recipes. Build, installed, and smoke-tested
on both x86_64 and x86_32 (GCC11).
This commit is contained in:
OscarL
2023-01-02 06:02:02 -03:00
committed by GitHub
parent 310f8b1453
commit 380c11c28d
4 changed files with 230 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
From 4fde02e923cc6f62a000caa66c12705ae5d2c6d3 Mon Sep 17 00:00:00 2001
From: Oscar Lesta <oscar.lesta@gmail.com>
Date: Sun, 1 Jan 2023 07:35:12 -0300
Subject: Change header guard to not clash with the one from Haiku's Errors.h
It was causing some compilation errors that were a bit puzzling.
diff --git a/src/errors.h b/src/errors.h
index 831980d..89834ce 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -1,5 +1,5 @@
-#ifndef _ERRORS_H
-#define _ERRORS_H
+#ifndef _ERRORS_CRYPTODOME_H
+#define _ERRORS_CRYPTODOME_H
/** Standard errors common to all ciphers **/
#define ERR_NULL 1
--
2.37.3