From f928e6ad5a83b017219def11209163a1978c5cb1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Jul 2010 14:23:30 +0000 Subject: [PATCH] * Updated reiserfsprogs to 3.6.21. Also install fsck.reiserfs and mkfs.reiserfs symlinks. The former is important to keep mountall happy. svn path=/nixpkgs/trunk/; revision=22511 --- .../filesystems/reiserfsprogs/default.nix | 20 ++++++++---- .../reiserfsprogs/headers-fix.patch | 19 ----------- ...erbose-flag-ignore-for-compatibility.patch | 32 ------------------- pkgs/top-level/all-packages.nix | 2 +- 4 files changed, 14 insertions(+), 59 deletions(-) delete mode 100644 pkgs/tools/filesystems/reiserfsprogs/headers-fix.patch delete mode 100644 pkgs/tools/filesystems/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch diff --git a/pkgs/tools/filesystems/reiserfsprogs/default.nix b/pkgs/tools/filesystems/reiserfsprogs/default.nix index f036e0a08bc8..7cadc0dd6496 100644 --- a/pkgs/tools/filesystems/reiserfsprogs/default.nix +++ b/pkgs/tools/filesystems/reiserfsprogs/default.nix @@ -1,18 +1,24 @@ -args: with args; +{ stdenv, fetchurl, libuuid }: -stdenv.mkDerivation { - name = "reiserfsprogs-3.6.19-patched"; +stdenv.mkDerivation rec { + name = "reiserfsprogs-3.6.21"; src = fetchurl { - url = http://chichkin_i.zelnet.ru/namesys/reiserfsprogs-3.6.19.tar.gz; - sha256 = "1gv8gr0l5l2j52540y2wj9c9h7fn0r3vabykf95748ydmr9jr1n0"; + url = "http://www.kernel.org/pub/linux/utils/fs/reiserfs/${name}.tar.bz2"; + sha256 = "19mqzhh6jsf2gh8zr5scqi9pyk1fwivrxncd11rqnp2148c58jam"; }; - patches = [./headers-fix.patch ./verbose-flag-ignore-for-compatibility.patch ]; + buildInputs = [ libuuid ]; + + postInstall = + '' + ln -s reiserfsck $out/sbin/fsck.reiserfs + ln -s mkreiserfs $out/sbin/mkfs.reiserfs + ''; meta = { homepage = http://www.namesys.com/; - description = "Reiserfs utilities"; + description = "ReiserFS utilities"; license = "GPL-2"; }; } diff --git a/pkgs/tools/filesystems/reiserfsprogs/headers-fix.patch b/pkgs/tools/filesystems/reiserfsprogs/headers-fix.patch deleted file mode 100644 index 2c6693dae75c..000000000000 --- a/pkgs/tools/filesystems/reiserfsprogs/headers-fix.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff -pruN 1:3.6.19-4/include/reiserfs_fs.h 1:3.6.19-4ubuntu2/include/reiserfs_fs.h ---- 1:3.6.19-4/include/reiserfs_fs.h 2004-09-16 08:49:05.000000000 +0100 -+++ 1:3.6.19-4ubuntu2/include/reiserfs_fs.h 2006-12-14 18:08:28.000000000 +0000 -@@ -38,15 +38,10 @@ - # define extern_inline - #endif - --#include -- - #ifndef get_unaligned --#if defined(__ppc__) || defined(ppc) || defined(__ppc) || \ -- defined(__PPC) || defined(powerpc) || defined(__powerpc__) - # define get_unaligned(ptr) (*(ptr)) - # define put_unaligned(val,ptr) ((void)(*(ptr) = (val))) - #endif --#endif - - #define get_leXX(xx,p,field) (le##xx##_to_cpu ((p)->field)) - #define set_leXX(xx,p,field,val) do { (p)->field = cpu_to_le##xx(val); } while (0) diff --git a/pkgs/tools/filesystems/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch b/pkgs/tools/filesystems/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch deleted file mode 100644 index 802971b73fdc..000000000000 --- a/pkgs/tools/filesystems/reiserfsprogs/verbose-flag-ignore-for-compatibility.patch +++ /dev/null @@ -1,32 +0,0 @@ -diff --git a/fsck/main.c b/fsck/main.c -index ab3342a..79a0473 100644 ---- a/fsck/main.c -+++ b/fsck/main.c -@@ -37,6 +37,7 @@ fsck_progress ("Usage: %s [mode] [options] " \ - " -z | --adjust-size\t\tfix file sizes to real size\n" \ - " -q | --quiet\t\t\tno speed info\n" \ - " -y | --yes\t\t\tno confirmations\n" \ -+" -v \t\t ignore -v option for compatibility to fsck.* tools\n" \ - " -V\t\t\t\tprints version and exits\n" \ - " -a and -p\t\t\tsome light-weight auto checks for bootup\n" \ - " -f and -r\t\t\tignored\n" \ -@@ -131,7 +132,7 @@ static char * parse_options (struct fsck_data * data, int argc, char * argv []) - }; - int option_index; - -- c = getopt_long (argc, argv, "iql:nb:Szd:R:h:j:gafVrpyt:B:", -+ c = getopt_long (argc, argv, "iql:nb:Szd:R:h:j:gafVrpyvt:B:", - options, &option_index); - if (c == -1) - break; -@@ -158,6 +159,10 @@ static char * parse_options (struct fsck_data * data, int argc, char * argv []) - data->options |= OPT_YES; - break; - -+ case 'v': /* --quiet */ -+ reiserfs_warning(stdout, "\nignoring -v option for compatibility\n"); -+ break; -+ - case 'l': /* --logfile */ - data->log_file_name = optarg; - /*asprintf (&data->log_file_name, "%s", optarg);*/ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad77a197ce97..d9a1bae4da48 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1555,7 +1555,7 @@ let }; reiserfsprogs = import ../tools/filesystems/reiserfsprogs { - inherit fetchurl stdenv; + inherit fetchurl stdenv libuuid; }; relfs = composedArgsAndFun (import ../tools/filesystems/relfs) {