gnupg: added a coreutils runtime dependancy to gnupg recipe
PATCH 1/1 gnupg: added a coreutils runtime dependancy to gnupg recipe
From: yahiafarghaly <[email protected]>
When using 'apt-key add' on the target image, the gnupg is required
but for gnupg to be fully functional, the coreutils is required to be exist with the gnupg. Otherwise, it may throw an error in runtime as one of components of coreutils is missing. For 'apt-key add', i faced the error of 'comm: command not found' so as proper solution, i submit this change.
--- meta/recipes-support/gnupg/gnupg_2.2.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-support/gnupg/gnupg_2.2.0.bb +2 -0
@@ -44,3 +44,5 @@ do_install_append() { PACKAGECONFIG ??= "gnutls" PACKAGECONFIG[gnutls] = "--enable-gnutls, --disable-gnutls, gnutls" PACKAGECONFIG[sqlite3] = "--enable-sqlite, --disable-sqlite, sqlite3" + +RDEPENDS_${PN} = "coreutils"
Signature · 1 line
2.7.4
Quoted 17 lines · Yahia Farghaly
From: yahiafarghaly <[email protected]>
When using 'apt-key add' on the target image, the gnupg is required
but for gnupg to be fully functional, the coreutils is required to be exist with the gnupg. Otherwise, it may throw an error in runtime as one of components of coreutils is missing. For 'apt-key add', i faced the error of 'comm: command not found' so as proper solution, i submit this change.Signed-off-by yahiafarghaly <[email protected]>--- meta/recipes-support/gnupg/gnupg_2.2.0.bb | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-support/gnupg/gnupg_2.2.0.bb +0
-0
meta/recipes-support/gnupg/gnupg_2.2.0.bb do_install_append() { · line 48
Quoted 5 lines
meta/recipes-support/gnupg/gnupg_2.2.0.bb +2
-0@@ -44,3 +44,5 @@ do_install_append() { PACKAGECONFIG ??= "gnutls" PACKAGECONFIG[gnutls] = "--enable-gnutls, --disable-gnutls, gnutls" PACKAGECONFIG[sqlite3] = "--enable-sqlite, --disable-sqlite, sqlite3" + +RDEPENDS_${PN} = "coreutils"
can we make the packaging more granular where comm is packages into a package of its
own e.g. coreutils-comm and then create specific rdep on coreutils-comm
Quoted 8 lines
--
2.7.4--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ok, this is a nice idea what i think is i may take only comm.c and its depends then compiling it and try to produce package. is this idea good ?
Mr.Chen Qi, what do you think about making a specific package for 'comm' which is a part of coreutils ?
Quoted 42 lines · Khem Raj
Quoted 4 lines · Yahia Farghaly
From: yahiafarghaly <[email protected]>
When using 'apt-key add' on the target image, the gnupg is required but for gnupg to be fully functional, the coreutils is required to be
exist with the gnupg.
Quoted 1 line
Otherwise, it may throw an error in runtime as one of components of
coreutils is missing.
Quoted 1 line
For 'apt-key add', i faced the error of 'comm: command not found' so as
proper solution, i submit this change.
Review
Quoted 7 lines
Signed-off-by yahiafarghaly <[email protected]>--- meta/recipes-support/gnupg/gnupg_2.2.0.bb | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0b/meta/recipes-support/gnupg/gnupg_2.2.0.bb
meta/recipes-support/gnupg/gnupg_2.2.0.bb do_install_append() { · line 48
Quoted 9 lines
index 0176ddd..8aa0951 100644
meta/recipes-support/gnupg/gnupg_2.2.0.bb +2
-0@@ -44,3 +44,5 @@ do_install_append() { PACKAGECONFIG ??= "gnutls" PACKAGECONFIG[gnutls] = "--enable-gnutls, --disable-gnutls, gnutls" PACKAGECONFIG[sqlite3] = "--enable-sqlite, --disable-sqlite, sqlite3" + +RDEPENDS_${PN} = "coreutils"can we make the packaging more granular where comm is packages into a package of its
own e.g. coreutils-comm and then create specific rdep on coreutils-commQuoted 8 lines
--
2.7.4--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 5 lines
Yahia Farghaly Graduated from Faculty of Engineering - Electronics and Communications Department at Cairo University. Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub <https://github.com/yahiafarghaly>
sorry if my question is naive, this is my first time working with yocto and the first patch i submit in an open source project
Quoted 63 lines · yahia farghaly
Ok, this is a nice idea what i think is i may take only
comm.cand its depends then compiling it and try to produce package. is this idea good ?Mr.Chen Qi, what do you think about making a specific package for 'comm' which is a part of coreutils ?
Quoted 19 lines · Khem Raj
Quoted 4 lines · Yahia Farghaly
From: yahiafarghaly <[email protected]>
When using 'apt-key add' on the target image, the gnupg is required but for gnupg to be fully functional, the coreutils is required to be
exist with the gnupg.
Quoted 1 line
Otherwise, it may throw an error in runtime as one of components of
coreutils is missing.
Quoted 1 line
For 'apt-key add', i faced the error of 'comm: command not found' so as
proper solution, i submit this change.
Review
Quoted 7 lines
Signed-off-by yahiafarghaly <[email protected]>--- meta/recipes-support/gnupg/gnupg_2.2.0.bb | 2 ++ 1 file changed, 2 insertions(+)(quoted diff) +0
-0b/meta/recipes-support/gnupg/gnupg_2.2.0.bb
Quoted 23 lines
meta/recipes-support/gnupg/gnupg_2.2.0.bb do_install_append() { · line 48
Quoted 9 lines
index 0176ddd..8aa0951 100644
meta/recipes-support/gnupg/gnupg_2.2.0.bb +2
-0@@ -44,3 +44,5 @@ do_install_append() { PACKAGECONFIG ??= "gnutls" PACKAGECONFIG[gnutls] = "--enable-gnutls, --disable-gnutls, gnutls" PACKAGECONFIG[sqlite3] = "--enable-sqlite, --disable-sqlite, sqlite3" + +RDEPENDS_${PN} = "coreutils"can we make the packaging more granular where comm is packages into a package of its
own e.g. coreutils-comm and then create specific rdep on coreutils-commQuoted 8 lines
--
2.7.4--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core--
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications Department at Cairo University.
Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub
<https://github.com/yahiafarghaly>
Signature · 5 lines
Yahia Farghaly Graduated from Faculty of Engineering - Electronics and Communications Department at Cairo University. Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub <https://github.com/yahiafarghaly>
Not quite. What Khem was aiming for was to modify the packaging of coreutils so that individual binaries end up in their own packages. Currently this is not done for any of the coreutil binaries, but if you look at, e.g., util-linux, you will see this setup for quite a number of its utils.
However, a simpler solution would probably be to just enable comm in busybox…
//Peter
From: [email protected] [mailto:[email protected]] On Behalf Of yahia farghaly
Sent: den 9 september 2017 18:06
To: Khem Raj <[email protected]>
Cc: Patches and discussions about the oe-core layer <[email protected]>
Subject: Re: [OE-core] [meta-oe][PATCH] gnupg: added a coreutils runtime dependancy to gnupg recipe
sorry if my question is naive, this is my first time working with yocto and the first patch i submit in an open source project
On 9 September 2017 at 03:51, yahia farghaly <[email protected]<mailto:[email protected]>> wrote:
Ok, this is a nice idea what i think is i may take only comm.c and its depends then compiling it and try to produce package. is this idea good ?
Mr.Chen Qi, what do you think about making a specific package for 'comm' which is a part of coreutils ?
On 9 September 2017 at 01:07, Khem Raj <[email protected]<mailto:[email protected]>> wrote:
Quoted 17 lines · On Fri, Sep 8, 2017 at 3:17 PM, Yahia Farghaly…
From: yahiafarghaly <[email protected]<mailto:[email protected]>>
When using 'apt-key add' on the target image, the gnupg is required
but for gnupg to be fully functional, the coreutils is required to be exist with the gnupg. Otherwise, it may throw an error in runtime as one of components of coreutils is missing. For 'apt-key add', i faced the error of 'comm: command not found' so as proper solution, i submit this change.--- meta/recipes-support/gnupg/gnupg_2.2.0.bb<http://gnupg_2.2.0.bb> | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-support/gnupg/gnupg_2.2.0.bb<http://gnupg_2.2.0.bb> +0
-0
meta/recipes-support/gnupg/gnupg_2.2.0.bb<http://gnupg_2.2.0.bb> do_install_append() { · line 48
Quoted 5 lines
meta/recipes-support/gnupg/gnupg_2.2.0.bb<http://gnupg_2.2.0.bb> +2
-0@@ -44,3 +44,5 @@ do_install_append() { PACKAGECONFIG ??= "gnutls" PACKAGECONFIG[gnutls] = "--enable-gnutls, --disable-gnutls, gnutls" PACKAGECONFIG[sqlite3] = "--enable-sqlite, --disable-sqlite, sqlite3" + +RDEPENDS_${PN} = "coreutils"
can we make the packaging more granular where comm is packages into a package of its
own e.g. coreutils-comm and then create specific rdep on coreutils-comm
Quoted 8 lines
--
2.7.4--
_______________________________________________
Openembedded-core mailing list [email protected]<mailto:[email protected]>
http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications Department at Cairo University. Linkedin<https://linkedin.com/in/yahiafarghaly> - GitHub<https://github.com/yahiafarghaly>
--
Yahia Farghaly
Graduated from Faculty of Engineering - Electronics and Communications Department at Cairo University. Linkedin<https://linkedin.com/in/yahiafarghaly> - GitHub<https://github.com/yahiafarghaly>
Quoted 7 lines · Yahia Farghaly
From: yahiafarghaly <[email protected]>
When using 'apt-key add' on the target image, the gnupg is required
but for gnupg to be fully functional, the coreutils is required to be exist with the gnupg. Otherwise, it may throw an error in runtime as one of components of coreutils is missing. For 'apt-key add', i faced the error of 'comm: command not found' so as proper solution, i submit this change.
Have you established that it's something in gnupg that needs the 'comm' command, and not something in apt-key? Can you point to the specific place in gnupg source tree where comm is used?
Thanks,
Alex
The error was */usr/bin/apt-key: line 352: comm: command not found*
so, i investigated around this line and it showed me that apt-key script
try to use* comm* in a function
*merge_back_changes()* i couldn't find a suitable online source for the code, i just looked at from the resulted image. so as a conclusion, i think it is not a problem of gnupg.
Quoted 20 lines · Alexander Kanavin
Quoted 11 lines · Yahia Farghaly
From: yahiafarghaly <[email protected]>
When using 'apt-key add' on the target image, the gnupg is required but for gnupg to be fully functional, the coreutils is required to be exist with the gnupg.
Otherwise, it may throw an error in runtime as one of components of coreutils is missing.
For 'apt-key add', i faced the error of 'comm: command not found' so as proper solution, i submit this change.Have you established that it's something in gnupg that needs the 'comm' command, and not something in apt-key? Can you point to the specific place in gnupg source tree where comm is used?
Thanks,
Alex
Signature · 5 lines
Yahia Farghaly Graduated from Faculty of Engineering - Electronics and Communications Department at Cairo University. Linkedin <https://linkedin.com/in/yahiafarghaly> - GitHub <https://github.com/yahiafarghaly>