From 4c36e42bd48d8332ec3e3f621e08b753b49a5bfa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexander=20Kj=C3=A4ll?= Date: Sat, 29 Oct 2022 10:11:06 +0200 Subject: [PATCH] package wl-clipboard-rs, needed for ripasso --- src/wl-clipboard-rs/debian/RFS | 1 + src/wl-clipboard-rs/debian/changelog | 5 ++ src/wl-clipboard-rs/debian/copyright | 37 ++++++++++++++ .../debian/copyright.debcargo.hint | 49 +++++++++++++++++++ src/wl-clipboard-rs/debian/debcargo.toml | 3 ++ .../debian/patches/fix-deps.patch | 38 ++++++++++++++ .../patch-socket-location-in-tests.patch | 12 +++++ src/wl-clipboard-rs/debian/patches/series | 2 + 8 files changed, 147 insertions(+) create mode 100644 src/wl-clipboard-rs/debian/RFS create mode 100644 src/wl-clipboard-rs/debian/changelog create mode 100644 src/wl-clipboard-rs/debian/copyright create mode 100644 src/wl-clipboard-rs/debian/copyright.debcargo.hint create mode 100644 src/wl-clipboard-rs/debian/debcargo.toml create mode 100644 src/wl-clipboard-rs/debian/patches/fix-deps.patch create mode 100644 src/wl-clipboard-rs/debian/patches/patch-socket-location-in-tests.patch create mode 100644 src/wl-clipboard-rs/debian/patches/series diff --git a/src/wl-clipboard-rs/debian/RFS b/src/wl-clipboard-rs/debian/RFS new file mode 100644 index 000000000..197f97755 --- /dev/null +++ b/src/wl-clipboard-rs/debian/RFS @@ -0,0 +1 @@ +needed for ripasso diff --git a/src/wl-clipboard-rs/debian/changelog b/src/wl-clipboard-rs/debian/changelog new file mode 100644 index 000000000..72b88cc02 --- /dev/null +++ b/src/wl-clipboard-rs/debian/changelog @@ -0,0 +1,5 @@ +rust-wl-clipboard-rs (0.7.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package wl-clipboard-rs 0.7.0 from crates.io using debcargo 2.5.0 + + -- Alexander Kjäll Sat, 29 Oct 2022 10:00:26 +0200 diff --git a/src/wl-clipboard-rs/debian/copyright b/src/wl-clipboard-rs/debian/copyright new file mode 100644 index 000000000..31d67c641 --- /dev/null +++ b/src/wl-clipboard-rs/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: wl-clipboard-rs +Upstream-Contact: Ivan Molodetskikh +Source: https://github.com/YaLTeR/wl-clipboard-rs + +Files: * +Copyright: 2019-2022 Ivan Molodetskikh +License: MIT or Apache-2.0 + +Files: debian/* +Copyright: + 2022 Debian Rust Maintainers + 2022 Alexander Kjäll +License: MIT or Apache-2.0 + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/src/wl-clipboard-rs/debian/copyright.debcargo.hint b/src/wl-clipboard-rs/debian/copyright.debcargo.hint new file mode 100644 index 000000000..fbca405bb --- /dev/null +++ b/src/wl-clipboard-rs/debian/copyright.debcargo.hint @@ -0,0 +1,49 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: wl-clipboard-rs +Upstream-Contact: Ivan Molodetskikh +Source: https://github.com/YaLTeR/wl-clipboard-rs + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Ivan Molodetskikh +License: MIT or Apache-2.0 +Comment: + FIXME (overlay): Since upstream copyright years are not available in + Cargo.toml, they were extracted from the upstream Git repository. This may not + be correct information so you should review and fix this before uploading to + the archive. + +Files: ./LICENSE-MIT +Copyright: 2019 Ivan Molodetskikh +License: UNKNOWN-LICENSE; FIXME (overlay) +Comment: + FIXME (overlay): These notices are extracted from files. Please review them + before uploading to the archive. + +Files: debian/* +Copyright: + 2022 Debian Rust Maintainers + 2022 Alexander Kjäll +License: MIT or Apache-2.0 + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/src/wl-clipboard-rs/debian/debcargo.toml b/src/wl-clipboard-rs/debian/debcargo.toml new file mode 100644 index 000000000..c2d20b7e6 --- /dev/null +++ b/src/wl-clipboard-rs/debian/debcargo.toml @@ -0,0 +1,3 @@ +overlay = "." +uploaders = ["Alexander Kjäll "] +test_is_broken = true \ No newline at end of file diff --git a/src/wl-clipboard-rs/debian/patches/fix-deps.patch b/src/wl-clipboard-rs/debian/patches/fix-deps.patch new file mode 100644 index 000000000..ba2b88a03 --- /dev/null +++ b/src/wl-clipboard-rs/debian/patches/fix-deps.patch @@ -0,0 +1,38 @@ +diff --git a/Cargo.toml b/Cargo.toml +index bbd8eca..c473494 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -26,7 +26,7 @@ license = "MIT/Apache-2.0" + repository = "https://github.com/YaLTeR/wl-clipboard-rs" + + [dependencies.derive-new] +-version = "0.5.9" ++version = "0.5" + + [dependencies.libc] + version = "0.2.119" +@@ -35,10 +35,10 @@ version = "0.2.119" + version = "0.4.14" + + [dependencies.nix] +-version = "0.24.2" ++version = "0.25" + + [dependencies.os_pipe] +-version = "1.0.1" ++version = "1" + + [dependencies.tempfile] + version = "3.3.0" +@@ -68,6 +68,11 @@ features = [ + + [dev-dependencies.wayland-server] + version = "0.29.4" ++features = [ ++ "dlopen", ++ "use_system_lib", ++ "parking_lot", ++] + + [features] + dlopen = [ diff --git a/src/wl-clipboard-rs/debian/patches/patch-socket-location-in-tests.patch b/src/wl-clipboard-rs/debian/patches/patch-socket-location-in-tests.patch new file mode 100644 index 000000000..9efca7c3a --- /dev/null +++ b/src/wl-clipboard-rs/debian/patches/patch-socket-location-in-tests.patch @@ -0,0 +1,12 @@ +diff --git a/src/tests/mod.rs b/src/tests/mod.rs +index 20260c8..8d03121 100644 +--- a/src/tests/mod.rs ++++ b/src/tests/mod.rs +@@ -14,6 +14,7 @@ pub(crate) struct TestServer { + + impl TestServer { + pub fn new() -> TestServer { ++ std::env::set_var("XDG_RUNTIME_DIR", "/tmp/"); + let mut display = self::ways::Display::new(); + let socket_name = display.add_socket_auto().expect("Failed to create a server socket."); + diff --git a/src/wl-clipboard-rs/debian/patches/series b/src/wl-clipboard-rs/debian/patches/series new file mode 100644 index 000000000..a5887be3d --- /dev/null +++ b/src/wl-clipboard-rs/debian/patches/series @@ -0,0 +1,2 @@ +fix-deps.patch +patch-socket-location-in-tests.patch -- 2.39.5