From 306e1c1e4828901ec35cf026805ed3e8205f362b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= <ark@switnet.org>
Date: Thu, 16 Feb 2023 01:43:33 +0000
Subject: [PATCH] opendht: add backport as jami dependency

---
 helpers/make-opendht | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 helpers/make-opendht

diff --git a/helpers/make-opendht b/helpers/make-opendht
new file mode 100644
index 000000000..9282bf47e
--- /dev/null
+++ b/helpers/make-opendht
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+#    Copyright (C) 2023 Luis Guzmán <ark@switnet.org>
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program; if not, write to the Free Software
+#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+#
+
+VERSION=1
+EXTERNAL='deb-src http://ftp.us.debian.org/debian testing main'
+REPOKEY=04EE7237B7D453EC
+. ./config
+
+#Remove symbols missing at trisquel
+sed -i '/ZNSt12_Vector_baseIhSaIhEED1Ev@Base/d' debian/libopendht-c2.symbols
+sed -i '/ZNSt12_Vector_baseIhSaIhEED2Ev@Base/d' debian/libopendht-c2.symbols
+sed -i '/ZNSt14_Function_baseD1Ev@Base/d' debian/libopendht-c2.symbols
+sed -i '/ZNSt14_Function_baseD2Ev@Base/d' debian/libopendht-c2.symbols
+sed -i '/ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M/d' debian/libopendht-c2.symbols
+sed -i '/ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE24_M/d' debian/libopendht-c2.symbols
+
+changelog "Imported into trisquel backports as part of jami dependency."
+
+compile
-- 
GitLab