openwrt/tools
Thomas Weißschuh 0d375de10d tools/patch: apply patch for EACCES on xattr copy
When compiling OpenWRT on a compressed btrfs volume the build fails in
libtool.
The file `libltdl/config/ltmain.m4sh` from `libtool-2.4.2.tar.xz` is
missing write permissions, therefore patch falls back to copying the
file and patching that. During this patch tries to preserve all file
attribute on the new copy.
However the attribute `btrfs.compression` is privileged and btrfs return
EACCES.
While patch ignores multiple other error codes during the copy of xattr
copy it is not prepared for EACCES and aborts.

EACCES should be ignored the same way as the other errors.

Build log:
```
...
Applying ./patches/000-relocatable.patch using plaintext:
patching file libltdl/config/general.m4sh
patching file libtoolize.in
patching file libtoolize.m4sh
patching file libltdl/m4/libtool.m4

Applying ./patches/100-libdir-fixes.patch using plaintext:
patching file libltdl/config/ltmain.m4sh
File libltdl/config/ltmain.sh is read-only; trying to patch anyway
patching file libltdl/config/ltmain.sh
patch: setting attribute btrfs.compression for btrfs.compression: Permission denied
Patch failed!  Please fix ./patches/100-libdir-fixes.patch!
```

Link: https://lists.gnu.org/archive/html/bug-patch/2022-11/msg00000.html
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2022-11-20 18:44:43 +01:00
..
7z
autoconf
autoconf-archive
automake tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
b43-tools
bash tools/bash: update to 5.2 2022-10-22 22:53:24 +02:00
bc tools/bc: update to 1.07.1 2022-10-22 22:50:37 +02:00
bison tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
cbootimage
cbootimage-configs
ccache tools/ccache: update to 4.7.2 2022-10-31 22:00:15 +01:00
cmake tools/cmake: update to 3.24.2 2022-10-02 20:21:55 +02:00
coreutils tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
cpio tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
dosfstools tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
dwarves tools/dwarves: update to 1.24 2022-10-22 22:53:24 +02:00
e2fsprogs tools: e2fsprogs: Update to version 1.46.5 2022-08-13 14:05:29 +02:00
elftosb
elfutils tools/elfutils: update to 1.88 2022-11-05 14:07:46 +00:00
expat expat: update to 2.5.0 2022-10-31 21:27:48 +01:00
fakeroot tools/fakeroot: update to 1.30.1 2022-11-05 14:07:46 +00:00
findutils tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
firmware-utils firmware-utils: update to git HEAD 2022-09-12 01:43:49 +01:00
flex tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
flock tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
genext2fs tools/genext2fs: update to 1.5.0 2022-10-22 22:53:24 +02:00
gengetopt
gmp tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
include
isl tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
kernel2minor
libressl tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
libtool tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
llvm-bpf tools/llvm: update to 14.0.6 2022-09-07 04:22:40 +01:00
lzma tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
lzma-old
m4 tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
make-ext4fs
meson tools/meson: backport WSL2 fix 2022-10-02 16:05:32 +02:00
missing-macros
mkimage tools/mkimage: bring back removed patches 2022-10-23 16:29:59 +01:00
mklibs
mpc tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
mpfr tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
mtd-utils tools/mtd-utils: update to 2.1.5 2022-11-05 14:07:46 +00:00
mtools tools/mtools: update to 4.0.42 2022-11-05 14:07:46 +00:00
ninja
padjffs2
patch tools/patch: apply patch for EACCES on xattr copy 2022-11-20 18:44:43 +01:00
patch-image
patchelf tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
pkgconf tools/pkgconf: update to 1.9.3 2022-09-07 04:22:39 +01:00
quilt
sdimage
sed tools/sed: update to 4.9 2022-11-18 19:52:54 +01:00
sparse tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
squashfs
squashfskit4
sstrip
tar tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
xz tools/xz: update to 5.2.8 2022-11-16 23:30:11 +01:00
zip tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
zlib tools/zlib: update to 1.2.13 2022-10-22 22:53:24 +02:00
zstd Revert "tools/zstd: build libraries as static" 2022-09-27 23:17:51 +02:00
Makefile mac80211: remove old legacy legacy drivers 2022-11-09 20:44:28 +01:00