1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00

Update BtrFS utilities to latest Git

svn path=/nixpkgs/trunk/; revision=30864
This commit is contained in:
Michael Raskin 2011-12-13 04:30:49 +00:00
parent 135fe9059f
commit f9227dc459
2 changed files with 14 additions and 18 deletions

View file

@ -1,27 +1,35 @@
a : a :
let let
fetchurl = a.fetchurl; fetchurl = a.fetchurl;
fetchgit = a.fetchgit;
version = a.lib.attrByPath ["version"] "0.19" a; version = a.lib.attrByPath ["version"] "0.19" a;
buildInputs = with a; [ buildInputs = with a; [
zlib libuuid acl zlib libuuid acl attr
]; ];
in in
assert a.libuuid != null; assert a.libuuid != null;
rec { rec {
src = fetchurl { srcDrv = fetchgit {
url = "http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/btrfs-progs-${version}.tar.bz2"; url="git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git" ;
sha256 = "1z3hmfgv7h489gnh55abm0gzyf2cgjkybhfc2rnm0cvsx01xv8zq"; rev="fdb6c0402337d9607c7a39155088eaf033742752" ;
sha256="de7f9e04401bd747a831c48d312106e188adb32f32b6d64078ae6d2aab45b1f8" ;
}; };
src = srcDrv + "/";
inherit buildInputs; inherit buildInputs;
configureFlags = []; configureFlags = [];
makeFlags = ["prefix=$out CFLAGS=-Os"]; makeFlags = ["prefix=$out CFLAGS=-Os"];
patches = [ ./glibc212.patch ]; patches = [];
phaseNames = ["doPatch" "doEnsureBtrfsImage" "doMakeInstall"]; phaseNames = ["fixMakefile" "doEnsureBtrfsImage" "doMakeInstall"];
fixMakefile = a.fullDepEntry ''
sed -e 's@^progs = @progs=@g' -i Makefile
'' ["minInit" "doUnpack"];
doEnsureBtrfsImage = a.fullDepEntry ('' doEnsureBtrfsImage = a.fullDepEntry (''
if ! grep 'progs = ' Makefile | grep btrfs-image; then if ! grep 'progs = ' Makefile | grep btrfs-image; then

View file

@ -1,12 +0,0 @@
diff --git a/btrfsck.c b/btrfsck.c
index 73f1836..c1f47a1 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <sys/stat.h>
#include "kerncompat.h"
#include "ctree.h"
#include "disk-io.h"