Re: [PATCH v1] kheaders: prevent `find` from seeing perl temp files
From: Masahiro Yamada
Date: Sun Nov 10 2024 - 06:22:07 EST
On Sun, Nov 10, 2024 at 8:18 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> On Thu, Nov 7, 2024 at 9:58 AM HONG Yifan <elsk@xxxxxxxxxx> wrote:
> >
> > Symptom:
> >
> > The command
> >
> > find ... | xargs ... perl -i
> >
> > occasionally triggers error messages like the following, with the build
> > still succeeding:
> >
> > Can't open <redacted>/kernel/.tmp_cpio_dir/include/dt-bindings/clock/XXNX4nW9: No such file or directory.
>
>
> I tested this patch on Alpine Linux
> with "for i in $(seq 100); do" loop.
FWIW, I used Docker for testing.
This is the Dockerfile for my setup.
---------->8------------
ARG FROM=alpine
FROM ${FROM}
RUN \
apk add \
bash \
bison \
diffutils \
elfutils-dev \
emacs \
flex \
gcc \
git \
linux-headers \
make \
# c library
musl-dev \
nano \
openssl-dev \
perl \
python3 \
# useradd
shadow \
sudo \
tar
---------->8------------
I used linux-next-20241108 for the test kernel.
--
Best Regards
Masahiro Yamada