All of lore.kernel.org
 help / color / mirror / Atom feed
* curl package config
@ 2018-09-06 18:00 Antonio Santagiuliana
  2018-09-06 19:10 ` Erik Botö
  0 siblings, 1 reply; 4+ messages in thread
From: Antonio Santagiuliana @ 2018-09-06 18:00 UTC (permalink / raw)
  To: yocto

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

Hello
I am trying to enable the SMB protocol when building curl library by Yocto
the original recipe is under meta/recipes-support/curl

in my image's local.conf I have
IMAGE_INSTALL_append += "curl-dev"

curl is built correctly, but SMB is disabled

So I tried to add a .bbappend file with same name as the recipe's name,
with this line only :
PACKAGECONFIG = "--enable-smb"

but I still have SMB disaabled on curl.

Which is the right way to enable it with PACKAGECONFIG?
or another way ?
thank you

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: curl package config
  2018-09-06 18:00 curl package config Antonio Santagiuliana
@ 2018-09-06 19:10 ` Erik Botö
  2018-09-06 21:00   ` Andre McCurdy
  0 siblings, 1 reply; 4+ messages in thread
From: Erik Botö @ 2018-09-06 19:10 UTC (permalink / raw)
  To: Antonio Santagiuliana; +Cc: yocto

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

Hi,

On Thu, Sep 6, 2018 at 8:01 PM Antonio Santagiuliana <
santantonioswap@gmail.com> wrote:

> Hello
> I am trying to enable the SMB protocol when building curl library by Yocto
> the original recipe is under meta/recipes-support/curl
>
> in my image's local.conf I have
> IMAGE_INSTALL_append += "curl-dev"
>
> curl is built correctly, but SMB is disabled
>
> So I tried to add a .bbappend file with same name as the recipe's name,
> with this line only :
> PACKAGECONFIG = "--enable-smb"
>
> but I still have SMB disaabled on curl.
>
> Which is the right way to enable it with PACKAGECONFIG?
> or another way ?
>

You just want to add "smb" to the variable PACKAGECONFIG in the bbappend.
But since the original recipe uses ??= to assign the default PACKAGECONFIG
value you probably want to either redefine the whole variable as the
original recipe, but adding "smb"
PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls
libidn proxy threaded-resolver verbose zlib smb"

I think it could work if you use _append as well, since I think that's
added after the ??= operator is evaluated. So you can also try (note the
space before smb):
PACKAGECONFIG_append = " smb"

Cheers,
Erik

thank you
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: curl package config
  2018-09-06 19:10 ` Erik Botö
@ 2018-09-06 21:00   ` Andre McCurdy
  2018-09-07  9:37     ` Antonio Santagiuliana
  0 siblings, 1 reply; 4+ messages in thread
From: Andre McCurdy @ 2018-09-06 21:00 UTC (permalink / raw)
  To: Erik Botö; +Cc: Yocto discussion list

On Thu, Sep 6, 2018 at 12:10 PM, Erik Botö <erik.boto@gmail.com> wrote:
> Hi,
>
> On Thu, Sep 6, 2018 at 8:01 PM Antonio Santagiuliana
> <santantonioswap@gmail.com> wrote:
>>
>> Hello
>> I am trying to enable the SMB protocol when building curl library by Yocto
>> the original recipe is under meta/recipes-support/curl
>>
>> in my image's local.conf I have
>> IMAGE_INSTALL_append += "curl-dev"
>>
>> curl is built correctly, but SMB is disabled
>>
>> So I tried to add a .bbappend file with same name as the recipe's name,
>> with this line only :
>> PACKAGECONFIG = "--enable-smb"

This is just the wrong syntax. PACKAGECONFIG is not a list of
configure options. It's a list of "features" to enable, which are then
translated into appropriate configure options (and dependencies) based
on rules defined in the recipe. Maybe look through some existing
recipes in oe-core to get some idea of how the process works.

>> but I still have SMB disaabled on curl.
>>
>> Which is the right way to enable it with PACKAGECONFIG?
>> or another way ?
>
>
> You just want to add "smb" to the variable PACKAGECONFIG in the bbappend.
> But since the original recipe uses ??= to assign the default PACKAGECONFIG
> value you probably want to either redefine the whole variable as the
> original recipe, but adding "smb"
> PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls
> libidn proxy threaded-resolver verbose zlib smb"
>
> I think it could work if you use _append as well, since I think that's added
> after the ??= operator is evaluated. So you can also try (note the space
> before smb):
> PACKAGECONFIG_append = " smb"

Using _append like this to add values to PACKAGECONFIG is the
recommended way (ie don't try to use +=) for the reasons mentioned.

Redefining the entire variable isn't necessary or recommended (it
requires more maintenance to keep the .bbappend value in sync with any
changes in the base recipe).


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: curl package config
  2018-09-06 21:00   ` Andre McCurdy
@ 2018-09-07  9:37     ` Antonio Santagiuliana
  0 siblings, 0 replies; 4+ messages in thread
From: Antonio Santagiuliana @ 2018-09-07  9:37 UTC (permalink / raw)
  To: armccurdy; +Cc: yocto

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

thank to both of you, it worked with the .bbappend file placed in the
folder of one of my layers and with
PACKAGECONFIG_append = " smb"




On Thu, Sep 6, 2018 at 10:00 PM Andre McCurdy <armccurdy@gmail.com> wrote:

> On Thu, Sep 6, 2018 at 12:10 PM, Erik Botö <erik.boto@gmail.com> wrote:
> > Hi,
> >
> > On Thu, Sep 6, 2018 at 8:01 PM Antonio Santagiuliana
> > <santantonioswap@gmail.com> wrote:
> >>
> >> Hello
> >> I am trying to enable the SMB protocol when building curl library by
> Yocto
> >> the original recipe is under meta/recipes-support/curl
> >>
> >> in my image's local.conf I have
> >> IMAGE_INSTALL_append += "curl-dev"
> >>
> >> curl is built correctly, but SMB is disabled
> >>
> >> So I tried to add a .bbappend file with same name as the recipe's name,
> >> with this line only :
> >> PACKAGECONFIG = "--enable-smb"
>
> This is just the wrong syntax. PACKAGECONFIG is not a list of
> configure options. It's a list of "features" to enable, which are then
> translated into appropriate configure options (and dependencies) based
> on rules defined in the recipe. Maybe look through some existing
> recipes in oe-core to get some idea of how the process works.
>
> >> but I still have SMB disaabled on curl.
> >>
> >> Which is the right way to enable it with PACKAGECONFIG?
> >> or another way ?
> >
> >
> > You just want to add "smb" to the variable PACKAGECONFIG in the bbappend.
> > But since the original recipe uses ??= to assign the default
> PACKAGECONFIG
> > value you probably want to either redefine the whole variable as the
> > original recipe, but adding "smb"
> > PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} gnutls
> > libidn proxy threaded-resolver verbose zlib smb"
> >
> > I think it could work if you use _append as well, since I think that's
> added
> > after the ??= operator is evaluated. So you can also try (note the space
> > before smb):
> > PACKAGECONFIG_append = " smb"
>
> Using _append like this to add values to PACKAGECONFIG is the
> recommended way (ie don't try to use +=) for the reasons mentioned.
>
> Redefining the entire variable isn't necessary or recommended (it
> requires more maintenance to keep the .bbappend value in sync with any
> changes in the base recipe).
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-07  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06 18:00 curl package config Antonio Santagiuliana
2018-09-06 19:10 ` Erik Botö
2018-09-06 21:00   ` Andre McCurdy
2018-09-07  9:37     ` Antonio Santagiuliana

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.