[OE-core] [PATCH] package_ipk: allow to specify OPKG_ARGS in local.conf
Vladimir Zapolskiy
vz at mleia.com
Thu Dec 3 05:57:38 UTC 2015
Hi Ross,
On 02.12.2015 11:48, Burton, Ross wrote:
>
> On 2 December 2015 at 04:48, Vladimir Zapolskiy <vz at mleia.com
> <mailto:vz at mleia.com>> wrote:
>
> sh: /tmp/opkg-5jPLag/run-postinsts-UsUtaI/preinst: /bin/sh: bad
> interpreter: Permission denied
>
>
> Whilst the patch is fine, this is worrying as noexec /tmp shouldn't
> break opkg. Maybe opkg should be changed to use something in /var for
> the scripts?
>
here IMHO two cases should be reviewed, build host side execution and
opkg on a target.
On a target /var/lib/opkg/$some_dir should be fine as a default
temporary directory, and it might be nice to have a config option in
/etc/opkg/opkg.conf
On a build host side /var/* may have permission restrictions also, so
* there should be a possibility to accept a user defined tmp dir,
* if /tmp is not good enough as a default opkg directory, probably some
subfolder of ${TOPDIR} should fit, either a fixed one or dynamic
somewhere in a working folder of bb recipe, which calls opkg.
Just my two cents.
With best wishes,
Vladimir
More information about the Openembedded-core
mailing list