- Fix primary partition cylinder alignment error for DOS disk labels

(#229745)
- Do not build and package up libparted.a, only the shared library
This commit is contained in:
David Cantrell 2007-04-13 15:23:49 +00:00
parent cb95a1496c
commit 19cd527b15
2 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,12 @@
--- parted-1.8.6/libparted/labels/dos.c.boundary 2007-03-13 13:01:09.000000000 -0400
+++ parted-1.8.6/libparted/labels/dos.c 2007-04-11 14:56:54.000000000 -0400
@@ -1696,8 +1696,7 @@
_primary_start_constraint (disk, part,
bios_geom, min_geom)));
- if (!solution)
- solution = _best_solution (part, bios_geom, solution,
+ solution = _best_solution (part, bios_geom, solution,
_try_constraint (part, constraint,
_primary_constraint (disk, bios_geom,
min_geom)));

View File

@ -4,7 +4,7 @@
Summary: The GNU disk partition manipulation program Summary: The GNU disk partition manipulation program
Name: parted Name: parted
Version: 1.8.6 Version: 1.8.6
Release: 3%{?dist} Release: 4%{?dist}
License: GPL License: GPL
Group: Applications/System Group: Applications/System
Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2 Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
@ -12,6 +12,7 @@ Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
Patch0: %{name}-1.8.6-warnings.patch Patch0: %{name}-1.8.6-warnings.patch
Patch1: %{name}-1.8.6-notransname.patch Patch1: %{name}-1.8.6-notransname.patch
Patch2: %{name}-1.8.6-off-by-one.patch Patch2: %{name}-1.8.6-off-by-one.patch
Patch3: %{name}-1.8.6-primary-boundary.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: e2fsprogs-devel readline-devel ncurses-devel BuildRequires: e2fsprogs-devel readline-devel ncurses-devel
@ -44,9 +45,10 @@ Parted library, you need to install this package.
%patch0 -p1 -b .warnings %patch0 -p1 -b .warnings
%patch1 -p1 -b .notransname %patch1 -p1 -b .notransname
%patch2 -p1 -b .offbyone %patch2 -p1 -b .offbyone
%patch3 -p1 -b .boundary
%build %build
%configure --enable-device-mapper --enable-selinux %configure --enable-device-mapper --enable-selinux --disable-static
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
%install %install
@ -85,11 +87,14 @@ fi
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_includedir}/parted %{_includedir}/parted
%{_libdir}/libparted.a
%{_libdir}/libparted.so %{_libdir}/libparted.so
%{_libdir}/pkgconfig/libparted.pc %{_libdir}/pkgconfig/libparted.pc
%changelog %changelog
* Fri Apr 13 2007 David Cantrell <dcantrell@redhat.com> - 1.8.6-4
- Fix primary partition cylinder alignment error for DOS disk labels (#229745)
- Do not build and package up libparted.a, only the shared library
* Wed Apr 11 2007 David Cantrell <dcantrell@redhat.com> - 1.8.6-3 * Wed Apr 11 2007 David Cantrell <dcantrell@redhat.com> - 1.8.6-3
- Fix off-by-one bug in parted(8) when displaying disk label (#235901) - Fix off-by-one bug in parted(8) when displaying disk label (#235901)