All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Ohly <patrick.ohly@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] insane.bbclass: add indirect-build-deps QA check
Date: Wed, 17 Jun 2015 13:52:41 +0200	[thread overview]
Message-ID: <1434541961.22011.91.camel@intel.com> (raw)
In-Reply-To: <1434536714-22457-2-git-send-email-patrick.ohly@intel.com>

On Wed, 2015-06-17 at 12:25 +0200, Patrick Ohly wrote:
> However, there are at least two false positives left in the current code:
> * aliases for recipes via PROVIDES
> * unnecessarily linking against libs which are not really used
> 
> See the TODOs in the code.

Actually, I had written more about that which didn't make it into the
posted patch. Here's the more complete comment:


                        # TODO: check PROVIDES of the rdepend recipe to see whether that is
                        # listed in DEPENDS. Example: "smack" instead of "userspace-smack" in
                        # https://github.com/01org/meta-intel-iot-security/blob/master/meta-security-smack/recipes-extended/libpam/libpam_%25.bbappend which is an alias for
                        # https://github.com/01org/meta-intel-iot-security/blob/master/meta-security-smack/recipes-security/smack/smack-userspace_git.bb

                        # TODO: pam-plugin-cracklib/lib/security/pam_cracklib.so is unecessarily
                        # linked against libz.so.1, probably because of link flags from libcrack,
                        # which is what libpam calls and (correctly) lists as DEPENDS.
                        # Because libz is not listed as DEPENDS, we warn about it here
                        # unnecessarily. This could be fairly common; not sure how to detect
                        # it though, short of comparing symbol tables.


> +                        # TODO: check PROVIDES of the rdepend recipe to see whether that is
> +                        # listed in DEPENDS.
> +                        error_msg = "%s rdepends on %s, but it only an indirect build dependency?" % (pkg, rdepend)
> +                        sane = package_qa_handle_error("indirect-build-deps", error_msg, d)

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.





      reply	other threads:[~2015-06-17 11:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-17 10:25 indirect dependencies Patrick Ohly
2015-06-17 10:25 ` [PATCH] insane.bbclass: add indirect-build-deps QA check Patrick Ohly
2015-06-17 11:52   ` Patrick Ohly [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1434541961.22011.91.camel@intel.com \
    --to=patrick.ohly@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.