* [PATCH] gnupg fails on nonexistent /dev/tty
@ 2018-11-26 15:18 Amy_Fong
2018-11-26 15:26 ` Jan Kiszka
2018-11-29 12:14 ` Maxim Yu. Osipov
0 siblings, 2 replies; 4+ messages in thread
From: Amy_Fong @ 2018-11-26 15:18 UTC (permalink / raw)
To: isar-users; +Cc: Amy Fong
From: Amy Fong <Amy_Fong@mentor.com>
Add --no-tty option to gnupg for noninteractive usage.
Signed-off-by: Amy Fong <Amy_Fong@mentor.com>
---
meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
index e735726..e89b7c1 100644
--- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
+++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
@@ -150,7 +150,7 @@ do_generate_keyring() {
if [ -n "${@d.getVar("APTKEYFILES", True) or ""}" ]; then
for keyfile in ${@d.getVar("APTKEYFILES", True)}; do
gpg --no-default-keyring --keyring "${APTKEYRING}" \
- --homedir "${DL_DIR}" --import "$keyfile"
+ --no-tty --homedir "${DL_DIR}" --import "$keyfile"
done
fi
}
--
2.11.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gnupg fails on nonexistent /dev/tty
2018-11-26 15:18 [PATCH] gnupg fails on nonexistent /dev/tty Amy_Fong
@ 2018-11-26 15:26 ` Jan Kiszka
2018-11-27 1:16 ` Amy Fong
2018-11-29 12:14 ` Maxim Yu. Osipov
1 sibling, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2018-11-26 15:26 UTC (permalink / raw)
To: Amy_Fong, isar-users
On 26.11.18 16:18, Amy_Fong@mentor.com wrote:
> From: Amy Fong <Amy_Fong@mentor.com>
>
> Add --no-tty option to gnupg for noninteractive usage.
>
Thanks!
Could you add the information where you have seen it and where not? IIRC, it was
some version difference in the gpg package that triggered it.
> Signed-off-by: Amy Fong <Amy_Fong@mentor.com>
> ---
> meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> index e735726..e89b7c1 100644
> --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> @@ -150,7 +150,7 @@ do_generate_keyring() {
> if [ -n "${@d.getVar("APTKEYFILES", True) or ""}" ]; then
> for keyfile in ${@d.getVar("APTKEYFILES", True)}; do
> gpg --no-default-keyring --keyring "${APTKEYRING}" \
> - --homedir "${DL_DIR}" --import "$keyfile"
> + --no-tty --homedir "${DL_DIR}" --import "$keyfile"
> done
> fi
> }
>
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gnupg fails on nonexistent /dev/tty
2018-11-26 15:26 ` Jan Kiszka
@ 2018-11-27 1:16 ` Amy Fong
0 siblings, 0 replies; 4+ messages in thread
From: Amy Fong @ 2018-11-27 1:16 UTC (permalink / raw)
To: Jan Kiszka; +Cc: isar-users
On Mon, Nov 26, 2018 at 04:26:18PM +0100, Jan Kiszka wrote:
> On 26.11.18 16:18, Amy_Fong@mentor.com wrote:
> > From: Amy Fong <Amy_Fong@mentor.com>
> >
> > Add --no-tty option to gnupg for noninteractive usage.
> >
>
> Thanks!
>
> Could you add the information where you have seen it and where not? IIRC, it
> was some version difference in the gpg package that triggered it.
This can be seen on gnupg 2.1.18-8~deb9u3.
On systems with 2.1.18-8~deb9u2, the problem is nonexistent but if I explicitly copy version u3
to the other system, the problem can be reproduced.
Thanks.
Amy
> > Signed-off-by: Amy Fong <Amy_Fong@mentor.com>
> > ---
> > meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> > index e735726..e89b7c1 100644
> > --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> > +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> > @@ -150,7 +150,7 @@ do_generate_keyring() {
> > if [ -n "${@d.getVar("APTKEYFILES", True) or ""}" ]; then
> > for keyfile in ${@d.getVar("APTKEYFILES", True)}; do
> > gpg --no-default-keyring --keyring "${APTKEYRING}" \
> > - --homedir "${DL_DIR}" --import "$keyfile"
> > + --no-tty --homedir "${DL_DIR}" --import "$keyfile"
> > done
> > fi
> > }
> >
>
> Jan
>
> --
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gnupg fails on nonexistent /dev/tty
2018-11-26 15:18 [PATCH] gnupg fails on nonexistent /dev/tty Amy_Fong
2018-11-26 15:26 ` Jan Kiszka
@ 2018-11-29 12:14 ` Maxim Yu. Osipov
1 sibling, 0 replies; 4+ messages in thread
From: Maxim Yu. Osipov @ 2018-11-29 12:14 UTC (permalink / raw)
To: Amy_Fong, isar-users
On 11/26/18 6:18 PM, Amy_Fong@mentor.com wrote:
> From: Amy Fong <Amy_Fong@mentor.com>
>
> Add --no-tty option to gnupg for noninteractive usage.
Applied to the 'next',
Thanks,
Maxim.
> Signed-off-by: Amy Fong <Amy_Fong@mentor.com>
> ---
> meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> index e735726..e89b7c1 100644
> --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc
> @@ -150,7 +150,7 @@ do_generate_keyring() {
> if [ -n "${@d.getVar("APTKEYFILES", True) or ""}" ]; then
> for keyfile in ${@d.getVar("APTKEYFILES", True)}; do
> gpg --no-default-keyring --keyring "${APTKEYRING}" \
> - --homedir "${DL_DIR}" --import "$keyfile"
> + --no-tty --homedir "${DL_DIR}" --import "$keyfile"
> done
> fi
> }
>
--
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-29 12:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-26 15:18 [PATCH] gnupg fails on nonexistent /dev/tty Amy_Fong
2018-11-26 15:26 ` Jan Kiszka
2018-11-27 1:16 ` Amy Fong
2018-11-29 12:14 ` Maxim Yu. Osipov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox