#!/bin/sh
# Symlink {build => src}/$pkg/debian/patches for easier editing.
+#
+# If you give a second argument $2, will create this patch, add Cargo.toml to
+# it, open it for editing, refresh the patch, and call cargo build for you.
+#
+# If the build succeeds, exits with success, and you can re-rerun update.sh
+# If the build fails, will "quilt add" everything so you can begin editing the
+# files without forgetting to add them.
+
set -e
pkg="$1"
rm -rf "build/$pkg/debian/patches"
rm -rf "build/$pkg/.pc"
ln -sfT "$PWD/src/$pkg/debian/patches" "build/$pkg/debian/patches"
+
+if [ -z "$2" ]; then exit 0; fi
+
+cd "build/$pkg"
+export QUILT_PATCHES=debian/patches
+patchname="${2%.patch}.patch"
+quilt new "$patchname"
+quilt add Cargo.toml
+sensible-editor Cargo.toml
+quilt refresh
+find src -type f -execdir quilt add '{}' +
+
+while ! cargo build; do
+
+cat <<-eof
+Spawning a sub-shell. Please try to fix the build failure by editing files in
+src/, which have been already quilt-added for you to $patchname. Afterwards,
+don't forgot to run "quilt refresh". To exit this loop without having fixed the
+problem, press Ctrl-D then quickly Ctrl-C.
+eof
+$SHELL
+quilt refresh
+cargo build
+
+done
+
+echo "patching was a success!"
rust-once-cell (1.2.0-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+ * Team upload.
+ * Package once_cell 1.2.0 from crates.io using debcargo 2.4.2
+
+ [ Nikos Tsipinakis ]
* Patch failing reentrant_init test
* Package once_cell 1.2.0 from crates.io using debcargo 2.4.1
- -- Nikos Tsipinakis <nikos@tsipinakis.com> Wed, 08 Jan 2020 13:50:41 +0000
+ -- Ximin Luo <infinity0@debian.org> Wed, 08 Jan 2020 22:25:49 +0000
rust-once-cell (1.2.0-1) unstable; urgency=medium
+update-parking-lot.patch
fix-reentrant-init-test.patch
--- /dev/null
+Index: once-cell/Cargo.toml
+===================================================================
+--- once-cell.orig/Cargo.toml
++++ once-cell/Cargo.toml
+@@ -44,7 +44,7 @@ required-features = ["std"]
+ name = "regex"
+ required-features = ["std"]
+ [dependencies.parking_lot]
+-version = "0.9.0"
++version = "0.10.0"
+ optional = true
+ default_features = false
+ [dev-dependencies.crossbeam-utils]
+rust-parking-lot-core (0.7.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+ * Team upload.
+ * Package parking_lot_core 0.7.0 from crates.io using debcargo 2.4.2
+
+ -- Ximin Luo <infinity0@debian.org> Wed, 08 Jan 2020 22:25:36 +0000
+
rust-parking-lot-core (0.6.2-1) unstable; urgency=medium
* Team upload.
Files: debian/*
Copyright:
- 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
- 2018-2019 Sylvestre Ledru <sylvestre@debian.org>
- 2018-2019 Wolfgang Silbermayr <wolfgang@silbermayr.at>
+ 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2018-2020 Sylvestre Ledru <sylvestre@debian.org>
+ 2018-2020 Wolfgang Silbermayr <wolfgang@silbermayr.at>
License: Apache-2.0 or MIT
License: Apache-2.0
--- /dev/null
+update-dep-smallvec.patch
+rust-parking-lot (0.10.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+ * Team upload.
+ * Package parking_lot 0.10.0 from crates.io using debcargo 2.4.2
+
+ -- Ximin Luo <infinity0@debian.org> Wed, 08 Jan 2020 22:25:39 +0000
+
rust-parking-lot (0.9.0-1) unstable; urgency=medium
* Team upload.
Files: debian/*
Copyright:
- 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
- 2018-2019 Sylvestre Ledru <sylvestre@debian.org>
- 2018-2019 Wolfgang Silbermayr <wolfgang@silbermayr.at>
+ 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2018-2020 Sylvestre Ledru <sylvestre@debian.org>
+ 2018-2020 Wolfgang Silbermayr <wolfgang@silbermayr.at>
License: Apache-2.0 or MIT
License: Apache-2.0
+rust-smallvec (1.1.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+ * Team upload.
+ * Package smallvec 1.1.0 from crates.io using debcargo 2.4.2
+
+ -- Ximin Luo <infinity0@debian.org> Wed, 08 Jan 2020 22:26:50 +0000
+
rust-smallvec (0.6.10-1) unstable; urgency=medium
* Package smallvec 0.6.10 from crates.io using debcargo 2.3.1-alpha.0
Files: debian/*
Copyright:
- 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
- 2018-2019 kpcyrd <git@rxv.cc>
- 2018-2019 Wolfgang Silbermayr <wolfgang@silbermayr.at>
+ 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2018-2020 kpcyrd <git@rxv.cc>
+ 2018-2020 Wolfgang Silbermayr <wolfgang@silbermayr.at>
License: MIT or Apache-2.0
License: Apache-2.0