From patchwork Fri Sep 23 20:46:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: ti_cgt_c6000_6.1.17_setup_linux_x86.bin error while installing ti-codec-engine Date: Fri, 23 Sep 2011 20:46:52 -0000 From: Michael Poole X-Patchwork-Id: 12065 Message-Id: To: openembedded-devel@lists.openembedded.org On Fri, Sep 23, 2011 at 6:47 AM, Gary Thomas wrote: > Check to make sure that you don't have write permission to /opt > If you have write permission in the directory /opt, the installer > fails to put the tools where they belong in your OE build. Is it generally known that this limitation is due to a bug in ti-eula-unpack.inc? (Python's print automatically adds a newline, which the code's author apparently did not expect.) My local repo has these changes to allow in-tree installs by users with write access to /opt; please pardon Gmail's mangling of leading whitespace: diff --git a/recipes/powervr-drivers/libgles-omap3.inc b/recipes/powervr-driv index ab4b248..5acc4da 100644 --- a/recipes/powervr-drivers/libgles-omap3.inc +++ b/recipes/powervr-drivers/libgles-omap3.inc @@ -19,7 +19,8 @@ SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sd S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}" # Logic to unpack installjammer file -TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" +TI_BIN_UNPK_CMDS="Y:workdir" +TI_BIN_UNPK_WDEXT = "/Graphics_SDK_${SGXPV}" require ../ti/ti-eula-unpack.inc BINLOCATION ?= "${S}/gfx_rel" diff --git a/recipes/powervr-drivers/omap3-sgx-modules_1.6.16.3977.bb b/recip index 216b3ae..be4b7a1 100644 --- a/recipes/powervr-drivers/omap3-sgx-modules_1.6.16.3977.bb +++ b/recipes/powervr-drivers/omap3-sgx-modules_1.6.16.3977.bb @@ -5,7 +5,8 @@ LICENSE = "GPLv2" # http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/ # see libgles-omap3.inc for detailed installation instructions -TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" +TI_BIN_UNPK_CMDS="Y:workdir:" +TI_BIN_UNPK_WDEXT = "/Graphics_SDK_${SGXPV}" require ../ti/ti-eula-unpack.inc SGXPV = "4_03_00_02" diff --git a/recipes/ti/ti-eula-unpack.inc b/recipes/ti/ti-eula-unpack.inc index 3b79c24..82ea785 100644 --- a/recipes/ti/ti-eula-unpack.inc +++ b/recipes/ti/ti-eula-unpack.inc @@ -53,7 +53,7 @@ python ti_bin_do_unpack() { wdext = bb.data.getVar('TI_BIN_UNPK_WDEXT', localdata) wdext = bb.data.expand(wdext, localdata) cmd = workdir+wdext - print >>f, "%s\n" % cmd + print >>f, "%s" % cmd f.close() # Expand the tarball that was created if required