forked from pool/mdadm
This commit is contained in:
parent
ab762c8d5e
commit
f0c428e555
11
mdadm-destdir.patch
Normal file
11
mdadm-destdir.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- Makefile
|
||||||
|
+++ Makefile
|
||||||
|
@@ -199,7 +199,7 @@
|
||||||
|
$(INSTALL) -D -m 644 mdadm.conf.5 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5
|
||||||
|
|
||||||
|
install-udev: udev-md-raid.rules
|
||||||
|
- $(INSTALL) -D -m 644 udev-md-raid.rules /lib/udev/rules.d/64-md-raid.rules
|
||||||
|
+ $(INSTALL) -D -m 644 udev-md-raid.rules $(DESTDIR)/lib/udev/rules.d/64-md-raid.rules
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(DESTDIR)$(MAN8DIR)/mdadm.8 md.4 $(DESTDIR)$(MAN4DIR)/md.4 $(DESTDIR)$(MAN5DIR)/mdadm.conf.5 $(DESTDIR)$(BINDIR)/mdadm
|
11
mdadm-overflow.patch
Normal file
11
mdadm-overflow.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- mdopen.c
|
||||||
|
+++ mdopen.c
|
||||||
|
@@ -88,7 +88,7 @@
|
||||||
|
if (chmod(name, stb2.st_mode & 07777))
|
||||||
|
perror("chmod");
|
||||||
|
} else {
|
||||||
|
- snprintf(sym, 10000, "%s%s%d", orig, odig?"p":"", i);
|
||||||
|
+ snprintf(sym, 1024, "%s%s%d", orig, odig?"p":"", i);
|
||||||
|
symlink(sym, name);
|
||||||
|
}
|
||||||
|
stat(name, &stb2);
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 7 02:58:40 CET 2008 - ro@suse.de
|
||||||
|
|
||||||
|
- buildfix: add missing DESTDIR to Makefile for udev rule
|
||||||
|
- fix len in snprintf to silence compiler warning about potential
|
||||||
|
overflow
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 6 03:22:50 CET 2008 - nfbrown@suse.de
|
Thu Nov 6 03:22:50 CET 2008 - nfbrown@suse.de
|
||||||
|
|
||||||
|
10
mdadm.spec
10
mdadm.spec
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
Name: mdadm
|
Name: mdadm
|
||||||
Version: 3.0
|
Version: 3.0
|
||||||
Release: 4
|
Release: 5
|
||||||
%define ver 3.0-devel2
|
%define ver 3.0-devel2
|
||||||
BuildRequires: sgmltool
|
BuildRequires: sgmltool
|
||||||
PreReq: %fillup_prereq %insserv_prereq
|
PreReq: %fillup_prereq %insserv_prereq
|
||||||
@ -34,6 +34,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|||||||
Source: %{name}-%{ver}.tar.bz2
|
Source: %{name}-%{ver}.tar.bz2
|
||||||
Patch1: super-intel-undefined-operation.patch
|
Patch1: super-intel-undefined-operation.patch
|
||||||
Patch2: mdmon-ia64-clone.patch
|
Patch2: mdmon-ia64-clone.patch
|
||||||
|
Patch3: mdadm-destdir.patch
|
||||||
|
Patch4: mdadm-overflow.patch
|
||||||
Source1: Software-RAID.HOWTO.tar.bz2
|
Source1: Software-RAID.HOWTO.tar.bz2
|
||||||
Source2: sysconfig.mdadm
|
Source2: sysconfig.mdadm
|
||||||
Source3: mdadmd
|
Source3: mdadmd
|
||||||
@ -56,6 +58,8 @@ Authors:
|
|||||||
%setup -q -a1 -n %{name}-%{ver}
|
%setup -q -a1 -n %{name}-%{ver}
|
||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2
|
||||||
|
%patch3
|
||||||
|
%patch4
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{suse_update_config -f}
|
%{suse_update_config -f}
|
||||||
@ -141,6 +145,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/lib/mkinitrd/scripts/boot-md.sh
|
/lib/mkinitrd/scripts/boot-md.sh
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 07 2008 ro@suse.de
|
||||||
|
- buildfix: add missing DESTDIR to Makefile for udev rule
|
||||||
|
- fix len in snprintf to silence compiler warning about potential
|
||||||
|
overflow
|
||||||
* Thu Nov 06 2008 nfbrown@suse.de
|
* Thu Nov 06 2008 nfbrown@suse.de
|
||||||
- Update from mdadm-3.0-devel1 to mdadm-3.0-devel2.
|
- Update from mdadm-3.0-devel1 to mdadm-3.0-devel2.
|
||||||
This includes various bug fixes and enhancements to the
|
This includes various bug fixes and enhancements to the
|
||||||
|
Loading…
Reference in New Issue
Block a user