summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-17 14:33:20 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-17 14:33:41 -0400
commitff98e2caac4f8e53b51b602de9d9be06782622e6 (patch)
treed4999754849d0c5619e4a046c44d803a93e20941 /sys-fs/e2fsprogs
parentdev-util/nvidia-cuda-toolkit: Readd last version supporting multilib on x86 (diff)
downloadgentoo-ff98e2caac4f8e53b51b602de9d9be06782622e6.tar.gz
gentoo-ff98e2caac4f8e53b51b602de9d9be06782622e6.tar.bz2
gentoo-ff98e2caac4f8e53b51b602de9d9be06782622e6.zip
sys-fs/e2fsprogs: workaround buggy NFS when building manpages #550986
Diffstat (limited to 'sys-fs/e2fsprogs')
-rw-r--r--sys-fs/e2fsprogs/e2fsprogs-1.42.13.ebuild1
-rw-r--r--sys-fs/e2fsprogs/files/e2fsprogs-1.42.13-subst-perms.patch31
2 files changed, 32 insertions, 0 deletions
diff --git a/sys-fs/e2fsprogs/e2fsprogs-1.42.13.ebuild b/sys-fs/e2fsprogs/e2fsprogs-1.42.13.ebuild
index cb426fca8cdd..64b04bd8a339 100644
--- a/sys-fs/e2fsprogs/e2fsprogs-1.42.13.ebuild
+++ b/sys-fs/e2fsprogs/e2fsprogs-1.42.13.ebuild
@@ -38,6 +38,7 @@ src_prepare() {
epatch "${WORKDIR}"/${PN}-1.42.9-mint-r1.patch
fi
epatch "${FILESDIR}"/${PN}-1.42.13-fix-build-cflags.patch #516854
+ epatch "${FILESDIR}"/${PN}-1.42.13-subst-perms.patch #550986
# blargh ... trick e2fsprogs into using e2fsprogs-libs
rm -rf doc
diff --git a/sys-fs/e2fsprogs/files/e2fsprogs-1.42.13-subst-perms.patch b/sys-fs/e2fsprogs/files/e2fsprogs-1.42.13-subst-perms.patch
new file mode 100644
index 000000000000..2162f0396870
--- /dev/null
+++ b/sys-fs/e2fsprogs/files/e2fsprogs-1.42.13-subst-perms.patch
@@ -0,0 +1,31 @@
+From 0930fcd65ec8f135c90f673eab2a7a196103537d Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Thu, 17 Sep 2015 14:18:16 -0400
+Subject: [PATCH e2fsprogs] subst: use 0644 perms
+
+When running on NFS, opening files with 0444 perms for writing can
+sometimes fail. Since there's no real reason for these files to be
+read-only, give the owner write permission.
+
+URL: https://bugs.gentoo.org/550986
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ util/subst.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/util/subst.c b/util/subst.c
+index f36adb4..e4004c9 100644
+--- a/util/subst.c
++++ b/util/subst.c
+@@ -370,7 +370,7 @@ int main(int argc, char **argv)
+ }
+ strcpy(newfn, outfn);
+ strcat(newfn, ".new");
+- fd = open(newfn, O_CREAT|O_TRUNC|O_RDWR, 0444);
++ fd = open(newfn, O_CREAT|O_TRUNC|O_RDWR, 0644);
+ if (fd < 0) {
+ perror(newfn);
+ exit(1);
+--
+2.5.1
+