gnu: samba: Fix fcntl hint detection in configure script.
authorPierre Langlois <pierre.langlois@gmx.com>
Sat, 19 Sep 2020 22:57:41 +0000 (23:57 +0100)
committerPierre Langlois <pierre.langlois@gmx.com>
Tue, 22 Sep 2020 18:52:07 +0000 (19:52 +0100)
commitd3456739c5afd210cdc47b8c147adc277b84bfa8
tree79ae437f1759ff625c084d1f149f479be0c69371
parenta2c0dbb84a5537a0f9edb67dd20af3c7fe773aea
gnu: samba: Fix fcntl hint detection in configure script.

The configure script generates a C program to detect support for
lifetime hints on files.  But this program could crash, potentially
leaving a stale unreadable file behind which could cause the
patch-generated-file-shebang phase to fail.

Reported upstream <https://bugzilla.samba.org/show_bug.cgi?id=14503>.

* gnu/packages/patches/patches/samba-fix-fcntl-hint-detection.patch: New
file.
* gnu/packages/samba.scm (samba)[origin]: Add patch.
* gnu/local.mk (dist_patch_DATA): Register patch.
gnu/local.mk
gnu/packages/patches/samba-fix-fcntl-hint-detection.patch [new file with mode: 0644]
gnu/packages/samba.scm