[poky] gnupg strip down
Arno Steffens
star at gmx.li
Tue May 2 03:06:51 PDT 2017
> Gesendet: Freitag, 28. April 2017 um 14:30 Uhr
> Von: "Wold, Saul" <saul.wold at intel.com>
> An: "star at gmx.li" <star at gmx.li>, "Kukkonen, Jussi" <jussi.kukkonen at intel.com>
> Cc: "poky at yoctoproject.org" <poky at yoctoproject.org>, "alexander.kanavin at linux.intel.com" <alexander.kanavin at linux.intel.com>
> Betreff: Re: [poky] gnupg strip down
>
> On Fri, 2017-04-28 at 11:35 +0300, Jussi Kukkonen wrote:
> > On 28 April 2017 at 10:31, Arno Steffens <star at gmx.li> wrote:
> > > I did as advised, created a bbappend for gnupg, like that:
> > >
> > > do_install_append() {
> > > rm ${D}${bindir}/gpgv
> > > rm ${D}${bindir}/gpgsm
> > > rm ${D}${bindir}/gpg-connect-agent
> > > rm ${D}${bindir}/dirmngr-client
> > > rm ${D}${bindir}/gpgscm
> > > rm ${D}${bindir}/watchgnupg
> > > rm ${D}${bindir}/gpgparsemail
> > > rm ${D}${bindir}/gpgconf
> > > rm ${D}${bindir}/dirmngr
> > > rm ${D}${bindir}/gpgtar
> > > rm ${D}${bindir}/gpgv2
> > > rm ${D}${bindir}/gpg-agent
> > > rm ${D}${bindir}/kbxutil
> > > rm ${D}/usr/sbin/*
> > > rmdir ${D}/usr/sbin
> > > rm ${D}/usr/share/gnupg/help*
> > > rm ${D}/usr/libexec/gpg-*
> > > rm ${D}/usr/libexec/scdaemon
> > > rmdir ${D}/usr/libexec
> > > }
> > >
> > > First I get errors, cleaning files and leave directory, but than I
> > > get it, that I have to remove empty folders too. Ok, that could be
> > > done smarter. So just gpg and few small files left.
> > >
> > > But I don't have an idea howto remove the libs, that seems to be
> > > required only by the removed binaries,
> > > like libgnutils.so, libgmp.so - which are rather big ...
> >
> > I don't see evidence that the binaries you mentioned would depend on
> > those libraries (at least with current sysroot behaviour -- it might
> > happen by mistake on older releases). But there is this line in the
> > recipe:
> > RDEPENDS_${PN} = "gnutls"
> >
> > Saul, do you happen to remember why that was added (more than two
> > years ago in poky 31059be9).
> >
> Sorry no, too long ago, but looking at the patch it seems that the
> dirmngr_LDADD had LIBGNUTLS before and after the change so possibly
> that showed it should have been available.
>
> If something has changed with dirmngr than maybe that can be removed.
>
>
> > - Jussi
How would you avoid installation of this gnutls in this case? So what do I have to add in my bbappend (see above)? To my shame: my skill are rather limited in handling this.
More information about the poky
mailing list