summaryrefslogtreecommitdiff
path: root/cbindgen.patch
diff options
context:
space:
mode:
authorohfp <1813007-ohfp@users.noreply.gitlab.com>2021-07-07 15:19:00 +0200
committerohfp <1813007-ohfp@users.noreply.gitlab.com>2021-07-07 15:19:00 +0200
commit4e47988307152b105ae3adc2d01a09e3e32c2b37 (patch)
treefeb7699ef51dd1e444cd8e30b13b46dbef8b96a2 /cbindgen.patch
parentMerge branch 'include_new_patches' into 'master' (diff)
downloadlibrewolf-debian-4e47988307152b105ae3adc2d01a09e3e32c2b37.tar.gz
librewolf-debian-4e47988307152b105ae3adc2d01a09e3e32c2b37.tar.bz2
librewolf-debian-4e47988307152b105ae3adc2d01a09e3e32c2b37.zip
use cargo-installed cbindgen 0.19.0 until in upstream repos
Diffstat (limited to 'cbindgen.patch')
-rw-r--r--cbindgen.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/cbindgen.patch b/cbindgen.patch
new file mode 100644
index 0000000..eddce0f
--- /dev/null
+++ b/cbindgen.patch
@@ -0,0 +1,44 @@
+diff --git a/control b/control
+index a010475..da60418 100644
+--- a/control
++++ b/control
+@@ -33,7 +33,6 @@ Build-Depends: autotools-dev,
+ llvm-dev,
+ libclang-dev,
+ clang,
+- cbindgen (>= 0.19.0),
+ nodejs (>= 10),
+ zip,
+ unzip,
+diff --git a/control.in b/control.in
+index b6acf1b..089cbf7 100644
+--- a/control.in
++++ b/control.in
+@@ -58,7 +58,6 @@ Build-Depends: autotools-dev,
+ libclang-dev,
+ clang,
+ %endif
+- cbindgen (>= 0.19.0),
+ %if DIST == stretch
+ nodejs-mozilla (>= 10),
+ %else
+diff --git a/rules b/rules
+index 117197e..e1b7858 100755
+--- a/rules
++++ b/rules
+@@ -239,11 +239,14 @@ stamps/configure-$(PRODUCT):: stamps/prepare-configure debian/$($(PRODUCT)).mozc
+ $(COMMON_CONFIGURE_FLAGS) \
+ $(CONFIGURE_FLAGS)
+
+-stamps/build-$(PRODUCT):: stamps/configure-check-$(PRODUCT)
++stamps/build-$(PRODUCT):: $(CARGO_HOME)/bin/cbindgen stamps/configure-check-$(PRODUCT)
+ +dh_auto_build --parallel --builddirectory=build-$(PRODUCT) -- \
+ LD_LIBS=-Wl,--no-gc-sections \
+ _LEAKTEST_FILES=leaktest.py
+
++$(CARGO_HOME)/bin/cbindgen:
++ cargo install --version 0.19.0 cbindgen
++
+ L10N_BUILD_STAMPS = $(foreach lang,$(L10N_LANGS),stamps/build-l10n-$(lang))
+ stamps/build-l10n:: $(L10N_BUILD_STAMPS)
+
bgstack15