diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/files/readfiletostring_clearfirst.patch b/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/files/readfiletostring_clearfirst.patch new file mode 100644 index 0000000000..05a673a6cb --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/files/readfiletostring_clearfirst.patch @@ -0,0 +1,11 @@ +--- a/file_util.cc 2014-10-21 19:09:47.052101527 -0400 ++++ b/file_util.cc 2014-10-21 19:22:00.619134259 -0400 +@@ -152,6 +152,8 @@ + } + + bool ReadFileToString(const FilePath& path, std::string* contents) { ++ if (contents) ++ contents->clear(); + if (path.ReferencesParent()) + return false; + FILE* file = OpenFile(path, "rb"); diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609-r2.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609-r3.ebuild similarity index 100% rename from sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609-r2.ebuild rename to sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609-r3.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609.ebuild index 164a594a38..a193893dec 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/libchrome/libchrome-180609.ebuild @@ -42,6 +42,7 @@ src_prepare() { epatch "${FILESDIR}"/base-125070-no-X.patch epatch "${FILESDIR}"/base-125070-x32.patch + epatch "${FILESDIR}"/readfiletostring_clearfirst.patch } src_configure() {