From: Denys Dmytriyenko <denys@ti.com>
To: "Franklin S. Cooper Jr" <fcooperjr27@gmail.com>
Cc: meta-arago@arago-project.org, "Franklin S. Cooper Jr" <fcooper@ti.com>
Subject: Re: [PATCH 40/47] meta-toolchain-arago: Substitute dirname statement
Date: Fri, 25 Jan 2013 14:32:53 -0500 [thread overview]
Message-ID: <20130125193253.GE23977@denix.org> (raw)
In-Reply-To: <1359037281-12610-9-git-send-email-fcooper@ti.com>
On Thu, Jan 24, 2013 at 08:21:14AM -0600, Franklin S. Cooper Jr wrote:
> * On 32bit systems, the dirname statement sometimes return an empty string.
> * Replace dirname with several statements that provide the same result.
I know we discussed it before, but I'm still having a hard time comprehending
the issue and the proposed "fix"... Why is it affecting only 32bit systems and
why is it happening only sometimes? What are the other factors? And why
splitting it in several lines instead of one "fixes" the problem?
Have you looked into it some more to understand the actual root cause?
--
Denys
> Signed-off-by: Franklin S. Cooper Jr <fcooper@ti.com>
> ---
> .../recipes-core/meta/meta-toolchain-arago.bb | 9 +++++++--
> 1 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
> index a9d07b6..332fe48 100644
> --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
> +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
> @@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
>
> require recipes-core/meta/meta-toolchain.bb
>
> -PR = "r13"
> +PR = "r14"
>
> SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}"
>
> @@ -59,7 +59,12 @@ toolchain_create_sdk_env_script () {
> create_shell_stub () {
> i=$1
> mv $i $i.real
> - printf "#!/bin/sh\nif [ -n \x22\x24BASH_SOURCE\x22 ]; then\n\t. \x60dirname \x24BASH_SOURCE\x60/../environment-setup\nfi\n" > $i
> + printf "#!/bin/sh\nif [ -n \x22\x24BASH_SOURCE\x22 ]; then\n" > $i
> + printf "\tfilename\x3D\x60echo \x24\x7BBASH_SOURCE\x23\x23\x2A\x2F\x7D\x60\n" >> $i
> + printf "\tdirname\x3D\x24\x7BBASH_SOURCE\x2F\x25\x24filename\x2F\x7D\n" >> $i
> + printf "\t\x2E \x24dirname\x2E\x2E\x2Fenvironment-setup\n" >> $i
> + printf "fi\n" >> $i
> +
> if [ "$2" == "yes" ]; then
> echo 'export PYTHONHOME=$SDK_PATH' >> $i
> echo 'export PYTHONPATH=lib/python2.7' >> $i
> --
> 1.7.0.4
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
>
next prev parent reply other threads:[~2013-01-25 19:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-24 14:21 [PATCH 32/47] task-arago-gst: Remove gst-plugins-ugly Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 33/47] libav: Disable any mp3 or mpeg2 related features Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 34/47] gst-plugins-bad: Disable any feature based on mpeg2 or mp3 Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 35/47] arago.conf: Remove commercial license whitelisting Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 36/47] arago-amsdk-image: use gz compression instead of bz2 Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 37/47] tisdk-image: Package gz file systems by default Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 38/47] tisdk-rootfs-image: Build on top of arago-base-tisdk-image Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 39/47] tisdk-image: Fix missing header in SW manifest Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 40/47] meta-toolchain-arago: Substitute dirname statement Franklin S. Cooper Jr
2013-01-25 19:32 ` Denys Dmytriyenko [this message]
2013-01-25 19:42 ` Cooper Jr., Franklin
2013-01-24 14:21 ` [PATCH 41/47] ti-tisdk-setup: Switch back filesystem file type Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 42/47] Makefile_am-benchmarks: Renamed to Makefile_arm-benchmarks Franklin S. Cooper Jr
2013-01-25 19:38 ` Denys Dmytriyenko
2013-01-25 19:53 ` Cooper Jr., Franklin
2013-01-25 19:56 ` Denys Dmytriyenko
2013-01-24 14:21 ` [PATCH 43/47] Makefile_qml-playground: Renamed to Makefile_quick-playground Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 44/47] busybox: Enable rev utility Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 45/47] qt-tstat: Remove proxy settings Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 46/47] ti-tisdk-setup: Pull latest sources for create-sdcard fix Franklin S. Cooper Jr
2013-01-24 14:21 ` [PATCH 47/47] matrix-gui-apps-git.inc: Update Matrix v2 applications Franklin S. Cooper Jr
2013-01-24 18:29 ` [PATCH 32/47] task-arago-gst: Remove gst-plugins-ugly Denys Dmytriyenko
2013-01-24 18:44 ` Cooper Jr., Franklin
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=20130125193253.GE23977@denix.org \
--to=denys@ti.com \
--cc=fcooper@ti.com \
--cc=fcooperjr27@gmail.com \
--cc=meta-arago@arago-project.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 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.