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 tools: bump 7z package to 22.01 2022-07-31 15:29:39 +02: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: add Host/Uninstall where possible 2022-10-20 00:33:22 +02: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/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 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.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 treewide: clean up download hashes 2016-12-16 22:39:22 +01:00
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 tools/gengetopt: Update to 2.23 2019-07-08 16:42:26 +02:00
gmp tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
include build: fix kernel 5.4 on macos 2020-03-14 13:20:06 +00:00
isl tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +02:00
kernel2minor tools: kernel2minor: update to latest version 2018-07-12 18:15:33 +02:00
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 treewide: unify OpenWrt hosted source via @OPENWRT 2021-02-05 12:00:24 -10:00
m4 tools: add Host/Uninstall where possible 2022-10-20 00:33:22 +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-02 16:05:32 +02:00
missing-macros treewide: remove empty default cases 2020-09-17 12:46:19 +02:00
mkimage tools/mkimage: bring back removed patches 2022-10-23 16:29:59 +01:00
mklibs tools/mklibs: update to 0.1.45 2022-03-01 00:08:08 +01:00
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 tools/ninja: update to 1.11.0 2022-06-13 19:50:25 +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-20 18:44:43 +01:00
patch-image rb532: drop target 2020-09-02 16:29:22 +02:00
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 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.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 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: 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