* [LTP] [PATCH] configure.ac: Fix temperory directory ./confXXXXXX not cleanup
@ 2024-10-14 0:53 Li Zhijian via ltp
2024-10-14 6:40 ` Li Wang
2024-10-14 9:18 ` Petr Vorel
0 siblings, 2 replies; 4+ messages in thread
From: Li Zhijian via ltp @ 2024-10-14 0:53 UTC (permalink / raw)
To: ltp
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])
# custom functions
# NOTE: don't create custom functions for simple checks, put them into this file
--
2.41.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [LTP] [PATCH] configure.ac: Fix temperory directory ./confXXXXXX not cleanup
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
1 sibling, 0 replies; 4+ messages in thread
From: Li Wang @ 2024-10-14 6:40 UTC (permalink / raw)
To: Li Zhijian; +Cc: ltp
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH] configure.ac: Fix temperory directory ./confXXXXXX not cleanup
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
2024-10-15 1:14 ` Zhijian Li (Fujitsu) via ltp
1 sibling, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2024-10-14 9:18 UTC (permalink / raw)
To: Li Zhijian; +Cc: ltp
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LTP] [PATCH] configure.ac: Fix temperory directory ./confXXXXXX not cleanup
2024-10-14 9:18 ` Petr Vorel
@ 2024-10-15 1:14 ` Zhijian Li (Fujitsu) via ltp
0 siblings, 0 replies; 4+ messages in thread
From: Zhijian Li (Fujitsu) via ltp @ 2024-10-15 1:14 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp@lists.linux.it
Thanks for your review
On 14/10/2024 17:18, Petr Vorel wrote:
> Hi all,
>
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>
> nit: typos in subject: temperory => temporary
Good catch, I will collect Reviewed tags, Fixes tag and send v2
Thanks
Zhijian
>
>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-15 1:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-10-15 1:14 ` Zhijian Li (Fujitsu) via ltp
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.