Browse code

Mercurial : Disable zstd

Change-Id: Id3aa47cc886fef34bc356a0d9d923acf5a54032e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4297
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

xiaolin-vmware authored on 2017/11/18 08:08:44
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,26 @@
0
+diff --git a/setup.py b/setup.py
1
+index f3d6d7e..3e591a2 100644
2
+--- a/setup.py
3
+@@ -399,7 +399,7 @@ class hgbuildext(build_ext):
4
+     negative_opt = buildextnegops
5
+ 
6
+     def initialize_options(self):
7
+-        self.zstd = True
8
++        self.zstd = False
9
+         return build_ext.initialize_options(self)
10
+ 
11
+     def build_extensions(self):
12
+@@ -776,9 +776,9 @@ extmodules = [
13
+               ['hgext/fsmonitor/pywatchman/bser.c']),
14
+     ]
15
+ 
16
+-sys.path.insert(0, 'contrib/python-zstandard')
17
+-import setup_zstd
18
+-extmodules.append(setup_zstd.get_c_extension(name='mercurial.zstd'))
19
++#sys.path.insert(0, 'contrib/python-zstandard')
20
++#import setup_zstd
21
++#extmodules.append(setup_zstd.get_c_extension(name='mercurial.zstd'))
22
+ 
23
+ try:
24
+     from distutils import cygwinccompiler
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        A free, distributed source control management tool.
2 2
 Name:           mercurial
3 3
 Version:        4.3.3
4
-Release:        1%{?dist}
4
+Release:        2%{?dist}
5 5
 License:        GPLv2+
6 6
 URL:            https://www.mercurial-scm.org
7 7
 Group:          System Environment/Security
... ...
@@ -9,6 +9,7 @@ Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        https://www.mercurial-scm.org/release/%{name}-%{version}.tar.gz
11 11
 %define sha1    mercurial=921c3c6302c4b1d4be6a56fcfa0a41553dd4bd44
12
+Patch0:         mercurial-disable-zstd.patch
12 13
 BuildRequires:  python2-devel
13 14
 BuildRequires:  python2-libs
14 15
 Requires:       python2
... ...
@@ -18,6 +19,8 @@ Mercurial is written in Python and is used by projects such as Mozilla and Vim.
18 18
 
19 19
 %prep
20 20
 %setup -q
21
+%patch0 -p1
22
+
21 23
 %build
22 24
 make build
23 25
 %install
... ...
@@ -47,6 +50,8 @@ rm -rf %{buildroot}/*
47 47
 %{python_sitelib}/*
48 48
 
49 49
 %changelog
50
+*   Tue Nov 14 2017 Xiaolin Li <xiaolinl@vmware.com> 4.3.3-2
51
+-   Disable zstd.
50 52
 *   Tue Oct 17 2017 Xiaolin Li <xiaolinl@vmware.com> 4.3.3-1
51 53
 -   Update verion to 4.3.3 for CVE-2017-1000115, CVE-2017-1000116.
52 54
 *   Tue Jun 20 2017 Xiaolin Li <xiaolinl@vmware.com> 3.7.1-7