[oe] [meta-oe][PATCH 06/11] uw-imap: make libpam dependency dependent on DISTRO_FEATURES

Paul Eggleton bluelightning at bluelightning.org
Fri Jan 2 16:39:32 UTC 2015


Martin Jansa wrote:
> On Fri, Jan 02, 2015 at 09:32:01AM +0000, Paul Eggleton wrote:
> > If pam is not in DISTRO_FEATURES, we shouldn't be building it.
> > 
> > Signed-off-by: Paul Eggleton <paul.eggleton <at> linux.intel.com>
> > ---
> >  meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb | 8 ++++++--
> >  1 file changed, 6 insertions(+), 2 deletions(-)
> > 
> > diff --git a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb
b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb
> > index e1a9877..867c2d0 100644
> > --- a/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb
> > +++ b/meta-oe/recipes-devtools/uw-imap/uw-imap_2007f.bb
> >  <at>  <at>  -4,7 +4,7  <at>  <at>  SECTION = "devel"
> >  LICENSE = "Apache-2.0"
> >  LIC_FILES_CHKSUM =
"file://LICENSE.txt;md5=a6a4ddbb7cd2999f6827ee143f6fcd97"
> >  
> > -DEPENDS = "openssl libpam"
> > +DEPENDS = "openssl"
> >  
> >  SRC_URI = "ftp://ftp.cac.washington.edu/imap/imap-${PV}.tar.gz \
> >             file://quote_cctype.patch \
> >  <at>  <at>  -17,13 +17,17  <at>  <at>  SRC_URI[sha256sum] =
"53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520
> >  
> >  S = "${WORKDIR}/imap-${PV}"
> >  
> > +PACKAGECONFIG ??= "${ <at> bb.utils.contains('DISTRO_FEATURES', 'pam',
'pam', '', d)}"
> > +PACKAGECONFIG[pam] = ",,libpam"
> > +
> > +#EXTRA_OEMAKE = "CC='${CC}' ${ <at> bb.utils.contains('PACKAGECONFIG',
'pam', '', 'PAMLDFLAGS=
> CHECKPW=psx', d)}"
> 
> ^ is this needed to prevent autodetecting it from sysroot?

No, that's from an earlier attempt that I forgot to remove. Will fix in v2.

Cheers,
Paul






More information about the Openembedded-devel mailing list