mdadm: update to 2.6.2

This commit is contained in:
Juergen Daubert 2007-05-23 07:26:53 +02:00
parent ccd7000695
commit 3485d6ee7c
3 changed files with 34 additions and 3 deletions

View File

@ -1 +1,2 @@
dd951296208068119132a684d835e18c mdadm-2.6.1.tar.gz
e42142677104e1984d726862488b4af4 mdadm-2.6.2.patch
e34d2590523d679895966c4111670450 mdadm-2.6.2.tar.gz

View File

@ -3,11 +3,13 @@
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
name=mdadm
version=2.6.1
version=2.6.2
release=1
source=(http://www.kernel.org/pub/linux/utils/raid/$name/$name-$version.tar.gz)
source=(http://www.kernel.org/pub/linux/utils/raid/$name/$name-$version.tar.gz
$name-$version.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/$name-$version.patch
make CXFLAGS="$CFLAGS" DESTDIR=$PKG MANDIR=/usr/man install
}

28
mdadm/mdadm-2.6.2.patch Normal file
View File

@ -0,0 +1,28 @@
Fix compile error in Detail.c
'avail' is undefined if '--export', so make sure we don't try to use
it.
### Diffstat output
./Detail.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff .prev/Detail.c ./Detail.c
--- .prev/Detail.c 2007-05-21 14:25:50.000000000 +1000
+++ ./Detail.c 2007-05-22 08:57:59.000000000 +1000
@@ -377,12 +377,12 @@ This is pretty boring
if (brief > 1 && devices) printf("\n devices=%s", devices);
if (brief) printf("\n");
-out:
if (test &&
!enough(array.level, array.raid_disks, array.layout,
1, avail, avail_disks))
rv = 2;
+out:
close(fd);
return rv;
}