[neon/neon-packaging/cxx-rust-cssparser/Neon/unstable] debian: patch in cargo version

Carlos De Maine null at kde.org
Fri Jul 18 06:31:39 BST 2025


Git commit bc9f34f25f5e47366a76b6d9b272f36384e585f1 by Carlos De Maine.
Committed on 18/07/2025 at 05:31.
Pushed by carlosdem into branch 'Neon/unstable'.

patch in cargo version

M  +2    -2    debian/control
A  +17   -0    debian/patches/cargo-version.patch
A  +1    -0    debian/patches/series
M  +1    -3    debian/rules

https://invent.kde.org/neon/neon-packaging/cxx-rust-cssparser/-/commit/bc9f34f25f5e47366a76b6d9b272f36384e585f1

diff --git a/debian/control b/debian/control
index 2fce2d1..bfb47a3 100644
--- a/debian/control
+++ b/debian/control
@@ -2,14 +2,14 @@ Source: cxx-rust-cssparser
 Section: libs
 Priority: optional
 Maintainer: Jonathan Esk-Riddell <jr at jriddell.org>
-Build-Depends: cargo-1.81,
+Build-Depends: cargo-1.82,
                cmake,
                corrosion,
                debhelper-compat (= 13),
                kf6-extra-cmake-modules,
                pkg-kde-tools-neon,
                qt6-base-dev,
-               rustc-1.81,
+               rustc-1.82,
 Standards-Version: 4.6.2
 Homepage: https://invent.kde.org/libraries/cxx-rust-cssparser
 Vcs-Browser: https://invent.kde.org/neon/neon-packaging/cxx-rust-cssparser
diff --git a/debian/patches/cargo-version.patch b/debian/patches/cargo-version.patch
new file mode 100644
index 0000000..e5ec766
--- /dev/null
+++ b/debian/patches/cargo-version.patch
@@ -0,0 +1,17 @@
+diff --git a/rust/CMakeLists.txt b/rust/CMakeLists.txt
+index f25532b..311d86a 100644
+--- a/rust/CMakeLists.txt
++++ b/rust/CMakeLists.txt
+@@ -2,10 +2,10 @@
+ # SPDX-FileCopyrightText: 2025 Arjen Hiemstra <ahiemstra at heimr.nl>
+ 
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
+-    set(CARGO_CMD cargo build --verbose)
++    set(CARGO_CMD cargo-1.82 build --verbose)
+     set(TARGET_DIR "debug")
+ else ()
+-    set(CARGO_CMD cargo build --release --verbose)
++    set(CARGO_CMD cargo-1.82 build --release --verbose)
+     set(TARGET_DIR "release")
+ endif ()
+ 
\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..be14880
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+cargo-version.patch
diff --git a/debian/rules b/debian/rules
index 5762098..fe0b5b6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,9 +12,7 @@ export DEB_LDFLAGS_MAINT_APPEND = -fPIC
 override_dh_auto_configure:
 	dh_auto_configure -- \
 	-DBUILD_EXAMPLES=ON \
-	-DBUILD_TESTING=OFF \
-	-DRUST_LIB=/usr/bin/rustc-1.81 \
-	-DCARGO_CMD=/usr/bin/cargo-1.81
+	-DBUILD_TESTING=OFF
 
 override_dh_auto_test:
 	#do not run tests


More information about the Neon-commits mailing list