[arch-commits] Commit in bluegriffon/trunk (PKGBUILD fix-rust-lifetime-issue.patch)
Evangelos Foutras
foutrelis at archlinux.org
Thu Apr 9 04:27:28 UTC 2020
Date: Thursday, April 9, 2020 @ 04:27:27
Author: foutrelis
Revision: 612887
libffi 3.3 rebuild
Added:
bluegriffon/trunk/fix-rust-lifetime-issue.patch
Modified:
bluegriffon/trunk/PKGBUILD
-------------------------------+
PKGBUILD | 7 +++-
fix-rust-lifetime-issue.patch | 61 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 67 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-09 03:48:55 UTC (rev 612886)
+++ PKGBUILD 2020-04-09 04:27:27 UTC (rev 612887)
@@ -5,7 +5,7 @@
pkgname=(bluegriffon)
pkgver=3.1
_gecko_dev_revision=042b84a # see config/gecko_dev_revision.txt
-pkgrel=9
+pkgrel=10
pkgdesc="The next-generation Web Editor based on the rendering engine of Firefox"
arch=('x86_64')
url="http://bluegriffon.org/"
@@ -23,6 +23,7 @@
"bug_445128_install-dir.patch"::"https://hg.mozilla.org/mozilla-central/raw-rev/8f74ddd39f61"
"bug_1533969_glibc230.patch"
"no-crmf.diff"
+ "fix-rust-lifetime-issue.patch"
"rust-explitcit-dyn.patch")
sha256sums=('4fb9b29f00ff4e94e78994308ffa52bce818978009e0d8229203d6ac4210b0f4'
'01096e58c898e1b37cba581e1cc0f325d1c402091ccc4a2491543b39add40c6c'
@@ -34,6 +35,7 @@
'18fbcfda13dd7d30d3c1310da15a133f90bf9ce6b7cfa15de833928e7d9efe95'
'35bd21633bfe1005ccb643d6863e5da32b1281594f92bdcbd2ed36ef3fc43dfd'
'02000d185e647aa20ca336e595b4004bb29cdae9d8f317f90078bdcc7a36e873'
+ '6726dce0ceabbb0893f8776168f20c15777a27e108e8ca46b1e39d5945d2c008'
'76d54fe6f5a5a50065b1d23f6a6bc4b057d4944bfab5d8ee3bb7faef4e30c334')
prepare() {
@@ -57,6 +59,9 @@
# https://bugzilla.mozilla.org/show_bug.cgi?id=1384062
patch -Np1 -i ../bug_1384062_systemresourcemonitor.patch
+ # patch from https://github.com/OpenMandrivaAssociation/bluegriffon
+ patch -Np1 -i ../fix-rust-lifetime-issue.patch
+
# https://bugs.archlinux.org/task/63861
patch -Np1 -i ../rust-explitcit-dyn.patch
Added: fix-rust-lifetime-issue.patch
===================================================================
--- fix-rust-lifetime-issue.patch (rev 0)
+++ fix-rust-lifetime-issue.patch 2020-04-09 04:27:27 UTC (rev 612887)
@@ -0,0 +1,61 @@
+diff --git a/third_party/rust/url/.cargo-checksum.json b/third_party/rust/url/.cargo-checksum.json
+index 9f3bd51..9887964 100644
+--- a/third_party/rust/url/.cargo-checksum.json
++++ b/third_party/rust/url/.cargo-checksum.json
+@@ -1 +1 @@
+-{"files":{".cargo-ok":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",".gitignore":"e20a03cb660e0039506f8828204fd93815ebfe051ef62194f8dcf3fc8b7d0e5a",".travis.yml":"2a3033f9edf86bc829de486fc1e74fe0bbe3166ed99b0139754ea29772c19b06","Cargo.toml":"3e4aa9825375f1849bcf059596443b23c6aba2b0fbe58db5174a7d3c3cc2c18d","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"20c7855c364d57ea4c97889a5e8d98470a9952dade37bd9248b9a54431670e5e","Makefile":"e79b3348d3d25603c496a805bd905c4ae5df042c52e30550286adeb7baae360f","README.md":"eb3f4694003f408cbe3c7f3e9fbbc71241defb940cc55a816981f0f0f144c8eb","UPGRADING.md":"fbcc2d39bdf17db0745793db6626fcd5c909dddd4ce13b27566cfabece22c368","appveyor.yml":"c78486dbfbe6ebbf3d808afb9a19f7ec18c4704ce451c6305f0716999b70a1a6","docs/.nojekyll":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","docs/404.html":"f61e6271c1ea1aa113b64b356e994595fa548f0433f89948d747503ad22195cd","docs/index.h
tml":"f61e6271c1ea1aa113b64b356e994595fa548f0433f89948d747503ad22195cd","github.png":"b432fd855efe7c430fe6a57ccf83935c1996f03a7cdc8d6e1b34154b8c43f6ec","rust-url-todo":"1192cee7b6cedf2133d97dc6074b593a1d19b0ee13fff6f28d6329855044e575","src/encoding.rs":"7fb43e1c109bf9f2a80a05525082f90e79dba8e8056547571c49fba074406d39","src/form_urlencoded.rs":"172922f2c51eb8dae0182d70e5e0c2969f1b5b7aac026720ced9f84059465999","src/host.rs":"b4ae209e83bfd77a35df3f63f3b689c510190d69008682fa42cf5473487a4e62","src/lib.rs":"e0e2d6e74ff63d897a74d7ed06f49fd0bdd940401a1af039a43d3f0a02fbb9fe","src/origin.rs":"d52010a280d363aed6832f7de5e52c1a62815302e59dcbc9cdc2574e2ac884b9","src/parser.rs":"4ab643e63e6457bf2f108be8af1d0eed79ade3e0f66fb842d024d8345a9165d7","src/path_segments.rs":"85e16d4e3a7bf4162b2ddd6a14beda0d753395da7c8efe208c52862fc2b21221","src/percent_encoding.rs":"44d3321eaa1c77715e9ea1421519289ca73612a31c3d6fce04ff489dfa7db3c5","src/quirks.rs":"3249d1a1f73dd29ec06d626ea2ea4d61e7b2a782543742a5bee422b2f3
864b19","src/slicing.rs":"4e539886b23945a92094625f3e5
31a4bff40daa44240b5d19ee8577478c4f7fe","tests/data.rs":"9218e8853602ef4191c1e600f6123d63caf20c416dd516b504791f2e736138f1","tests/setters_tests.json":"ebcbdb52e9a4b5a565f8806d52ebc610d46a34df883e10b0be080d026468ff73","tests/unit.rs":"9ab86f8d1e54d7e1969862f830f10e8d60f399980400fb6d29e35fd93a738bb9","tests/urltestdata.json":"430c74aa3a31afaa57a92805544e00825f4dffe2def98c1e3c212c3db80268af"},"package":"f5ba8a749fb4479b043733416c244fa9d1d3af3d7c23804944651c8a448cb87e"}
+\ No newline at end of file
++{"files":{".cargo-ok":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",".gitignore":"e20a03cb660e0039506f8828204fd93815ebfe051ef62194f8dcf3fc8b7d0e5a",".travis.yml":"2a3033f9edf86bc829de486fc1e74fe0bbe3166ed99b0139754ea29772c19b06","Cargo.toml":"3e4aa9825375f1849bcf059596443b23c6aba2b0fbe58db5174a7d3c3cc2c18d","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"20c7855c364d57ea4c97889a5e8d98470a9952dade37bd9248b9a54431670e5e","Makefile":"e79b3348d3d25603c496a805bd905c4ae5df042c52e30550286adeb7baae360f","README.md":"eb3f4694003f408cbe3c7f3e9fbbc71241defb940cc55a816981f0f0f144c8eb","UPGRADING.md":"fbcc2d39bdf17db0745793db6626fcd5c909dddd4ce13b27566cfabece22c368","appveyor.yml":"c78486dbfbe6ebbf3d808afb9a19f7ec18c4704ce451c6305f0716999b70a1a6","docs/.nojekyll":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","docs/404.html":"f61e6271c1ea1aa113b64b356e994595fa548f0433f89948d747503ad22195cd","docs/index.h
tml":"f61e6271c1ea1aa113b64b356e994595fa548f0433f89948d747503ad22195cd","github.png":"b432fd855efe7c430fe6a57ccf83935c1996f03a7cdc8d6e1b34154b8c43f6ec","rust-url-todo":"1192cee7b6cedf2133d97dc6074b593a1d19b0ee13fff6f28d6329855044e575","src/encoding.rs":"7fb43e1c109bf9f2a80a05525082f90e79dba8e8056547571c49fba074406d39","src/form_urlencoded.rs":"b29023703c557576b28e752645614c22694dd176deb39cbd236834659001cee5","src/host.rs":"b4ae209e83bfd77a35df3f63f3b689c510190d69008682fa42cf5473487a4e62","src/lib.rs":"adc318878134cfb48a1de526adf11b797590d21b267d2199157ae04b036c12a9","src/origin.rs":"d52010a280d363aed6832f7de5e52c1a62815302e59dcbc9cdc2574e2ac884b9","src/parser.rs":"4ab643e63e6457bf2f108be8af1d0eed79ade3e0f66fb842d024d8345a9165d7","src/path_segments.rs":"85e16d4e3a7bf4162b2ddd6a14beda0d753395da7c8efe208c52862fc2b21221","src/percent_encoding.rs":"44d3321eaa1c77715e9ea1421519289ca73612a31c3d6fce04ff489dfa7db3c5","src/quirks.rs":"3249d1a1f73dd29ec06d626ea2ea4d61e7b2a782543742a5bee422b2f3
864b19","src/slicing.rs":"4e539886b23945a92094625f3e5
31a4bff40daa44240b5d19ee8577478c4f7fe","tests/data.rs":"9218e8853602ef4191c1e600f6123d63caf20c416dd516b504791f2e736138f1","tests/setters_tests.json":"ebcbdb52e9a4b5a565f8806d52ebc610d46a34df883e10b0be080d026468ff73","tests/unit.rs":"9ab86f8d1e54d7e1969862f830f10e8d60f399980400fb6d29e35fd93a738bb9","tests/urltestdata.json":"430c74aa3a31afaa57a92805544e00825f4dffe2def98c1e3c212c3db80268af"},"package":"f5ba8a749fb4479b043733416c244fa9d1d3af3d7c23804944651c8a448cb87e"}
+diff --git a/third_party/rust/url/src/form_urlencoded.rs b/third_party/rust/url/src/form_urlencoded.rs
+index f4a6555..036abe8 100644
+--- a/third_party/rust/url/src/form_urlencoded.rs
++++ b/third_party/rust/url/src/form_urlencoded.rs
+@@ -242,8 +242,16 @@ impl<'a> Target for &'a mut String {
+ // * `Serializer` keeps its target in a private field
+ // * Unlike in other `Target` impls, `UrlQuery::finished` does not return `Self`.
+ impl<'a> Target for ::UrlQuery<'a> {
+- fn as_mut_string(&mut self) -> &mut String { &mut self.url.serialization }
+- fn finish(self) -> &'a mut ::Url { self.url }
++ fn as_mut_string(&mut self) -> &mut String {
++ &mut self.url.as_mut().unwrap().serialization
++ }
++
++ fn finish(mut self) -> &'a mut ::Url {
++ let url = self.url.take().unwrap();
++ url.restore_already_parsed_fragment(self.fragment.take());
++ url
++ }
++
+ type Finished = &'a mut ::Url;
+ }
+
+diff --git a/third_party/rust/url/src/lib.rs b/third_party/rust/url/src/lib.rs
+index 4292b2f..52068ea 100644
+--- a/third_party/rust/url/src/lib.rs
++++ b/third_party/rust/url/src/lib.rs
+@@ -1012,7 +1012,7 @@ impl Url {
+ self.serialization.push('?');
+ }
+
+- let query = UrlQuery { url: self, fragment: fragment };
++ let query = UrlQuery { url: Some(self), fragment: fragment };
+ form_urlencoded::Serializer::for_suffix(query, query_start + "?".len())
+ }
+
+@@ -1888,12 +1888,14 @@ fn io_error<T>(reason: &str) -> io::Result<T> {
+
+ /// Implementation detail of `Url::query_pairs_mut`. Typically not used directly.
+ pub struct UrlQuery<'a> {
+- url: &'a mut Url,
++ url: Option<&'a mut Url>,
+ fragment: Option<String>,
+ }
+
+ impl<'a> Drop for UrlQuery<'a> {
+ fn drop(&mut self) {
+- self.url.restore_already_parsed_fragment(self.fragment.take())
++ if let Some(url) = self.url.take() {
++ url.restore_already_parsed_fragment(self.fragment.take())
++ }
+ }
+ }
More information about the arch-commits
mailing list