Compare commits

...

8 Commits

Author SHA1 Message Date
openeuler-ci-bot
4ff1c94dee
!39 修复 C.UTF-8 No such file or directory
From: @wu-leilei 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-05-05 02:02:11 +00:00
wu-leilei
5351c52103 fix en_US.utf-8 no such file or directory 2022-04-29 09:56:41 +08:00
openeuler-ci-bot
0889be3ed4
!31 [sync] PR-30: add need root for build
From: @openeuler-sync-bot 
Reviewed-by: @liuzhiqiang26 
Signed-off-by: @liuzhiqiang26
2022-03-03 04:09:59 +00:00
Li Jinlin
20f2451095 add need root for build
(cherry picked from commit 908f37a974)
2022-03-03 11:53:14 +08:00
openeuler-ci-bot
7b6c9f66e5 !28 parted: 修复编译错误
Merge pull request !28 from Chenxi Mao/openEuler-22.03-LTS-Next
2021-12-22 07:29:13 +00:00
Chenxi Mao
295e6f838f parted: fix build error on SUSE Euler 2.0
Below build log showed if OBS based on newer OE 22.03 OS.
configure.ac:149:   'automake --add-missing' can install 'compile'

To fix this error, add "-i" option to autoreconfig to copy missing
files.

After this change, aarch64 and x86 can build successfully.

Change-Id: Ic6f653fabcc6b1e562e1f4db2d2654e17aeddeb8
Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
2021-12-22 10:48:17 +08:00
openeuler-ci-bot
132bd91730 !27 [sync] PR-26: update to 3.4
From: @openeuler-sync-bot
Reviewed-by: @liuzhiqiang26
Signed-off-by: @liuzhiqiang26
2021-11-30 03:53:33 +00:00
markeryang
5675b6d028 update to 3.4
(cherry picked from commit 11f8a62952)
2021-11-30 11:40:56 +08:00
5 changed files with 16 additions and 73 deletions

View File

@ -1,34 +0,0 @@
From 22a4baba11ab299722e68f9ea37a53869afef7e1 Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" <bcl@redhat.com>
Date: Wed, 27 Jun 2018 13:47:33 -0700
Subject: [PATCH] Switch gpt-header-move and msdos-overlap to python3
python2 is EOL on January 1, 2020 so it is time to switch to python3.
---
tests/gpt-header-move | 2 +-
tests/msdos-overlap | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/gpt-header-move b/tests/gpt-header-move
index 3dda5cb..18f58d0 100755
--- a/tests/gpt-header-move
+++ b/tests/gpt-header-move
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
# open img file, subtract 33 from altlba address, and move the last 33 sectors
# back by 33 sectors
diff --git a/tests/msdos-overlap b/tests/msdos-overlap
index d6ae8d6..b2b03e6 100755
--- a/tests/msdos-overlap
+++ b/tests/msdos-overlap
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
"""
Write an overlapping partition to a msdos disk
--
2.19.1

View File

@ -1,34 +0,0 @@
From bd7a18b1bfe44ccdb2733d14bdd493b823c546bc Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" <bcl@redhat.com>
Date: Tue, 23 Apr 2019 13:52:25 -0700
Subject: [PATCH] Fix end_input usage in do_resizepart
It needs to be set to NULL, since it may not get set by the call to
command_line_get_sector
---
parted/parted.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/parted/parted.c b/parted/parted.c
index 9dcdb05..df0c7ed 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1545,6 +1545,7 @@ do_resizepart (PedDevice** dev, PedDisk** diskp)
PedGeometry *range_end = NULL;
PedConstraint* constraint;
int rc = 0;
+ char* end_input = NULL;
if (!disk) {
disk = ped_disk_new (*dev);
@@ -1565,7 +1566,6 @@ do_resizepart (PedDevice** dev, PedDisk** diskp)
start = part->geom.start;
end = oldend = part->geom.end;
- char *end_input;
if (!command_line_get_sector (_("End?"), *dev, &end, &range_end, &end_input))
goto error;
_adjust_end_if_iec(&start, &end, range_end, end_input);
--
1.8.3.1

Binary file not shown.

BIN
parted-3.4.tar.xz Normal file

Binary file not shown.

View File

@ -13,8 +13,8 @@
Summary: The GNU disk partition manipulation program Summary: The GNU disk partition manipulation program
Name: parted Name: parted
Version: 3.3 Version: 3.4
Release: 7 Release: 4
URL: https://www.gnu.org/software/parted/ URL: https://www.gnu.org/software/parted/
Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
License: GPLv3+ License: GPLv3+
@ -23,12 +23,11 @@ BuildRequires: e2fsprogs-devel e2fsprogs xfsprogs readline-devel ncurses-devel g
BuildRequires: autoconf automake libtool gettext-devel texinfo pkgconfig gcc make bc dosfstools gnupg2 device-mapper-devel BuildRequires: autoconf automake libtool gettext-devel texinfo pkgconfig gcc make bc dosfstools gnupg2 device-mapper-devel
BuildRequires: libblkid-devel >= 2.17 BuildRequires: libblkid-devel >= 2.17
BuildRequires: device-mapper-devel, libselinux-devel libsepol-devel BuildRequires: device-mapper-devel, libselinux-devel libsepol-devel
BuildRequires: glibc-all-langpacks
Patch0: 0000-Switch-gpt-header-move-and-msdos-overlap-to-python3.patch
Patch1: 0001-add-support-of-gpt_sync_mbr.patch Patch1: 0001-add-support-of-gpt_sync_mbr.patch
Patch2: 0002-Add-extra-judgment-for-a-partition-created-success.patch Patch2: 0002-Add-extra-judgment-for-a-partition-created-success.patch
Patch3: 0003-bugfix-parted-fix-failure-of-mklabel-gpt_sync_mbr.patch Patch3: 0003-bugfix-parted-fix-failure-of-mklabel-gpt_sync_mbr.patch
Patch4: 0004-Fix-end_input-usage-in-do_resizepart.patch
%description %description
The GNU Parted program allows you to create, destroy, resize, move, The GNU Parted program allows you to create, destroy, resize, move,
@ -49,7 +48,7 @@ Parted library, you need to install this package.
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
autoreconf autoreconf -i
autoconf autoconf
%configure \ %configure \
--enable-shared \ --enable-shared \
@ -113,6 +112,18 @@ fi
%{_libdir}/pkgconfig/libparted*.pc %{_libdir}/pkgconfig/libparted*.pc
%changelog %changelog
* Mon Apr 18 2022 wulei <wulei80@h-partners.com> 3.4-4
- Fix en_US.utf-8 no such file or directory, and disable root for build
* Thu Mar 3 2022 Li Jinlin <lijinlin3@huawei.com> - 3.4-3
- add need root for build
* Tue Dec 21 2021 Chenxi Mao <chenxi.mao@suse.com> - 3.4-2
- fix build error on SUSE Euler 2.0
* Tue Nov 23 2021 yanglongkang <yanglongkang@huawei.com> - 3.4-1
- update to 3.4
* Sat Aug 1 2020 volcanodragon <linfeilong@huawei.com> - 3.3-7 * Sat Aug 1 2020 volcanodragon <linfeilong@huawei.com> - 3.3-7
- delete useless file - delete useless file