All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jussi Kukkonen <jussi.kukkonen@intel.com>
To: Arno Steffens <star@gmx.li>
Cc: "poky@yoctoproject.org" <poky@yoctoproject.org>
Subject: Re: gnupg strip down
Date: Tue, 2 May 2017 13:38:19 +0300	[thread overview]
Message-ID: <CAHiDW_FdSg3_Us8-U=Rogo9vMBa+vTVorOHSK2e3wuABpVNN9w@mail.gmail.com> (raw)
In-Reply-To: <trinity-eae6d646-630d-4bb9-8464-6b557d1fd33e-1493719611703@3capp-gmx-bs49>

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

On 2 May 2017 at 13:06, Arno Steffens <star@gmx.li> wrote:

>
>
> > Gesendet: Freitag, 28. April 2017 um 14:30 Uhr
> > Von: "Wold, Saul" <saul.wold@intel.com>
> > An: "star@gmx.li" <star@gmx.li>, "Kukkonen, Jussi" <
> jussi.kukkonen@intel.com>
> > Cc: "poky@yoctoproject.org" <poky@yoctoproject.org>, "
> alexander.kanavin@linux.intel.com" <alexander.kanavin@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@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.
>
> 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.
>

The runtime dependency on gnutls can be removed in the original recipe file
by just removing the RDEPENDS_{PN} line. If you want to do it in a bbappend
then this should work:
   RDEPENDS_${PN}_remove = "gnutls"
That should lead to gnutls not being automatically added to the image when
gnupg is added.

I think this change won't break anything but there's only one way to find
out...

Jussi

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

  reply	other threads:[~2017-05-02 10:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-25 12:57 gnupg strip down star
2017-04-25 13:10 ` Alexander Kanavin
2017-04-26  5:42   ` Arno Steffens
2017-04-26 10:54     ` Alexander Kanavin
2017-04-26 12:52       ` Arno Steffens
2017-04-26 13:18         ` Alexander Kanavin
2017-04-28  7:31           ` Arno Steffens
2017-04-28  8:35             ` Jussi Kukkonen
2017-04-28 12:30               ` Wold, Saul
2017-05-02 10:06                 ` Arno Steffens
2017-05-02 10:38                   ` Jussi Kukkonen [this message]
2017-05-02 12:14                     ` Arno Steffens
2017-04-28 10:06             ` Anders Darander
2017-05-02  9:59               ` Arno Steffens
2017-05-02 13:30                 ` Anders Darander

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='CAHiDW_FdSg3_Us8-U=Rogo9vMBa+vTVorOHSK2e3wuABpVNN9w@mail.gmail.com' \
    --to=jussi.kukkonen@intel.com \
    --cc=poky@yoctoproject.org \
    --cc=star@gmx.li \
    /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.