The retpoline technique is one of the mitigations for the Spectre v2
vulnerability on modern processors. At the moment, our kernels have
only minimal asm retpoline support. Enhance the kernel with full
retpoline support by building with a retpoline-enabled version of gcc
(v7.3.0)
However, instead of special-casing kernel builds to use gcc 7.3 via
publishrpms, update the gcc package itself to version 7.3.
Other packages that needed version updates or code fixes to get them
to build with gcc 7.3 include the following:
ceph, clang, diffutils, http-parser, ipxe, libselinux, libsepol,
lightstep-tracer-cpp, likewise-open, lldb, lldpad, llvm, mysql,
rapidjson and tboot.
Change-Id: I053ab8c9b527824d06ec22fc9844b4a644b6e16d
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5569
Reviewed-by: Sharath George
Tested-by: Sharath George
... | ... |
@@ -12,17 +12,20 @@ |
12 | 12 |
# common |
13 | 13 |
################################################################################# |
14 | 14 |
Name: ceph |
15 |
-Version: 11.2.0 |
|
16 |
-Release: 11%{?dist} |
|
15 |
+Version: 11.2.1 |
|
16 |
+Release: 1%{?dist} |
|
17 | 17 |
Epoch: 1 |
18 | 18 |
Summary: User space components of the Ceph file system |
19 | 19 |
License: LGPL-2.1 and CC-BY-SA-1.0 and GPL-2.0 and BSL-1.0 and GPL-2.0-with-autoconf-exception and BSD-3-Clause and MIT |
20 | 20 |
Group: System/Filesystems |
21 | 21 |
URL: http://ceph.com/ |
22 | 22 |
Source0: http://ceph.com/download/%{name}-%{version}.tar.gz |
23 |
-%define sha1 ceph=8bb87494c9b47b2ef02bfe51bb981a8cd94fa9fb |
|
23 |
+%define sha1 ceph=7b273e0edf7901e838238a88cdb70976c908ecff |
|
24 | 24 |
Vendor: VMware, Inc. |
25 | 25 |
Distribution: Photon |
26 |
+ |
|
27 |
+Patch0: fix-build-warnings-errors-gcc-7.3.patch |
|
28 |
+ |
|
26 | 29 |
################################################################################# |
27 | 30 |
# dependencies that apply across all distro families |
28 | 31 |
################################################################################# |
... | ... |
@@ -443,6 +446,7 @@ python-rbd, python-rgw or python-cephfs instead. |
443 | 443 |
################################################################################# |
444 | 444 |
%prep |
445 | 445 |
%setup -n ceph-%{version} |
446 |
+%patch0 -p1 |
|
446 | 447 |
|
447 | 448 |
%build |
448 | 449 |
%if %{with lowmem_builder} |
... | ... |
@@ -1000,6 +1004,8 @@ ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 |
1000 | 1000 |
# actually build this meta package. |
1001 | 1001 |
|
1002 | 1002 |
%changelog |
1003 |
+* Thu Aug 30 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 11.2.1-1 |
|
1004 |
+- Update to version 11.2.1 and fix build issues with gcc 7.3 |
|
1003 | 1005 |
* Thu Dec 28 2017 Divya Thaluru <dthaluru@vmware.com> 11.2.0-11 |
1004 | 1006 |
- Fixed the log file directory structure |
1005 | 1007 |
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 11.2.0-10 |
1006 | 1008 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,446 @@ |
0 |
+ |
|
1 |
+commit 9b4f0a49f7fa723db9b5e11893173172f85b749c |
|
2 |
+Author: Srivatsa S. Bhat <srivatsa@csail.mit.edu> |
|
3 |
+Date: Tue Aug 14 11:36:04 2018 -0700 |
|
4 |
+ |
|
5 |
+ Fix build warnings/errors with gcc 7.3 |
|
6 |
+ |
|
7 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/statistics.h:17:0, |
|
8 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/stop_watch.h:8, |
|
9 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/perf_step_timer.h:9, |
|
10 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/iostats_context_imp.h:8, |
|
11 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/posix_logger.h:27, |
|
12 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/port/util_logger.h:18, |
|
13 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/db/auto_roll_logger.h:15, |
|
14 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/db/auto_roll_logger.cc:6: |
|
15 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_local.h:205:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] |
|
16 |
+ #if ROCKSDB_SUPPORT_THREAD_LOCAL |
|
17 |
+ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
18 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_local.h:205:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] |
|
19 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_local.h:205:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] |
|
20 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_local.h:66:16: error: 'function' in namespace 'std' does not name a template type |
|
21 |
+ typedef std::function<void(void*, void*)> FoldFunc; |
|
22 |
+ ^~~~~~~~ |
|
23 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_local.h:71:13: error: 'FoldFunc' has not been declared |
|
24 |
+ void Fold(FoldFunc func, void* res); |
|
25 |
+ ^~~~~~~~ |
|
26 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_local.h:142:28: error: 'FoldFunc' has not been declared |
|
27 |
+ void Fold(uint32_t id, FoldFunc func, void* res); |
|
28 |
+ ^~~~~~~~ |
|
29 |
+ |
|
30 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_status_updater.h:42:0, |
|
31 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_status_util.h:13, |
|
32 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/db/builder.cc:34: |
|
33 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/thread_operation.h:22:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] |
|
34 |
+ #if ROCKSDB_USING_THREAD_STATUS |
|
35 |
+ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
36 |
+ |
|
37 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/db/memtable.cc: In member function 'void rocksdb::MemTable::Update(rocksdb::SequenceNumber, const rocksdb::Slice&, const rocksdb::Slice&)': |
|
38 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/db/memtable.cc:734:11: error: this statement may fall through [-Werror=implicit-fallthrough=] |
|
39 |
+ } |
|
40 |
+ ^ |
|
41 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/db/memtable.cc:736:9: note: here |
|
42 |
+ default: |
|
43 |
+ ^~~~~~~ |
|
44 |
+ |
|
45 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/librbd/WatchNotifyTypes.cc:5:0: |
|
46 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/librbd/WatchNotifyTypes.h: In member function 'void librbd::watch_notify::NotifyMessage::decode(ceph::buffer::list::iterator&)': |
|
47 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/librbd/WatchNotifyTypes.h:246:8: warning: '<anonymous>.librbd::watch_notify::SnapRenamePayload::snap_id' may be used uninitialized in this function [-Wmaybe-uninitialized] |
|
48 |
+ struct SnapRenamePayload : public SnapPayloadBase { |
|
49 |
+ ^~~~~~~~~~~~~~~~~ |
|
50 |
+ |
|
51 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/cls/rbd/cls_rbd_types.cc:5:0: |
|
52 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/cls/rbd/cls_rbd_types.h: In member function 'void cls::rbd::SnapshotNamespaceOnDisk::decode(ceph::buffer::list::iterator&)': |
|
53 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/cls/rbd/cls_rbd_types.h:244:8: warning: '<anonymous>.cls::rbd::GroupSnapshotNamespace::group_pool' may be used uninitialized in this function [-Wmaybe-uninitialized] |
|
54 |
+ struct GroupSnapshotNamespace { |
|
55 |
+ ^~~~~~~~~~~~~~~~~~~~~~ |
|
56 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/cls/rbd/cls_rbd_types.h:244:8: warning: '<anonymous>.cls::rbd::GroupSnapshotNamespace::group_pool' may be used uninitialized in this function [-Wmaybe-uninitialized] |
|
57 |
+ struct GroupSnapshotNamespace { |
|
58 |
+ ^~~~~~~~~~~~~~~~~~~~~~ |
|
59 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/cls/rbd/cls_rbd_types.h:244:8: warning: '*((void*)(& temp)+8).cls::rbd::GroupSnapshotNamespace::group_pool' may be used uninitialized in this function [-Wmaybe-uninitialized] |
|
60 |
+ struct GroupSnapshotNamespace { |
|
61 |
+ ^~~~~~~~~~~~~~~~~~~~~~ |
|
62 |
+ |
|
63 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/krbd.cc: In function 'int krbd_unmap_by_spec(krbd_ctx*, const char*, const char*, const char*, const char*)': |
|
64 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/krbd.cc:610:65: warning: 'devno' may be used uninitialized in this function [-Wmaybe-uninitialized] |
|
65 |
+ return do_unmap(ctx->udev, devno, build_unmap_buf(id, options)); |
|
66 |
+ ^ |
|
67 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/krbd.cc:593:9: note: 'devno' was declared here |
|
68 |
+ dev_t devno; |
|
69 |
+ ^~~~~ |
|
70 |
+ |
|
71 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/logging.cc: In function 'std::__cxx11::string rocksdb::NumberToHumanString(int64_t)': |
|
72 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/logging.cc:100:13: error: '%li' directive output may be truncated writing between 1 and 17 bytes into a region of size 16 [-Werror=format-truncation=] |
|
73 |
+ std::string NumberToHumanString(int64_t num) { |
|
74 |
+ ^~~~~~~~~~~~~~~~~~~ |
|
75 |
+ |
|
76 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc: In function 'uint64_t MurmurHash64A(const void*, int, unsigned int)': |
|
77 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:49:15: error: this statement may fall through [-Werror=implicit-fallthrough=] |
|
78 |
+ case 7: h ^= ((uint64_t)data2[6]) << 48; |
|
79 |
+ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
80 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:50:5: note: here |
|
81 |
+ case 6: h ^= ((uint64_t)data2[5]) << 40; |
|
82 |
+ ^~~~ |
|
83 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:50:15: error: this statement may fall through [-Werror=implicit-fallthrough=] |
|
84 |
+ case 6: h ^= ((uint64_t)data2[5]) << 40; |
|
85 |
+ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
86 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:51:5: note: here |
|
87 |
+ case 5: h ^= ((uint64_t)data2[4]) << 32; |
|
88 |
+ ^~~~ |
|
89 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:51:15: error: this statement may fall through [-Werror=implicit-fallthrough=] |
|
90 |
+ case 5: h ^= ((uint64_t)data2[4]) << 32; |
|
91 |
+ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
92 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:52:5: note: here |
|
93 |
+ case 4: h ^= ((uint64_t)data2[3]) << 24; |
|
94 |
+ ^~~~ |
|
95 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:52:15: error: this statement may fall through [-Werror=implicit-fallthrough=] |
|
96 |
+ case 4: h ^= ((uint64_t)data2[3]) << 24; |
|
97 |
+ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
98 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:53:5: note: here |
|
99 |
+ case 3: h ^= ((uint64_t)data2[2]) << 16; |
|
100 |
+ ^~~~ |
|
101 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:53:15: error: this statement may fall through [-Werror=implicit-fallthrough=] |
|
102 |
+ case 3: h ^= ((uint64_t)data2[2]) << 16; |
|
103 |
+ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
104 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:54:5: note: here |
|
105 |
+ case 2: h ^= ((uint64_t)data2[1]) << 8; |
|
106 |
+ ^~~~ |
|
107 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:54:15: error: this statement may fall through [-Werror=implicit-fallthrough=] |
|
108 |
+ case 2: h ^= ((uint64_t)data2[1]) << 8; |
|
109 |
+ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
110 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/murmurhash.cc:55:5: note: here |
|
111 |
+ case 1: h ^= ((uint64_t)data2[0]); |
|
112 |
+ ^~~~ |
|
113 |
+ |
|
114 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/transaction_test_util.cc: In static member function 'static rocksdb::Status rocksdb::RandomTransactionInserter::Verify(rocksdb::DB*, uint16_t)': |
|
115 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/transaction_test_util.cc:188:8: error: '__builtin___snprintf_chk' output may be truncated before the last format character [-Werror=format-truncation=] |
|
116 |
+ Status RandomTransactionInserter::Verify(DB* db, uint16_t num_sets) { |
|
117 |
+ ^~~~~~~~~~~~~~~~~~~~~~~~~ |
|
118 |
+ In file included from /usr/include/stdio.h:862:0, |
|
119 |
+ from /usr/include/c++/7.3.0/cstdio:42, |
|
120 |
+ from /usr/include/c++/7.3.0/ext/string_conversions.h:43, |
|
121 |
+ from /usr/include/c++/7.3.0/bits/basic_string.h:6349, |
|
122 |
+ from /usr/include/c++/7.3.0/string:52, |
|
123 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/include/rocksdb/options.h:14, |
|
124 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/transaction_test_util.h:10, |
|
125 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/util/transaction_test_util.cc:11: |
|
126 |
+ /usr/include/bits/stdio2.h:65:44: note: '__builtin___snprintf_chk' output between 5 and 6 bytes into a destination of size 5 |
|
127 |
+ __bos (__s), __fmt, __va_arg_pack ()); |
|
128 |
+ ^ |
|
129 |
+ |
|
130 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/persistent_cache/block_cache_tier.h:23:0, |
|
131 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/persistent_cache/block_cache_tier.cc:7: |
|
132 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/persistent_cache/block_cache_tier_file.h:80:33: error: 'function' in namespace 'std' does not name a template type |
|
133 |
+ const std::function<void()> callback) = 0; |
|
134 |
+ ^~~~~~~~ |
|
135 |
+ |
|
136 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/persistent_cache/volatile_tier_impl.h:18:0, |
|
137 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/persistent_cache/volatile_tier_impl.cc:8: |
|
138 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/persistent_cache/hash_table_evictable.h:78:23: error: 'function' in namespace 'std' does not name a template type |
|
139 |
+ T* Evict(const std::function<void(T*)>& fn = nullptr) { |
|
140 |
+ ^~~~~~~~ |
|
141 |
+ |
|
142 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/transactions/transaction_util.cc: In static member function 'static rocksdb::Status rocksdb::TransactionUtil::CheckKey(rocksdb::DBImpl*, rocksdb::SuperVersion*, rocksdb::SequenceNumber, rocksdb::SequenceNumber, const string&, bool)': |
|
143 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/transactions/transaction_util.cc:53:8: error: '. Increasing the value of the max_write_buffer_number_to_maintain option could reduce the frequency of this error.' directive output truncated writing 115 bytes into a region of size between 76 and 114 [-Werror=format-truncation=] |
|
144 |
+ Status TransactionUtil::CheckKey(DBImpl* db_impl, SuperVersion* sv, |
|
145 |
+ ^~~~~~~~~~~~~~~ |
|
146 |
+ In file included from /usr/include/stdio.h:862:0, |
|
147 |
+ from /usr/include/c++/7.3.0/cstdio:42, |
|
148 |
+ from /usr/include/c++/7.3.0/ext/string_conversions.h:43, |
|
149 |
+ from /usr/include/c++/7.3.0/bits/basic_string.h:6349, |
|
150 |
+ from /usr/include/c++/7.3.0/string:52, |
|
151 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/transactions/transaction_util.h:10, |
|
152 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rocksdb/utilities/transactions/transaction_util.cc:12: |
|
153 |
+ /usr/include/bits/stdio2.h:65:44: note: '__builtin___snprintf_chk' output between 257 and 295 bytes into a destination of size 255 |
|
154 |
+ __bos (__s), __fmt, __va_arg_pack ()); |
|
155 |
+ |
|
156 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_formats.cc:20:0: |
|
157 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_formats.h: In constructor 'RGWFormatter_Plain::RGWFormatter_Plain(bool)': |
|
158 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_formats.h:60:8: warning: 'RGWFormatter_Plain::wrote_something' will be initialized after [-Wreorder] |
|
159 |
+ bool wrote_something; |
|
160 |
+ ^~~~~~~~~~~~~~~ |
|
161 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_formats.h:58:10: warning: 'size_t RGWFormatter_Plain::min_stack_level' [-Wreorder] |
|
162 |
+ size_t min_stack_level; |
|
163 |
+ ^~~~~~~~~~~~~~~ |
|
164 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_formats.cc:27:1: warning: when initialized here [-Wreorder] |
|
165 |
+ RGWFormatter_Plain::RGWFormatter_Plain(const bool ukv) |
|
166 |
+ ^~~~~~~~~~~~~~~~~~ |
|
167 |
+ |
|
168 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/client/SyntheticClient.cc: In member function 'int SyntheticClient::random_walk(int)': |
|
169 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/client/SyntheticClient.cc:2678:11: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] |
|
170 |
+ if (.9*roll_die(::pow((double).9,(double)cwd.depth())) && !subdirs.empty()) { |
|
171 |
+ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
172 |
+ |
|
173 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_rados.cc: In function 'void usage_log_hash(CephContext*, const string&, std::__cxx11::string&, uint32_t)': |
|
174 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_rados.cc:4617:13: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] |
|
175 |
+ static void usage_log_hash(CephContext *cct, const string& name, string& hash, uint32_t index) |
|
176 |
+ ^~~~~~~~~~~~~~ |
|
177 |
+ In file included from /usr/include/stdio.h:862:0, |
|
178 |
+ from /usr/include/c++/7.3.0/cstdio:42, |
|
179 |
+ from /usr/include/c++/7.3.0/ext/string_conversions.h:43, |
|
180 |
+ from /usr/include/c++/7.3.0/bits/basic_string.h:6349, |
|
181 |
+ from /usr/include/c++/7.3.0/string:52, |
|
182 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/build/boost/include/boost/algorithm/string/std/string_traits.hpp:15, |
|
183 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/build/boost/include/boost/algorithm/string/std_containers_traits.hpp:19, |
|
184 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/build/boost/include/boost/algorithm/string.hpp:18, |
|
185 |
+ from /usr/src/photon/BUILD/ceph-11.2.1/src/rgw/rgw_rados.cc:7: |
|
186 |
+ /usr/include/bits/stdio2.h:65:44: note: '__builtin___snprintf_chk' output between 8 and 17 bytes into a destination of size 16 |
|
187 |
+ __bos (__s), __fmt, __va_arg_pack ()); |
|
188 |
+ ^ |
|
189 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/osdc/Journaler.cc: In member function 'void Journaler::_do_flush(unsigned int)': |
|
190 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/osdc/Journaler.cc:638:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] |
|
191 |
+ if (newlen < len) { |
|
192 |
+ ~~~~~~~^~~~~ |
|
193 |
+ |
|
194 |
+ In file included from /usr/src/photon/BUILD/ceph-11.2.1/src/os/FuseStore.cc:4:0: |
|
195 |
+ /usr/src/photon/BUILD/ceph-11.2.1/src/os/FuseStore.h:32:8: error: 'std::function' has not been declared |
|
196 |
+ std::function<int(bufferlist *bl)> f); |
|
197 |
+ ^~~~~~~~ |
|
198 |
+ |
|
199 |
+ cc1plus: all warnings being treated as errors |
|
200 |
+ |
|
201 |
+ Signed-off-by: Srivatsa S. Bhat <srivatsa@csail.mit.edu> |
|
202 |
+ |
|
203 |
+diff -Naurp ceph-11.2.1/src/client/SyntheticClient.cc ceph-11.2.1-modified/src/client/SyntheticClient.cc |
|
204 |
+--- ceph-11.2.1/src/client/SyntheticClient.cc 2017-08-08 12:07:05.000000000 -0700 |
|
205 |
+@@ -2675,7 +2675,7 @@ int SyntheticClient::random_walk(int num |
|
206 |
+ } |
|
207 |
+ |
|
208 |
+ // descend? |
|
209 |
+- if (.9*roll_die(::pow((double).9,(double)cwd.depth())) && !subdirs.empty()) { |
|
210 |
++ if (roll_die(::pow((double).9,(double)cwd.depth())) && !subdirs.empty()) { |
|
211 |
+ string s = get_random_subdir(); |
|
212 |
+ cwd.push_dentry( s ); |
|
213 |
+ dout(DBL) << "cd " << s << " -> " << cwd << dendl; |
|
214 |
+diff -Naurp ceph-11.2.1/src/cls/rbd/cls_rbd_types.h ceph-11.2.1-modified/src/cls/rbd/cls_rbd_types.h |
|
215 |
+--- ceph-11.2.1/src/cls/rbd/cls_rbd_types.h 2017-08-08 12:07:05.000000000 -0700 |
|
216 |
+@@ -248,12 +248,12 @@ struct GroupSnapshotNamespace { |
|
217 |
+ |
|
218 |
+ GroupSnapshotNamespace(int64_t _group_pool, |
|
219 |
+ const string &_group_id, |
|
220 |
+- const snapid_t &_snapshot_id) :group_pool(_group_pool), |
|
221 |
+- group_id(_group_id), |
|
222 |
+- snapshot_id(_snapshot_id) {} |
|
223 |
++ const snapid_t &_snapshot_id) |
|
224 |
++ : group_id(_group_id), group_pool(_group_pool), |
|
225 |
++ snapshot_id(_snapshot_id) {} |
|
226 |
+ |
|
227 |
+- int64_t group_pool; |
|
228 |
+ string group_id; |
|
229 |
++ int64_t group_pool = 0; |
|
230 |
+ snapid_t snapshot_id; |
|
231 |
+ |
|
232 |
+ void encode(bufferlist& bl) const; |
|
233 |
+diff -Naurp ceph-11.2.1/src/krbd.cc ceph-11.2.1-modified/src/krbd.cc |
|
234 |
+--- ceph-11.2.1/src/krbd.cc 2017-08-08 12:07:05.000000000 -0700 |
|
235 |
+@@ -590,7 +590,7 @@ static int unmap_image(struct krbd_ctx * |
|
236 |
+ const char *image, const char *snap, |
|
237 |
+ const char *options) |
|
238 |
+ { |
|
239 |
+- dev_t devno; |
|
240 |
++ dev_t devno = 0; |
|
241 |
+ string id; |
|
242 |
+ int r; |
|
243 |
+ |
|
244 |
+diff -Naurp ceph-11.2.1/src/librbd/WatchNotifyTypes.h ceph-11.2.1-modified/src/librbd/WatchNotifyTypes.h |
|
245 |
+--- ceph-11.2.1/src/librbd/WatchNotifyTypes.h 2017-08-08 12:07:05.000000000 -0700 |
|
246 |
+@@ -250,7 +250,7 @@ struct SnapRenamePayload : public SnapPa |
|
247 |
+ SnapRenamePayload(const uint64_t &src_snap_id, const std::string &dst_name) |
|
248 |
+ : SnapPayloadBase(dst_name), snap_id(src_snap_id) {} |
|
249 |
+ |
|
250 |
+- uint64_t snap_id; |
|
251 |
++ uint64_t snap_id = 0; |
|
252 |
+ |
|
253 |
+ void encode(bufferlist &bl) const; |
|
254 |
+ void decode(__u8 version, bufferlist::iterator &iter); |
|
255 |
+diff -Naurp ceph-11.2.1/src/os/FuseStore.h ceph-11.2.1-modified/src/os/FuseStore.h |
|
256 |
+--- ceph-11.2.1/src/os/FuseStore.h 2017-08-08 12:07:05.000000000 -0700 |
|
257 |
+@@ -7,6 +7,7 @@ |
|
258 |
+ #include <string> |
|
259 |
+ #include <map> |
|
260 |
+ #include <mutex> |
|
261 |
++#include <functional> |
|
262 |
+ |
|
263 |
+ #include "common/Thread.h" |
|
264 |
+ #include "include/buffer.h" |
|
265 |
+diff -Naurp ceph-11.2.1/src/osdc/Journaler.cc ceph-11.2.1-modified/src/osdc/Journaler.cc |
|
266 |
+--- ceph-11.2.1/src/osdc/Journaler.cc 2017-08-08 12:07:05.000000000 -0700 |
|
267 |
+@@ -635,7 +635,7 @@ void Journaler::_do_flush(unsigned amoun |
|
268 |
+ waiting_for_zero = true; |
|
269 |
+ return; |
|
270 |
+ } |
|
271 |
+- if (newlen < len) { |
|
272 |
++ if (static_cast<uint64_t>(newlen) < len) { |
|
273 |
+ ldout(cct, 10) << "_do_flush wanted to do " << flush_pos << "~" << len |
|
274 |
+ << " but hit prezero_pos " << prezero_pos |
|
275 |
+ << ", will do " << flush_pos << "~" << newlen << dendl; |
|
276 |
+diff -Naurp ceph-11.2.1/src/rgw/rgw_formats.cc ceph-11.2.1-modified/src/rgw/rgw_formats.cc |
|
277 |
+--- ceph-11.2.1/src/rgw/rgw_formats.cc 2017-08-08 12:07:05.000000000 -0700 |
|
278 |
+@@ -28,9 +28,9 @@ RGWFormatter_Plain::RGWFormatter_Plain(c |
|
279 |
+ : buf(NULL), |
|
280 |
+ len(0), |
|
281 |
+ max_len(0), |
|
282 |
+- wrote_something(false), |
|
283 |
+ min_stack_level(0), |
|
284 |
+- use_kv(ukv) |
|
285 |
++ use_kv(ukv), |
|
286 |
++ wrote_something(false) |
|
287 |
+ { |
|
288 |
+ } |
|
289 |
+ |
|
290 |
+diff -Naurp ceph-11.2.1/src/rgw/rgw_rados.cc ceph-11.2.1-modified/src/rgw/rgw_rados.cc |
|
291 |
+--- ceph-11.2.1/src/rgw/rgw_rados.cc 2017-08-08 12:07:05.000000000 -0700 |
|
292 |
+@@ -4623,7 +4623,7 @@ static void usage_log_hash(CephContext * |
|
293 |
+ val %= max_user_shards; |
|
294 |
+ val += ceph_str_hash_linux(name.c_str(), name.size()); |
|
295 |
+ } |
|
296 |
+- char buf[16]; |
|
297 |
++ char buf[17]; |
|
298 |
+ int max_shards = max(cct->_conf->rgw_usage_max_shards, 1); |
|
299 |
+ snprintf(buf, sizeof(buf), RGW_USAGE_OBJ_PREFIX "%u", (unsigned)(val % max_shards)); |
|
300 |
+ hash = buf; |
|
301 |
+diff -Naurp ceph-11.2.1/src/rocksdb/db/memtable.cc ceph-11.2.1-modified/src/rocksdb/db/memtable.cc |
|
302 |
+--- ceph-11.2.1/src/rocksdb/db/memtable.cc 2016-11-20 18:24:12.000000000 -0800 |
|
303 |
+@@ -733,6 +733,7 @@ void MemTable::Update(SequenceNumber seq |
|
304 |
+ return; |
|
305 |
+ } |
|
306 |
+ } |
|
307 |
++ // fall through |
|
308 |
+ default: |
|
309 |
+ // If the latest value is kTypeDeletion, kTypeMerge or kTypeLogData |
|
310 |
+ // we don't have enough space for update inplace |
|
311 |
+diff -Naurp ceph-11.2.1/src/rocksdb/include/rocksdb/thread_status.h ceph-11.2.1-modified/src/rocksdb/include/rocksdb/thread_status.h |
|
312 |
+--- ceph-11.2.1/src/rocksdb/include/rocksdb/thread_status.h 2016-11-20 18:24:12.000000000 -0800 |
|
313 |
+@@ -21,11 +21,14 @@ |
|
314 |
+ #include <vector> |
|
315 |
+ |
|
316 |
+ #ifndef ROCKSDB_USING_THREAD_STATUS |
|
317 |
+-#define ROCKSDB_USING_THREAD_STATUS \ |
|
318 |
+- !defined(ROCKSDB_LITE) && \ |
|
319 |
+- !defined(NROCKSDB_THREAD_STATUS) && \ |
|
320 |
+- !defined(OS_MACOSX) && \ |
|
321 |
+- !defined(IOS_CROSS_COMPILE) |
|
322 |
++ #if !defined(ROCKSDB_LITE) && \ |
|
323 |
++ !defined(NROCKSDB_THREAD_STATUS) && \ |
|
324 |
++ !defined(OS_MACOSX) && \ |
|
325 |
++ !defined(IOS_CROSS_COMPILE) |
|
326 |
++ #define ROCKSDB_USING_THREAD_STATUS 1 |
|
327 |
++ #else |
|
328 |
++ #define ROCKSDB_USING_THREAD_STATUS 0 |
|
329 |
++ #endif |
|
330 |
+ #endif |
|
331 |
+ |
|
332 |
+ namespace rocksdb { |
|
333 |
+diff -Naurp ceph-11.2.1/src/rocksdb/util/logging.cc ceph-11.2.1-modified/src/rocksdb/util/logging.cc |
|
334 |
+--- ceph-11.2.1/src/rocksdb/util/logging.cc 2016-11-20 18:24:12.000000000 -0800 |
|
335 |
+@@ -98,7 +98,7 @@ std::string NumberToString(uint64_t num) |
|
336 |
+ } |
|
337 |
+ |
|
338 |
+ std::string NumberToHumanString(int64_t num) { |
|
339 |
+- char buf[16]; |
|
340 |
++ char buf[19]; |
|
341 |
+ int64_t absnum = num < 0 ? -num : num; |
|
342 |
+ if (absnum < 10000) { |
|
343 |
+ snprintf(buf, sizeof(buf), "%" PRIi64, num); |
|
344 |
+diff -Naurp ceph-11.2.1/src/rocksdb/util/murmurhash.cc ceph-11.2.1-modified/src/rocksdb/util/murmurhash.cc |
|
345 |
+--- ceph-11.2.1/src/rocksdb/util/murmurhash.cc 2016-11-20 18:24:12.000000000 -0800 |
|
346 |
+@@ -47,11 +47,17 @@ uint64_t MurmurHash64A ( const void * ke |
|
347 |
+ switch(len & 7) |
|
348 |
+ { |
|
349 |
+ case 7: h ^= ((uint64_t)data2[6]) << 48; |
|
350 |
++ // fall through |
|
351 |
+ case 6: h ^= ((uint64_t)data2[5]) << 40; |
|
352 |
++ // fall through |
|
353 |
+ case 5: h ^= ((uint64_t)data2[4]) << 32; |
|
354 |
++ // fall through |
|
355 |
+ case 4: h ^= ((uint64_t)data2[3]) << 24; |
|
356 |
++ // fall through |
|
357 |
+ case 3: h ^= ((uint64_t)data2[2]) << 16; |
|
358 |
++ // fall through |
|
359 |
+ case 2: h ^= ((uint64_t)data2[1]) << 8; |
|
360 |
++ // fall through |
|
361 |
+ case 1: h ^= ((uint64_t)data2[0]); |
|
362 |
+ h *= m; |
|
363 |
+ }; |
|
364 |
+diff -Naurp ceph-11.2.1/src/rocksdb/util/thread_local.h ceph-11.2.1-modified/src/rocksdb/util/thread_local.h |
|
365 |
+--- ceph-11.2.1/src/rocksdb/util/thread_local.h 2016-11-20 18:24:12.000000000 -0800 |
|
366 |
+@@ -13,13 +13,17 @@ |
|
367 |
+ #include <memory> |
|
368 |
+ #include <unordered_map> |
|
369 |
+ #include <vector> |
|
370 |
++#include <functional> |
|
371 |
+ |
|
372 |
+ #include "util/autovector.h" |
|
373 |
+ #include "port/port.h" |
|
374 |
+ |
|
375 |
+ #ifndef ROCKSDB_SUPPORT_THREAD_LOCAL |
|
376 |
+-#define ROCKSDB_SUPPORT_THREAD_LOCAL \ |
|
377 |
+- !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE) |
|
378 |
++ #if !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE) |
|
379 |
++ #define ROCKSDB_SUPPORT_THREAD_LOCAL 1 |
|
380 |
++ #else |
|
381 |
++ #define ROCKSDB_SUPPORT_THREAD_LOCAL 0 |
|
382 |
++ #endif |
|
383 |
+ #endif |
|
384 |
+ |
|
385 |
+ namespace rocksdb { |
|
386 |
+diff -Naurp ceph-11.2.1/src/rocksdb/util/transaction_test_util.cc ceph-11.2.1-modified/src/rocksdb/util/transaction_test_util.cc |
|
387 |
+--- ceph-11.2.1/src/rocksdb/util/transaction_test_util.cc 2016-11-20 18:24:12.000000000 -0800 |
|
388 |
+@@ -190,7 +190,7 @@ Status RandomTransactionInserter::Verify |
|
389 |
+ |
|
390 |
+ // For each set of keys with the same prefix, sum all the values |
|
391 |
+ for (uint32_t i = 0; i < num_sets; i++) { |
|
392 |
+- char prefix_buf[5]; |
|
393 |
++ char prefix_buf[6]; |
|
394 |
+ snprintf(prefix_buf, sizeof(prefix_buf), "%.4u", i + 1); |
|
395 |
+ uint64_t total = 0; |
|
396 |
+ |
|
397 |
+diff -Naurp ceph-11.2.1/src/rocksdb/utilities/persistent_cache/block_cache_tier_file.h ceph-11.2.1-modified/src/rocksdb/utilities/persistent_cache/block_cache_tier_file.h |
|
398 |
+--- ceph-11.2.1/src/rocksdb/utilities/persistent_cache/block_cache_tier_file.h 2016-11-20 18:24:12.000000000 -0800 |
|
399 |
+@@ -10,6 +10,7 @@ |
|
400 |
+ #include <memory> |
|
401 |
+ #include <string> |
|
402 |
+ #include <vector> |
|
403 |
++#include <functional> |
|
404 |
+ |
|
405 |
+ #include "rocksdb/comparator.h" |
|
406 |
+ #include "rocksdb/env.h" |
|
407 |
+diff -Naurp ceph-11.2.1/src/rocksdb/utilities/persistent_cache/hash_table_evictable.h ceph-11.2.1-modified/src/rocksdb/utilities/persistent_cache/hash_table_evictable.h |
|
408 |
+--- ceph-11.2.1/src/rocksdb/utilities/persistent_cache/hash_table_evictable.h 2016-11-20 18:24:12.000000000 -0800 |
|
409 |
+@@ -7,6 +7,8 @@ |
|
410 |
+ |
|
411 |
+ #ifndef ROCKSDB_LITE |
|
412 |
+ |
|
413 |
++#include <functional> |
|
414 |
++ |
|
415 |
+ #include "util/random.h" |
|
416 |
+ #include "utilities/persistent_cache/hash_table.h" |
|
417 |
+ #include "utilities/persistent_cache/lrulist.h" |
|
418 |
+diff -Naurp ceph-11.2.1/src/rocksdb/utilities/transactions/transaction_util.cc ceph-11.2.1-modified/src/rocksdb/utilities/transactions/transaction_util.cc |
|
419 |
+--- ceph-11.2.1/src/rocksdb/utilities/transactions/transaction_util.cc 2016-11-20 18:24:12.000000000 -0800 |
|
420 |
+@@ -81,7 +81,7 @@ Status TransactionUtil::CheckKey(DBImpl* |
|
421 |
+ if (cache_only) { |
|
422 |
+ // The age of this memtable is too new to use to check for recent |
|
423 |
+ // writes. |
|
424 |
+- char msg[255]; |
|
425 |
++ char msg[295]; |
|
426 |
+ snprintf(msg, sizeof(msg), |
|
427 |
+ "Transaction could not check for conflicts for operation at " |
|
428 |
+ "SequenceNumber %" PRIu64 |
... | ... |
@@ -1,14 +1,14 @@ |
1 | 1 |
Summary: C, C++, Objective C and Objective C++ front-end for the LLVM compiler. |
2 | 2 |
Name: clang |
3 |
-Version: 4.0.0 |
|
4 |
-Release: 2%{?dist} |
|
3 |
+Version: 6.0.1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: NCSA |
6 | 6 |
URL: http://clang.llvm.org |
7 | 7 |
Group: Development/Tools |
8 | 8 |
Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source0: http://releases.llvm.org/%{version}/cfe-%{version}.src.tar.xz |
11 |
-%define sha1 cfe=e2762800c93d9335781ea6a45af3f80845542ef5 |
|
11 |
+%define sha1 cfe=d93d8f3e3d7eb549ac58507383f7fcbdd78804d7 |
|
12 | 12 |
BuildRequires: cmake |
13 | 13 |
BuildRequires: llvm-devel = %{version} |
14 | 14 |
BuildRequires: ncurses-devel |
... | ... |
@@ -76,6 +76,8 @@ rm -rf %{buildroot}/* |
76 | 76 |
%{_includedir}/* |
77 | 77 |
|
78 | 78 |
%changelog |
79 |
+* Thu Aug 09 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 6.0.1-1 |
|
80 |
+- Update to version 6.0.1 to get it to build with gcc 7.3 |
|
79 | 81 |
* Wed Jun 28 2017 Chang Lee <changlee@vmware.com> 4.0.0-2 |
80 | 82 |
- Updated %check |
81 | 83 |
* Fri Apr 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-1 |
... | ... |
@@ -1,6 +1,6 @@ |
1 | 1 |
Summary: Programs that show the differences between files or directories |
2 | 2 |
Name: diffutils |
3 |
-Version: 3.5 |
|
3 |
+Version: 3.6 |
|
4 | 4 |
Release: 1%{?dist} |
5 | 5 |
License: GPLv3+ |
6 | 6 |
URL: http://www.gnu.org/software/diffutils |
... | ... |
@@ -8,7 +8,7 @@ Group: System Environment/Base |
8 | 8 |
Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source0: http://ftp.gnu.org/gnu/diffutils/%{name}-%{version}.tar.xz |
11 |
-%define sha1 diffutils=1169cce8eaaf7290dc087d65db7ed75de0dceb93 |
|
11 |
+%define sha1 diffutils=1287a553868b808ebfff3790a5cdc6fdf7cb2886 |
|
12 | 12 |
BuildRequires: coreutils |
13 | 13 |
%description |
14 | 14 |
The Diffutils package contains programs that show the |
... | ... |
@@ -35,6 +35,8 @@ make %{?_smp_mflags} check |
35 | 35 |
%{_bindir}/* |
36 | 36 |
%{_mandir}/*/* |
37 | 37 |
%changelog |
38 |
+* Fri Aug 03 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 3.6-1 |
|
39 |
+- Update to version 3.6 to get it to build with gcc 7.3 |
|
38 | 40 |
* Wed Apr 19 2017 Bo Gan <ganb@vmware.com> 3.5-1 |
39 | 41 |
- Update to 3.5 |
40 | 42 |
* Wed Oct 05 2016 ChangLee <changlee@vmware.com> 3.3-4 |
... | ... |
@@ -1,16 +1,16 @@ |
1 |
-diff -Naur gcc-5.3.0.orig/gcc/c/c-typeck.c gcc-5.3.0/gcc/c/c-typeck.c |
|
2 |
-+++ gcc-5.3.0/gcc/c/c-typeck.c 2017-02-22 01:11:51.672617711 -0800 |
|
3 |
-@@ -69,6 +69,8 @@ |
|
1 |
+diff -Naurp gcc-7.3.0-orig/gcc/c/c-typeck.c gcc-7.3.0/gcc/c/c-typeck.c |
|
2 |
+--- gcc-7.3.0-orig/gcc/c/c-typeck.c 2017-06-08 12:12:38.381833000 -0700 |
|
3 |
+@@ -48,6 +48,8 @@ along with GCC; see the file COPYING3. |
|
4 | 4 |
#include "c-family/c-ubsan.h" |
5 | 5 |
#include "cilk.h" |
6 | 6 |
#include "gomp-constants.h" |
7 | 7 |
+#include "plugin-api.h" |
8 | 8 |
+#include "plugin.h" |
9 |
- #include "spellcheck.h" |
|
9 |
+ #include "spellcheck-tree.h" |
|
10 | 10 |
#include "gcc-rich-location.h" |
11 | 11 |
|
12 |
-@@ -5277,6 +5279,12 @@ |
|
12 |
+@@ -5452,6 +5454,12 @@ build_c_cast (location_t loc, tree type, |
|
13 | 13 |
return error_mark_node; |
14 | 14 |
} |
15 | 15 |
|
... | ... |
@@ -18,15 +18,15 @@ diff -Naur gcc-5.3.0.orig/gcc/c/c-typeck.c gcc-5.3.0/gcc/c/c-typeck.c |
18 | 18 |
+ tree cast_info[] {type, TREE_TYPE(value)}; |
19 | 19 |
+ invoke_plugin_callbacks (PLUGIN_TYPE_CAST, cast_info); |
20 | 20 |
+ } |
21 |
-+ |
|
21 |
++ |
|
22 | 22 |
+ |
23 | 23 |
if (type == TYPE_MAIN_VARIANT (TREE_TYPE (value))) |
24 | 24 |
{ |
25 | 25 |
if (RECORD_OR_UNION_TYPE_P (type)) |
26 |
-diff -Naur gcc-5.3.0.orig/gcc/plugin.c gcc-5.3.0/gcc/plugin.c |
|
27 |
-+++ gcc-5.3.0/gcc/plugin.c 2017-02-22 01:04:55.642416671 -0800 |
|
28 |
-@@ -462,6 +462,7 @@ |
|
26 |
+diff -Naurp gcc-7.3.0-orig/gcc/plugin.c gcc-7.3.0/gcc/plugin.c |
|
27 |
+--- gcc-7.3.0-orig/gcc/plugin.c 2017-03-21 04:50:18.693898000 -0700 |
|
28 |
+@@ -471,6 +471,7 @@ register_callback (const char *plugin_na |
|
29 | 29 |
case PLUGIN_EARLY_GIMPLE_PASSES_END: |
30 | 30 |
case PLUGIN_NEW_PASS: |
31 | 31 |
case PLUGIN_INCLUDE_FILE: |
... | ... |
@@ -34,7 +34,7 @@ diff -Naur gcc-5.3.0.orig/gcc/plugin.c gcc-5.3.0/gcc/plugin.c |
34 | 34 |
{ |
35 | 35 |
struct callback_info *new_callback; |
36 | 36 |
if (!callback) |
37 |
-@@ -540,6 +541,7 @@ |
|
37 |
+@@ -551,6 +552,7 @@ invoke_plugin_callbacks_full (int event, |
|
38 | 38 |
case PLUGIN_EARLY_GIMPLE_PASSES_END: |
39 | 39 |
case PLUGIN_NEW_PASS: |
40 | 40 |
case PLUGIN_INCLUDE_FILE: |
... | ... |
@@ -42,10 +42,10 @@ diff -Naur gcc-5.3.0.orig/gcc/plugin.c gcc-5.3.0/gcc/plugin.c |
42 | 42 |
{ |
43 | 43 |
/* Iterate over every callback registered with this event and |
44 | 44 |
call it. */ |
45 |
-diff -Naur gcc-5.3.0.orig/gcc/plugin.def gcc-5.3.0/gcc/plugin.def |
|
46 |
-+++ gcc-5.3.0/gcc/plugin.def 2017-02-22 00:35:02.986905569 -0800 |
|
47 |
-@@ -94,6 +94,9 @@ |
|
45 |
+diff -Naurp gcc-7.3.0-orig/gcc/plugin.def gcc-7.3.0/gcc/plugin.def |
|
46 |
+--- gcc-7.3.0-orig/gcc/plugin.def 2017-01-01 04:07:43.905435000 -0800 |
|
47 |
+@@ -99,6 +99,9 @@ DEFEVENT (PLUGIN_NEW_PASS) |
|
48 | 48 |
as a const char* pointer. */ |
49 | 49 |
DEFEVENT (PLUGIN_INCLUDE_FILE) |
50 | 50 |
|
... | ... |
@@ -1,15 +1,15 @@ |
1 | 1 |
%define _use_internal_dependency_generator 0 |
2 | 2 |
Summary: Contains the GNU compiler collection |
3 | 3 |
Name: gcc |
4 |
-Version: 6.3.0 |
|
5 |
-Release: 7%{?dist} |
|
4 |
+Version: 7.3.0 |
|
5 |
+Release: 1%{?dist} |
|
6 | 6 |
License: GPLv2+ |
7 | 7 |
URL: http://gcc.gnu.org |
8 | 8 |
Group: Development/Tools |
9 | 9 |
Vendor: VMware, Inc. |
10 | 10 |
Distribution: Photon |
11 |
-Source0: http://ftp.gnu.org/gnu/gcc/%{name}-%{version}/%{name}-%{version}.tar.bz2 |
|
12 |
-%define sha1 gcc=928ab552666ee08eed645ff20ceb49d139205dea |
|
11 |
+Source0: http://ftp.gnu.org/gnu/gcc/%{name}-%{version}/%{name}-%{version}.tar.xz |
|
12 |
+%define sha1 gcc=9689b9cae7b2886fdaa08449a26701f095c04e48 |
|
13 | 13 |
Patch0: PLUGIN_TYPE_CAST.patch |
14 | 14 |
Requires: libstdc++-devel = %{version}-%{release} |
15 | 15 |
Requires: libgcc-devel = %{version}-%{release} |
... | ... |
@@ -94,20 +94,6 @@ sed -i '/^NO_PIE_CFLAGS = /s/@NO_PIE_CFLAGS@//' gcc/Makefile.in |
94 | 94 |
install -vdm 755 ../gcc-build |
95 | 95 |
%build |
96 | 96 |
|
97 |
-# Fix compilation issue for glibc-2.26. |
|
98 |
-# TODO: remove these lines after gcc update to 7.2+ |
|
99 |
-# |
|
100 |
-# 1. "typedef struct ucontext ucontext_t" was renamed to |
|
101 |
-# "typedef struct ucontext_t ucontext_t" |
|
102 |
-sed -i 's/struct ucontext/ucontext_t/g' libgcc/config/i386/linux-unwind.h |
|
103 |
-sed -i 's/struct ucontext/ucontext_t/g' libgcc/config/aarch64/linux-unwind.h |
|
104 |
-# 2. struct sigaltstack removed |
|
105 |
-sed -i 's/struct sigaltstack/void/g' libsanitizer/sanitizer_common/sanitizer_linux.cc |
|
106 |
-sed -i '/struct sigaltstack;/d' libsanitizer/sanitizer_common/sanitizer_linux.h |
|
107 |
-sed -i 's/struct sigaltstack/void/g' libsanitizer/sanitizer_common/sanitizer_linux.h |
|
108 |
-sed -i 's/struct sigaltstack/stack_t/g' libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc |
|
109 |
-sed -i 's/__res_state/struct __res_state/g' libsanitizer/tsan/tsan_platform_linux.cc |
|
110 |
- |
|
111 | 97 |
export glibcxx_cv_c99_math_cxx98=yes glibcxx_cv_c99_math_cxx11=yes |
112 | 98 |
|
113 | 99 |
cd ../gcc-build |
... | ... |
@@ -174,6 +160,8 @@ make %{?_smp_mflags} check-gcc |
174 | 174 |
%{_libexecdir}/gcc/* |
175 | 175 |
# Man pages |
176 | 176 |
%{_mandir}/man1/gcov.1.gz |
177 |
+%{_mandir}/man1/gcov-dump.1.gz |
|
178 |
+%{_mandir}/man1/gcov-tool.1.gz |
|
177 | 179 |
%{_mandir}/man1/gcc.1.gz |
178 | 180 |
%{_mandir}/man1/g++.1.gz |
179 | 181 |
%{_mandir}/man1/cpp.1.gz |
... | ... |
@@ -233,6 +221,8 @@ make %{?_smp_mflags} check-gcc |
233 | 233 |
%{_lib64dir}/libgomp.spec |
234 | 234 |
|
235 | 235 |
%changelog |
236 |
+* Wed Aug 01 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 7.3.0-1 |
|
237 |
+- Update to version 7.3.0 to get retpoline support. |
|
236 | 238 |
* Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-7 |
237 | 239 |
- Aarch64 support |
238 | 240 |
* Mon Oct 02 2017 Alexey Makhalov <amakhalov@vmware.com> 6.3.0-6 |
... | ... |
@@ -1,11 +1,11 @@ |
1 | 1 |
Summary: C based http parser for high performance applications. |
2 | 2 |
Name: http-parser |
3 |
-Version: 2.7.1 |
|
3 |
+Version: 2.8.1 |
|
4 | 4 |
Release: 1%{?dist} |
5 | 5 |
License: MIT |
6 | 6 |
URL: https://github.com/nodejs/http-parser |
7 | 7 |
Source0: %{name}-v%{version}.tar.gz |
8 |
-%define sha1 http-parser=e122b1178ec5c9920186cc8293aca9eca7584b12 |
|
8 |
+%define sha1 http-parser=e980b680be6f31ea1f1a6d849d629248b5a9043e |
|
9 | 9 |
Group: Development/Tools |
10 | 10 |
Vendor: VMware, Inc. |
11 | 11 |
Distribution: Photon |
... | ... |
@@ -23,13 +23,12 @@ This contains development tools and libraries for http-parser. |
23 | 23 |
|
24 | 24 |
%prep |
25 | 25 |
%setup -q |
26 |
-sed -i 's/ln -s \$(LIBDIR)\/\$(SONAME) \$(LIBDIR)\/libhttp_parser.\$(SOEXT)/pushd \$(LIBDIR) \&\& ln -s \$(SONAME) libhttp_parser.\$(SOEXT) \&\& popd/g' Makefile |
|
27 | 26 |
|
28 | 27 |
%build |
29 | 28 |
make PREFIX=%{_prefix} %{?_smp_mflags} |
30 | 29 |
|
31 | 30 |
%install |
32 |
-make PREFIX="%{buildroot}%{_prefix}" DESTDIR="%{buildroot}" install |
|
31 |
+make PREFIX="%{_prefix}" DESTDIR="%{buildroot}" install |
|
33 | 32 |
|
34 | 33 |
%files |
35 | 34 |
%defattr(-,root,root) |
... | ... |
@@ -41,5 +40,7 @@ make PREFIX="%{buildroot}%{_prefix}" DESTDIR="%{buildroot}" install |
41 | 41 |
%{_libdir}/libhttp_parser.so |
42 | 42 |
|
43 | 43 |
%changelog |
44 |
+* Fri Aug 03 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 2.8.1-1 |
|
45 |
+- Update to version 2.8.1 to get it to build with gcc 7.3 |
|
44 | 46 |
* Wed Jul 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.7.1-1 |
45 | 47 |
- Initial version of http-parser package for Photon. |
... | ... |
@@ -4,8 +4,8 @@ |
4 | 4 |
|
5 | 5 |
Summary: iPXE open source boot firmware |
6 | 6 |
Name: ipxe |
7 |
-Version: 553f485 |
|
8 |
-Release: 2%{?dist} |
|
7 |
+Version: d2063b7 |
|
8 |
+Release: 1%{?dist} |
|
9 | 9 |
License: GPLv2 |
10 | 10 |
URL: http://ipxe.org |
11 | 11 |
Group: System Environment/Daemons |
... | ... |
@@ -13,7 +13,7 @@ Vendor: VMware, Inc. |
13 | 13 |
Distribution: Photon |
14 | 14 |
#Download URL: https://git.ipxe.org/ipxe.git/snapshot/%{commit}.tar.bz2 |
15 | 15 |
Source0: %{name}-%{version}.tar.bz2 |
16 |
-%define sha1 ipxe=723e1e46b00a7de870065b74f053941f46748062 |
|
16 |
+%define sha1 ipxe=1fe9e076528b0d39b828cec94c565fa9d58c8550 |
|
17 | 17 |
BuildRequires: binutils |
18 | 18 |
BuildRequires: binutils-devel |
19 | 19 |
BuildRequires: cdrkit |
... | ... |
@@ -62,6 +62,8 @@ install -vDm 644 src/bin/*.{rom,mrom} %{buildroot}/usr/share/ipxe/ |
62 | 62 |
/usr/share/ipxe/rtl8139.rom |
63 | 63 |
|
64 | 64 |
%changelog |
65 |
+* Wed Aug 08 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> d2063b7-1 |
|
66 |
+- Update version to get it to build with gcc 7.3 |
|
65 | 67 |
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 553f485-2 |
66 | 68 |
- disable debuginfo gen |
67 | 69 |
* Mon Mar 13 2017 Alexey Makhalov <amakhalov@vmware.com> 553f485-1 |
... | ... |
@@ -2,12 +2,12 @@ |
2 | 2 |
%{!?python3_sitelib: %global python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
3 | 3 |
Summary: SELinux library and simple utilities |
4 | 4 |
Name: libselinux |
5 |
-Version: 2.6 |
|
6 |
-Release: 4%{?dist} |
|
5 |
+Version: 2.8 |
|
6 |
+Release: 1%{?dist} |
|
7 | 7 |
License: Public Domain |
8 | 8 |
Group: System Environment/Libraries |
9 | 9 |
Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160107/%{name}-%{version}.tar.gz |
10 |
-%define sha1 libselinux=38213c5f3298c980a399ea73e47498e7a393e4f7 |
|
10 |
+%define sha1 libselinux=d45f2db91dbec82ef5a153aca247acc04234e8af |
|
11 | 11 |
Url: https://github.com/SELinuxProject/selinux/wiki |
12 | 12 |
Vendor: VMware, Inc. |
13 | 13 |
Distribution: Photon |
... | ... |
@@ -85,9 +85,9 @@ make LIBDIR="%{_libdir}" %{?_smp_mflags} PYTHON=/usr/bin/python2 pywrap |
85 | 85 |
make LIBDIR="%{_libdir}" %{?_smp_mflags} PYTHON=/usr/bin/python3 pywrap |
86 | 86 |
|
87 | 87 |
%install |
88 |
-make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" BINDIR="%{buildroot}%{_bindir}" SBINDIR="%{buildroot}%{_sbindir}" PYTHON=/usr/bin/python2 install install-pywrap |
|
88 |
+make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" BINDIR="%{_bindir}" SBINDIR="%{_sbindir}" PYTHON=/usr/bin/python2 install install-pywrap |
|
89 | 89 |
|
90 |
-make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" BINDIR="%{buildroot}%{_bindir}" SBINDIR="%{buildroot}%{_sbindir}" PYTHON=/usr/bin/python3 install install-pywrap |
|
90 |
+make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" BINDIR="%{_bindir}" SBINDIR="%{_sbindir}" PYTHON=/usr/bin/python3 install install-pywrap |
|
91 | 91 |
|
92 | 92 |
mkdir -p %{buildroot}/%{_prefix}/lib/tmpfiles.d |
93 | 93 |
mkdir -p %{buildroot}/var/run/setrans |
... | ... |
@@ -130,6 +130,8 @@ rm -rf %{buildroot} |
130 | 130 |
%{python3_sitelib}/* |
131 | 131 |
|
132 | 132 |
%changelog |
133 |
+* Fri Aug 10 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 2.8-1 |
|
134 |
+- Update to version 2.8 to get it to build with gcc 7.3 |
|
133 | 135 |
* Thu Aug 24 2017 Alexey Makhalov <amakhalov@vmware.com> 2.6-4 |
134 | 136 |
- Fix compilation issue for glibc-2.26 |
135 | 137 |
* Wed May 31 2017 Xiaolin Li <xiaolinl@vmware.com> 2.6-3 |
... | ... |
@@ -1,11 +1,11 @@ |
1 | 1 |
Summary: SELinux binary policy manipulation library |
2 | 2 |
Name: libsepol |
3 |
-Version: 2.6 |
|
3 |
+Version: 2.8 |
|
4 | 4 |
Release: 1%{?dist} |
5 | 5 |
License: LGPLv2+ |
6 | 6 |
Group: System Environment/Libraries |
7 | 7 |
Source0: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014/%{name}-%{version}.tar.gz |
8 |
-%define sha1 libsepol=029a43e131bd1fd55d39bfc8d11da016454029b6 |
|
8 |
+%define sha1 libsepol=1014c828f5eff3a0aec727749c3de44e0e69aa88 |
|
9 | 9 |
Source1: https://sourceforge.net/projects/cunit/files/CUnit-2.1-2-src.tar.bz2 |
10 | 10 |
%define sha1 CUnit=6c2d0627eb64c09c7140726d6bf814cf531a3ce0 |
11 | 11 |
URL: http://www.selinuxproject.org |
... | ... |
@@ -55,7 +55,7 @@ mkdir -p %{buildroot}%{_includedir} |
55 | 55 |
mkdir -p %{buildroot}%{_bindir} |
56 | 56 |
mkdir -p %{buildroot}%{_mandir}/man3 |
57 | 57 |
mkdir -p %{buildroot}%{_mandir}/man8 |
58 |
-make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install |
|
58 |
+make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="/%{_lib}" install |
|
59 | 59 |
rm -f %{buildroot}%{_bindir}/genpolbools |
60 | 60 |
rm -f %{buildroot}%{_bindir}/genpolusers |
61 | 61 |
rm -f %{buildroot}%{_bindir}/chkcon |
... | ... |
@@ -95,6 +95,8 @@ exit 0 |
95 | 95 |
%{_lib}/libsepol.so.1 |
96 | 96 |
|
97 | 97 |
%changelog |
98 |
+* Fri Aug 10 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 2.8-1 |
|
99 |
+- Update to version 2.8 to get it to build with gcc 7.3 |
|
98 | 100 |
* Tue Apr 04 2017 Kumar Kaushik <kaushikk@vmware.com> 2.6-1 |
99 | 101 |
- Updating version to 2.6 |
100 | 102 |
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.5-2 |
101 | 103 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
0 |
+From 6baf14372d7126285bf8b661731b69c400d2106c Mon Sep 17 00:00:00 2001 |
|
1 |
+From: "Srivatsa S. Bhat" <srivatsa@csail.mit.edu> |
|
2 |
+Date: Fri, 31 Aug 2018 10:20:31 -0700 |
|
3 |
+Subject: [PATCH] lightstep-tracer-cpp: Fix build issues with gcc 7.3 |
|
4 |
+ |
|
5 |
+In file included from lightstep/impl.h:11:0, |
|
6 |
+ from span.cc:1: |
|
7 |
+./lightstep/options.h:42:8: error: 'function' in namespace 'std' does not name a template type |
|
8 |
+ std::function<uint64_t()> guid_generator; |
|
9 |
+ ^~~~~~~~ |
|
10 |
+ |
|
11 |
+Signed-off-by: Srivatsa S. Bhat <srivatsa@csail.mit.edu> |
|
12 |
+--- |
|
13 |
+diff -Naurp lightstep-tracer-cpp-0.19-orig/src/c++11/lightstep/impl.h lightstep-tracer-cpp-0.19-modified/src/c++11/lightstep/impl.h |
|
14 |
+--- lightstep-tracer-cpp-0.19-orig/src/c++11/lightstep/impl.h 2016-11-30 14:51:38.000000000 -0800 |
|
15 |
+@@ -6,6 +6,7 @@ |
|
16 |
+ #include <memory> |
|
17 |
+ #include <mutex> |
|
18 |
+ #include <random> |
|
19 |
++#include <functional> |
|
20 |
+ |
|
21 |
+ #include "lightstep/collector.pb.h" |
|
22 |
+ #include "lightstep/options.h" |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: LightStep distributed tracing library for C++ |
2 | 2 |
Name: lightstep-tracer-cpp |
3 | 3 |
Version: 0.19 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: MIT |
6 | 6 |
URL: https://github.com/lightstep/lightstep-tracer-cpp |
7 | 7 |
Source0: https://github.com/lightstep/lightstep-tracer-cpp/releases/download/v0_19/%{name}-%{version}.tar.gz |
... | ... |
@@ -19,11 +19,14 @@ BuildRequires: protobuf |
19 | 19 |
BuildRequires: protobuf-devel |
20 | 20 |
Requires: protobuf |
21 | 21 |
|
22 |
+Patch0: 0001-lightstep-tracer-cpp-Fix-build-issues-with-gcc-7.3.patch |
|
23 |
+ |
|
22 | 24 |
%description |
23 | 25 |
LightStep distributed tracing library for C++. |
24 | 26 |
|
25 | 27 |
%prep |
26 | 28 |
%setup -q |
29 |
+%patch0 -p1 |
|
27 | 30 |
|
28 | 31 |
%build |
29 | 32 |
./configure \ |
... | ... |
@@ -54,5 +57,7 @@ find %{buildroot} -name '*.la' -delete |
54 | 54 |
%{_libdir}/liblightstep_* |
55 | 55 |
|
56 | 56 |
%changelog |
57 |
+* Fri Aug 31 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 0.19-2 |
|
58 |
+- Fix build issues with gcc 7.3 |
|
57 | 59 |
* Wed Jul 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.19-1 |
58 | 60 |
- Initial version of lightstep-tracer-cpp package for Photon. |
59 | 61 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,116 @@ |
0 |
+From c2ffeee34166f53334e5ad599e38e65397070bfb Mon Sep 17 00:00:00 2001 |
|
1 |
+From: "Srivatsa S. Bhat" <srivatsa@csail.mit.edu> |
|
2 |
+Date: Mon, 13 Aug 2018 15:04:13 -0700 |
|
3 |
+Subject: [PATCH] likewise-open: Fix build warnings/errors with gcc 7.3 |
|
4 |
+ |
|
5 |
+ [compile] lwreg/utils/fileutils.c (host/x86_64) |
|
6 |
+../lwreg/utils/fileutils.c: In function 'RegGetMatchingFilePathsInFolder': |
|
7 |
+../lwreg/utils/fileutils.c:869:7: warning: typedef 'PATHNODE' locally defined but not used [-Wunused-local-typedefs] |
|
8 |
+ } PATHNODE, *PPATHNODE; |
|
9 |
+ ^~~~~~~~ |
|
10 |
+ |
|
11 |
+ [compile] lwreg/server/providers/sqlite/sqliteapi.c (host/x86_64) |
|
12 |
+../lwreg/server/providers/sqlite/sqliteapi.c: In function 'SqliteDeleteTreeInternal_inlock_inDblock': |
|
13 |
+../lwreg/server/providers/sqlite/sqliteapi.c:1654:9: error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] |
|
14 |
+ memset(psubKeyName, 0, MAX_KEY_LENGTH); |
|
15 |
+ ^~~~~~ |
|
16 |
+ |
|
17 |
+ [compile] lwreg/shell/export.c (host/x86_64) |
|
18 |
+../lwreg/shell/export.c: In function 'ProcessExportedKeyInfo': |
|
19 |
+../lwreg/shell/export.c:349:9: error: 'memset' used with length equal to number of elements without multiplication by element size [-Werror=memset-elt-size] |
|
20 |
+ memset(pwszValueName, 0, MAX_KEY_LENGTH); |
|
21 |
+ ^~~~~~ |
|
22 |
+ |
|
23 |
+ [compile] dcerpc/ncklib/cnxfer.c (host/x86_64) |
|
24 |
+../dcerpc/ncklib/cnxfer.c: In function 'rpc__cn_add_new_iovector_elmt': |
|
25 |
+../dcerpc/ncklib/cnxfer.c:367:73: error: ?: using integer constants in boolean context, the expression will always evaluate to 'true' [-Werror=int-in-bool-context] |
|
26 |
+ if (RPC_CN_CREP_IOVLEN (call_rep) > (call_rep->sec != NULL) ? 3 : 2) |
|
27 |
+ |
|
28 |
+ [compile] lsass/server/auth-providers/ad-open-provider/join/join.c (host/x86_64) |
|
29 |
+../lsass/server/auth-providers/ad-open-provider/join/join.c: In function 'LsaJoinDomainInternal': |
|
30 |
+../lsass/server/auth-providers/ad-open-provider/join/join.c:735:32: error: comparison between pointer and zero character constant [-Werror=pointer-compare] |
|
31 |
+ if (pwszMachinePassword[0] == '\0') |
|
32 |
+ ^~ |
|
33 |
+../lsass/server/auth-providers/ad-open-provider/join/join.c:735:9: note: did you mean to dereference the pointer? |
|
34 |
+ if (pwszMachinePassword[0] == '\0') |
|
35 |
+ ^ |
|
36 |
+ |
|
37 |
+cc1: all warnings being treated as errors |
|
38 |
+ |
|
39 |
+Signed-off-by: Srivatsa S. Bhat <srivatsa@csail.mit.edu> |
|
40 |
+--- |
|
41 |
+ dcerpc/ncklib/cnxfer.c | 2 +- |
|
42 |
+ lsass/server/auth-providers/ad-open-provider/join/join.c | 2 +- |
|
43 |
+ lwreg/server/providers/sqlite/sqliteapi.c | 2 +- |
|
44 |
+ lwreg/shell/export.c | 2 +- |
|
45 |
+ lwreg/utils/fileutils.c | 2 +- |
|
46 |
+ 5 files changed, 5 insertions(+), 5 deletions(-) |
|
47 |
+ |
|
48 |
+diff --git a/dcerpc/ncklib/cnxfer.c b/dcerpc/ncklib/cnxfer.c |
|
49 |
+index cb8a6fd..dda5670 100644 |
|
50 |
+--- a/dcerpc/ncklib/cnxfer.c |
|
51 |
+@@ -364,7 +364,7 @@ PRIVATE void rpc__cn_add_new_iovector_elmt |
|
52 |
+ * Then adjust iovector so that we have only 2 elements: |
|
53 |
+ * the header plus the current stub data. |
|
54 |
+ */ |
|
55 |
+- if (RPC_CN_CREP_IOVLEN (call_rep) > (call_rep->sec != NULL) ? 3 : 2) |
|
56 |
++ if (RPC_CN_CREP_IOVLEN (call_rep) > ((call_rep->sec != NULL) ? 3 : 2)) |
|
57 |
+ { |
|
58 |
+ /* |
|
59 |
+ * rpc__cn_dealloc_buffered_data will always skip the |
|
60 |
+diff --git a/lsass/server/auth-providers/ad-open-provider/join/join.c b/lsass/server/auth-providers/ad-open-provider/join/join.c |
|
61 |
+index 971ddf3..cfaab80 100644 |
|
62 |
+--- a/lsass/server/auth-providers/ad-open-provider/join/join.c |
|
63 |
+@@ -732,7 +732,7 @@ LsaJoinDomainInternal( |
|
64 |
+ sizeof(pwszMachinePassword)/sizeof(pwszMachinePassword[0])); |
|
65 |
+ BAIL_ON_LSA_ERROR(dwError); |
|
66 |
+ |
|
67 |
+- if (pwszMachinePassword[0] == '\0') |
|
68 |
++ if (pwszMachinePassword[0] == NULL || *pwszMachinePassword[0] == '\0') |
|
69 |
+ { |
|
70 |
+ BAIL_ON_NT_STATUS(STATUS_INTERNAL_ERROR); |
|
71 |
+ } |
|
72 |
+diff --git a/lwreg/server/providers/sqlite/sqliteapi.c b/lwreg/server/providers/sqlite/sqliteapi.c |
|
73 |
+index 4e50fa1..1008a66 100644 |
|
74 |
+--- a/lwreg/server/providers/sqlite/sqliteapi.c |
|
75 |
+@@ -1651,7 +1651,7 @@ SqliteDeleteTreeInternal_inlock_inDblock( |
|
76 |
+ for (iCount = 0; iCount < subKeyCount.dwSubKeyCount; iCount++) |
|
77 |
+ { |
|
78 |
+ dwSubKeyLen = MAX_KEY_LENGTH; |
|
79 |
+- memset(psubKeyName, 0, MAX_KEY_LENGTH); |
|
80 |
++ memset(psubKeyName, 0, MAX_KEY_LENGTH * sizeof(psubKeyName[0])); |
|
81 |
+ |
|
82 |
+ status = SqliteEnumKeyEx_inDblock(Handle, |
|
83 |
+ hKey, |
|
84 |
+diff --git a/lwreg/shell/export.c b/lwreg/shell/export.c |
|
85 |
+index d641684..a0c08ce 100644 |
|
86 |
+--- a/lwreg/shell/export.c |
|
87 |
+@@ -346,7 +346,7 @@ ProcessExportedKeyInfo( |
|
88 |
+ |
|
89 |
+ for (iCount = 0; iCount < dwValuesCount; iCount++) |
|
90 |
+ { |
|
91 |
+- memset(pwszValueName, 0, MAX_KEY_LENGTH); |
|
92 |
++ memset(pwszValueName, 0, MAX_KEY_LENGTH * sizeof(pwszValueName[0])); |
|
93 |
+ dwValueNameLen = MAX_KEY_LENGTH; |
|
94 |
+ memset(value, 0, dwValueLenMax); |
|
95 |
+ dwValueLen = dwValueLenMax; |
|
96 |
+diff --git a/lwreg/utils/fileutils.c b/lwreg/utils/fileutils.c |
|
97 |
+index 99b0765..f744239 100644 |
|
98 |
+--- a/lwreg/utils/fileutils.c |
|
99 |
+@@ -866,7 +866,7 @@ RegGetMatchingFilePathsInFolder( |
|
100 |
+ { |
|
101 |
+ PSTR pszPath; |
|
102 |
+ struct __PATHNODE *pNext; |
|
103 |
+- } PATHNODE, *PPATHNODE; |
|
104 |
++ } *PPATHNODE; |
|
105 |
+ |
|
106 |
+ DWORD dwError = 0; |
|
107 |
+ DIR* pDir = NULL; |
|
108 |
+-- |
|
109 |
+2.7.4 |
|
110 |
+ |
... | ... |
@@ -1,14 +1,15 @@ |
1 | 1 |
Name: likewise-open |
2 | 2 |
Summary: Likewise Open |
3 |
-Version: 6.2.11.4 |
|
4 |
-Release: 4%{?dist} |
|
3 |
+Version: 6.2.11.12 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
Group: Development/Libraries |
6 | 6 |
Vendor: VMware, Inc. |
7 | 7 |
License: GPL 2.0,LGPL 2.1 |
8 | 8 |
URL: https://github.com/vmware/likewise-open |
9 | 9 |
Source0: %{name}-%{version}.tar.gz |
10 |
-%define sha1 likewise-open=6aa4cf11de6747d5f8940666c21adc3e1f7b6a4b |
|
10 |
+%define sha1 likewise-open=417412eca6734896886bbb2ebac17f668bd80cdf |
|
11 | 11 |
Patch0: likewise-open-aarch64.patch |
12 |
+Patch1: 0001-likewise-open-Fix-build-warnings-errors-with-gcc-7.3.patch |
|
12 | 13 |
Distribution: Photon |
13 | 14 |
Requires: Linux-PAM |
14 | 15 |
Requires: (coreutils >= 8.22 or toybox) |
... | ... |
@@ -47,6 +48,7 @@ This package provides files for developing against the Likewise APIs |
47 | 47 |
%prep |
48 | 48 |
%setup -q |
49 | 49 |
%patch0 -p1 |
50 |
+%patch1 -p1 |
|
50 | 51 |
|
51 | 52 |
%build |
52 | 53 |
# hack against glibc-2.26 to avoid getopt declaration mismatch |
... | ... |
@@ -290,6 +292,8 @@ rm -rf %{buildroot}/* |
290 | 290 |
/opt/likewise/lib64/pkgconfig/libedit.pc |
291 | 291 |
|
292 | 292 |
%changelog |
293 |
+* Mon Aug 13 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 6.2.11.12-1 |
|
294 |
+- Update to version 6.2.11.12 and fix build issues with gcc 7.3 |
|
293 | 295 |
* Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 6.2.11.4-4 |
294 | 296 |
- Aarch64 support |
295 | 297 |
* Mon Sep 18 2017 Alexey Makhalov <amakhalov@vmware.com> 6.2.11.4-3 |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: Kernel |
3 | 3 |
Name: linux-aws |
4 | 4 |
Version: 4.14.54 |
5 |
-Release: 2%{?kat_build:.%kat_build}%{?dist} |
|
5 |
+Release: 3%{?kat_build:.%kat_build}%{?dist} |
|
6 | 6 |
License: GPLv2 |
7 | 7 |
URL: http://www.kernel.org/ |
8 | 8 |
Group: System Environment/Kernel |
... | ... |
@@ -311,6 +311,8 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg |
311 | 311 |
/usr/share/doc/* |
312 | 312 |
|
313 | 313 |
%changelog |
314 |
+* Sun Sep 02 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.14.54-3 |
|
315 |
+- Add full retpoline support by building with retpoline-enabled gcc. |
|
314 | 316 |
* Thu Aug 30 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.14.54-2 |
315 | 317 |
- Apply out-of-tree patches needed for AppArmor. |
316 | 318 |
* Mon Jul 09 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 4.14.54-1 |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: Kernel |
3 | 3 |
Name: linux-esx |
4 | 4 |
Version: 4.14.54 |
5 |
-Release: 1%{?dist} |
|
5 |
+Release: 2%{?dist} |
|
6 | 6 |
License: GPLv2 |
7 | 7 |
URL: http://www.kernel.org/ |
8 | 8 |
Group: System Environment/Kernel |
... | ... |
@@ -186,6 +186,8 @@ ln -sf linux-%{uname_r}.cfg /boot/photon.cfg |
186 | 186 |
/usr/src/linux-headers-%{uname_r} |
187 | 187 |
|
188 | 188 |
%changelog |
189 |
+* Sun Sep 02 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.14.54-2 |
|
190 |
+- Add full retpoline support by building with retpoline-enabled gcc. |
|
189 | 191 |
* Mon Jul 09 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 4.14.54-1 |
190 | 192 |
- Update to version 4.14.54 |
191 | 193 |
* Fri Feb 02 2018 Alexey Makhalov <amakhalov@vmware.com> 4.14.8-1 |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: Kernel |
3 | 3 |
Name: linux-secure |
4 | 4 |
Version: 4.14.54 |
5 |
-Release: 2%{?kat_build:.%kat_build}%{?dist} |
|
5 |
+Release: 3%{?kat_build:.%kat_build}%{?dist} |
|
6 | 6 |
License: GPLv2 |
7 | 7 |
URL: http://www.kernel.org/ |
8 | 8 |
Group: System Environment/Kernel |
... | ... |
@@ -227,6 +227,8 @@ ln -sf linux-%{uname_r}.cfg /boot/photon.cfg |
227 | 227 |
/usr/src/linux-headers-%{uname_r} |
228 | 228 |
|
229 | 229 |
%changelog |
230 |
+* Sun Sep 02 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.14.54-3 |
|
231 |
+- Add full retpoline support by building with retpoline-enabled gcc. |
|
230 | 232 |
* Thu Aug 30 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.14.54-2 |
231 | 233 |
- Apply out-of-tree patches needed for AppArmor. |
232 | 234 |
* Mon Jul 09 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 4.14.54-1 |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: Kernel |
3 | 3 |
Name: linux |
4 | 4 |
Version: 4.14.54 |
5 |
-Release: 5%{?kat_build:.%kat_build}%{?dist} |
|
5 |
+Release: 6%{?kat_build:.%kat_build}%{?dist} |
|
6 | 6 |
License: GPLv2 |
7 | 7 |
URL: http://www.kernel.org/ |
8 | 8 |
Group: System Environment/Kernel |
... | ... |
@@ -366,6 +366,8 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg |
366 | 366 |
%endif |
367 | 367 |
|
368 | 368 |
%changelog |
369 |
+* Sun Sep 02 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.14.54-6 |
|
370 |
+- Add full retpoline support by building with retpoline-enabled gcc. |
|
369 | 371 |
* Thu Aug 30 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.14.54-5 |
370 | 372 |
- Apply out-of-tree patches needed for AppArmor. |
371 | 373 |
* Wed Aug 22 2018 Alexey Makhalov <amakhalov@vmware.com> 4.14.54-4 |
... | ... |
@@ -1,15 +1,15 @@ |
1 |
-%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python2_sitelib: %global python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 | 2 |
Summary: A next generation, high-performance debugger. |
3 | 3 |
Name: lldb |
4 |
-Version: 4.0.0 |
|
5 |
-Release: 3%{?dist} |
|
4 |
+Version: 6.0.1 |
|
5 |
+Release: 1%{?dist} |
|
6 | 6 |
License: NCSA |
7 | 7 |
URL: http://lldb.llvm.org |
8 | 8 |
Group: Development/Tools |
9 | 9 |
Vendor: VMware, Inc. |
10 | 10 |
Distribution: Photon |
11 | 11 |
Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz |
12 |
-%define sha1 lldb=da78ed1453a5e62ff058bebf0cd91c8f51ec5504 |
|
12 |
+%define sha1 lldb=907a32c7170067f485121a1e8ff793b16d1ff491 |
|
13 | 13 |
BuildRequires: cmake |
14 | 14 |
BuildRequires: llvm-devel = %{version} |
15 | 15 |
BuildRequires: clang-devel = %{version} |
... | ... |
@@ -80,10 +80,12 @@ rm -rf %{buildroot}/* |
80 | 80 |
%defattr(-,root,root) |
81 | 81 |
%{_bindir}/* |
82 | 82 |
%{_libdir}/liblldb.so.* |
83 |
+%{_libdir}/liblldbIntelFeatures.so.* |
|
83 | 84 |
|
84 | 85 |
%files devel |
85 | 86 |
%defattr(-,root,root) |
86 | 87 |
%{_libdir}/liblldb.so |
88 |
+%{_libdir}/liblldbIntelFeatures.so |
|
87 | 89 |
%{_libdir}/*.a |
88 | 90 |
%{_includedir}/* |
89 | 91 |
|
... | ... |
@@ -92,7 +94,10 @@ rm -rf %{buildroot}/* |
92 | 92 |
%{python2_sitelib}/* |
93 | 93 |
|
94 | 94 |
%changelog |
95 |
-* Thu Jul 10 2017 Chang Lee <changlee@vmware.com> 4.0.0-3 |
|
95 |
+* Thu Aug 09 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 6.0.1-1 |
|
96 |
+- Update to version 6.0.1 to get it to build with gcc 7.3 |
|
97 |
+- Make python2_sitelib macro global to fix build error. |
|
98 |
+* Mon Jul 10 2017 Chang Lee <changlee@vmware.com> 4.0.0-3 |
|
96 | 99 |
- Commented out %check due to no test existence. |
97 | 100 |
* Wed Jul 5 2017 Divya Thaluru <dthaluru@vmware.com> 4.0.0-2 |
98 | 101 |
- Added python-lldb package |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Intel LLDP Agent |
2 | 2 |
Name: lldpad |
3 | 3 |
Version: 1.0.1 |
4 |
-Release: 5%{?dist} |
|
4 |
+Release: 6%{?dist} |
|
5 | 5 |
License: GPLv2 |
6 | 6 |
URL: http://open-lldp.org/ |
7 | 7 |
Source: %{name}-%{version}.tar.gz |
... | ... |
@@ -24,7 +24,7 @@ The lldpad package comes with utilities to manage an LLDP interface with support |
24 | 24 |
|
25 | 25 |
%prep |
26 | 26 |
%setup -q -n open-lldp-036e314 |
27 |
-sed -i "s/AM_CFLAGS = -Wall -Werror -Wextra -Wformat=2/AM_CFLAGS = -Wall -Werror -Wextra -Wformat=2 -std=gnu89/" Makefile.am |
|
27 |
+sed -i "s/AM_CFLAGS = -Wall -Werror -Wextra -Wformat=2/AM_CFLAGS = -Wall -Werror -Wextra -Wformat=2 -std=gnu89 -Wno-implicit-fallthrough -Wno-format-truncation/" Makefile.am |
|
28 | 28 |
sed -i "s/u8 arglen;/u8 arglen = 0;/g" lldp_util.c |
29 | 29 |
|
30 | 30 |
%build |
... | ... |
@@ -67,6 +67,8 @@ mv %{buildroot}/%{_libdir}/systemd/system/lldpad.socket \ |
67 | 67 |
|
68 | 68 |
|
69 | 69 |
%changelog |
70 |
+* Mon Aug 13 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 1.0.1-6 |
|
71 |
+- Suppress build warnings with gcc 7.3 |
|
70 | 72 |
* Wed May 25 2016 Anish Swaminathan <anishs@vmware.com> 1.0.1-5 |
71 | 73 |
- Add required folder for service to start |
72 | 74 |
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.0.1-4 |
... | ... |
@@ -1,14 +1,14 @@ |
1 | 1 |
Summary: A collection of modular and reusable compiler and toolchain technologies. |
2 | 2 |
Name: llvm |
3 |
-Version: 4.0.0 |
|
4 |
-Release: 3%{?dist} |
|
3 |
+Version: 6.0.1 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: NCSA |
6 | 6 |
URL: http://lldb.llvm.org |
7 | 7 |
Group: Development/Tools |
8 | 8 |
Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source0: http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz |
11 |
-%define sha1 llvm=aee4524e2407f9fe5afc6f70c753180b907011d0 |
|
11 |
+%define sha1 llvm=09a6316c5225cab255ba12391e7abe5ff4d28935 |
|
12 | 12 |
BuildRequires: cmake |
13 | 13 |
BuildRequires: libxml2-devel |
14 | 14 |
BuildRequires: libffi-devel |
... | ... |
@@ -62,6 +62,14 @@ rm -rf %{buildroot}/* |
62 | 62 |
%{_bindir}/* |
63 | 63 |
%{_libdir}/*.so |
64 | 64 |
%{_libdir}/*.so.* |
65 |
+%dir %{_datadir}/opt-viewer |
|
66 |
+%{_datadir}/opt-viewer/opt-diff.py |
|
67 |
+%{_datadir}/opt-viewer/opt-stats.py |
|
68 |
+%{_datadir}/opt-viewer/opt-viewer.py |
|
69 |
+%{_datadir}/opt-viewer/optpmap.py |
|
70 |
+%{_datadir}/opt-viewer/optrecord.py |
|
71 |
+%{_datadir}/opt-viewer/style.css |
|
72 |
+ |
|
65 | 73 |
|
66 | 74 |
%files devel |
67 | 75 |
%{_libdir}/*.a |
... | ... |
@@ -69,6 +77,8 @@ rm -rf %{buildroot}/* |
69 | 69 |
%{_includedir}/* |
70 | 70 |
|
71 | 71 |
%changelog |
72 |
+* Thu Aug 09 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 6.0.1-1 |
|
73 |
+- Update to version 6.0.1 to get it to build with gcc 7.3 |
|
72 | 74 |
* Thu Aug 10 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-3 |
73 | 75 |
- Make check fix |
74 | 76 |
* Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 4.0.0-2 |
... | ... |
@@ -1,15 +1,14 @@ |
1 | 1 |
Summary: MySQL. |
2 | 2 |
Name: mysql |
3 |
-Version: 5.7.20 |
|
4 |
-Release: 2%{?dist} |
|
3 |
+Version: 5.7.23 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: GPLv2 |
6 | 6 |
Group: Applications/Databases |
7 | 7 |
Vendor: VMware, Inc. |
8 | 8 |
Distribution: Photon |
9 | 9 |
Url: http://www.mysql.com |
10 | 10 |
Source0: https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-%{version}.tar.gz |
11 |
-%define sha1 mysql-boost=1fcbaea0d75d71a8a868f518b5b0afaaa18c5cda |
|
12 |
-Patch0: Fix-CVE-2018-2696.patch |
|
11 |
+%define sha1 mysql-boost=e88edced7261412e66fc5570ed375bb3a36494bf |
|
13 | 12 |
|
14 | 13 |
BuildRequires: cmake |
15 | 14 |
BuildRequires: openssl-devel |
... | ... |
@@ -28,7 +27,6 @@ Development headers for developing applications linking to maridb |
28 | 28 |
|
29 | 29 |
%prep |
30 | 30 |
%setup -q %{name}-boost-%{version} |
31 |
-%patch0 -p1 |
|
32 | 31 |
|
33 | 32 |
%build |
34 | 33 |
cmake . \ |
... | ... |
@@ -68,6 +66,8 @@ make test |
68 | 68 |
%{_libdir}/pkgconfig/mysqlclient.pc |
69 | 69 |
|
70 | 70 |
%changelog |
71 |
+* Wed Aug 08 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 5.7.23-1 |
|
72 |
+- Update to version 5.7.23 to get it to build with gcc 7.3 |
|
71 | 73 |
* Thu Jan 25 2018 Divya Thaluru <dthaluru@vmware.com> 5.7.20-2 |
72 | 74 |
- Added patch for CVE-2018-2696 |
73 | 75 |
* Wed Oct 25 2017 Xiaolin Li <xiaolinl@vmware.com> 5.7.20-1 |
74 | 76 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,27 @@ |
0 |
+From cba45fe9de6923b858edb0780e257b7257aa4f7b Mon Sep 17 00:00:00 2001 |
|
1 |
+From: Harry Wong <harrywong@live.com> |
|
2 |
+Date: Thu, 4 May 2017 10:32:45 +0800 |
|
3 |
+Subject: [PATCH] Onley apply to GCC 7 |
|
4 |
+ |
|
5 |
+--- |
|
6 |
+ include/rapidjson/internal/regex.h | 2 ++ |
|
7 |
+ 1 file changed, 2 insertions(+) |
|
8 |
+ |
|
9 |
+diff --git a/include/rapidjson/internal/regex.h b/include/rapidjson/internal/regex.h |
|
10 |
+index 6d110bd..e1a2faa 100644 |
|
11 |
+--- a/include/rapidjson/internal/regex.h |
|
12 |
+@@ -29,8 +29,10 @@ RAPIDJSON_DIAG_OFF(implicit-fallthrough) |
|
13 |
+ #ifdef __GNUC__ |
|
14 |
+ RAPIDJSON_DIAG_PUSH |
|
15 |
+ RAPIDJSON_DIAG_OFF(effc++) |
|
16 |
++#if __GNUC__ >= 7 |
|
17 |
+ RAPIDJSON_DIAG_OFF(implicit-fallthrough) |
|
18 |
+ #endif |
|
19 |
++#endif |
|
20 |
+ |
|
21 |
+ #ifdef _MSC_VER |
|
22 |
+ RAPIDJSON_DIAG_PUSH |
|
23 |
+-- |
|
24 |
+2.7.4 |
|
25 |
+ |
0 | 26 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
0 |
+From fe19b7b6016d446722621fb407738209d1a911e8 Mon Sep 17 00:00:00 2001 |
|
1 |
+From: Harry Wong <harrywong@live.com> |
|
2 |
+Date: Thu, 4 May 2017 10:08:48 +0800 |
|
3 |
+Subject: [PATCH] Supress implicit fallthrough in GCC |
|
4 |
+ |
|
5 |
+--- |
|
6 |
+ include/rapidjson/internal/regex.h | 1 + |
|
7 |
+ 1 file changed, 1 insertion(+) |
|
8 |
+ |
|
9 |
+diff --git a/include/rapidjson/internal/regex.h b/include/rapidjson/internal/regex.h |
|
10 |
+index 1369ea2..6d110bd 100644 |
|
11 |
+--- a/include/rapidjson/internal/regex.h |
|
12 |
+@@ -29,6 +29,7 @@ RAPIDJSON_DIAG_OFF(implicit-fallthrough) |
|
13 |
+ #ifdef __GNUC__ |
|
14 |
+ RAPIDJSON_DIAG_PUSH |
|
15 |
+ RAPIDJSON_DIAG_OFF(effc++) |
|
16 |
++RAPIDJSON_DIAG_OFF(implicit-fallthrough) |
|
17 |
+ #endif |
|
18 |
+ |
|
19 |
+ #ifdef _MSC_VER |
|
20 |
+-- |
|
21 |
+2.7.4 |
|
22 |
+ |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: A fast JSON parser/generator for C++ with both SAX/DOM style API |
3 | 3 |
Name: rapidjson |
4 | 4 |
Version: 1.1.0 |
5 |
-Release: 1%{?dist} |
|
5 |
+Release: 2%{?dist} |
|
6 | 6 |
License: BSD, JSON, MIT |
7 | 7 |
URL: https://github.com/gcc-mirror/gcc/blob/master/gcc/gcov.c |
8 | 8 |
Source0: https://github.com/miloyip/rapidjson/archive/%{name}-%{version}.tar.gz |
... | ... |
@@ -11,6 +11,10 @@ Group: Development/Tools |
11 | 11 |
Vendor: VMware, Inc. |
12 | 12 |
Distribution: Photon |
13 | 13 |
BuildRequires: cmake |
14 |
+ |
|
15 |
+Patch1: 0001-Supress-implicit-fallthrough-in-GCC.patch |
|
16 |
+Patch2: 0001-Onley-apply-to-GCC-7.patch |
|
17 |
+ |
|
14 | 18 |
%description |
15 | 19 |
RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml. |
16 | 20 |
|
... | ... |
@@ -25,6 +29,8 @@ This package contains development headers and examples. |
25 | 25 |
|
26 | 26 |
%prep |
27 | 27 |
%setup -q |
28 |
+%patch1 -p1 |
|
29 |
+%patch2 -p1 |
|
28 | 30 |
|
29 | 31 |
%build |
30 | 32 |
mkdir build && cd build |
... | ... |
@@ -43,5 +49,7 @@ make DESTDIR=%{buildroot} install |
43 | 43 |
%{_includedir} |
44 | 44 |
%{_datadir} |
45 | 45 |
%changelog |
46 |
+* Wed Aug 08 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 1.1.0-2 |
|
47 |
+- Fix build failure with gcc 7.3 |
|
46 | 48 |
* Fri Jun 09 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.1.0-1 |
47 | 49 |
- Initial build. First version |
... | ... |
@@ -1,14 +1,14 @@ |
1 | 1 |
Summary: Trusted pre-kernel module and tools. |
2 | 2 |
Name: tboot |
3 |
-Version: 1.9.5 |
|
4 |
-Release: 2%{?dist} |
|
3 |
+Version: 1.9.6 |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: BSD |
6 | 6 |
URL: https://sourceforge.net/projects/tboot/ |
7 | 7 |
Group: System Environment/Security |
8 | 8 |
Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source0: %{name}-%{version}.tar.gz |
11 |
-%define sha1 tboot=fb5fe86278c003efa94ba5740d613cbff28de6e8 |
|
11 |
+%define sha1 tboot=d060bf1ebd3e9d3d84ab39b78e0825b5f8489755 |
|
12 | 12 |
BuildRequires: trousers-devel |
13 | 13 |
Requires: libtspi |
14 | 14 |
%description |
... | ... |
@@ -33,6 +33,8 @@ make debug=y DESTDIR=%{buildroot} install |
33 | 33 |
%exclude %{_sysconfdir} |
34 | 34 |
|
35 | 35 |
%changelog |
36 |
+* Tue Aug 07 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 1.9.6-1 |
|
37 |
+- Update to version 1.9.6 to get it to build with gcc 7.3 |
|
36 | 38 |
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.9.5-2 |
37 | 39 |
- Ensure non empty debuginfo |
38 | 40 |
* Thu Mar 2 2017 Alexey Makhalov <amakhalov@vmware.com> 1.9.5-1 |