git.iko.soy/typeable/nixpkgs
on master help sign in
davfs2: 1.4.7 -> 1.5.2; fixes the build
commitcdb2bc77c43ac3bc0a4a5b4783e407b1b40a78b6 authorMichael Raskin <7c6f434c@mail.ru> dateThu 31 Mar 2016, 14:14 (11 years ago) parentd2c0000
3 files changed+6−55
pkgs/tools/filesystems/davfs2/davfs2-install.patch−49 pkgs/tools/filesystems/davfs2/default.nix+5−3 pkgs/top-level/all-packages.nix+1−3
pkgs/tools/filesystems/davfs2/davfs2-install.patchdeleted−49
@@ -1,49 +0,0 @@
1−diff -rc davfs2-1.4.1/src/Makefile.in davfs2-1.4.1-new/src/Makefile.in
2−*** davfs2-1.4.1/src/Makefile.in 2009-06-13 18:31:22.000000000 +0200
3−--- davfs2-1.4.1-new/src/Makefile.in 2009-09-22 09:12:09.523154536 +0200
4−***************
5−*** 489,500 ****
6−
7−
8− install-exec-hook:
9−! chmod u+s $(DESTDIR)$(sbindir)/mount.davfs; \
10−! if test "$(sbindir)" != "$(ssbindir)"; then \
11−! $(mkinstalldirs) $(DESTDIR)$(ssbindir); \
12−! $(LN_S) -f $(DESTDIR)$(sbindir)/mount.davfs $(DESTDIR)$(ssbindir)/mount.davfs; \
13−! $(LN_S) -f $(DESTDIR)$(sbindir)/umount.davfs $(DESTDIR)$(ssbindir)/umount.davfs; \
14−! fi
15−
16− uninstall-hook:
17− if test "$(sbindir)" != "$(ssbindir)"; then \
18−--- 489,495 ----
19−
20−
21− install-exec-hook:
22−! chmod u+s $(DESTDIR)$(sbindir)/mount.davfs;
23−
24− uninstall-hook:
25− if test "$(sbindir)" != "$(ssbindir)"; then \
26−diff -rc davfs2-1.4.1/src/mount_davfs.c davfs2-1.4.1-new/src/mount_davfs.c
27−*** davfs2-1.4.1/src/mount_davfs.c 2009-06-12 11:54:58.000000000 +0200
28−--- davfs2-1.4.1-new/src/mount_davfs.c 2009-09-22 09:45:21.462726033 +0200
29−***************
30−*** 2327,2335 ****
31− }
32− if (st.st_uid != geteuid())
33− error(EXIT_FAILURE, 0, _("file %s has wrong owner"), filename);
34−! if ((st.st_mode &
35− (S_IXUSR | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)) != 0)
36−! error(EXIT_FAILURE, 0, _("file %s has wrong permissions"), filename);
37−
38− FILE *file = fopen(filename, "r");
39− if (!file) {
40−--- 2327,2335 ----
41− }
42− if (st.st_uid != geteuid())
43− error(EXIT_FAILURE, 0, _("file %s has wrong owner"), filename);
44−! /* if ((st.st_mode &
45− (S_IXUSR | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)) != 0)
46−! error(EXIT_FAILURE, 0, _("file %s has wrong permissions"), filename); */
47−
48− FILE *file = fopen(filename, "r");
49− if (!file) {
pkgs/tools/filesystems/davfs2/default.nix+5−3
@@ -1,19 +1,21 @@
11{ stdenv, fetchurl, neon, zlib }:
22
33stdenv.mkDerivation rec {
4− name = "davfs2-1.4.7";
4+ name = "davfs2-1.5.2";
55
66 src = fetchurl {
77 url = "mirror://savannah/davfs2/${name}.tar.gz";
8− sha256 = "0i7hrwlfzisb4l2mza1kjj9q9xxixggjplsjm339zl7828mfxh2h";
8+ sha256 = "0n5k2xxfxmbsavg5fhp65lmy30hq9jg3w242rdzafvksnnda2d5y";
99 };
1010
1111 buildInputs = [ neon zlib ];
1212
13− patches = [ ./davfs2-install.patch ./isdir.patch ./fix-sysconfdir.patch ];
13+ patches = [ ./isdir.patch ./fix-sysconfdir.patch ];
1414
1515 configureFlags = "--sysconfdir=/etc";
1616
17+ makeFlags = ["sbindir=$(out)/sbin" "ssbindir=$(out)/sbin"];
18+
1719 meta = {
1820 homepage = "http://savannah.nongnu.org/projects/davfs2";
1921 description = "mount WebDAV shares like a typical filesystem";
pkgs/top-level/all-packages.nix+1−3
@@ -1185,9 +1185,7 @@ in
11851185
11861186 darkstat = callPackage ../tools/networking/darkstat { };
11871187
1188− davfs2 = callPackage ../tools/filesystems/davfs2 {
1189− neon = neon_0_29;
1190− };
1188+ davfs2 = callPackage ../tools/filesystems/davfs2 { };
11911189
11921190 dbench = callPackage ../development/tools/misc/dbench { };
11931191