tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
monotone: fix build against pcre 8.42
Cray Elliott
7 years ago
169d5698
eb1afe45
+67
-1
2 changed files
expand all
collapse all
unified
split
pkgs
applications
version-management
monotone
default.nix
monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch
+1
-1
pkgs/applications/version-management/monotone/default.nix
···
18
18
sha256 = "124cwgi2q86hagslbk5idxbs9j896rfjzryhr6z63r6l485gcp7r";
19
19
};
20
20
21
21
-
patches = [ ];
21
21
+
patches = [ ./monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch ];
22
22
23
23
nativeBuildInputs = [ pkgconfig ];
24
24
buildInputs = [ boost zlib botan libidn lua pcre sqlite expect
+66
pkgs/applications/version-management/monotone/monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch
···
1
1
+
From 70f209ad582121750d54e3692b1e62c7f36af6f9 Mon Sep 17 00:00:00 2001
2
2
+
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
3
3
+
Date: Mon, 7 May 2018 14:09:06 +0200
4
4
+
Subject: [PATCH] Adapt to changes in pcre-8.42
5
5
+
MIME-Version: 1.0
6
6
+
Content-Type: text/plain; charset=UTF-8
7
7
+
Content-Transfer-Encoding: 8bit
8
8
+
9
9
+
pcre-8.42 replaced internal real_pcre with real_pcre8_or_16. This
10
10
+
broke monotone that decided not to use the public "pcre" type.
11
11
+
12
12
+
This patch adapts monotone to the pcre >= 8.42.
13
13
+
14
14
+
Signed-off-by: Petr Písař <ppisar@redhat.com>
15
15
+
---
16
16
+
src/pcrewrap.cc | 4 ++--
17
17
+
src/pcrewrap.hh | 4 ++--
18
18
+
2 files changed, 4 insertions(+), 4 deletions(-)
19
19
+
20
20
+
diff --git a/src/pcrewrap.cc b/src/pcrewrap.cc
21
21
+
index 8c0c9d1..30bafff 100644
22
22
+
--- a/src/pcrewrap.cc
23
23
+
+++ b/src/pcrewrap.cc
24
24
+
@@ -74,7 +74,7 @@ get_capturecount(void const * bd)
25
25
+
namespace pcre
26
26
+
{
27
27
+
typedef map<char const *,
28
28
+
- pair<struct real_pcre const *, struct pcre_extra const *> >
29
29
+
+ pair<struct real_pcre8_or_16 const *, struct pcre_extra const *> >
30
30
+
regex_cache;
31
31
+
32
32
+
class regex_cache_manager
33
33
+
@@ -86,7 +86,7 @@ public:
34
34
+
}
35
35
+
36
36
+
void store(char const * pattern,
37
37
+
- pair<struct real_pcre const *, struct pcre_extra const *>
38
38
+
+ pair<struct real_pcre8_or_16 const *, struct pcre_extra const *>
39
39
+
data)
40
40
+
{
41
41
+
cache[pattern] = data;
42
42
+
diff --git a/src/pcrewrap.hh b/src/pcrewrap.hh
43
43
+
index 3359cdd..5008e88 100644
44
44
+
--- a/src/pcrewrap.hh
45
45
+
+++ b/src/pcrewrap.hh
46
46
+
@@ -18,7 +18,7 @@
47
47
+
// definitions and so we don't actually expose it here. Unfortunately, this
48
48
+
// means we have to hope this pair of forward declarations will not change...
49
49
+
50
50
+
-struct real_pcre;
51
51
+
+struct real_pcre8_or_16;
52
52
+
struct pcre_extra;
53
53
+
54
54
+
namespace pcre
55
55
+
@@ -61,7 +61,7 @@ namespace pcre
56
56
+
regex & operator=(regex const &);
57
57
+
58
58
+
// data
59
59
+
- struct real_pcre const * basedat;
60
60
+
+ struct real_pcre8_or_16 const * basedat;
61
61
+
struct pcre_extra const * extradat;
62
62
+
63
63
+
// used by constructors
64
64
+
--
65
65
+
2.14.3
66
66
+