Re: headerscheck ccache support - Mailing list pgsql-hackers

From Nazir Bilal Yavuz
Subject Re: headerscheck ccache support
Date
Msg-id CAN55FZ249OJgbVvtOA8eQv1OrMNE5exiQ0jofE-RKtCw_fz=-A@mail.gmail.com
Whole thread Raw
In response to Re: headerscheck ccache support  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: headerscheck ccache support
List pgsql-hackers
Hi

On Fri, 28 Nov 2025 at 14:39, Peter Eisentraut <peter@eisentraut.org> wrote:
>
> On 21.11.25 13:14, Álvaro Herrera wrote:
> >> Now ccache works.
> >
> > Sounds reasonable.  I notice that you're cleaning this file in a `rm`
> > line in the loop,
> >
> >> @@ -253,10 +249,11 @@ do
> >>      if ! $COMPILER $COMPILER_FLAGS -I $builddir -I $srcdir \
> >>              -I $builddir/src/include -I $srcdir/src/include \
> >>              -I $builddir/src/interfaces/libpq -I $srcdir/src/interfaces/libpq \
> >> -            $EXTRAINCLUDES $EXTRAFLAGS -c $tmp/test.$ext -o $tmp/test.o
> >> +            $EXTRAINCLUDES $EXTRAFLAGS -c $test_file_name.$ext -o $test_file_name.o
> >>      then
> >>              exit_status=1
> >>      fi
> >> +    rm -f "$test_file_name.$ext" "$test_file_name.o"
> >>   done
> >
> > but this means that if the script is interrupted halfway through, one
> > file or two files might remain in place.  Would it be possible to have
> > the current file name in a variable, so that the `trap` line can delete
> > them?
>
> Here is another patch set.

I could not apply patches cleanly. Am I missing something?

$ git am ~/Downloads/v2-0001-headerscheck-ccache-support.patch
Applying: headerscheck ccache support
error: patch failed: src/tools/pginclude/headerscheck:73
error: src/tools/pginclude/headerscheck: patch does not apply
Patch failed at 0001 headerscheck ccache support

--
Regards,
Nazir Bilal Yavuz
Microsoft



pgsql-hackers by date:

Previous
From: "cca5507"
Date:
Subject: Fix comments in execTuples.c
Next
From: Miłosz Bieniek
Date:
Subject: Re: [PATCH] Add `headerscheck` run_target to meson