rpms/parted/devel parted-1.8.6-off-by-one.patch, NONE, 1.1 parted.spec, 1.104, 1.105
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Apr 11 16:33:54 UTC 2007
- Previous message (by thread): rpms/hplip/FC-6 hplip-broken-conf.patch, 1.1, NONE hplip-guest.patch, 1.1, NONE hplip-loop.patch, 1.1, NONE hplip-out-of-paper.patch, 1.1, NONE hplip-sane-debug.patch, 1.2, NONE
- Next message (by thread): rpms/hplip/FC-6 .cvsignore, 1.15, 1.16 hplip-libsane.patch, 1.1, 1.2 hplip.spec, 1.102, 1.103 sources, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: dcantrel
Update of /cvs/dist/rpms/parted/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv1486
Modified Files:
parted.spec
Added Files:
parted-1.8.6-off-by-one.patch
Log Message:
* Wed Apr 11 2007 David Cantrell <dcantrell at redhat.com> - 1.8.6-3
- Fix off-by-one bug in parted(8) when displaying disk label (#235901)
parted-1.8.6-off-by-one.patch:
parted.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
--- NEW FILE parted-1.8.6-off-by-one.patch ---
--- parted-1.8.6/parted/parted.c.offbyone 2007-04-11 12:13:06.000000000 -0400
+++ parted-1.8.6/parted/parted.c 2007-04-11 12:13:21.000000000 -0400
@@ -1217,6 +1217,7 @@
static int
do_print (PedDevice** dev)
{
+ PedUnit default_unit;
PedDisk* disk;
Table* table;
StrList* row;
@@ -1303,11 +1304,12 @@
}
start = ped_unit_format (*dev, 0);
+ default_unit = ped_unit_get_default ();
end = ped_unit_format_byte (*dev, (*dev)->length * (*dev)->sector_size
- - 1 );
+ - (default_unit == PED_UNIT_CHS || default_unit == PED_UNIT_CYLINDER));
if (opt_machine_mode) {
- switch (ped_unit_get_default ()) {
+ switch (default_unit) {
case PED_UNIT_CHS: puts ("CHS;");
break;
case PED_UNIT_CYLINDER: puts ("CYL;");
Index: parted.spec
===================================================================
RCS file: /cvs/dist/rpms/parted/devel/parted.spec,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -r1.104 -r1.105
--- parted.spec 21 Mar 2007 15:02:34 -0000 1.104
+++ parted.spec 11 Apr 2007 16:33:52 -0000 1.105
@@ -4,20 +4,24 @@
Summary: The GNU disk partition manipulation program
Name: parted
Version: 1.8.6
-Release: 2%{?dist}
+Release: 3%{?dist}
+License: GPL
+Group: Applications/System
Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
-Patch0: %{name}-%{version}-warnings.patch
-Patch1: %{name}-%{version}-notransname.patch
+Patch0: %{name}-1.8.6-warnings.patch
+Patch1: %{name}-1.8.6-notransname.patch
+Patch2: %{name}-1.8.6-off-by-one.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-License: GPL
-Group: Applications/System
BuildRequires: e2fsprogs-devel readline-devel ncurses-devel
BuildRequires: automake libtool gettext-devel texinfo
BuildRequires: device-mapper-devel, libselinux-devel libsepol-devel
-Prereq: /sbin/install-info
+Requires(post): /sbin/ldconfig
+Requires(post): /sbin/install-info
+Requires(preun): /sbin/install-info
+Requires(postun): /sbin/ldconfig
%description
The GNU Parted program allows you to create, destroy, resize, move,
@@ -26,8 +30,8 @@
to new hard disks.
%package devel
-Summary: Files for developing apps which will manipulate disk partitions.
-Group: Development/Libraries
+Summary: Files for developing apps which will manipulate disk partitions.
+Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The GNU Parted library is a set of routines for hard disk partition
@@ -39,6 +43,7 @@
%setup -q
%patch0 -p1 -b .warnings
%patch1 -p1 -b .notransname
+%patch2 -p1 -b .offbyone
%build
%configure --enable-device-mapper --enable-selinux
@@ -55,17 +60,16 @@
%clean
%{__rm} -rf %{buildroot}
-%post
+%post
/sbin/ldconfig
/sbin/install-info %{_infodir}/parted.info.gz %{_infodir}/dir || :
%preun
-if [ "$1" = 0 ]; then
- /sbin/install-info --delete %{_infodir}/parted.info.gz %{_infodir}/dir
+if [ $1 = 0 ]; then
+ /sbin/install-info --delete %{_infodir}/parted.info.gz %{_infodir}/dir >/dev/null 2>&1 || :
fi
-exit 0
-%postun -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root,-)
@@ -86,6 +90,9 @@
%{_libdir}/pkgconfig/libparted.pc
%changelog
+* Wed Apr 11 2007 David Cantrell <dcantrell at redhat.com> - 1.8.6-3
+- Fix off-by-one bug in parted(8) when displaying disk label (#235901)
+
* Wed Mar 21 2007 David Cantrell <dcantrell at redhat.com> - 1.8.6-2
- Do not translate partition name from disk label (#224182)
- Previous message (by thread): rpms/hplip/FC-6 hplip-broken-conf.patch, 1.1, NONE hplip-guest.patch, 1.1, NONE hplip-loop.patch, 1.1, NONE hplip-out-of-paper.patch, 1.1, NONE hplip-sane-debug.patch, 1.2, NONE
- Next message (by thread): rpms/hplip/FC-6 .cvsignore, 1.15, 1.16 hplip-libsane.patch, 1.1, 1.2 hplip.spec, 1.102, 1.103 sources, 1.15, 1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list