Files
gentoo/dev-libs/libffi-compat/files/libffi-3.2.1-o-tmpfile-eacces.patch
Sergei Trofimovich 150f49cdb5 dev-libs/libffi-compat: new package, provides libffi.so.6
There are still a few binary-only packages out there that rely on
'libffi.so.6' presence. This package provides these libraries.
No development headers here. Thus this library can co-exist with
dev-libs/libffi:0/7 package.

Ebuild is based on dev-libs/libffi. We can fast-stabilize it if
in-tree stable packages do rely on libffi.so.6 (they should not).

The patch is almost entirely by Timo Rothenpieler.
I renamed a package and made a few minor tweaks.

Fix-by: Timo Rothenpieler
Reported-by: Timo Rothenpieler
Closes: https://bugs.gentoo.org/695964
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2019-10-01 20:29:09 +01:00

18 lines
660 B
Diff

https://bugs.gentoo.org/529044
deploy this workaround until newer versions of the kernel/C library/libsandbox
are rolled out into general circulation
--- a/src/closures.c
+++ b/src/closures.c
@@ -301,7 +301,8 @@ open_temp_exec_file_dir (const char *dir)
#ifdef O_TMPFILE
fd = open (dir, flags | O_RDWR | O_EXCL | O_TMPFILE, 0700);
/* If the running system does not support the O_TMPFILE flag then retry without it. */
- if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP)) {
+ if (fd != -1 || (errno != EINVAL && errno != EISDIR && errno != EOPNOTSUPP &&
+ errno != EACCES)) {
return fd;
} else {
errno = 0;