pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libi2pd: added patches/patch-NTCPSession.cpp



Module Name:	pkgsrc-wip
Committed By:	Jake Slazenger <jake.slazenger%yandex.com@localhost>
Pushed By:	jakeSlaz
Date:		Sat Mar 17 17:18:07 2018 +0300
Changeset:	4191ab1fb9f53ba981c1e29c60e9297be8c719b4

Modified Files:
	libi2pd/distinfo
Added Files:
	libi2pd/patches/patch-NTCPSession.cpp

Log Message:
libi2pd: added patches/patch-NTCPSession.cpp

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4191ab1fb9f53ba981c1e29c60e9297be8c719b4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libi2pd/distinfo                      |  1 +
 libi2pd/patches/patch-NTCPSession.cpp | 25 +++++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diffs:
diff --git a/libi2pd/distinfo b/libi2pd/distinfo
index 4ad0a8f755..a1065c39ca 100644
--- a/libi2pd/distinfo
+++ b/libi2pd/distinfo
@@ -6,3 +6,4 @@ SHA512 (i2pd/i2pd-2.18.0.tar.gz) = dc8e0f4df25188e4d72ea6ffa2c36e48a7d2103d02573
 Size (i2pd/i2pd-2.18.0.tar.gz) = 1868440 bytes
 SHA1 (patch-CMakeLists.txt) = 2a8dcce71bbd25eccfbf2af01902d8b6ad97b9a5
 SHA1 (patch-I2PEndian.h) = 805898295f9a1152c449376fbf74a339033f832f
+SHA1 (patch-NTCPSession.cpp) = 77e7110d9cf09ef409edb54639147b3f52438709
diff --git a/libi2pd/patches/patch-NTCPSession.cpp b/libi2pd/patches/patch-NTCPSession.cpp
new file mode 100644
index 0000000000..72d3d83d3f
--- /dev/null
+++ b/libi2pd/patches/patch-NTCPSession.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+>"due the bug in gcc 4.7. std::shared_future.get() is not const"
+github.com/PurpleI2P/i2pd/commit/30fb0f5a942cc5195c725feae25ab38f88b08436
+
+--- ../libi2pd/NTCPSession.cpp	2018-01-30 16:14:29.000000000 +0000
++++ ../libi2pd/NTCPSession.cpp
+@@ -171,7 +171,7 @@ namespace transport
+ 					return;
+ 				}
+ 			}
+-#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 7)
++#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 7) || defined(__NetBSD__)
+ // due the bug in gcc 4.7. std::shared_future.get() is not const
+ 			if (!m_DHKeysPair)
+ 				m_DHKeysPair = transports.GetNextDHKeysPair ();
+@@ -250,7 +250,7 @@ namespace transport
+ 		}
+ 		else
+ 		{
+-#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 7)
++#if (__GNUC__ == 4) && (__GNUC_MINOR__ <= 7) || defined (__NetBSD__)
+ // due the bug in gcc 4.7. std::shared_future.get() is not const
+ 			CreateAESKey (m_Establisher->phase2.pubKey);
+ 			HandlePhase2 ();


Home | Main Index | Thread Index | Old Index