1
0
Fork 0
forked from mirror/openwrt
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
autoconf-archive
automake
b43-tools
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
cbootimage
cbootimage-configs
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
dosfstools
e2fsprogs
elftosb
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
flock
genext2fs
gengetopt
gmp
include
isl
kernel2minor
libressl tools/libressl: update to version 3.4.3 2022-06-25 00:05:21 +02:00
libtool
llvm-bpf tools/llvm-bpf: move tarball packing to target/llvm-bpf 2021-11-22 12:00:40 +01:00
lzma
lzma-old
m4
make-ext4fs
meson tools/meson: backport WSL2 fix 2022-10-03 19:51:50 +02:00
missing-macros
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
mpfr
mtd-utils
mtools mtools: update to version 4.0.39 2022-04-15 14:12:18 +01:00
ninja
padjffs2
patch tools/patch: apply patch for EACCES on xattr copy 2022-11-27 15:43:08 +01:00
patch-image
patchelf
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
sed
sparse
squashfs
squashfskit4
sstrip
tar
xz
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