crash: update version to 7.1.8
fatrace: fix compilation issue
gdb: update version to 7.12.1
mesos: fix compilation issues
open-vm-tools: fix compilation issue
Change-Id: I65593faae0d688cd7be55833ce1908140341ed04
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2166
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
... | ... |
@@ -1,18 +1,19 @@ |
1 | 1 |
Name: crash |
2 |
-Version: 7.1.5 |
|
3 |
-Release: 2%{?dist} |
|
2 |
+Version: 7.1.8 |
|
3 |
+Release: 1%{?dist} |
|
4 | 4 |
Summary: kernel crash analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles |
5 | 5 |
Group: Development/Tools |
6 | 6 |
Vendor: VMware, Inc. |
7 | 7 |
Distribution: Photon |
8 | 8 |
URL: http://people.redhat.com/anderson/ |
9 | 9 |
Source0: http://people.redhat.com/anderson/crash-%{version}.tar.gz |
10 |
-%define sha1 crash=dd6b6f9e6aed648bdac4550d9d81442896dc98fd |
|
11 |
-%define CRASH_GCORE_VERSION 1.3.1 |
|
12 |
-Source1: http://people.redhat.com/anderson/extensions/crash-gcore-command-1.3.1.tar.gz |
|
13 |
-%define sha1 crash-gcore=9f1a889ad7b3f01c88866dac44cabddd7d35f99c |
|
10 |
+%define sha1 crash=bcacab6bdabb4c53cc8b0171011ed50ccaf5310d |
|
11 |
+%define CRASH_GCORE_VERSION 1.4.0 |
|
12 |
+Source1: http://people.redhat.com/anderson/extensions/crash-gcore-command-1.4.0.tar.gz |
|
13 |
+%define sha1 crash-gcore=1434f787d7210516b12c2f28e5b9e5917c5b3eca |
|
14 |
+Source2: gdb-7.6-extra-patch.patch |
|
14 | 15 |
License: GPL |
15 |
-Patch0: gcore-support-linux-4.4.patch |
|
16 |
+#Patch0: gcore-support-linux-4.4.patch |
|
16 | 17 |
BuildRequires: binutils |
17 | 18 |
BuildRequires: glibc-devel |
18 | 19 |
BuildRequires: ncurses-devel |
... | ... |
@@ -36,10 +37,11 @@ This package contains libraries and header files need for development. |
36 | 36 |
%prep |
37 | 37 |
%setup -q -n %{name}-%{version} |
38 | 38 |
%setup -a 1 |
39 |
-cd crash-gcore-command-%{CRASH_GCORE_VERSION} |
|
40 |
-%patch0 -p1 |
|
39 |
+#cd crash-gcore-command-%{CRASH_GCORE_VERSION} |
|
40 |
+#%patch0 -p1 |
|
41 | 41 |
|
42 | 42 |
%build |
43 |
+cat %{SOURCE2} >> gdb-7.6.patch |
|
43 | 44 |
make RPMPKG=%{version}-%{release} |
44 | 45 |
cd crash-gcore-command-%{CRASH_GCORE_VERSION} |
45 | 46 |
make -f gcore.mk ARCH=SUPPORTED TARGET=X86_64 |
... | ... |
@@ -72,6 +74,9 @@ install -pm 755 crash-gcore-command-%{CRASH_GCORE_VERSION}/gcore.so %{buildroot} |
72 | 72 |
%{_includedir}/crash/*.h |
73 | 73 |
|
74 | 74 |
%changelog |
75 |
+* Wed Mar 22 2017 Alexey Makhalov <amakhalov@vmware.com> 7.1.8-1 |
|
76 |
+- Update version to 7.1.8 (it supports linux-4.9) |
|
77 |
+- Disable a patch - it requires a verification. |
|
75 | 78 |
* Fri Oct 07 2016 Alexey Makhalov <amakhalov@vmware.com> 7.1.5-2 |
76 | 79 |
- gcore-support-linux-4.4.patch |
77 | 80 |
* Fri Sep 30 2016 Alexey Makhalov <amakhalov@vmware.com> 7.1.5-1 |
78 | 81 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,22 @@ |
0 |
+--- gdb-7.6/gdb/amd64-linux-nat.c.orig |
|
1 |
+@@ -482,7 +482,7 @@ |
|
2 |
+ a request for a thread's local storage address. */ |
|
3 |
+ |
|
4 |
+ ps_err_e |
|
5 |
+-ps_get_thread_area (const struct ps_prochandle *ph, |
|
6 |
++ps_get_thread_area (struct ps_prochandle *ph, |
|
7 |
+ lwpid_t lwpid, int idx, void **base) |
|
8 |
+ { |
|
9 |
+ if (gdbarch_bfd_arch_info (target_gdbarch ())->bits_per_word == 32) |
|
10 |
+--- gdb-7.6/gdb/gdb_proc_service.h.orig |
|
11 |
+@@ -115,7 +115,7 @@ |
|
12 |
+ /* Fetch the special per-thread address associated with the given LWP. |
|
13 |
+ This call is only used on a few platforms (most use a normal register). |
|
14 |
+ The meaning of the `int' parameter is machine-dependent. */ |
|
15 |
+-extern ps_err_e ps_get_thread_area (const struct ps_prochandle *, |
|
16 |
++extern ps_err_e ps_get_thread_area (struct ps_prochandle *, |
|
17 |
+ lwpid_t, int, psaddr_t *); |
|
18 |
+ |
|
19 |
+ |
... | ... |
@@ -1,11 +1,12 @@ |
1 | 1 |
Summary: fatrace reports file access events from all running processes. |
2 | 2 |
Name: fatrace |
3 | 3 |
Version: 0.12 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: GNU GPLv3 |
6 | 6 |
URL: https://launchpad.net/fatrace |
7 | 7 |
Source0: https://launchpad.net/fatrace/trunk/0.12/+download/%{name}-%{version}.tar.bz2 |
8 | 8 |
%define sha1 fatrace=af7d1249307c2d24083a7d9395464e72601ad358 |
9 |
+Patch0: fatrace-sysmacros.patch |
|
9 | 10 |
Requires: python2 |
10 | 11 |
Group: Utilities |
11 | 12 |
Vendor: VMware, Inc. |
... | ... |
@@ -17,6 +18,7 @@ Its main purpose is to find processes which keep waking up the disk unnecessaril |
17 | 17 |
|
18 | 18 |
%prep |
19 | 19 |
%setup -q |
20 |
+%patch0 -p1 |
|
20 | 21 |
|
21 | 22 |
%build |
22 | 23 |
make %{?_smp_mflags} |
... | ... |
@@ -34,5 +36,7 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
34 | 34 |
%{_mandir}/* |
35 | 35 |
|
36 | 36 |
%changelog |
37 |
-* Mon Feb 6 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.12-1 |
|
38 |
-- initial version |
|
37 |
+* Fri Mar 24 2017 Alexey Makhalov <amakhalov@vmware.com> 0.12-2 |
|
38 |
+- Added fatrace-sysmacros.patch to fix build issue with glibc-2.25 |
|
39 |
+* Mon Feb 6 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.12-1 |
|
40 |
+- initial version |
... | ... |
@@ -1,11 +1,11 @@ |
1 | 1 |
Summary: C debugger |
2 | 2 |
Name: gdb |
3 |
-Version: 7.8.2 |
|
4 |
-Release: 3%{?dist} |
|
3 |
+Version: 7.12.1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: GPLv2+ |
6 | 6 |
URL: http://www.gnu.org/software/%{name} |
7 |
-Source0: http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.gz |
|
8 |
-%define sha1 gdb=67cfbc6efcff674aaac3af83d281cf9df0839ff9 |
|
7 |
+Source0: http://ftp.gnu.org/gnu/gdb/%{name}-%{version}.tar.xz |
|
8 |
+%define sha1 gdb=ef77c5345d6f9fdcdf7a5d8503301242b701936e |
|
9 | 9 |
Source1: http://heanet.dl.sourceforge.net/sourceforge/tcl/tcl8.5.14-src.tar.gz |
10 | 10 |
%define sha1 tcl=9bc452eec453c2ed37625874b9011563db687b07 |
11 | 11 |
Source2: http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz |
... | ... |
@@ -78,7 +78,8 @@ make %{?_smp_mflags} check |
78 | 78 |
|
79 | 79 |
%files -f %{name}.lang |
80 | 80 |
%defattr(-,root,root) |
81 |
-%{_includedir}/*.h |
|
81 |
+%exclude %{_datadir}/locale |
|
82 |
+%exclude %{_includedir}/*.h |
|
82 | 83 |
%{_includedir}/gdb/*.h |
83 | 84 |
%{_libdir}/*.so |
84 | 85 |
%{_infodir}/*.gz |
... | ... |
@@ -89,9 +90,11 @@ make %{?_smp_mflags} check |
89 | 89 |
%{_mandir}/*/* |
90 | 90 |
|
91 | 91 |
%changelog |
92 |
-* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.8.2-3 |
|
93 |
-- GA - Bump release of all rpms |
|
94 |
-* Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 7.8.2-2 |
|
95 |
-- Handled locale files with macro find_lang |
|
96 |
-* Wed Apr 08 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.8.2-1 |
|
97 |
-- Initial build. First version |
|
92 |
+* Wed Mar 22 2017 Alexey Makhalov <amakhalov@vmware.com> 7.12.1-1 |
|
93 |
+- Version update |
|
94 |
+* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.8.2-3 |
|
95 |
+- GA - Bump release of all rpms |
|
96 |
+* Tue Nov 10 2015 Xiaolin Li <xiaolinl@vmware.com> 7.8.2-2 |
|
97 |
+- Handled locale files with macro find_lang |
|
98 |
+* Wed Apr 08 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 7.8.2-1 |
|
99 |
+- Initial build. First version |
98 | 100 |
deleted file mode 100644 |
... | ... |
@@ -1,72 +0,0 @@ |
1 |
-Submitted By: Armin K. <krejzi at email dot com> |
|
2 |
-Date: 2013-02-11 |
|
3 |
-Initial Package Version: 2.17 |
|
4 |
-Upstream Status: Not Applicable |
|
5 |
-Origin: Self |
|
6 |
-Description: This patch removes references to /var/db directory which is not part |
|
7 |
- of FHS and replaces them with more suitable directories in /var |
|
8 |
- hierarchy - /var/cache/nscd for nscd and /var/lib/nss_db for nss_db. |
|
9 |
- |
|
10 |
-+++ b/Makeconfig 2013-02-11 01:32:32.500667439 +0100 |
|
11 |
-@@ -250,7 +250,7 @@ |
|
12 |
- |
|
13 |
- # Directory for the database files and Makefile for nss_db. |
|
14 |
- ifndef vardbdir |
|
15 |
--vardbdir = $(localstatedir)/db |
|
16 |
-+vardbdir = $(localstatedir)/lib/nss_db |
|
17 |
- endif |
|
18 |
- inst_vardbdir = $(install_root)$(vardbdir) |
|
19 |
- |
|
20 |
-+++ b/nscd/nscd.h 2013-02-11 01:32:32.500667439 +0100 |
|
21 |
-@@ -112,11 +112,11 @@ |
|
22 |
- |
|
23 |
- |
|
24 |
- /* Paths of the file for the persistent storage. */ |
|
25 |
--#define _PATH_NSCD_PASSWD_DB "/var/db/nscd/passwd" |
|
26 |
--#define _PATH_NSCD_GROUP_DB "/var/db/nscd/group" |
|
27 |
--#define _PATH_NSCD_HOSTS_DB "/var/db/nscd/hosts" |
|
28 |
--#define _PATH_NSCD_SERVICES_DB "/var/db/nscd/services" |
|
29 |
--#define _PATH_NSCD_NETGROUP_DB "/var/db/nscd/netgroup" |
|
30 |
-+#define _PATH_NSCD_PASSWD_DB "/var/cache/nscd/passwd" |
|
31 |
-+#define _PATH_NSCD_GROUP_DB "/var/cache/nscd/group" |
|
32 |
-+#define _PATH_NSCD_HOSTS_DB "/var/cache/nscd/hosts" |
|
33 |
-+#define _PATH_NSCD_SERVICES_DB "/var/cache/nscd/services" |
|
34 |
-+#define _PATH_NSCD_NETGROUP_DB "/var/cache/nscd/netgroup" |
|
35 |
- |
|
36 |
- /* Path used when not using persistent storage. */ |
|
37 |
- #define _PATH_NSCD_XYZ_DB_TMP "/var/run/nscd/dbXXXXXX" |
|
38 |
-+++ b/nss/db-Makefile 2013-02-11 01:32:32.500667439 +0100 |
|
39 |
-@@ -22,7 +22,7 @@ |
|
40 |
- /etc/rpc /etc/services /etc/shadow /etc/gshadow \ |
|
41 |
- /etc/netgroup) |
|
42 |
- |
|
43 |
--VAR_DB = /var/db |
|
44 |
-+VAR_DB = /var/lib/nss_db |
|
45 |
- |
|
46 |
- AWK = awk |
|
47 |
- MAKEDB = makedb --quiet |
|
48 |
-+++ b/sysdeps/generic/paths.h 2013-02-11 01:32:32.500667439 +0100 |
|
49 |
-@@ -68,7 +68,7 @@ |
|
50 |
- /* Provide trailing slash, since mostly used for building pathnames. */ |
|
51 |
- #define _PATH_DEV "/dev/" |
|
52 |
- #define _PATH_TMP "/tmp/" |
|
53 |
--#define _PATH_VARDB "/var/db/" |
|
54 |
-+#define _PATH_VARDB "/var/lib/nss_db/" |
|
55 |
- #define _PATH_VARRUN "/var/run/" |
|
56 |
- #define _PATH_VARTMP "/var/tmp/" |
|
57 |
- |
|
58 |
-+++ b/sysdeps/unix/sysv/linux/paths.h 2013-02-11 01:32:32.504000831 +0100 |
|
59 |
-@@ -68,7 +68,7 @@ |
|
60 |
- /* Provide trailing slash, since mostly used for building pathnames. */ |
|
61 |
- #define _PATH_DEV "/dev/" |
|
62 |
- #define _PATH_TMP "/tmp/" |
|
63 |
--#define _PATH_VARDB "/var/db/" |
|
64 |
-+#define _PATH_VARDB "/var/lib/nss_db/" |
|
65 |
- #define _PATH_VARRUN "/var/run/" |
|
66 |
- #define _PATH_VARTMP "/var/tmp/" |
|
67 |
- |
68 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,72 @@ |
0 |
+Submitted By: Armin K. <krejzi at email dot com> |
|
1 |
+Date: 2013-02-11 |
|
2 |
+Initial Package Version: 2.17 |
|
3 |
+Upstream Status: Not Applicable |
|
4 |
+Origin: Self |
|
5 |
+Description: This patch removes references to /var/db directory which is not part |
|
6 |
+ of FHS and replaces them with more suitable directories in /var |
|
7 |
+ hierarchy - /var/cache/nscd for nscd and /var/lib/nss_db for nss_db. |
|
8 |
+ |
|
9 |
+--- a/Makeconfig 2012-12-25 04:02:13.000000000 +0100 |
|
10 |
+@@ -250,7 +250,7 @@ |
|
11 |
+ |
|
12 |
+ # Directory for the database files and Makefile for nss_db. |
|
13 |
+ ifndef vardbdir |
|
14 |
+-vardbdir = $(localstatedir)/db |
|
15 |
++vardbdir = $(localstatedir)/lib/nss_db |
|
16 |
+ endif |
|
17 |
+ inst_vardbdir = $(install_root)$(vardbdir) |
|
18 |
+ |
|
19 |
+--- a/nscd/nscd.h 2012-12-25 04:02:13.000000000 +0100 |
|
20 |
+@@ -112,11 +112,11 @@ |
|
21 |
+ |
|
22 |
+ |
|
23 |
+ /* Paths of the file for the persistent storage. */ |
|
24 |
+-#define _PATH_NSCD_PASSWD_DB "/var/db/nscd/passwd" |
|
25 |
+-#define _PATH_NSCD_GROUP_DB "/var/db/nscd/group" |
|
26 |
+-#define _PATH_NSCD_HOSTS_DB "/var/db/nscd/hosts" |
|
27 |
+-#define _PATH_NSCD_SERVICES_DB "/var/db/nscd/services" |
|
28 |
+-#define _PATH_NSCD_NETGROUP_DB "/var/db/nscd/netgroup" |
|
29 |
++#define _PATH_NSCD_PASSWD_DB "/var/cache/nscd/passwd" |
|
30 |
++#define _PATH_NSCD_GROUP_DB "/var/cache/nscd/group" |
|
31 |
++#define _PATH_NSCD_HOSTS_DB "/var/cache/nscd/hosts" |
|
32 |
++#define _PATH_NSCD_SERVICES_DB "/var/cache/nscd/services" |
|
33 |
++#define _PATH_NSCD_NETGROUP_DB "/var/cache/nscd/netgroup" |
|
34 |
+ |
|
35 |
+ /* Path used when not using persistent storage. */ |
|
36 |
+ #define _PATH_NSCD_XYZ_DB_TMP "/var/run/nscd/dbXXXXXX" |
|
37 |
+--- a/nss/db-Makefile 2012-12-25 04:02:13.000000000 +0100 |
|
38 |
+@@ -22,7 +22,7 @@ |
|
39 |
+ /etc/rpc /etc/services /etc/shadow /etc/gshadow \ |
|
40 |
+ /etc/netgroup) |
|
41 |
+ |
|
42 |
+-VAR_DB = /var/db |
|
43 |
++VAR_DB = /var/lib/nss_db |
|
44 |
+ |
|
45 |
+ AWK = awk |
|
46 |
+ MAKEDB = makedb --quiet |
|
47 |
+--- a/sysdeps/generic/paths.h 2012-12-25 04:02:13.000000000 +0100 |
|
48 |
+@@ -68,7 +68,7 @@ |
|
49 |
+ /* Provide trailing slash, since mostly used for building pathnames. */ |
|
50 |
+ #define _PATH_DEV "/dev/" |
|
51 |
+ #define _PATH_TMP "/tmp/" |
|
52 |
+-#define _PATH_VARDB "/var/db/" |
|
53 |
++#define _PATH_VARDB "/var/lib/nss_db/" |
|
54 |
+ #define _PATH_VARRUN "/var/run/" |
|
55 |
+ #define _PATH_VARTMP "/var/tmp/" |
|
56 |
+ |
|
57 |
+--- a/sysdeps/unix/sysv/linux/paths.h 2012-12-25 04:02:13.000000000 +0100 |
|
58 |
+@@ -68,7 +68,7 @@ |
|
59 |
+ /* Provide trailing slash, since mostly used for building pathnames. */ |
|
60 |
+ #define _PATH_DEV "/dev/" |
|
61 |
+ #define _PATH_TMP "/tmp/" |
|
62 |
+-#define _PATH_VARDB "/var/db/" |
|
63 |
++#define _PATH_VARDB "/var/lib/nss_db/" |
|
64 |
+ #define _PATH_VARRUN "/var/run/" |
|
65 |
+ #define _PATH_VARTMP "/var/tmp/" |
|
66 |
+ |
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
|
4 | 4 |
Summary: Main C library |
5 | 5 |
Name: glibc |
6 |
-Version: 2.24 |
|
6 |
+Version: 2.25 |
|
7 | 7 |
Release: 1%{?dist} |
8 | 8 |
License: LGPLv2+ |
9 | 9 |
URL: http://www.gnu.org/software/libc |
... | ... |
@@ -11,12 +11,11 @@ Group: Applications/System |
11 | 11 |
Vendor: VMware, Inc. |
12 | 12 |
Distribution: Photon |
13 | 13 |
Source0: http://ftp.gnu.org/gnu/glibc/%{name}-%{version}.tar.xz |
14 |
-%define sha1 glibc=e5d9725d94d59475d9a6869a4447a70c1bf3ef78 |
|
14 |
+%define sha1 glibc=5fff5a94ef4470bf48fe1b79093185f19f5c827a |
|
15 | 15 |
Source1: locale-gen.sh |
16 | 16 |
Source2: locale-gen.conf |
17 |
-Patch0: http://http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.24-fhs-1.patch |
|
17 |
+Patch0: http://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.25-fhs-1.patch |
|
18 | 18 |
Patch1: glibc-2.24-bindrsvport-blacklist.patch |
19 |
-Patch2: pthread_create-fix-use-after-free.patch |
|
20 | 19 |
Provides: rtld(GNU_HASH) |
21 | 20 |
Requires: filesystem |
22 | 21 |
%description |
... | ... |
@@ -51,7 +50,6 @@ These are the additional internationalization files of glibc. |
51 | 51 |
sed -i 's/\\$$(pwd)/`pwd`/' timezone/Makefile |
52 | 52 |
%patch0 -p1 |
53 | 53 |
%patch1 -p1 |
54 |
-%patch2 -p1 |
|
55 | 54 |
install -vdm 755 %{_builddir}/%{name}-build |
56 | 55 |
# do not try to explicitly provide GLIBC_PRIVATE versioned libraries |
57 | 56 |
%define __find_provides %{_builddir}/%{name}-%{version}/find_provides.sh |
... | ... |
@@ -204,6 +202,8 @@ printf "Creating ldconfig cache\n";/sbin/ldconfig |
204 | 204 |
|
205 | 205 |
|
206 | 206 |
%changelog |
207 |
+* Wed Mar 22 2017 Alexey Makhalov <amakhalov@vmware.com> 2.25-1 |
|
208 |
+- Version update |
|
207 | 209 |
* Wed Dec 14 2016 Alexey Makhalov <amakhalov@vmware.com> 2.24-1 |
208 | 210 |
- Version update |
209 | 211 |
* Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 2.22-13 |
210 | 212 |
deleted file mode 100644 |
... | ... |
@@ -1,132 +0,0 @@ |
1 |
-diff -Naur glibc-2.22_orig/nptl/createthread.c glibc-2.22/nptl/createthread.c |
|
2 |
-+++ glibc-2.22/nptl/createthread.c 2016-09-28 11:27:50.831206703 -0700 |
|
3 |
-@@ -25,13 +25,13 @@ |
|
4 |
- |
|
5 |
- static int |
|
6 |
- create_thread (struct pthread *pd, const struct pthread_attr *attr, |
|
7 |
-- bool stopped_start, STACK_VARIABLES_PARMS, bool *thread_ran) |
|
8 |
-+ bool *stopped_start, STACK_VARIABLES_PARMS, bool *thread_ran) |
|
9 |
- { |
|
10 |
- /* If the implementation needs to do some tweaks to the thread after |
|
11 |
- it has been created at the OS level, it can set STOPPED_START here. */ |
|
12 |
- |
|
13 |
-- pd->stopped_start = stopped_start; |
|
14 |
-- if (__glibc_unlikely (stopped_start)) |
|
15 |
-+ pd->stopped_start = *stopped_start; |
|
16 |
-+ if (__glibc_unlikely (*stopped_start)) |
|
17 |
- /* We make sure the thread does not run far by forcing it to get a |
|
18 |
- lock. We lock it here too so that the new thread cannot continue |
|
19 |
- until we tell it to. */ |
|
20 |
-diff -Naur glibc-2.22_orig/nptl/pthread_create.c glibc-2.22/nptl/pthread_create.c |
|
21 |
-+++ glibc-2.22/nptl/pthread_create.c 2016-09-28 11:31:20.839209223 -0700 |
|
22 |
-@@ -72,7 +72,7 @@ |
|
23 |
- case it is responsible for doing its own cleanup. */ |
|
24 |
- |
|
25 |
- static int create_thread (struct pthread *pd, const struct pthread_attr *attr, |
|
26 |
-- bool stopped_start, STACK_VARIABLES_PARMS, |
|
27 |
-+ bool *stopped_start, STACK_VARIABLES_PARMS, |
|
28 |
- bool *thread_ran); |
|
29 |
- |
|
30 |
- #include <createthread.c> |
|
31 |
-@@ -633,14 +633,16 @@ |
|
32 |
- that cares whether the thread count is correct. */ |
|
33 |
- atomic_increment (&__nptl_nthreads); |
|
34 |
- |
|
35 |
-+ bool stopped_start = false; |
|
36 |
- bool thread_ran = false; |
|
37 |
- |
|
38 |
- /* Start the thread. */ |
|
39 |
- if (__glibc_unlikely (report_thread_creation (pd))) |
|
40 |
- { |
|
41 |
-+ stopped_start = true; |
|
42 |
- /* Create the thread. We always create the thread stopped |
|
43 |
- so that it does not get far before we tell the debugger. */ |
|
44 |
-- retval = create_thread (pd, iattr, true, STACK_VARIABLES_ARGS, |
|
45 |
-+ retval = create_thread (pd, iattr, &stopped_start, STACK_VARIABLES_ARGS, |
|
46 |
- &thread_ran); |
|
47 |
- if (retval == 0) |
|
48 |
- { |
|
49 |
-@@ -667,7 +669,7 @@ |
|
50 |
- } |
|
51 |
- } |
|
52 |
- else |
|
53 |
-- retval = create_thread (pd, iattr, false, STACK_VARIABLES_ARGS, |
|
54 |
-+ retval = create_thread (pd, iattr, &stopped_start, STACK_VARIABLES_ARGS, |
|
55 |
- &thread_ran); |
|
56 |
- |
|
57 |
- if (__glibc_unlikely (retval != 0)) |
|
58 |
-@@ -701,7 +703,8 @@ |
|
59 |
- } |
|
60 |
- else |
|
61 |
- { |
|
62 |
-- if (pd->stopped_start) |
|
63 |
-+ /* do not use pd->stopped_start to avoid use after free */ |
|
64 |
-+ if (stopped_start) |
|
65 |
- /* The thread blocked on this lock either because we're doing TD_CREATE |
|
66 |
- event reporting, or for some other reason that create_thread chose. |
|
67 |
- Now let it run free. */ |
|
68 |
-diff -Naur glibc-2.22_orig/sysdeps/nacl/createthread.c glibc-2.22/sysdeps/nacl/createthread.c |
|
69 |
-+++ glibc-2.22/sysdeps/nacl/createthread.c 2016-09-28 11:27:34.983206513 -0700 |
|
70 |
-@@ -32,12 +32,12 @@ |
|
71 |
- |
|
72 |
- static int |
|
73 |
- create_thread (struct pthread *pd, const struct pthread_attr *attr, |
|
74 |
-- bool stopped_start, STACK_VARIABLES_PARMS, bool *thread_ran) |
|
75 |
-+ bool *stopped_start, STACK_VARIABLES_PARMS, bool *thread_ran) |
|
76 |
- { |
|
77 |
- pd->tid = __nacl_get_tid (pd); |
|
78 |
- |
|
79 |
-- pd->stopped_start = stopped_start; |
|
80 |
-- if (__glibc_unlikely (stopped_start)) |
|
81 |
-+ pd->stopped_start = *stopped_start; |
|
82 |
-+ if (__glibc_unlikely (*stopped_start)) |
|
83 |
- /* We make sure the thread does not run far by forcing it to get a |
|
84 |
- lock. We lock it here too so that the new thread cannot continue |
|
85 |
- until we tell it to. */ |
|
86 |
-diff -Naur glibc-2.22_orig/sysdeps/unix/sysv/linux/createthread.c glibc-2.22/sysdeps/unix/sysv/linux/createthread.c |
|
87 |
-+++ glibc-2.22/sysdeps/unix/sysv/linux/createthread.c 2016-09-28 11:27:18.275206312 -0700 |
|
88 |
-@@ -46,7 +46,7 @@ |
|
89 |
- |
|
90 |
- static int |
|
91 |
- create_thread (struct pthread *pd, const struct pthread_attr *attr, |
|
92 |
-- bool stopped_start, STACK_VARIABLES_PARMS, bool *thread_ran) |
|
93 |
-+ bool *stopped_start, STACK_VARIABLES_PARMS, bool *thread_ran) |
|
94 |
- { |
|
95 |
- /* Determine whether the newly created threads has to be started |
|
96 |
- stopped since we have to set the scheduling parameters or set the |
|
97 |
-@@ -54,10 +54,10 @@ |
|
98 |
- if (attr != NULL |
|
99 |
- && (__glibc_unlikely (attr->cpuset != NULL) |
|
100 |
- || __glibc_unlikely ((attr->flags & ATTR_FLAG_NOTINHERITSCHED) != 0))) |
|
101 |
-- stopped_start = true; |
|
102 |
-+ *stopped_start = true; |
|
103 |
- |
|
104 |
-- pd->stopped_start = stopped_start; |
|
105 |
-- if (__glibc_unlikely (stopped_start)) |
|
106 |
-+ pd->stopped_start = *stopped_start; |
|
107 |
-+ if (__glibc_unlikely (*stopped_start)) |
|
108 |
- /* We make sure the thread does not run far by forcing it to get a |
|
109 |
- lock. We lock it here too so that the new thread cannot continue |
|
110 |
- until we tell it to. */ |
|
111 |
-@@ -117,7 +117,7 @@ |
|
112 |
- /* Set the affinity mask if necessary. */ |
|
113 |
- if (attr->cpuset != NULL) |
|
114 |
- { |
|
115 |
-- assert (stopped_start); |
|
116 |
-+ assert (*stopped_start); |
|
117 |
- |
|
118 |
- res = INTERNAL_SYSCALL (sched_setaffinity, err, 3, pd->tid, |
|
119 |
- attr->cpusetsize, attr->cpuset); |
|
120 |
-@@ -140,7 +140,7 @@ |
|
121 |
- /* Set the scheduling parameters. */ |
|
122 |
- if ((attr->flags & ATTR_FLAG_NOTINHERITSCHED) != 0) |
|
123 |
- { |
|
124 |
-- assert (stopped_start); |
|
125 |
-+ assert (*stopped_start); |
|
126 |
- |
|
127 |
- res = INTERNAL_SYSCALL (sched_setscheduler, err, 3, pd->tid, |
|
128 |
- pd->schedpolicy, &pd->schedparam); |
129 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,22 @@ |
0 |
+diff -Naur mesos-1.1.0.orig/src/linux/fs.cpp mesos-1.1.0/src/linux/fs.cpp |
|
1 |
+--- mesos-1.1.0.orig/src/linux/fs.cpp 2016-11-04 05:46:21.000000000 -0700 |
|
2 |
+@@ -17,6 +17,7 @@ |
|
3 |
+ #include <errno.h> |
|
4 |
+ #include <stdio.h> |
|
5 |
+ #include <string.h> |
|
6 |
++#include <sys/sysmacros.h> |
|
7 |
+ |
|
8 |
+ #include <linux/limits.h> |
|
9 |
+ #include <linux/unistd.h> |
|
10 |
+diff -Naur mesos-1.1.0.orig/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp mesos-1.1.0/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp |
|
11 |
+--- mesos-1.1.0.orig/src/slave/containerizer/mesos/isolators/gpu/isolator.cpp 2016-11-04 05:46:21.000000000 -0700 |
|
12 |
+@@ -15,6 +15,7 @@ |
|
13 |
+ // limitations under the License. |
|
14 |
+ |
|
15 |
+ #include <stdint.h> |
|
16 |
++#include <sys/sysmacros.h> |
|
17 |
+ |
|
18 |
+ #include <algorithm> |
|
19 |
+ #include <list> |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Mesos |
2 | 2 |
Name: mesos |
3 | 3 |
Version: 1.1.0 |
4 |
-Release: 2%{?dist} |
|
4 |
+Release: 3%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://mesos.apache.org |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -9,6 +9,7 @@ Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source0: http://www.apache.org/dist/%{name}/%{version}/%{name}-%{version}.tar.gz |
11 | 11 |
%define sha1 mesos=5ea8f46cdb5c1b96fdce19120655c8df15732a60 |
12 |
+Patch0: mesos-sysmacros.patch |
|
12 | 13 |
BuildRequires: openjre >= 1.8.0.45 |
13 | 14 |
BuildRequires: openjdk >= 1.8.0.45 |
14 | 15 |
BuildRequires: curl-devel |
... | ... |
@@ -47,13 +48,14 @@ Requires: %{name} = %{version} |
47 | 47 |
|
48 | 48 |
%prep |
49 | 49 |
%setup -q |
50 |
+%patch0 -p1 |
|
50 | 51 |
|
51 | 52 |
%build |
52 | 53 |
sed -i 's/gzip -d -c $^ | tar xf -/tar --no-same-owner -xf $^/' 3rdparty/Makefile.am |
53 | 54 |
sed -i 's/gzip -d -c $^ | tar xf -/tar --no-same-owner -xf $^/' 3rdparty/libprocess/3rdparty/Makefile.am |
54 | 55 |
./configure \ |
55 | 56 |
CFLAGS="%{optflags} -Wno-deprecated-declarations" \ |
56 |
- CXXFLAGS="%{optflags} -Wno-deprecated-declarations" \ |
|
57 |
+ CXXFLAGS="%{optflags} -Wno-deprecated-declarations -Wno-strict-aliasing" \ |
|
57 | 58 |
--disable-silent-rules \ |
58 | 59 |
--prefix=%{_prefix} \ |
59 | 60 |
--bindir=%{_bindir} \ |
... | ... |
@@ -98,6 +100,9 @@ find %{buildroot}%{_libdir} -name '*.la' -delete |
98 | 98 |
%exclude %{_libdir}/debug/ |
99 | 99 |
|
100 | 100 |
%changelog |
101 |
+* Fri Mar 24 2017 Alexey Makhalov <amakhalov@vmware.com> 1.1.0-3 |
|
102 |
+- Added mesos-sysmacros.patch and -Wno-strict-aliasing CPPFLAGS |
|
103 |
+ to fix build issues with glibc-2.25 |
|
101 | 104 |
* Thu Dec 15 2016 Xiaolin Li <xiaolinl@vmware.com> 1.1.0-2 |
102 | 105 |
- BuildRequires curl-devel. |
103 | 106 |
* Tue Dec 13 2016 Xiaolin Li <xiaolinl@vmware.com> 1.1.0-1 |
104 | 107 |
deleted file mode 100644 |
... | ... |
@@ -1,24 +0,0 @@ |
1 |
-+++ open-vm-tools-9.10.0-2476743/configure.ac 2015-04-21 01:23:00.561586272 -0700 |
|
2 |
-@@ -1041,6 +1041,7 @@ |
|
3 |
- CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500" |
|
4 |
- CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE" |
|
5 |
- CPPFLAGS="$CPPFLAGS -D_SVID_SOURCE" |
|
6 |
-+ CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE" |
|
7 |
- |
|
8 |
- LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lrt" |
|
9 |
- |
|
10 |
-+++ open-vm-tools-9.10.0-2476743/vgauth/common/VGAuthLog.c 2015-04-21 01:24:32.370582529 -0700 |
|
11 |
-@@ -25,6 +25,11 @@ |
|
12 |
- #ifdef _WIN32 |
|
13 |
- #include <windows.h> |
|
14 |
- #else |
|
15 |
-+/* |
|
16 |
-+ * Need GNU definition of strerror_r for better compatibility |
|
17 |
-+ * across different glibc versions. |
|
18 |
-+ */ |
|
19 |
-+#define _GNU_SOURCE |
|
20 |
- #include <errno.h> |
|
21 |
- #include <unistd.h> |
|
22 |
- #include <string.h> |
23 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,11 @@ |
0 |
+diff -Naur open-vm-tools.orig/lib/wiper/wiperPosix.c open-vm-tools/lib/wiper/wiperPosix.c |
|
1 |
+--- open-vm-tools.orig/lib/wiper/wiperPosix.c 2016-09-29 03:07:52.000000000 -0700 |
|
2 |
+@@ -29,6 +29,7 @@ |
|
3 |
+ |
|
4 |
+ #include <stdio.h> |
|
5 |
+ #include <sys/stat.h> |
|
6 |
++#include <sys/sysmacros.h> |
|
7 |
+ #if defined(__linux__) || defined(sun) |
|
8 |
+ # include <sys/vfs.h> |
|
9 |
+ #elif defined(__FreeBSD__) || defined(__APPLE__) |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Usermode tools for VmWare virts |
2 | 2 |
Name: open-vm-tools |
3 | 3 |
Version: 10.1.5 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: LGPLv2+ |
6 | 6 |
URL: https://github.com/vmware/open-vm-tools |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -17,6 +17,7 @@ Patch0: GOSC-libDeploy.patch |
17 | 17 |
Patch1: IPv6Support.patch |
18 | 18 |
Patch2: hostnameReCustomizationFix.patch |
19 | 19 |
Patch3: PureIPv6-hosts.patch |
20 |
+Patch4: open-vm-tools-sysmacros.patch |
|
20 | 21 |
BuildRequires: glib-devel |
21 | 22 |
BuildRequires: xerces-c-devel |
22 | 23 |
BuildRequires: xml-security-c-devel |
... | ... |
@@ -44,6 +45,7 @@ VmWare virtualization user mode tools |
44 | 44 |
%patch1 -p0 |
45 | 45 |
%patch2 -p0 |
46 | 46 |
%patch3 -p0 |
47 |
+%patch4 -p1 |
|
47 | 48 |
%build |
48 | 49 |
touch ChangeLog |
49 | 50 |
autoreconf -i |
... | ... |
@@ -101,6 +103,8 @@ fi |
101 | 101 |
|
102 | 102 |
|
103 | 103 |
%changelog |
104 |
+* Fri Mar 24 2017 Alexey Makhalov <amakhalov@vmware.com> 10.1.5-2 |
|
105 |
+- Added *-sysmacros.patch to fix build issue with glibc-2.25 |
|
104 | 106 |
* Fri Mar 03 2017 Kumar Kaushik <kaushikk@vmware.com> 10.1.5-1 |
105 | 107 |
- Updating version to 10.1.5 |
106 | 108 |
* Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 10.1.0-2 |