Public bug reported: Ubuntus 24.04 has `make` version `4.3-4.1build2`, where patch [80b90b7866a8 [SV 57967] Only set APPEND mode for regular files.](https://cgit.git.savannah.gnu.org/cgit/make.git/commit/?id=80b90b7866a83a7ddec7b960cd2f9917ab2a2fc6) is missing. Because of this `O_APPEND` is added to STDOUT and STDERR when `make` is invoked:
```console $ python3 -c 'import os,fcntl as f;print(f.fcntl(1, f.F_GETFL)&os.O_APPEND)' 0 $ strace -e t=fcntl make --version fcntl(1, F_GETFL) = 0x80002 (flags O_RDWR|O_CLOEXEC) fcntl(1, F_SETFL, O_RDWR|O_APPEND|O_CLOEXEC) = 0 fcntl(2, F_GETFL) = 0x80402 (flags O_RDWR|O_APPEND|O_CLOEXEC) fcntl(2, F_SETFL, O_RDWR|O_APPEND|O_CLOEXEC) = 0 fcntl(1, F_GETFD) = 0 … +++ exited with 0 +++ $ python3 -c 'import os,fcntl as f;print(f.fcntl(1, f.F_GETFL)&os.O_APPEND)' 1024 ``` This breaks application, which use `sendfile()` to stream output to STDOUT as `sendfile()` does **NOT** work when `O_APPEND` is set. Quoting from <man:sendfile(2)>: > ERRORS: > EINVAL out_fd has the O_APPEND flag set. This is not currently supported > by sendfile(). Please apply above linked patch and release a fixed version for 24.04. Thank you. PS: Debian-old[-old]-stable is also affected as they also only have [4.3-4.1](https://tracker.debian.org/pkg/make-dfsg). ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: make 4.3-4.1build2 ProcVersionSignature: Ubuntu 6.8.0-88.89-generic 6.8.12 Uname: Linux 6.8.0-88-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.28.1-0ubuntu3.8 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Wed Dec 3 17:07:54 2025 Dependencies: gcc-14-base 14.2.0-4ubuntu2~24.04 libc6 2.39-0ubuntu8.6 libgcc-s1 14.2.0-4ubuntu2~24.04 libidn2-0 2.3.7-2build1.1 libunistring5 1.1-2build1.1 InstallationDate: Installed on 2025-01-31 (306 days ago) InstallationMedia: Ubuntu 22.04.5 LTS "Jammy Jellyfish" - Release amd64 (20240911) SourcePackage: make-dfsg UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: make-dfsg (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2133803 Title: Missing patch 80b90b7866a8 [SV 57967] Only set APPEND mode for regular files. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/make-dfsg/+bug/2133803/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
