Hello community,

here is the log from the commit of package rust-packaging for openSUSE:Factory 
checked in at 2020-04-04 12:25:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rust-packaging (Old)
 and      /work/SRC/openSUSE:Factory/.rust-packaging.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rust-packaging"

Sat Apr  4 12:25:53 2020 rev:9 rq:791137 version:11

Changes:
--------
--- /work/SRC/openSUSE:Factory/rust-packaging/rust-packaging.changes    
2019-12-05 17:33:48.217452727 +0100
+++ /work/SRC/openSUSE:Factory/.rust-packaging.new.3248/rust-packaging.changes  
2020-04-04 12:26:41.880006477 +0200
@@ -1,0 +2,6 @@
+Tue Mar 31 14:49:17 UTC 2020 - Andreas Schwab <[email protected]>
+
+- cargo-install.patch: Use `cargo install --no-track` with cargo 1.41
+- Require cargo >= 1.41
+
+-------------------------------------------------------------------

New:
----
  cargo-install.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rust-packaging.spec ++++++
--- /var/tmp/diff_new_pack.XbnAi8/_old  2020-04-04 12:26:43.672008330 +0200
+++ /var/tmp/diff_new_pack.XbnAi8/_new  2020-04-04 12:26:43.676008334 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rust-packaging
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017 Red Hat, Inc., Raleigh, North Carolina, United States of 
America.
 # Copyright (c) 2017, 2019 Igor Gnatenko <[email protected]>.
 # Copyright (c) 2019 Neal Gompa <[email protected]>.
@@ -29,11 +29,12 @@
 Group:          Development/Languages/Rust
 URL:            https://pagure.io/fedora-rust/rust2rpm
 Source0:        
https://releases.pagure.org/fedora-rust/rust2rpm/rust2rpm-%{version}.tar.xz
+Patch0:         cargo-install.patch
 BuildArch:      noarch
 ExclusiveArch:  %{rust_arches} noarch
 
 # gawk is needed for stripping dev-deps in macro, 4.1.0 is needed for inplace 
feature
-Requires:       cargo
+Requires:       cargo >= 1.41
 Requires:       gawk >= 4.1.0
 Requires:       python3-rust2rpm = %{version}-%{release}
 Requires:       rust

++++++ rust-srpm-macros.spec ++++++
--- /var/tmp/diff_new_pack.XbnAi8/_old  2020-04-04 12:26:43.692008351 +0200
+++ /var/tmp/diff_new_pack.XbnAi8/_new  2020-04-04 12:26:43.696008354 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rust-srpm-macros
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017 Red Hat, Inc., Raleigh, North Carolina, United States of 
America.
 # Copyright (c) 2017, 2019 Igor Gnatenko <[email protected]>.
 # Copyright (c) 2019 Neal Gompa <[email protected]>.

++++++ cargo-install.patch ++++++
>From b4581d8f5ba5e48de9a97988d95739b364222acd Mon Sep 17 00:00:00 2001
From: Josh Stone <[email protected]>
Date: Thu, 30 Jan 2020 22:02:59 -0800
Subject: [PATCH] Use `cargo install --no-track` with cargo 1.41

In cargo 1.41, `cargo install` adds a new `.crates2.json` file in the
install root for tracking version upgrades. This would be another file
that `%cargo_install` should remove afterward, but there is also a new
`--no-track` option which disables such metadata files altogether.

This update should be coordinated with the Rust toolchain update in the
distro, e.g. with rust-packaging `Requires: cargo >= 1.41`. The new
option will be rejected as an unstable option on earlier versions.
---
 data/macros.cargo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/macros.cargo b/data/macros.cargo
index 5f60111..a916699 100644
--- a/data/macros.cargo
+++ b/data/macros.cargo
@@ -101,11 +101,11 @@ fi \
     %{shrink:\
       %{__cargo} install                                            \
         %{__cargo_common_opts}                                      \
+        --no-track                                                  \
         --path .                                                    \
         %{__cargo_parse_opts %{-n} %{-a} %{-f:-f%{-f*}}}            \
         %*                                                          \
     } \
-    %{__rm} %{buildroot}%{_prefix}/.crates.toml                     \
   fi \
 %endif \
 )
-- 
2.26.0


Reply via email to