Skip to contentSkip to conversation

tcl: Fix packaging of platform independent files

PATCH Applied Kumar Gala 4 participants 5 messages Aug 3, 2011 – Aug 4, 2011

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 tcl: Fix packaging of platform independent files

Tcl's doesn't utilize ${baselib} for platform independent files but defines it as follows:

TCL_LIBRARY = $(prefix)/lib/tcl$(VERSION)

Match that so if ${baselib} is not just /lib things work properly.

---
 meta/recipes-devtools/tcltk/tcl_8.5.9.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/tcltk/tcl_8.5.9.bb +2 -2
index 12e2bd0..2eabb4d 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://../license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11
     file://../win/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \
     "
 
-PR = "r0"
+PR = "r1"
 
 BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \
                 file://tcl-add-soname.patch"
@@ -59,7 +59,7 @@ do_install() {
 
 PACKAGES =+ "${PN}-lib"
 FILES_${PN}-lib = "${libdir}/libtcl8.5.so*"
-FILES_${PN} += "${libdir}/tcl8.5"
+FILES_${PN} += "${prefix}/lib/tcl8.5"
 FILES_${PN}-dev += "${libdir}/tclConfig.sh"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 11 lines · Kumar Gala

Tcl's doesn't utilize ${baselib} for platform independent files but defines it as follows:

TCL_LIBRARY = $(prefix)/lib/tcl$(VERSION)

Match that so if ${baselib} is not just /lib things work properly.

---
 meta/recipes-devtools/tcltk/tcl_8.5.9.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard

#2 lore raw
In reply to Kumar Gala
Quoted 6 lines · Kumar Gala

Tcl's doesn't utilize ${baselib} for platform independent files but defines it as follows:

TCL_LIBRARY             = $(prefix)/lib/tcl$(VERSION)

Match that so if ${baselib} is not just /lib things work properly.

hmm may be fixing tcl to honour --libdir=<dir> to generate TCL_LIBRARY from configure would be a nice solution

Quoted 37 lines

---
 meta/recipes-devtools/tcltk/tcl_8.5.9.bb |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/tcltk/tcl_8.5.9.bb +0 -0
index 12e2bd0..2eabb4d 100644
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://../license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11
     file://../win/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \

    "

meta/recipes-devtools/tcltk/tcl_8.5.9.bb +1 -1
-PR = "r0"
+PR = "r1"

 BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \
                file://tcl-add-soname.patch"

meta/recipes-devtools/tcltk/tcl_8.5.9.bb +0 -0
@@ -59,7 +59,7 @@ do_install() {
 

 PACKAGES =+ "${PN}-lib"
 FILES_${PN}-lib = "${libdir}/libtcl8.5.so*"

meta/recipes-devtools/tcltk/tcl_8.5.9.bb +1 -1
-FILES_${PN} += "${libdir}/tcl8.5"
+FILES_${PN} += "${prefix}/lib/tcl8.5"

 FILES_${PN}-dev += "${libdir}/tclConfig.sh"

 BBCLASSEXTEND = "native"
--
1.7.3.4

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#3 lore raw
In reply to Kumar Gala
Quoted 9 lines · Kumar Gala

Tcl's doesn't utilize ${baselib} for platform independent files but defines it as follows:

TCL_LIBRARY = $(prefix)/lib/tcl$(VERSION)

Match that so if ${baselib} is not just /lib things work properly.

---

Even better would be bashing tcl so that it puts its bits in ${datadir} where they belong. :-) But your patch is fine though.

p.

#4 lore raw
Quoted 6 lines · Phil Blundell
Quoted 5 lines · Kumar Gala

Tcl's doesn't utilize ${baselib} for platform independent files but defines it as follows:

TCL_LIBRARY = $(prefix)/lib/tcl$(VERSION)

Quoted 7 lines
Quoted 4 lines

Match that so if ${baselib} is not just /lib things work properly.

---

Even better would be bashing tcl so that it puts its bits in ${datadir} where they belong. :-) But your patch is fine though.

Agreed, this would be the ideal solution...

Cheers,

Richard