From: Petr Vorel <pvorel@suse.cz>
To: Li Zhijian <lizhijian@fujitsu.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] configure.ac: Fix temperory directory ./confXXXXXX not cleanup
Date: Mon, 14 Oct 2024 11:18:23 +0200 [thread overview]
Message-ID: <20241014091823.GA74659@pevik> (raw)
In-Reply-To: <20241014005339.460608-1-lizhijian@fujitsu.com>
Hi all,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
nit: typos in subject: temperory => temporary
> configure
> ->config.status
> -> create temperory directory ./confXXXXXX
> -> cd include/lapi/syscalls
> -> ./regen.sh
> -> cleanup ./confXXXXXX, registered in trap
> Where config.status changes the working directory, ./confXXXXXX is not
> removed as a result.
> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
> ---
> configure.ac | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/configure.ac b/configure.ac
> index b4ab81e265..d327974efa 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -386,7 +386,7 @@ else
> AC_SUBST([WITH_REALTIME_TESTSUITE],["no"])
> fi
> -AC_CONFIG_COMMANDS([syscalls.h], [cd ${ac_top_srcdir}/include/lapi/syscalls; ./regen.sh])
> +AC_CONFIG_COMMANDS([syscalls.h], [cd ${ac_top_srcdir}/include/lapi/syscalls; ./regen.sh; cd - >/dev/null])
I was thinking whether use "cd ${ac_top_builddir}", but because cd happens
outside of regen.sh, "cd -" will always work and it's probably the best.
Also, I suppose this happen quite long time ago:
Fixes: a07008fbec ("configure.ac: Generate linux_syscall_headers.h")
I noticed the problem later on but never invested time to fix it. Li Zhijian,
thanks for taking care.
Kind regards,
Petr
> # custom functions
> # NOTE: don't create custom functions for simple checks, put them into this file
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2024-10-14 9:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 0:53 [LTP] [PATCH] configure.ac: Fix temperory directory ./confXXXXXX not cleanup Li Zhijian via ltp
2024-10-14 6:40 ` Li Wang
2024-10-14 9:18 ` Petr Vorel [this message]
2024-10-15 1:14 ` Zhijian Li (Fujitsu) via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241014091823.GA74659@pevik \
--to=pvorel@suse.cz \
--cc=lizhijian@fujitsu.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.