xfsprogs: 3.2.2 -> 4.2.0

This commit is contained in:
William A. Kennington III
2015-09-18 14:52:52 -07:00
parent a1db11198e
commit 5293bc1302
2 changed files with 33 additions and 62 deletions
+7 -8
View File
@@ -1,28 +1,27 @@
{ stdenv, fetchurl, gettext, libuuid, readline }:
stdenv.mkDerivation rec {
name = "xfsprogs-3.2.2";
name = "xfsprogs-4.2.0";
src = fetchurl {
urls = map (dir: "ftp://oss.sgi.com/projects/xfs/${dir}/${name}.tar.gz")
[ "cmd_tars" "previous" ];
sha256 = "1aszsqz7gkqdagads18ybslbfkyxq893rykmsz9lm7f33pi5qlhs";
sha256 = "0q2j1rrh37kqyihaq5lc31xdi36lgg9asidaad0fada61ynv3six";
};
prePatch = ''
sed -i s,/bin/bash,`type -P bash`,g install-sh
sed -i s,ldconfig,`type -P ldconfig`,g configure m4/libtool.m4
sed -i "s,/bin/bash,$(type -P bash),g" install-sh
sed -i "s,ldconfig,$(type -P ldconfig),g" configure m4/libtool.m4
# Fixes from gentoo 3.2.1 ebuild
sed -i "/^PKG_DOC_DIR/s:@pkg_name@:${name}:" include/builddefs.in
sed -i '1iLLDFLAGS = -static' {estimate,fsr}/Makefile
sed -i "/LLDFLAGS/s:-static::" $(find -name Makefile)
sed -i "/LLDFLAGS.*libtool-libs/d" $(find -name Makefile)
sed -i '/LIB_SUBDIRS/s:libdisk::' Makefile
'';
patches = [
# This patch fixes shared libs installation, still not fixed in 3.2.2
./xfsprogs-3.2.2-sharedlibs.patch
# This patch fixes shared libs installation, still not fixed in 4.2.0
./4.2.0-sharedlibs.patch
];
buildInputs = [ gettext libuuid readline ];