All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer <ps.report@gmx.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/cifs-utils: add missing python dependencies
Date: Tue, 6 Apr 2021 00:06:29 +0200	[thread overview]
Message-ID: <20210406000629.7452cb82@gmx.net> (raw)
In-Reply-To: <CAPi7W80GVd0QkTMQkkqFGfHivg=PFg6XHSwYsbG5bGXp6Uyc7A@mail.gmail.com>

Hello Fabrice,

On Mon, 5 Apr 2021 23:24:43 +0200, Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Hello Peter,
> 
> Le lun. 5 avr. 2021 ? 23:08, Peter Seiderer <ps.report@gmx.net> a ?crit :
> >
> > Hello Fabrice, Yann,
> >
> > On Sat, 3 Apr 2021 16:52:21 +0200, "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:
> >  
> > > Fabrice, All,
> > >
> > > On 2021-04-03 15:23 +0200, Fabrice Fontaine spake thusly:  
> > > > Add missing python dependencies which have been forgotten when bumping
> > > > to version 6.12 in commit b5dede7d1a03ab2b8caa0a8e79b09c8df6c62fe4
> > > >
> > > > Fixes:
> > > >  - http://autobuild.buildroot.org/results/acdbf7c58ec8ae648f8048bc75650dcdcdca6285  
> >
> > This autobuild failure points to an libffi error...., quick search of the last
> > autobuild mails did not show an an cifs-utils error (or I did not find it), which
> > failure is this commit fixing?  
> The build failure was indeed raised on libffi because we tried to
> build libffi without threads.
> This build failure is raised because cifs-utils selected python3 if
> python was not selected even if threads were not available.
> However, as python depends on threads, all python modules (such as
> python-cffi) assume that threads are available resulting in the above
> failure on libffi.

....o.k. makes sense...

> >  
> > > >
> > > > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> > > > ---
> > > >  package/cifs-utils/Config.in | 7 +++++++
> > > >  1 file changed, 7 insertions(+)
> > > >
> > > > diff --git a/package/cifs-utils/Config.in b/package/cifs-utils/Config.in
> > > > index 0e61243de4..55829e3dc2 100644
> > > > --- a/package/cifs-utils/Config.in
> > > > +++ b/package/cifs-utils/Config.in
> > > > @@ -18,9 +18,16 @@ if BR2_PACKAGE_CIFS_UTILS
> > > >
> > > >  config BR2_PACKAGE_CIFS_UTILS_SMBTOOLS
> > > >     bool "smbtools"
> > > > +   depends on BR2_USE_WCHAR # python
> > > > +   depends on BR2_TOOLCHAIN_HAS_THREADS # python
> > > > +   depends on !BR2_STATIC_LIBS # python  
> > >
> > > We select python3, not python, so the added dependencies are because of
> > > python3, not python.
> > >
> > > Comments fixed accordingly, and patch applied to master, thanks.
> > >
> > > Regards,
> > > Yann E. MORIN.
> > >  
> > > >     select BR2_PACKAGE_PYTHON3 if !BR2_PACKAGE_PYTHON # runtime  
> >
> > If this commit is fixing an error (and there is a build time dependency on
> > python) than, this comment 'runtime' is no longer valid...  
> The comment is still valid, python is a runtime dependency. You could
> drop this select (and the python dependencies) and cifs-utils will
> build perfectly fine.
> However, you can't select python (or any other options) without
> checking that their needed dependencies are fulfilled.

Yup, got it ;-), thanks for insight (and for fixing it)!

Regards,
Peter

> >
> > Regards,
> > Peter
> >
> >  
> > > >     help
> > > >       Install the smb tools smbinfo and smb2-quota (python
> > > >       implementations).
> > > >
> > > > +comment "smbtools needs a toolchain w/ wchar, threads, dynamic library"
> > > > +   depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
> > > > +           BR2_STATIC_LIBS
> > > > +
> > > >  endif
> > > > --
> > > > 2.30.2
> > > >
> > > > _______________________________________________
> > > > buildroot mailing list
> > > > buildroot at busybox.net
> > > > http://lists.busybox.net/mailman/listinfo/buildroot  
> > >  
> >  
> Best Regards,
> 
> Fabrice
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

      reply	other threads:[~2021-04-05 22:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-03 13:23 [Buildroot] [PATCH 1/1] package/cifs-utils: add missing python dependencies Fabrice Fontaine
2021-04-03 14:52 ` Yann E. MORIN
2021-04-05 21:08   ` Peter Seiderer
2021-04-05 21:24     ` Fabrice Fontaine
2021-04-05 22:06       ` Peter Seiderer [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=20210406000629.7452cb82@gmx.net \
    --to=ps.report@gmx.net \
    --cc=buildroot@busybox.net \
    /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.