openwrt/tools
Thomas Weißschuh 8040f74f8d 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>
(cherry picked from commit 0d375de10d)
2022-11-27 15:43:08 +01:00
..
autoconf treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
autoconf-archive tools/autoconf-archive: update to 2021.02.19 2021-09-20 15:21:17 +02:00
automake tools/automake: Revert "Do not use $(V) - force AM_V=1" 2019-11-06 00:21:15 +01:00
b43-tools tools/b43-tools/b43-fwsquash: convert to Python 3 with 2-to-3 2019-07-26 08:09:16 +02:00
bash tools: build bash on macOS and use it for ipkg-build 2022-01-27 13:38:48 +01:00
bc tools: use https for bc mirrors 2022-02-24 15:36:28 +01:00
bison tools/bison: update to 3.8.2 2021-10-05 20:59:41 +02:00
cbootimage treewide: update email address of Tomasz Maciej Nowak 2020-11-24 15:39:07 +01:00
cbootimage-configs treewide: update email address of Tomasz Maciej Nowak 2020-11-24 15:39:07 +01:00
ccache tools/ccache: update to 4.6 2022-03-13 19:24:13 +01:00
cmake tools/cmake: fix download url 2022-04-10 16:26:01 +01:00
coreutils tools/coreutils: build chown 2022-01-27 13:38:48 +01:00
cpio tools/cpio: fix compilation with clang 2021-11-20 21:08:25 +01:00
dosfstools tools/dosfstools: update to 4.2 2021-09-05 21:28:20 +02:00
e2fsprogs tools/e2fsprogs: update to 1.46.4 2021-09-20 15:21:17 +02:00
elftosb treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
expat tools/expat: update to 2.5.0 2022-11-12 20:28:46 +00:00
fakeroot tools/fakeroot: update to 1.28 2022-03-13 19:24:13 +01:00
findutils tools/findutils: update to 4.9.0 2022-03-01 00:08:08 +01:00
firmware-utils firmware-utils: bump to git HEAD 2022-05-17 21:14:23 +02:00
flex flex: Add a lex symlink 2018-11-25 19:23:03 +01:00
flock tools/flock: add PKG_{VERSION,RELEASE} 2020-07-23 11:30:22 +02:00
genext2fs treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
gengetopt tools/gengetopt: Update to 2.23 2019-07-08 16:42:26 +02:00
gmp tools/gmp: update to 6.2.1 2020-11-21 18:49:17 +01:00
include build: fix kernel 5.4 on macos 2020-03-14 13:20:06 +00:00
isl tools/isl: update the download URL 2021-10-21 20:37:20 +01:00
kernel2minor tools: kernel2minor: update to latest version 2018-07-12 18:15:33 +02:00
libressl tools/libressl: update to version 3.4.3 2022-06-25 00:05:21 +02:00
libtool libtool: Revert "libtool: bump to 2.4.6" 2021-09-23 13:39:11 +02:00
llvm-bpf tools/llvm-bpf: move tarball packing to target/llvm-bpf 2021-11-22 12:00:40 +01:00
lzma treewide: unify OpenWrt hosted source via @OPENWRT 2021-02-05 12:00:24 -10:00
lzma-old treewide: unify OpenWrt hosted source via @OPENWRT 2021-02-05 12:00:24 -10:00
m4 tools/m4: update to 1.4.19 2021-09-20 15:21:17 +02:00
make-ext4fs make_ext4fs: Update to version 2020-01-05 2020-01-05 20:04:37 +01:00
meson tools/meson: backport WSL2 fix 2022-10-03 19:51:50 +02:00
missing-macros treewide: remove empty default cases 2020-09-17 12:46:19 +02:00
mkimage tools/mkimage: increase tmpfile name length limit 2022-06-05 11:38:28 +01:00
mklibs tools/mklibs: update to 0.1.45 2022-03-01 00:08:08 +01:00
mpc tools/mpc: update to 1.2.1 2020-11-21 18:49:27 +01:00
mpfr tools/mpfr: update to 4.1.0 2020-08-23 19:40:32 +02:00
mtd-utils tools: mtd-utils: Update to version 2.1.2 2020-08-26 23:29:35 +02:00
mtools mtools: update to version 4.0.39 2022-04-15 14:12:18 +01:00
ninja tools: build ninja before ccache to fix the build order 2021-06-12 14:33:57 +02:00
padjffs2 tools: drop PKG_VERSION for purely local packages 2020-07-23 10:54:33 +02:00
patch tools/patch: apply patch for EACCES on xattr copy 2022-11-27 15:43:08 +01:00
patch-image rb532: drop target 2020-09-02 16:29:22 +02:00
patchelf tools/patchelf: bump to use latest master 2021-02-15 07:12:51 +01:00
pkgconf pkg-config: always use correct path for pkg-config.real 2022-08-14 00:29:20 +02:00
quilt tools/quilt: update to 0.67 2022-02-25 14:12:39 +01:00
sdimage tools/sdimage: Fix build with host Linux headers < 3.18 2018-12-16 14:03:35 +01:00
sed tools/sed: Update to 4.8 2020-02-18 21:39:14 +01:00
sparse tools/sparse: update to 0.6.4 2021-09-20 15:21:17 +02:00
squashfs squashfs: Fix compile with GCC 10 2020-05-24 14:38:40 +02:00
squashfskit4 tools/squashfskit4: fix compilation under big endian 2021-06-20 18:59:36 -10:00
sstrip tools/sstrip: update to 3.2 2021-09-20 15:21:17 +02:00
tar tools/tar: update to 1.34 2021-09-05 21:26:48 +02:00
xz tools/xz: Update to 5.2.5 2020-04-09 22:09:13 +02:00
zip tools: zip: make encrypted archives reproducible 2022-03-09 15:38:23 +09:00
zlib zlib: backport security fix for a reproducible crash in compressor 2022-03-24 08:18:21 +01:00
zstd tools/zstd: update to 1.5.2 2022-03-01 00:08:08 +01:00
Makefile tools: remove xxd package 2022-09-16 18:50:46 +02:00