[Buildroot] [PATCH] package: dropbear: make PATH configurable

Markus Mayer mmayer at broadcom.com
Fri Mar 9 21:29:53 UTC 2018


On 9 March 2018 at 09:10, Christopher McCrory <chrismcc at gmail.com> wrote:
>
> On Thu, Mar 8, 2018 at 4:34 PM, Christopher McCrory <chrismcc at gmail.com>
> wrote:
>
> <snip>
>
>>
>> $ ssh brcmstb
>> # echo $PATH
>> /bin:/usr/bin:/sbin:/usr/sbin
>>
>>
>> ssh -t $host echo $PATH
>>
>
> I thought that would work (forcing a term), but it doesn't
>
> This will do what you want on your local project
>
> $ cat output/local.mk
> DROPBEAR_CONF_OPTS += --enable-foo=bar
>
> define DROPBEAR_CUSTOM_PATH
> $(SED) 's|^\(#define DEFAULT_PATH\).*|\1
> "/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"|'
> $(@D)/options.h
> endef
>
> DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_CUSTOM_PATH

If nobody else wants to make use of this feature, we can certainly
stick it in local.mk. I figured it might be beneficial to others, as
well.

I'll create a version with a safer regexp as suggested by Nicolas, and
then I'll let the maintainers decide if this is worthwhile or not.

Regards,
-Markus

> --
> Christopher McCrory
> To the optimist, the glass is half full.
> To the pessimist, the glass is half empty.
> To the engineer, the glass is twice as big as it needs to be.



More information about the buildroot mailing list