lede/tools
Albert Xu 9cd6f162e9
tools/patch: apply patch for EACCES on xattr copy (#10469)
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
Co-authored-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2022-11-21 21:08:31 +08:00
..
7z tools: bump 7z package to 22.01 2022-08-02 10:03:45 +08:00
autoconf update source 2017-09-06 19:19:45 +08:00
autoconf-archive tools/autoconf-archive: update to 2021.02.19 2022-03-02 16:59:10 +00:00
automake tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
b43-tools Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
bash tools: update versions (#10444) 2022-11-17 23:56:34 +08:00
bc tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
bison tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
cbootimage add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
cbootimage-configs add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
ccache tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
cmake tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
coreutils tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
cpio tools/cpio: sync with upstream 2022-10-23 12:40:42 +08:00
dosfstools tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
dwarves tools/dwarves: update to 1.24 2022-10-23 12:07:38 +08:00
e2fsprogs tools: e2fsprogs: Update to version 1.46.5 2022-10-01 10:03:52 +08:00
elftosb update source 2017-09-06 19:19:45 +08:00
elfutils tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
expat tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
fakeroot tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
findutils tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
firmware-utils firmware-utils: update to git HEAD 2022-10-01 10:03:52 +08:00
flex tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
flock tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
genext2fs tools/genext2fs: update to 1.5.0 2022-10-23 12:16:22 +08:00
gengetopt Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
gmp tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
include x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
isl tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
kernel2minor sync with OpenWrt trunk 2018-09-07 13:43:55 +08:00
libressl tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
libtool tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
llvm-bpf tools: update versions (#10444) 2022-11-17 23:56:34 +08:00
lzma tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
lzma-old add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
m4 tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
make-ext4fs Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
meson tools/meson: sync with upstream 2022-10-23 12:19:36 +08:00
missing-macros add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
mkimage tools/mkimage: bring back removed patches 2022-10-24 11:35:41 +08:00
mklibs tools/mklibs: update to 0.1.45 2022-10-01 10:03:52 +08:00
mpc tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
mpfr tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
mtd-utils tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
mtools tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
ninja tools: update versions and sync with upstream (#10380) 2022-11-07 09:54:08 +08:00
padjffs2 add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
patch tools/patch: apply patch for EACCES on xattr copy (#10469) 2022-11-21 21:08:31 +08:00
patch-image x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
patchelf tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
pkgconf tools/pkgconf: update to 1.9.3 2022-10-01 10:03:52 +08:00
quilt tools/quilt: update to 0.67 2022-02-26 05:48:55 +00:00
sdimage Merge branch master of https://github.com/coolsnowwolf/lede 2019-01-03 19:29:28 +08:00
sed tools: update versions (#10444) 2022-11-17 23:56:34 +08:00
sparse tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
squashfs squashfs: Fix compile with GCC 10 2020-06-19 17:09:24 +08:00
squashfskit4 tools/squashfskit4: sync with upstream 2022-10-23 12:28:48 +08:00
sstrip tools/sstrip: update to 3.2 2022-10-01 10:03:52 +08:00
tar tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
ucl ucl: add Apple M1 configsub fix 2022-03-29 15:10:52 +08:00
upx Revert "tools/upx: update to 3.96" 2022-10-24 10:06:30 +08:00
xz tools: update versions (#10444) 2022-11-17 23:56:34 +08:00
zip tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
zlib tools: add Host/Uninstall where possible 2022-10-23 12:39:00 +08:00
zstd tools/zstd: sync with upstream 2022-10-23 12:33:29 +08:00
Makefile tools: sync with upstream 2022-10-23 12:43:07 +08:00