Patch clang-sys: glob 0.3
kpcyrd
4 years ago
|
0 |
rust-clang-sys (0.28.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Package clang-sys 0.28.0 from crates.io using debcargo 2.2.10
|
|
3 |
|
|
4 |
-- kpcyrd <git@rxv.cc> Sun, 14 Jul 2019 16:10:28 +0000
|
|
5 |
|
0 | 6 |
rust-clang-sys (0.27.0-1) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
* Package clang-sys 0.27.0 from crates.io using debcargo 2.2.9
|
64 | 64 |
Copyright:
|
65 | 65 |
2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
|
66 | 66 |
2018-2019 Ximin Luo <infinity0@debian.org>
|
|
67 |
2018-2019 kpcyrd <git@rxv.cc>
|
67 | 68 |
License: Apache-2.0
|
68 | 69 |
|
69 | 70 |
License: Apache-2.0
|
0 | 0 |
overlay = "."
|
1 | |
uploaders = ["Ximin Luo <infinity0@debian.org>"]
|
|
1 |
uploaders = [
|
|
2 |
"Ximin Luo <infinity0@debian.org>",
|
|
3 |
"kpcyrd <git@rxv.cc>",
|
|
4 |
]
|
|
5 |
excludes = ["ci/**"]
|
2 | 6 |
|
3 | 7 |
[packages.lib]
|
4 | 8 |
depends = ["libclang-dev"]
|
|
0 |
--- a/build/common.rs
|
|
1 |
+++ b/build/common.rs
|
|
2 |
@@ -77,7 +77,7 @@ fn search_directory(directory: &Path, filenames: &[String]) -> Vec<(PathBuf, Str
|
|
3 |
options.require_literal_separator = true;
|
|
4 |
|
|
5 |
paths.flat_map(|p| {
|
|
6 |
- if let Ok(paths) = glob::glob_with(&p, &options) {
|
|
7 |
+ if let Ok(paths) = glob::glob_with(&p, options) {
|
|
8 |
paths.filter_map(Result::ok).collect()
|
|
9 |
} else {
|
|
10 |
vec![]
|
|
11 |
@@ -155,7 +155,7 @@ pub fn search_libclang_directories(files: &[String], variable: &str) -> Vec<(Pat
|
|
12 |
options.case_sensitive = false;
|
|
13 |
options.require_literal_separator = true;
|
|
14 |
for directory in directories.iter().rev() {
|
|
15 |
- if let Ok(directories) = glob::glob_with(directory, &options) {
|
|
16 |
+ if let Ok(directories) = glob::glob_with(directory, options) {
|
|
17 |
for directory in directories.filter_map(Result::ok).filter(|p| p.is_dir()) {
|
|
18 |
found.extend(search_directories(&directory, files));
|
|
19 |
}
|
|
0 |
--- a/Cargo.toml
|
|
1 |
+++ b/Cargo.toml
|
|
2 |
@@ -22,7 +22,7 @@
|
|
3 |
license = "Apache-2.0"
|
|
4 |
repository = "https://github.com/KyleMayes/clang-sys"
|
|
5 |
[dependencies.glob]
|
|
6 |
-version = "0.2.11"
|
|
7 |
+version = "0.3"
|
|
8 |
|
|
9 |
[dependencies.libc]
|
|
10 |
version = "0.2.39"
|
|
11 |
@@ -32,7 +32,7 @@
|
|
12 |
version = "0.5.0"
|
|
13 |
optional = true
|
|
14 |
[build-dependencies.glob]
|
|
15 |
-version = "0.2.11"
|
|
16 |
+version = "0.3"
|
|
17 |
|
|
18 |
[features]
|
|
19 |
clang_3_5 = []
|
|
0 |
relax-deps.patch
|
|
1 |
fix-dep-glob.patch
|