* [PATCH v2] TI tools - make EULA unpack work when /opt is writeable
@ 2010-08-28 9:07 Gary Thomas
2010-10-09 14:52 ` Gary Thomas
0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2010-08-28 9:07 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 709 bytes --]
This patch addresses the problem where the TI tools that need
the EULA unpack into the wrong place if the user has write
permission in /opt. The current behaviour of expecting the
unpacker to fall back to the $HOME environment variable should
not be relied on. The patch changes the unpack step to use
the --prefix= option which will always work.
Version 2:
* Update patch to be against org.openembedded.dev branch
* Incorporate full description into patch
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
[-- Attachment #2: 0001-Make-EULA-unpacking-work-when-opt-is-writeable.patch --]
[-- Type: text/plain, Size: 5060 bytes --]
From a5f48f6984c2f075493ca3b44b437ab9aa94ca02 Mon Sep 17 00:00:00 2001
From: Gary Thomas <gary@mlbassoc.com>
Date: Sat, 28 Aug 2010 02:55:54 -0600
Subject: [PATCH v2] Make TI EULA unpack work when /opt is writeable
ti-eula-unpack.inc: Use --prefix= to specify install path
ti-codecs-omap3530_1.00.01.bb:
ti-codecs-omap3530_1.01.00.bb:
ti-dspbios.inc:
ti-edma3lld.inc:
ti-xdctools.inc: Define TI_BIN_UNPK_WDEXT for proper unpacking
This patch addresses the problem where the TI tools that need
the EULA unpack into the wrong place if the user has write
permission in /opt. The current behaviour of expecting the
unpacker to fall back to the $HOME environment variable should
not be relied on. The patch changes the unpack step to use
the --prefix= option which will always work.
Note: only tested with these [recent] packages:
ti-cgt6x-1_6_1_9-r4
ti-cgt6x-1_6_1_14-r4
ti-codecs-omap3530-1_1_01_00-r2
ti-dspbios-5_41_04_18-r1
ti-edma3lld-01_11_00_03-r0
ti-xdctools-3_16_01_27-r2
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
---
recipes/ti/ti-codecs-omap3530_1.00.01.bb | 1 +
recipes/ti/ti-codecs-omap3530_1.01.00.bb | 1 +
recipes/ti/ti-dspbios.inc | 1 +
recipes/ti/ti-edma3lld.inc | 1 +
recipes/ti/ti-eula-unpack.inc | 5 ++++-
recipes/ti/ti-xdctools.inc | 1 +
6 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/recipes/ti/ti-codecs-omap3530_1.00.01.bb b/recipes/ti/ti-codecs-omap3530_1.00.01.bb
index d6d871b..37d2679 100644
--- a/recipes/ti/ti-codecs-omap3530_1.00.01.bb
+++ b/recipes/ti/ti-codecs-omap3530_1.00.01.bb
@@ -26,6 +26,7 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dv
BINFILE = "cs1omap3530_setuplinux_1_00_01-44.bin"
TI_BIN_UNPK_CMDS = "Y:Y: qY:workdir"
+TI_BIN_UNPK_WDEXT="/dvsdk/dvsdk_3_00_02_44"
DEPENDS = "ti-cgt6x ti-xdctools ti-dspbios ti-codec-engine ti-linuxutils"
diff --git a/recipes/ti/ti-codecs-omap3530_1.01.00.bb b/recipes/ti/ti-codecs-omap3530_1.01.00.bb
index 57bc7c4..e113883 100644
--- a/recipes/ti/ti-codecs-omap3530_1.01.00.bb
+++ b/recipes/ti/ti-codecs-omap3530_1.01.00.bb
@@ -26,6 +26,7 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_tii/dvsdk/dvsdk_3_0
BINFILE = "cs1omap3530_setupLinux_1_01_00-prebuilt-dvsdk3.01.00.10.bin"
TI_BIN_UNPK_CMDS = "Y:Y: qY:workdir"
+TI_BIN_UNPK_WDEXT="/dvsdk/dvsdk_3_01_00_10"
DEPENDS = "ti-cgt6x ti-xdctools ti-dspbios ti-codec-engine ti-linuxutils"
diff --git a/recipes/ti/ti-dspbios.inc b/recipes/ti/ti-dspbios.inc
index bd7bcc4..df71da1 100644
--- a/recipes/ti/ti-dspbios.inc
+++ b/recipes/ti/ti-dspbios.inc
@@ -15,6 +15,7 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bi
BINFILE="bios_setuplinux_${PV}.bin"
TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
+TI_BIN_UNPK_WDEXT="/bios_${PV}"
do_install() {
install -d ${D}${BIOS_INSTALL_DIR_RECIPE}
diff --git a/recipes/ti/ti-edma3lld.inc b/recipes/ti/ti-edma3lld.inc
index 94c0cff..344c357 100644
--- a/recipes/ti/ti-edma3lld.inc
+++ b/recipes/ti/ti-edma3lld.inc
@@ -13,6 +13,7 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ed
BINFILE="EDMA3_LLD_setuplinux_${PV}.bin"
TI_BIN_UNPK_CMDS="Y:workdir"
+TI_BIN_UNPK_WDEXT="/edma3_lld_${PV}"
do_install() {
install -d ${D}${EDMA3_LLD_INSTALL_DIR_RECIPE}
diff --git a/recipes/ti/ti-eula-unpack.inc b/recipes/ti/ti-eula-unpack.inc
index a812a85..d215b6c 100644
--- a/recipes/ti/ti-eula-unpack.inc
+++ b/recipes/ti/ti-eula-unpack.inc
@@ -30,6 +30,9 @@ python ti_bin_do_unpack() {
workdir = bb.data.getVar('WORKDIR', localdata)
workdir = bb.data.expand(workdir, localdata)
os.chdir(workdir)
+ wdext = bb.data.getVar('TI_BIN_UNPK_WDEXT', localdata)
+ wdext = bb.data.expand(wdext, localdata)
+ wdext = workdir + '/' + wdext
# Get unpack commands
cmd_string = bb.data.getVar('TI_BIN_UNPK_CMDS', localdata)
@@ -39,7 +42,7 @@ python ti_bin_do_unpack() {
os.chmod(binfile, 0755)
# Run the InstallJammer binary and accept the EULA
- filename = "HOME=%s ./%s --mode console" % (workdir, binfile)
+ filename = "HOME=%s ./%s --mode console --prefix %s" % (workdir, binfile, wdext)
# Test executable by printing installer version or help screen (--version currently broken for some installers)
# - this is currently broken in some IJ installers - comment out for now
diff --git a/recipes/ti/ti-xdctools.inc b/recipes/ti/ti-xdctools.inc
index 4b451cf..c078e7c 100644
--- a/recipes/ti/ti-xdctools.inc
+++ b/recipes/ti/ti-xdctools.inc
@@ -15,6 +15,7 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rt
BINFILE="xdctools_setuplinux_${PV}.bin"
TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
+TI_BIN_UNPK_WDEXT="/xdctools_${PV}"
do_install() {
install -d ${D}${XDC_INSTALL_DIR_RECIPE}
--
1.6.2.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2] TI tools - make EULA unpack work when /opt is writeable
2010-08-28 9:07 [PATCH v2] TI tools - make EULA unpack work when /opt is writeable Gary Thomas
@ 2010-10-09 14:52 ` Gary Thomas
2010-11-06 14:11 ` Stefan Schmidt
0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2010-10-09 14:52 UTC (permalink / raw)
To: openembedded-devel
On 08/28/2010 03:07 AM, Gary Thomas wrote:
> This patch addresses the problem where the TI tools that need
> the EULA unpack into the wrong place if the user has write
> permission in /opt. The current behaviour of expecting the
> unpacker to fall back to the $HOME environment variable should
> not be relied on. The patch changes the unpack step to use
> the --prefix= option which will always work.
>
> Version 2:
> * Update patch to be against org.openembedded.dev branch
> * Incorporate full description into patch
What about this patch? It's been nearly 6 weeks and no discussion
or anything.
The problem persists in today's tree.
n.b. there was a discussion about automatic application of a patch
if it goes more than two weeks without objection. What about that??
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] TI tools - make EULA unpack work when /opt is writeable
2010-10-09 14:52 ` Gary Thomas
@ 2010-11-06 14:11 ` Stefan Schmidt
2010-11-07 9:05 ` Koen Kooi
2010-11-16 23:31 ` Maupin, Chase
0 siblings, 2 replies; 7+ messages in thread
From: Stefan Schmidt @ 2010-11-06 14:11 UTC (permalink / raw)
To: openembedded-devel
Hello.
On Sat, 2010-10-09 at 08:52, Gary Thomas wrote:
> On 08/28/2010 03:07 AM, Gary Thomas wrote:
> >This patch addresses the problem where the TI tools that need
> >the EULA unpack into the wrong place if the user has write
> >permission in /opt. The current behaviour of expecting the
> >unpacker to fall back to the $HOME environment variable should
> >not be relied on. The patch changes the unpack step to use
> >the --prefix= option which will always work.
> >
> >Version 2:
> >* Update patch to be against org.openembedded.dev branch
> >* Incorporate full description into patch
>
> What about this patch? It's been nearly 6 weeks and no discussion
> or anything.
>
> The problem persists in today's tree.
Can we have a comment form the TI devs here?
regards
Stefan Schmidt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] TI tools - make EULA unpack work when /opt is writeable
2010-11-06 14:11 ` Stefan Schmidt
@ 2010-11-07 9:05 ` Koen Kooi
2010-11-07 11:25 ` Stefan Schmidt
2010-11-15 8:46 ` Frans Meulenbroeks
2010-11-16 23:31 ` Maupin, Chase
1 sibling, 2 replies; 7+ messages in thread
From: Koen Kooi @ 2010-11-07 9:05 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06-11-10 15:11, Stefan Schmidt wrote:
> Hello.
>
> On Sat, 2010-10-09 at 08:52, Gary Thomas wrote:
>> On 08/28/2010 03:07 AM, Gary Thomas wrote:
>>> This patch addresses the problem where the TI tools that need
>>> the EULA unpack into the wrong place if the user has write
>>> permission in /opt. The current behaviour of expecting the
>>> unpacker to fall back to the $HOME environment variable should
>>> not be relied on. The patch changes the unpack step to use
>>> the --prefix= option which will always work.
>>>
>>> Version 2:
>>> * Update patch to be against org.openembedded.dev branch
>>> * Incorporate full description into patch
>>
>> What about this patch? It's been nearly 6 weeks and no discussion
>> or anything.
>>
>> The problem persists in today's tree.
>
> Can we have a comment form the TI devs here?
I'm against automatic application of patches.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFM1mvQMkyGM64RGpERAjceAJ9CKgqOlknrKWrHs0uX45LbdWFlwwCeMvXy
UCksWN+a/+jo4uNLQOu+rI0=
=SDiM
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] TI tools - make EULA unpack work when /opt is writeable
2010-11-07 9:05 ` Koen Kooi
@ 2010-11-07 11:25 ` Stefan Schmidt
2010-11-15 8:46 ` Frans Meulenbroeks
1 sibling, 0 replies; 7+ messages in thread
From: Stefan Schmidt @ 2010-11-07 11:25 UTC (permalink / raw)
To: openembedded-devel
Hello.
On Sun, 2010-11-07 at 10:05, Koen Kooi wrote:
>
> On 06-11-10 15:11, Stefan Schmidt wrote:
> > Hello.
> >
> > On Sat, 2010-10-09 at 08:52, Gary Thomas wrote:
> >> On 08/28/2010 03:07 AM, Gary Thomas wrote:
> >>> This patch addresses the problem where the TI tools that need
> >>> the EULA unpack into the wrong place if the user has write
> >>> permission in /opt. The current behaviour of expecting the
> >>> unpacker to fall back to the $HOME environment variable should
> >>> not be relied on. The patch changes the unpack step to use
> >>> the --prefix= option which will always work.
> >>>
> >>> Version 2:
> >>> * Update patch to be against org.openembedded.dev branch
> >>> * Incorporate full description into patch
> >>
> >> What about this patch? It's been nearly 6 weeks and no discussion
> >> or anything.
> >>
> >> The problem persists in today's tree.
> >
> > Can we have a comment form the TI devs here?
>
> I'm against automatic application of patches.
Interesting side note, but I was looking for a comment for the original issue.
Writeable /opt and the problem the TI recipes have with this.
regards
Stefan Schmidt
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] TI tools - make EULA unpack work when /opt is writeable
2010-11-07 9:05 ` Koen Kooi
2010-11-07 11:25 ` Stefan Schmidt
@ 2010-11-15 8:46 ` Frans Meulenbroeks
1 sibling, 0 replies; 7+ messages in thread
From: Frans Meulenbroeks @ 2010-11-15 8:46 UTC (permalink / raw)
To: openembedded-devel
2010/11/7 Koen Kooi <k.kooi@student.utwente.nl>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 06-11-10 15:11, Stefan Schmidt wrote:
>> Hello.
>>
>> On Sat, 2010-10-09 at 08:52, Gary Thomas wrote:
>>> On 08/28/2010 03:07 AM, Gary Thomas wrote:
>>>> This patch addresses the problem where the TI tools that need
>>>> the EULA unpack into the wrong place if the user has write
>>>> permission in /opt. The current behaviour of expecting the
>>>> unpacker to fall back to the $HOME environment variable should
>>>> not be relied on. The patch changes the unpack step to use
>>>> the --prefix= option which will always work.
>>>>
>>>> Version 2:
>>>> * Update patch to be against org.openembedded.dev branch
>>>> * Incorporate full description into patch
>>>
>>> What about this patch? It's been nearly 6 weeks and no discussion
>>> or anything.
>>>
>>> The problem persists in today's tree.
>>
>> Can we have a comment form the TI devs here?
>
> I'm against automatic application of patches.
To me this clearly indicates the current problem with openembedded.
Apparenlty some people do not care on properly maintaining their
recipes, addressing issues and patches raised by the community,
reviewing and commenting on them.
But of course there is always time to grunt and whine and bash if
others with less knowledge try to give attention to those patches.
Especially from a company like TI I had expected a somewhat more
professional attitude wrt patches and improving their recipes.
I guess is that this is one of the areas where we as OE community
loose when compared to yocto.
Frans
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2] TI tools - make EULA unpack work when /opt is writeable
2010-11-06 14:11 ` Stefan Schmidt
2010-11-07 9:05 ` Koen Kooi
@ 2010-11-16 23:31 ` Maupin, Chase
1 sibling, 0 replies; 7+ messages in thread
From: Maupin, Chase @ 2010-11-16 23:31 UTC (permalink / raw)
To: openembedded-devel@lists.openembedded.org
> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of
> Stefan Schmidt
> Sent: Saturday, November 06, 2010 9:11 AM
> To: openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [PATCH v2] TI tools - make EULA unpack work when /opt is
> writeable
>
> Hello.
>
> On Sat, 2010-10-09 at 08:52, Gary Thomas wrote:
> > On 08/28/2010 03:07 AM, Gary Thomas wrote:
> > >This patch addresses the problem where the TI tools that need
> > >the EULA unpack into the wrong place if the user has write
> > >permission in /opt. The current behaviour of expecting the
> > >unpacker to fall back to the $HOME environment variable should
> > >not be relied on. The patch changes the unpack step to use
> > >the --prefix= option which will always work.
> > >
> > >Version 2:
> > >* Update patch to be against org.openembedded.dev branch
> > >* Incorporate full description into patch
> >
> > What about this patch? It's been nearly 6 weeks and no discussion
> > or anything.
> >
> > The problem persists in today's tree.
>
> Can we have a comment form the TI devs here?
This looks OK to me. Only comment I have is whether the '/' is needed in the following line with the TI_BIN_UNPK_WDEXT option already add a '/'. I guess while not technically necessary it would keep this code working if someone didn't define TI_BIN_UNPK_WDEXT with a leading '/'.
wdext = workdir + '/' + wdext
Sorry for the previous lack of response. Thank you for the patch and fixing this issue.
>
> regards
> Stefan Schmidt
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-16 23:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-28 9:07 [PATCH v2] TI tools - make EULA unpack work when /opt is writeable Gary Thomas
2010-10-09 14:52 ` Gary Thomas
2010-11-06 14:11 ` Stefan Schmidt
2010-11-07 9:05 ` Koen Kooi
2010-11-07 11:25 ` Stefan Schmidt
2010-11-15 8:46 ` Frans Meulenbroeks
2010-11-16 23:31 ` Maupin, Chase
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.