upgrade version to 2022.16

This commit is contained in:
duyiwei 2023-05-22 14:04:39 +08:00
parent 6be416e2c3
commit 8dfc63b8ea
5 changed files with 67 additions and 35 deletions

View File

@ -1,26 +0,0 @@
From 0b2f5f0533def11cf38c6b86b7ee6b10aa28123c Mon Sep 17 00:00:00 2001
From: Jonathan Lebon <jonathan@jlebon.com>
Date: Thu, 21 Apr 2022 13:06:20 -0400
Subject: [PATCH] rust/treefile: Fix has_modules_enable() check
We need to check that the set is actually non-empty.
---
rust/src/treefile.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/src/treefile.rs b/rust/src/treefile.rs
index dfc8fbc0..884e33f7 100644
--- a/rust/src/treefile.rs
+++ b/rust/src/treefile.rs
@@ -863,7 +863,7 @@ impl Treefile {
self.parsed
.modules
.as_ref()
- .map(|m| m.enable.is_some())
+ .map(|m| m.enable.as_ref().map(|e| !e.is_empty()).unwrap_or_default())
.unwrap_or_default()
}
--
2.21.0

View File

@ -0,0 +1,52 @@
diff -uprN rpm-ostree-2022.16/rust/src/client.rs rpm-ostree-2022.16-new/rust/src/client.rs
--- rpm-ostree-2022.16/rust/src/client.rs 2022-11-19 01:25:53.000000000 +0800
+++ rpm-ostree-2022.16-new/rust/src/client.rs 2023-02-23 14:54:32.000000000 +0800
@@ -129,6 +129,7 @@ pub(crate) fn is_src_rpm_arg(arg: &str)
/// descriptors for the content.
/// TODO(cxx-rs): This would be slightly more elegant as Result<Option<Vec<i32>>>
#[context("Handling argument {}", arg)]
+#[allow(unused_variables)]
pub(crate) fn client_handle_fd_argument(
arg: &str,
arch: &str,
@@ -315,13 +316,15 @@ fn is_yes(s: &str) -> bool {
/// Prompt for confirmation
pub(crate) fn confirm() -> CxxResult<bool> {
- let mut stdout = std::io::stdout().lock();
- let mut stdin = std::io::stdin().lock();
- write!(stdout, "Continue? [y/N] ")?;
- stdout.flush()?;
+ let stdin = std::io::stdin();
+ let mut stdin_lock = stdin.lock();
+ let stdout = std::io::stdout();
+ let mut stdout_lock = stdout.lock();
+ write!(stdout_lock, "Continue? [y/N] ")?;
+ stdout_lock.flush()?;
let mut resp = String::new();
- stdin.read_line(&mut resp)?;
- Ok(is_yes(resp.as_str().trim()))
+ stdin_lock.read_line(&mut resp)?;
+ Ok(is_yes(resp.trim()))
}
/// Prompt for confirmation, and return an error if not agreed
diff -uprN rpm-ostree-2022.16/vendor/phf/.cargo-checksum.json rpm-ostree-2022.16-new/vendor/phf/.cargo-checksum.json
--- rpm-ostree-2022.16/vendor/phf/.cargo-checksum.json 2022-11-19 01:41:00.000000000 +0800
+++ rpm-ostree-2022.16-new/vendor/phf/.cargo-checksum.json 2023-02-23 09:44:32.000000000 +0800
@@ -1 +1 @@
-{"files":{"CHANGELOG.md":"0e8c35d9be4ea0740abefdf22aac5a3501bc757c5120a106c0160a83b257d78a","Cargo.toml":"5c19e4ee6611b2da953aafa8311690a82cddcff59b07577eec96da3ca1e5a4cf","README.md":"63e1776e08b52979e4ae92f0ccab6c6b86cf5fe643a986f5c130a504cafd6d28","src/lib.rs":"34c7f3a2dc755bfd8246c422708088bc0acf64c8a33cb7bda10c705c4e6f3812","src/map.rs":"db6df0e2465d51b40640bb85cea28a9daca9ff1b0f57a3316608a55fc11879c5","src/ordered_map.rs":"5f849d7c8bea4322911b81a980a9ce988961ccec4029a2254d54ca68aed8cd45","src/ordered_set.rs":"0ed66947623c8a79b1ad2c206ef5a13af701f95c0f36544ab986c9617e2a24a3","src/set.rs":"065a501930c4667877168b99aeca00007dd222865bafc26451cbc9fdf08ad7e6"},"package":"928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c"}
\ No newline at end of file
+{"files":{"CHANGELOG.md":"0e8c35d9be4ea0740abefdf22aac5a3501bc757c5120a106c0160a83b257d78a","Cargo.toml":"5d336ed218103113a13c4ab33a87e44d312a3d63dd5f6de7317955870d205f8d","README.md":"63e1776e08b52979e4ae92f0ccab6c6b86cf5fe643a986f5c130a504cafd6d28","src/lib.rs":"34c7f3a2dc755bfd8246c422708088bc0acf64c8a33cb7bda10c705c4e6f3812","src/map.rs":"db6df0e2465d51b40640bb85cea28a9daca9ff1b0f57a3316608a55fc11879c5","src/ordered_map.rs":"5f849d7c8bea4322911b81a980a9ce988961ccec4029a2254d54ca68aed8cd45","src/ordered_set.rs":"0ed66947623c8a79b1ad2c206ef5a13af701f95c0f36544ab986c9617e2a24a3","src/set.rs":"065a501930c4667877168b99aeca00007dd222865bafc26451cbc9fdf08ad7e6"},"package":"928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c"}
\ No newline at end of file
diff -uprN rpm-ostree-2022.16/vendor/phf/Cargo.toml rpm-ostree-2022.16-new/vendor/phf/Cargo.toml
--- rpm-ostree-2022.16/vendor/phf/Cargo.toml 2022-11-19 01:41:00.000000000 +0800
+++ rpm-ostree-2022.16-new/vendor/phf/Cargo.toml 2023-02-23 09:40:29.221890304 +0800
@@ -51,6 +51,6 @@ macros = ["phf_macros"]
std = ["phf_shared/std"]
uncased = ["phf_shared/uncased"]
unicase = [
- "phf_macros?/unicase",
+ "phf_macros/unicase",
"phf_shared/unicase",
]

View File

@ -1,5 +1,5 @@
--- rpm-ostree-2022.8/rust/src/scripts.rs 2022-04-21 01:08:14.000000000 +0800
+++ rpm-ostree-2022.8-new/rust/src/scripts.rs 2022-10-10 11:19:42.945934322 +0800
--- rpm-ostree-2022.16/rust/src/scripts.rs 2022-11-19 01:25:53.000000000 +0800
+++ rpm-ostree-2022.16-new/rust/src/scripts.rs 2023-02-23 10:51:31.000000000 +0800
@@ -16,6 +16,9 @@ use phf::phf_set;
///
/// NOTE FOR GIT history: This list used to live in src/libpriv/rpmostree-script-gperf.gperf
@ -9,4 +9,4 @@
+ "grub2-efi-aa64.prein",
"glibc.prein",
// We take over depmod/dracut etc. It's `kernel` in C7 and kernel-core in F25+
"kernel.posttrans",
// XXX: we should probably change this to instead ignore based on the kernel virtual Provides

View File

@ -3,14 +3,14 @@
%global __provides_exclude_from ^%{_libdir}/%{name}/.*$
Name: rpm-ostree
Version: 2022.8
Release: 4
Version: 2022.16
Release: 1
Summary: Hybrid image/package system
License: Apache-2.0 or MIT and GPL-2.0-or-later and LGPL-2.0-or-later
URL: https://github.com/coreos/rpm-ostree
Source0: https://github.com/coreos/rpm-ostree/releases/download/v2022.8/%{name}-%{version}.tar.xz
Patch0: fix-compose-err.patch
Patch1: backport-0001-rust-treefile-Fix-has_modules_enable-check.patch
Patch0: fix-compose-err.patch
Patch1: fix-2022.16-build-error.patch
%if %{with rust}
%if !%{defined rust_arches}
@ -115,6 +115,9 @@ install -pm 0644 src/daemon/org.projectatomic.rpmostree1.conf %{buildroot}/etc/d
%{_mandir}/man*/*
%changelog
* Mon May 22 2023 duyiwei <duyiwei@kylinos.cn> - 2022.16-1
- Update rpm-ostree to 2022.16.
* Thu Dec 29 2022 chenmaodong <chenmaodong@xfusion.com> - 2022.8-4
- Fix has_modules_enable() check
@ -127,8 +130,11 @@ install -pm 0644 src/daemon/org.projectatomic.rpmostree1.conf %{buildroot}/etc/d
* Tue Jun 07 2022 fushanqing <fushanqing@kylinos.cn> - 2022.8-1
- Update rpm-ostree to 2022.8
* Wed Jan 19 2022 SimpleUpdate Robot <tc@openeuler.org> - 2022.1-1
- Upgrade to version 2022.1
* Wed May 11 2022 duyiwei <duyiwei@kylinos.cn> - 2022.7-2
- update URL (projectatomic->coreos)
* Thu Apr 14 2022 yaoxin <yaoxin30@h-partners.com> - 2022.7-1
- Update rpm-ostree to 2022.7
* Fri Sep 10 2021 gaihuiying <gaihuiying1@huawei.com> - 2018.8-4
- Type:bugfix