From: Vladimir Zapolskiy <vz@mleia.com>
To: openembedded-devel@lists.openembedded.org,
Richard Purdie <richard.purdie@linuxfoundation.org>
Subject: Re: [PATCH] package_ipk: allow to specify OPKG_ARGS in local.conf
Date: Wed, 02 Dec 2015 06:50:59 +0200 [thread overview]
Message-ID: <565E78B3.8040605@mleia.com> (raw)
In-Reply-To: <1449031273-13292-1-git-send-email-vz@mleia.com>
I think this is a wrong list, resent the change for review to
openembedded-core.
With best wishes,
Vladimir
On 02.12.2015 06:41, Vladimir Zapolskiy wrote:
> If user specific parameters to opkg are set in local.conf, they are
> rewritten in package_ipk.bbclass and ignored, instead append
> package_ipk specific arguments to the user defined ones.
>
> The change is needed, if a user has to pass an alternative path to a
> temporary directory for opkg, e.g.
>
> OPKG_ARGS = "--tmp-dir=${TOPDIR}/tmp-opkg"
>
> The default /tmp directory may be unusable for do_rootfs task, for
> example if there is no enough space or /tmp is mounted with noexec
> mount option, then an alternative path allows to complete do_rootfs
> and fix the problems like this:
>
> ERROR: Unable to install packages.
> ...
> sh: /tmp/opkg-5jPLag/run-postinsts-UsUtaI/preinst: /bin/sh: bad interpreter: Permission denied
> sh: /tmp/opkg-5jPLag/base-files-4hFwQS/preinst: /bin/sh: bad interpreter: Permission denied
> sh: /tmp/opkg-5jPLag/run-postinsts-UsUtaI/preinst: /bin/sh: bad interpreter: Permission denied
> sh: /tmp/opkg-5jPLag/busybox-syslog-sJmfbw/preinst: /bin/sh: bad interpreter: Permission denied
> ...
>
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
> ---
> meta/classes/package_ipk.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
> index 4dd7a7e..51bee28 100644
> --- a/meta/classes/package_ipk.bbclass
> +++ b/meta/classes/package_ipk.bbclass
> @@ -10,7 +10,7 @@ PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
> # Program to be used to build opkg packages
> OPKGBUILDCMD ??= "opkg-build"
>
> -OPKG_ARGS = "--force_postinstall --prefer-arch-to-version"
> +OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
> OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS", True) == "1"]}"
> OPKG_ARGS += "${@['', '--add-exclude ' + ' --add-exclude '.join((d.getVar('PACKAGE_EXCLUDE', True) or "").split())][(d.getVar("PACKAGE_EXCLUDE", True) or "") != ""]}"
>
>
prev parent reply other threads:[~2015-12-02 4:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 4:41 [PATCH] package_ipk: allow to specify OPKG_ARGS in local.conf Vladimir Zapolskiy
2015-12-02 4:50 ` Vladimir Zapolskiy [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=565E78B3.8040605@mleia.com \
--to=vz@mleia.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox