* [Buildroot] [PATCH] package/openvpn: get rid of -e in S60openvpn shebang
@ 2023-02-04 13:47 Sergey Organov
2023-02-04 14:39 ` Yann E. MORIN
2023-02-14 16:17 ` Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Sergey Organov @ 2023-02-04 13:47 UTC (permalink / raw)
To: buildroot; +Cc: Sergey Organov
The -e switch makes the script terminate on error from
start-stop-daemon, rendering unreachable the code that checks the exit
status.
There is no need in the -e switch in the first place either, as the
script takes care of errors handling.
Signed-off-by: Sergey Organov <sorganov@gmail.com>
---
package/openvpn/S60openvpn | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/openvpn/S60openvpn b/package/openvpn/S60openvpn
index f097cf11ec..00156c80db 100644
--- a/package/openvpn/S60openvpn
+++ b/package/openvpn/S60openvpn
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh
#
# Original version by Robert Leslie
# <rob@mars.org>, edited by iwj and cs
base-commit: c7ea83dd2df315ba4f492a9ef6b24152ba4cc4f3
--
2.30.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/openvpn: get rid of -e in S60openvpn shebang
2023-02-04 13:47 [Buildroot] [PATCH] package/openvpn: get rid of -e in S60openvpn shebang Sergey Organov
@ 2023-02-04 14:39 ` Yann E. MORIN
2023-02-04 20:52 ` Sergey Organov
2023-02-14 16:17 ` Peter Korsgaard
1 sibling, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2023-02-04 14:39 UTC (permalink / raw)
To: Sergey Organov; +Cc: buildroot
Sergey, All,
On 2023-02-04 16:47 +0300, Sergey Organov spake thusly:
> The -e switch makes the script terminate on error from
> start-stop-daemon, rendering unreachable the code that checks the exit
> status.
>
> There is no need in the -e switch in the first place either, as the
> script takes care of errors handling.
>
> Signed-off-by: Sergey Organov <sorganov@gmail.com>
Applied to master, thanks.
However, this script has a lot of coding style issues:
$ ./utils/check-package
package/openvpn/S60openvpn:14: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
package/openvpn/S60openvpn:15: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
package/openvpn/S60openvpn:16: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
package/openvpn/S60openvpn:17: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
package/openvpn/S60openvpn:18: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
package/openvpn/S60openvpn:21: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
[...]
package/openvpn/S60openvpn:0: DAEMON variable not defined (http://nightly.buildroot.org/#adding-packages-start-script)
Could you look into bringing this old script up to today's standards,
please?
Regards,
Yann E. MORIN.
> ---
> package/openvpn/S60openvpn | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/openvpn/S60openvpn b/package/openvpn/S60openvpn
> index f097cf11ec..00156c80db 100644
> --- a/package/openvpn/S60openvpn
> +++ b/package/openvpn/S60openvpn
> @@ -1,4 +1,4 @@
> -#!/bin/sh -e
> +#!/bin/sh
> #
> # Original version by Robert Leslie
> # <rob@mars.org>, edited by iwj and cs
>
> base-commit: c7ea83dd2df315ba4f492a9ef6b24152ba4cc4f3
> --
> 2.30.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/openvpn: get rid of -e in S60openvpn shebang
2023-02-04 14:39 ` Yann E. MORIN
@ 2023-02-04 20:52 ` Sergey Organov
0 siblings, 0 replies; 4+ messages in thread
From: Sergey Organov @ 2023-02-04 20:52 UTC (permalink / raw)
To: Yann E. MORIN; +Cc: buildroot
"Yann E. MORIN" <yann.morin.1998@free.fr> writes:
> Sergey, All,
>
> On 2023-02-04 16:47 +0300, Sergey Organov spake thusly:
>> The -e switch makes the script terminate on error from
>> start-stop-daemon, rendering unreachable the code that checks the exit
>> status.
>>
>> There is no need in the -e switch in the first place either, as the
>> script takes care of errors handling.
>>
>> Signed-off-by: Sergey Organov <sorganov@gmail.com>
>
> Applied to master, thanks.
Thank you in turn!
>
> However, this script has a lot of coding style issues:
>
> $ ./utils/check-package
> package/openvpn/S60openvpn:14: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
> package/openvpn/S60openvpn:15: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
> package/openvpn/S60openvpn:16: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
> package/openvpn/S60openvpn:17: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
> package/openvpn/S60openvpn:18: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
> package/openvpn/S60openvpn:21: should be indented with tabs (http://nightly.buildroot.org/#adding-packages-start-script)
> [...]
> package/openvpn/S60openvpn:0: DAEMON variable not defined (http://nightly.buildroot.org/#adding-packages-start-script)
>
> Could you look into bringing this old script up to today's standards,
> please?
Sorry, probably not me, as I'm currently using rather old buildroot
version, and it'd be problematic for me to check such changes against
the mainline.
Best regards,
-- Sergey Organov
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH] package/openvpn: get rid of -e in S60openvpn shebang
2023-02-04 13:47 [Buildroot] [PATCH] package/openvpn: get rid of -e in S60openvpn shebang Sergey Organov
2023-02-04 14:39 ` Yann E. MORIN
@ 2023-02-14 16:17 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2023-02-14 16:17 UTC (permalink / raw)
To: Sergey Organov; +Cc: buildroot
>>>>> "Sergey" == Sergey Organov <sorganov@gmail.com> writes:
> The -e switch makes the script terminate on error from
> start-stop-daemon, rendering unreachable the code that checks the exit
> status.
> There is no need in the -e switch in the first place either, as the
> script takes care of errors handling.
> Signed-off-by: Sergey Organov <sorganov@gmail.com>
Committed to 2022.11.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-14 16:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-04 13:47 [Buildroot] [PATCH] package/openvpn: get rid of -e in S60openvpn shebang Sergey Organov
2023-02-04 14:39 ` Yann E. MORIN
2023-02-04 20:52 ` Sergey Organov
2023-02-14 16:17 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox