Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/darcs/files/, dev-vcs/darcs/
Date: Sat, 15 Aug 2020 20:15:13
Message-Id: 1597522500.21bdeddb28b45dc1f9ca0c09496136f99c116d1b.slyfox@gentoo
1 commit: 21bdeddb28b45dc1f9ca0c09496136f99c116d1b
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 15 20:15:00 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 15 20:15:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21bdeddb
7
8 dev-vcs/darcs: fix PACKAG_VERSION definition
9
10 Reported-by: Toralf Förster
11 Closes: https://bugs.gentoo.org/737236
12 Package-Manager: Portage-3.0.2, Repoman-2.3.23
13 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
14
15 dev-vcs/darcs/darcs-2.16.1.ebuild | 2 ++
16 dev-vcs/darcs/files/darcs-2.16.1-curl.patch | 25 +++++++++++++++++++++++++
17 2 files changed, 27 insertions(+)
18
19 diff --git a/dev-vcs/darcs/darcs-2.16.1.ebuild b/dev-vcs/darcs/darcs-2.16.1.ebuild
20 index f1a923a53c4..e33373b0340 100644
21 --- a/dev-vcs/darcs/darcs-2.16.1.ebuild
22 +++ b/dev-vcs/darcs/darcs-2.16.1.ebuild
23 @@ -70,6 +70,8 @@ DEPEND="${RDEPEND}
24 curl? ( virtual/pkgconfig )
25 "
26
27 +PATCHES=("${FILESDIR}"/${PN}-2.16.1-curl.patch)
28 +
29 src_configure() {
30 haskell-cabal_src_configure \
31 $(cabal_flag curl curl) \
32
33 diff --git a/dev-vcs/darcs/files/darcs-2.16.1-curl.patch b/dev-vcs/darcs/files/darcs-2.16.1-curl.patch
34 new file mode 100644
35 index 00000000000..8216ce2e8c4
36 --- /dev/null
37 +++ b/dev-vcs/darcs/files/darcs-2.16.1-curl.patch
38 @@ -0,0 +1,25 @@
39 +https://bugs.gentoo.org/737236
40 +
41 +--- a/src/hscurl.c
42 ++++ b/src/hscurl.c
43 +@@ -11,6 +11,9 @@
44 + #define ENABLE_PIPELINING
45 + #endif
46 +
47 ++/* workaround for https://bugs.gentoo.org/737236 */
48 ++#include "cabal_macros.h"
49 ++
50 + enum RESULT_CODES
51 + {
52 + RESULT_OK = 0,
53 +@@ -46,6 +49,10 @@ struct UrlData
54 +
55 + static int debug = 0;
56 + #ifndef _WIN32
57 ++#ifndef PACKAGE_VERSION
58 ++/* workaround for https://bugs.gentoo.org/737236 */
59 ++# define PACKAGE_VERSION CURRENT_PACKAGE_VERSION
60 ++#endif
61 + static const char user_agent[] =
62 + "darcs/" PACKAGE_VERSION " libcurl/" LIBCURL_VERSION;
63 + #else