All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] rootfs-postcommands: remove empty line
@ 2017-09-04  5:12 Jose Alarcon
  2017-09-04  5:12 ` [PATCH v2 2/2] rootfs-postcommands: add test for unsatisfied RRECOMMENDS Jose Alarcon
  0 siblings, 1 reply; 5+ messages in thread
From: Jose Alarcon @ 2017-09-04  5:12 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
---
 meta/classes/rootfs-postcommands.bbclass | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index e7999d4..fb36bad 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -291,7 +291,6 @@ rootfs_sysroot_relativelinks () {
 	sysroot-relativelinks.py ${SDK_OUTPUT}/${SDKTARGETSYSROOT}
 }
 
-
 # Generated test data json file
 python write_image_test_data() {
     from oe.data import export2json
-- 
2.10.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] rootfs-postcommands: add test for unsatisfied RRECOMMENDS
  2017-09-04  5:12 [PATCH v2 1/2] rootfs-postcommands: remove empty line Jose Alarcon
@ 2017-09-04  5:12 ` Jose Alarcon
  2017-09-04 20:10   ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Jose Alarcon @ 2017-09-04  5:12 UTC (permalink / raw)
  To: openembedded-core

The do_rootfs log contains a number of unsatisfied package
recommendations. At the moment those are only visible when
reviewing the rootfs log.

This patch adds an extra check to surface any unsatisfied
recommendation  as WARNINGS to the build output.

Enable this check with:
ROOTFS_POSTPROCESS_COMMAND += "rootfs_log_check_recommends;"

Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
---
 meta/classes/rootfs-postcommands.bbclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index fb36bad..f6d31a0 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -307,3 +307,15 @@ python write_image_test_data() {
            os.remove(testdata_link)
         os.symlink(os.path.basename(testdata), testdata_link)
 }
+
+# Check for unsatisfied recommendations (RRECOMMENDS)
+python rootfs_log_check_recommends() {
+    log_path = d.expand("${T}/log.do_rootfs")
+    with open(log_path, 'r') as log:
+        for line in log:
+            if 'log_check' in line:
+                continue
+
+            if 'unsatisfied recommendation for' in line:
+                bb.warn('[log_check] %s: %s' % (d.getVar('PN', True), line))
+}
-- 
2.10.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] rootfs-postcommands: add test for unsatisfied RRECOMMENDS
  2017-09-04  5:12 ` [PATCH v2 2/2] rootfs-postcommands: add test for unsatisfied RRECOMMENDS Jose Alarcon
@ 2017-09-04 20:10   ` Khem Raj
  2017-09-04 20:12     ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-09-04 20:10 UTC (permalink / raw)
  To: Jose Alarcon; +Cc: Patches and discussions about the oe-core layer

On Sun, Sep 3, 2017 at 10:12 PM, Jose Alarcon <jose.alarcon@ge.com> wrote:
> The do_rootfs log contains a number of unsatisfied package
> recommendations. At the moment those are only visible when
> reviewing the rootfs log.
>
> This patch adds an extra check to surface any unsatisfied
> recommendation  as WARNINGS to the build output.
>

I think a note is more appropriate here.

> Enable this check with:
> ROOTFS_POSTPROCESS_COMMAND += "rootfs_log_check_recommends;"
>
> Signed-off-by: Jose Alarcon <jose.alarcon@ge.com>
> ---
>  meta/classes/rootfs-postcommands.bbclass | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
> index fb36bad..f6d31a0 100644
> --- a/meta/classes/rootfs-postcommands.bbclass
> +++ b/meta/classes/rootfs-postcommands.bbclass
> @@ -307,3 +307,15 @@ python write_image_test_data() {
>             os.remove(testdata_link)
>          os.symlink(os.path.basename(testdata), testdata_link)
>  }
> +
> +# Check for unsatisfied recommendations (RRECOMMENDS)
> +python rootfs_log_check_recommends() {
> +    log_path = d.expand("${T}/log.do_rootfs")
> +    with open(log_path, 'r') as log:
> +        for line in log:
> +            if 'log_check' in line:
> +                continue
> +
> +            if 'unsatisfied recommendation for' in line:
> +                bb.warn('[log_check] %s: %s' % (d.getVar('PN', True), line))
> +}
> --
> 2.10.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] rootfs-postcommands: add test for unsatisfied RRECOMMENDS
  2017-09-04 20:10   ` Khem Raj
@ 2017-09-04 20:12     ` Burton, Ross
  2017-09-04 20:15       ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2017-09-04 20:12 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 609 bytes --]

On 4 September 2017 at 21:10, Khem Raj <raj.khem@gmail.com> wrote:

> On Sun, Sep 3, 2017 at 10:12 PM, Jose Alarcon <jose.alarcon@ge.com> wrote:
> > The do_rootfs log contains a number of unsatisfied package
> > recommendations. At the moment those are only visible when
> > reviewing the rootfs log.
> >
> > This patch adds an extra check to surface any unsatisfied
> > recommendation  as WARNINGS to the build output.
> >
>
> I think a note is more appropriate here.


As it's opt-in, I agree that warning is relevant.  If the user didn't care
for this, they wouldn't have opted in.

Ross

[-- Attachment #2: Type: text/html, Size: 1054 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] rootfs-postcommands: add test for unsatisfied RRECOMMENDS
  2017-09-04 20:12     ` Burton, Ross
@ 2017-09-04 20:15       ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2017-09-04 20:15 UTC (permalink / raw)
  To: Burton, Ross; +Cc: Patches and discussions about the oe-core layer

On Mon, Sep 4, 2017 at 1:12 PM, Burton, Ross <ross.burton@intel.com> wrote:
> On 4 September 2017 at 21:10, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> On Sun, Sep 3, 2017 at 10:12 PM, Jose Alarcon <jose.alarcon@ge.com> wrote:
>> > The do_rootfs log contains a number of unsatisfied package
>> > recommendations. At the moment those are only visible when
>> > reviewing the rootfs log.
>> >
>> > This patch adds an extra check to surface any unsatisfied
>> > recommendation  as WARNINGS to the build output.
>> >
>>
>> I think a note is more appropriate here.
>
>
> As it's opt-in, I agree that warning is relevant.  If the user didn't care
> for this, they wouldn't have opted in.

yes I forgot that its an opt-in and was thinking its another set of warnings
with opt-in it should be ok.

>
> Ross


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-04 20:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-04  5:12 [PATCH v2 1/2] rootfs-postcommands: remove empty line Jose Alarcon
2017-09-04  5:12 ` [PATCH v2 2/2] rootfs-postcommands: add test for unsatisfied RRECOMMENDS Jose Alarcon
2017-09-04 20:10   ` Khem Raj
2017-09-04 20:12     ` Burton, Ross
2017-09-04 20:15       ` Khem Raj

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.