tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xfsprogs: 3.2.2 -> 4.2.0
William A. Kennington III
10 years ago
5293bc13
a1db1119
+87
-116
3 changed files
expand all
collapse all
unified
split
pkgs
tools
filesystems
xfsprogs
4.2.0-sharedlibs.patch
default.nix
xfsprogs-3.2.2-sharedlibs.patch
+80
pkgs/tools/filesystems/xfsprogs/4.2.0-sharedlibs.patch
···
1
1
+
--- xfsprogs-4.2.0/include/buildmacros
2
2
+
+++ xfsprogs-4.2.0/include/buildmacros
3
3
+
@@ -70,18 +70,9 @@
4
4
+
# /usr/lib.
5
5
+
ifeq ($(ENABLE_SHARED),yes)
6
6
+
INSTALL_LTLIB_DEV = \
7
7
+
- cd $(TOPDIR)/$(LIBNAME)/.libs; \
8
8
+
- ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
9
9
+
- ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_LIB_DIR); \
10
10
+
- ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_LIB_DIR)/$(LIBNAME).la ; \
11
11
+
- ../$(INSTALL) -m 755 -d $(PKG_ROOT_LIB_DIR); \
12
12
+
- ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_ROOT_LIB_DIR); \
13
13
+
- if [ "x$(shell readlink -f $(PKG_LIB_DIR))" != \
14
14
+
- "x$(shell readlink -f $(PKG_ROOT_LIB_DIR))" ]; then \
15
15
+
- ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).a $(PKG_ROOT_LIB_DIR)/$(LIBNAME).a; \
16
16
+
- ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).la $(PKG_ROOT_LIB_DIR)/$(LIBNAME).la; \
17
17
+
- ../$(INSTALL) -S $(PKG_ROOT_LIB_DIR)/$(LIBNAME).so $(PKG_LIB_DIR)/$(LIBNAME).so; \
18
18
+
- fi
19
19
+
+ set -e; cd $(TOPDIR)/$(LIBNAME); \
20
20
+
+ $(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
21
21
+
+ env -uDIST_ROOT $(LTINSTALL) $(TOPDIR)/$(LIBNAME)/$(LIBNAME).la $(DIST_ROOT)$(PKG_LIB_DIR)/$(LIBNAME).la
22
22
+
else
23
23
+
INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC)
24
24
+
endif
25
25
+
--- xfsprogs-4.2.0/libxcmd/Makefile
26
26
+
+++ xfsprogs-4.2.0/libxcmd/Makefile
27
27
+
@@ -34,6 +34,9 @@
28
28
+
29
29
+
include $(BUILDRULES)
30
30
+
31
31
+
-install install-dev: default
32
32
+
+install: default
33
33
+
+
34
34
+
+install-dev: default
35
35
+
+ $(INSTALL_LTLIB_DEV)
36
36
+
37
37
+
-include .ltdep
38
38
+
--- xfsprogs-4.2.0/libxfs/Makefile
39
39
+
+++ xfsprogs-4.2.0/libxfs/Makefile
40
40
+
@@ -138,6 +138,7 @@
41
41
+
42
42
+
install-dev: install
43
43
+
$(INSTALL) -m 644 $(PKGHFILES) $(PKG_INC_DIR)
44
44
+
+ $(INSTALL_LTLIB_DEV)
45
45
+
46
46
+
# We need to install the headers before building the dependencies. If we
47
47
+
# include the .ltdep file, the makefile decides that it needs to build the
48
48
+
--- xfsprogs-4.2.0/libxlog/Makefile
49
49
+
+++ xfsprogs-4.2.0/libxlog/Makefile
50
50
+
@@ -12,6 +12,8 @@
51
51
+
52
52
+
CFILES = xfs_log_recover.c util.c
53
53
+
54
54
+
+LTLIBS = $(LIBUUID) $(LIBXFS)
55
55
+
+
56
56
+
# don't want to link xfs_repair with a debug libxlog.
57
57
+
DEBUG = -DNDEBUG
58
58
+
59
59
+
@@ -19,6 +21,9 @@
60
60
+
61
61
+
include $(BUILDRULES)
62
62
+
63
63
+
-install install-dev: default
64
64
+
+install: default
65
65
+
+
66
66
+
+install-dev: default
67
67
+
+ $(INSTALL_LTLIB_DEV)
68
68
+
69
69
+
-include .ltdep
70
70
+
--- xfsprogs-4.2.0/Makefile
71
71
+
+++ xfsprogs-4.2.0/Makefile
72
72
+
@@ -81,6 +81,8 @@
73
73
+
io: libxcmd libhandle
74
74
+
quota: libxcmd
75
75
+
repair: libxlog
76
76
+
+libxlog: libxfs
77
77
+
+libxlog-install-dev: libxfs-install-dev
78
78
+
79
79
+
80
80
+
ifeq ($(HAVE_BUILDDEFS), yes)
+7
-8
pkgs/tools/filesystems/xfsprogs/default.nix
···
1
1
{ stdenv, fetchurl, gettext, libuuid, readline }:
2
2
3
3
stdenv.mkDerivation rec {
4
4
-
name = "xfsprogs-3.2.2";
4
4
+
name = "xfsprogs-4.2.0";
5
5
6
6
src = fetchurl {
7
7
urls = map (dir: "ftp://oss.sgi.com/projects/xfs/${dir}/${name}.tar.gz")
8
8
[ "cmd_tars" "previous" ];
9
9
-
sha256 = "1aszsqz7gkqdagads18ybslbfkyxq893rykmsz9lm7f33pi5qlhs";
9
9
+
sha256 = "0q2j1rrh37kqyihaq5lc31xdi36lgg9asidaad0fada61ynv3six";
10
10
};
11
11
12
12
prePatch = ''
13
13
-
sed -i s,/bin/bash,`type -P bash`,g install-sh
14
14
-
sed -i s,ldconfig,`type -P ldconfig`,g configure m4/libtool.m4
13
13
+
sed -i "s,/bin/bash,$(type -P bash),g" install-sh
14
14
+
sed -i "s,ldconfig,$(type -P ldconfig),g" configure m4/libtool.m4
15
15
16
16
# Fixes from gentoo 3.2.1 ebuild
17
17
sed -i "/^PKG_DOC_DIR/s:@pkg_name@:${name}:" include/builddefs.in
18
18
-
sed -i '1iLLDFLAGS = -static' {estimate,fsr}/Makefile
19
19
-
sed -i "/LLDFLAGS/s:-static::" $(find -name Makefile)
18
18
+
sed -i "/LLDFLAGS.*libtool-libs/d" $(find -name Makefile)
20
19
sed -i '/LIB_SUBDIRS/s:libdisk::' Makefile
21
20
'';
22
21
23
22
patches = [
24
24
-
# This patch fixes shared libs installation, still not fixed in 3.2.2
25
25
-
./xfsprogs-3.2.2-sharedlibs.patch
23
23
+
# This patch fixes shared libs installation, still not fixed in 4.2.0
24
24
+
./4.2.0-sharedlibs.patch
26
25
];
27
26
28
27
buildInputs = [ gettext libuuid readline ];
-108
pkgs/tools/filesystems/xfsprogs/xfsprogs-3.2.2-sharedlibs.patch
···
1
1
-
use libtool to do all installing. do not use the manual file install as
2
2
-
that'll copy files directly from the .libs/ subdir which might have rpaths
3
3
-
that we do not want.
4
4
-
5
5
-
--- xfsprogs-3.2.2/include/buildmacros
6
6
-
+++ xfsprogs-3.2.2/include/buildmacros
7
7
-
@@ -70,18 +70,9 @@
8
8
-
# /usr/lib.
9
9
-
ifeq ($(ENABLE_SHARED),yes)
10
10
-
INSTALL_LTLIB_DEV = \
11
11
-
- cd $(TOPDIR)/$(LIBNAME)/.libs; \
12
12
-
- ../$(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
13
13
-
- ../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_LIB_DIR); \
14
14
-
- ../$(INSTALL) -m 644 $(LIBNAME).lai $(PKG_LIB_DIR)/$(LIBNAME).la ; \
15
15
-
- ../$(INSTALL) -m 755 -d $(PKG_ROOT_LIB_DIR); \
16
16
-
- ../$(INSTALL) -T so_base $(LIBNAME).lai $(PKG_ROOT_LIB_DIR); \
17
17
-
- if [ "x$(shell readlink -f $(PKG_LIB_DIR))" != \
18
18
-
- "x$(shell readlink -f $(PKG_ROOT_LIB_DIR))"; ]; then \
19
19
-
- ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).a $(PKG_ROOT_LIB_DIR)/$(LIBNAME).a; \
20
20
-
- ../$(INSTALL) -S $(PKG_LIB_DIR)/$(LIBNAME).la $(PKG_ROOT_LIB_DIR)/$(LIBNAME).la; \
21
21
-
- ../$(INSTALL) -S $(PKG_ROOT_LIB_DIR)/$(LIBNAME).so $(PKG_LIB_DIR)/$(LIBNAME).so; \
22
22
-
- fi
23
23
-
+ set -e; cd $(TOPDIR)/$(LIBNAME); \
24
24
-
+ $(INSTALL) -m 755 -d $(PKG_LIB_DIR); \
25
25
-
+ env -uDIST_ROOT $(LTINSTALL) $(TOPDIR)/$(LIBNAME)/$(LIBNAME).la $(DIST_ROOT)$(PKG_LIB_DIR)/$(LIBNAME).la
26
26
-
else
27
27
-
INSTALL_LTLIB_DEV = $(INSTALL_LTLIB_STATIC)
28
28
-
endif
29
29
-
--- xfsprogs-3.2.2/libdisk/Makefile
30
30
-
+++ xfsprogs-3.2.2/libdisk/Makefile
31
31
-
@@ -31,6 +31,7 @@
32
32
-
install: default
33
33
-
34
34
-
install-dev: default
35
35
-
+ $(INSTALL_LTLIB_DEV)
36
36
-
37
37
-
install-qa: install-dev
38
38
-
39
39
-
--- xfsprogs-3.2.2/libhandle/Makefile
40
40
-
+++ xfsprogs-3.2.2/libhandle/Makefile
41
41
-
@@ -20,7 +20,6 @@
42
42
-
include $(BUILDRULES)
43
43
-
44
44
-
install: default
45
45
-
- $(INSTALL_LTLIB)
46
46
-
47
47
-
install-dev: default
48
48
-
$(INSTALL_LTLIB_DEV)
49
49
-
--- xfsprogs-3.2.2/libxcmd/Makefile
50
50
-
+++ xfsprogs-3.2.2/libxcmd/Makefile
51
51
-
@@ -34,6 +34,11 @@
52
52
-
53
53
-
include $(BUILDRULES)
54
54
-
55
55
-
-install install-dev install-qa: default
56
56
-
+install: default
57
57
-
+
58
58
-
+ install-dev: default
59
59
-
+ $(INSTALL_LTLIB_DEV)
60
60
-
+
61
61
-
+install-qa: default
62
62
-
63
63
-
-include .ltdep
64
64
-
--- xfsprogs-3.2.2/libxfs/Makefile
65
65
-
+++ xfsprogs-3.2.2/libxfs/Makefile
66
66
-
@@ -86,6 +86,7 @@
67
67
-
install: default
68
68
-
69
69
-
install-dev: default
70
70
-
+ $(INSTALL_LTLIB_DEV)
71
71
-
72
72
-
install-qa: default
73
73
-
74
74
-
--- xfsprogs-3.2.2/libxlog/Makefile
75
75
-
+++ xfsprogs-3.2.2/libxlog/Makefile
76
76
-
@@ -12,6 +12,8 @@
77
77
-
78
78
-
CFILES = xfs_log_recover.c util.c
79
79
-
80
80
-
+LTLIBS = $(LIBUUID) $(LIBXFS)
81
81
-
+
82
82
-
# don't want to link xfs_repair with a debug libxlog.
83
83
-
DEBUG = -DNDEBUG
84
84
-
85
85
-
@@ -19,6 +21,11 @@
86
86
-
87
87
-
include $(BUILDRULES)
88
88
-
89
89
-
-install install-dev install-qa: default
90
90
-
+install: default
91
91
-
+
92
92
-
+install-dev: default
93
93
-
+ $(INSTALL_LTLIB_DEV)
94
94
-
+
95
95
-
+install-qa: default
96
96
-
97
97
-
-include .ltdep
98
98
-
--- xfsprogs-3.2.2/Makefile
99
99
-
+++ xfsprogs-3.2.2/Makefile
100
100
-
@@ -63,6 +63,8 @@
101
101
-
mkfs: libxfs
102
102
-
quota: libxcmd
103
103
-
repair: libxfs libxlog
104
104
-
+libxlog: libxfs
105
105
-
+libxlog-install-dev: libxfs-install-dev
106
106
-
107
107
-
ifneq ($(ENABLE_BLKID), yes)
108
108
-
mkfs: libdisk