summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2021-07-09 17:17:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-13 14:27:53 +0100
commit49474b8edd1a6307d167d88469ab0f5ab6926b67 (patch)
tree3e2c712ddb0871d789bd81ec84559c6b851b0db1 /meta/recipes-devtools
parent4b016a2d472170b0037ce2bf43e729b2b6d67a1d (diff)
downloadpoky-49474b8edd1a6307d167d88469ab0f5ab6926b67.tar.gz
tcl: use AUTOTOOLS_SCRIPT_PATH
Inside tcl the configure.ac is inside a unix/ directory. Instead of setting S to BPNPV/unix and having to use ../ to reach files outside of unix, simply set S as usual and use AUTOTOOLS_SCRIPT_PATH to run the correct configure script. (From OE-Core rev: 40516f7db7c29d956038fc74dc7d8c3a7b62325a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/tcltk/tcl/alter-includedir.patch30
-rw-r--r--meta/recipes-devtools/tcltk/tcl/fix_issue_with_old_distro_glibc.patch4
-rw-r--r--meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch4
-rw-r--r--meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch22
-rw-r--r--meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch17
-rw-r--r--meta/recipes-devtools/tcltk/tcl_8.6.11.bb24
6 files changed, 26 insertions, 75 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/alter-includedir.patch b/meta/recipes-devtools/tcltk/tcl/alter-includedir.patch
index 66c395d401..5b25af2c0c 100644
--- a/meta/recipes-devtools/tcltk/tcl/alter-includedir.patch
+++ b/meta/recipes-devtools/tcltk/tcl/alter-includedir.patch
@@ -18,8 +18,8 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
18 18
19diff --git a/Makefile.in b/Makefile.in 19diff --git a/Makefile.in b/Makefile.in
20index 0370491..daa569a 100644 20index 0370491..daa569a 100644
21--- a/Makefile.in 21--- a/unix/Makefile.in
22+++ b/Makefile.in 22+++ b/unix/Makefile.in
23@@ -57,7 +57,7 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY) 23@@ -57,7 +57,7 @@ SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(TCL_LIBRARY)
24 MODULE_INSTALL_DIR = $(SCRIPT_INSTALL_DIR)/../tcl8 24 MODULE_INSTALL_DIR = $(SCRIPT_INSTALL_DIR)/../tcl8
25 25
@@ -29,32 +29,10 @@ index 0370491..daa569a 100644
29 29
30 # Path to the private tcl header dir: 30 # Path to the private tcl header dir:
31 PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@ 31 PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@
32diff --git a/configure b/configure
33index 181b9b3..f4cc225 100755
34--- a/configure
35+++ b/configure
36@@ -10166,7 +10166,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
37 eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
38
39 test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(libdir)/tcl$(VERSION)'
40-PRIVATE_INCLUDE_DIR='$(includedir)'
41+PRIVATE_INCLUDE_DIR='$(includedir)/tcl$(VERSION)'
42 HTML_DIR='$(DISTDIR)/html'
43
44 # Note: in the following variable, it's important to use the absolute
45@@ -10323,7 +10323,7 @@ TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
46 TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
47
48 # Install time header dir can be set via --includedir
49-eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
50+eval "TCL_INCLUDE_SPEC=\"-I${includedir}/tcl${VERSION}\""
51
52 #------------------------------------------------------------------------
53 # tclConfig.sh refers to this by a different name
54diff --git a/configure.in b/configure.in 32diff --git a/configure.in b/configure.in
55index 9f96e2b..e323e02 100644 33index 9f96e2b..e323e02 100644
56--- a/configure.in 34--- a/unix/configure.in
57+++ b/configure.in 35+++ b/unix/configure.in
58@@ -773,7 +773,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}" 36@@ -773,7 +773,7 @@ eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
59 eval "TCL_LIB_FILE=${TCL_LIB_FILE}" 37 eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
60 38
diff --git a/meta/recipes-devtools/tcltk/tcl/fix_issue_with_old_distro_glibc.patch b/meta/recipes-devtools/tcltk/tcl/fix_issue_with_old_distro_glibc.patch
index 72a0fa4520..2c31cec8e3 100644
--- a/meta/recipes-devtools/tcltk/tcl/fix_issue_with_old_distro_glibc.patch
+++ b/meta/recipes-devtools/tcltk/tcl/fix_issue_with_old_distro_glibc.patch
@@ -17,8 +17,8 @@ Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
17 17
18Index: unix/Makefile.in 18Index: unix/Makefile.in
19=================================================================== 19===================================================================
20--- unix.orig/Makefile.in 2013-11-10 23:38:01.787425628 -0800 20--- a/unix.orig/Makefile.in 2013-11-10 23:38:01.787425628 -0800
21+++ unix/Makefile.in 2013-11-10 23:37:59.807425578 -0800 21+++ b/unix/Makefile.in 2013-11-10 23:37:59.807425578 -0800
22@@ -686,7 +686,7 @@ 22@@ -686,7 +686,7 @@
23 # tcltest executable gets the build directory burned into its ld search path. 23 # tcltest executable gets the build directory burned into its ld search path.
24 # This keeps tcltest from picking up an already installed version of the Tcl 24 # This keeps tcltest from picking up an already installed version of the Tcl
diff --git a/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch b/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch
index c60eb75379..44b2ce0a30 100644
--- a/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch
+++ b/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch
@@ -2,8 +2,8 @@ Upstream-Status: Pending
2 2
3Index: unix/Makefile.in 3Index: unix/Makefile.in
4=================================================================== 4===================================================================
5--- unix.orig/Makefile.in 2013-11-10 23:37:34.243424934 -0800 5--- a/unix.orig/Makefile.in 2013-11-10 23:37:34.243424934 -0800
6+++ unix/Makefile.in 2013-11-10 23:37:34.243424934 -0800 6+++ b/unix/Makefile.in 2013-11-10 23:37:34.243424934 -0800
7@@ -709,23 +709,23 @@ 7@@ -709,23 +709,23 @@
8 test: test-tcl test-packages 8 test: test-tcl test-packages
9 9
diff --git a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
index d1fc9b92e5..c4283c4f34 100644
--- a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
+++ b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch
@@ -1,23 +1,9 @@
1Upstream-Status: Pending 1Upstream-Status: Pending
2 2
3Index: unix/configure
4===================================================================
5--- unix.orig/configure 2013-09-19 13:17:13.000000000 -0700
6+++ unix/configure 2013-11-11 00:20:51.519490342 -0800
7@@ -7599,6 +7599,9 @@
8 # get rid of the warnings.
9 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
10
11+ # following line added by CW for Debian GNU/Linux
12+ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0"
13+
14 SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared'
15 DL_OBJS="tclLoadDl.o"
16 DL_LIBS="-ldl"
17Index: unix/tcl.m4 3Index: unix/tcl.m4
18=================================================================== 4===================================================================
19--- unix.orig/tcl.m4 2013-09-19 13:17:13.000000000 -0700 5--- a/unix.orig/tcl.m4 2013-09-19 13:17:13.000000000 -0700
20+++ unix/tcl.m4 2013-11-11 00:17:24.263485123 -0800 6+++ b/unix/tcl.m4 2013-11-11 00:17:24.263485123 -0800
21@@ -1415,6 +1415,9 @@ 7@@ -1415,6 +1415,9 @@
22 # get rid of the warnings. 8 # get rid of the warnings.
23 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 9 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
@@ -30,8 +16,8 @@ Index: unix/tcl.m4
30 DL_LIBS="-ldl" 16 DL_LIBS="-ldl"
31Index: unix/Makefile.in 17Index: unix/Makefile.in
32=================================================================== 18===================================================================
33--- unix.orig/Makefile.in 2013-09-19 13:17:13.000000000 -0700 19--- a/unix.orig/Makefile.in 2013-09-19 13:17:13.000000000 -0700
34+++ unix/Makefile.in 2013-11-11 00:20:32.423489861 -0800 20+++ b/unix/Makefile.in 2013-11-11 00:20:32.423489861 -0800
35@@ -796,7 +796,10 @@ 21@@ -796,7 +796,10 @@
36 done; 22 done;
37 @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/" 23 @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
diff --git a/meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch b/meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch
index 386fbf83d0..99c5faf02c 100644
--- a/meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch
+++ b/meta/recipes-devtools/tcltk/tcl/tcl-remove-hardcoded-install-path.patch
@@ -17,23 +17,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
17 configure.in | 2 +- 17 configure.in | 2 +-
18 2 files changed, 2 insertions(+), 2 deletions(-) 18 2 files changed, 2 insertions(+), 2 deletions(-)
19 19
20Index: unix/configure
21===================================================================
22--- unix.orig/configure 2013-11-10 23:38:33.643426430 -0800
23+++ unix/configure 2013-11-10 23:39:51.347428387 -0800
24@@ -19134,7 +19134,7 @@
25
26 eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
27
28-test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)'
29+test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(libdir)/tcl$(VERSION)'
30 PRIVATE_INCLUDE_DIR='$(includedir)'
31 HTML_DIR='$(DISTDIR)/html'
32
33Index: unix/configure.in 20Index: unix/configure.in
34=================================================================== 21===================================================================
35--- unix.orig/configure.in 2013-11-10 23:20:50.000000000 -0800 22--- a/unix.orig/configure.in 2013-11-10 23:20:50.000000000 -0800
36+++ unix/configure.in 2013-11-10 23:39:41.199428131 -0800 23+++ b/unix/configure.in 2013-11-10 23:39:41.199428131 -0800
37@@ -790,7 +790,7 @@ 24@@ -790,7 +790,7 @@
38 25
39 eval "TCL_LIB_FILE=${TCL_LIB_FILE}" 26 eval "TCL_LIB_FILE=${TCL_LIB_FILE}"
diff --git a/meta/recipes-devtools/tcltk/tcl_8.6.11.bb b/meta/recipes-devtools/tcltk/tcl_8.6.11.bb
index 722e4a0132..dce0fcd2c0 100644
--- a/meta/recipes-devtools/tcltk/tcl_8.6.11.bb
+++ b/meta/recipes-devtools/tcltk/tcl_8.6.11.bb
@@ -5,12 +5,12 @@ SECTION = "devel/tcltk"
5 5
6# http://www.tcl.tk/software/tcltk/license.html 6# http://www.tcl.tk/software/tcltk/license.html
7LICENSE = "tcl & BSD-3-Clause" 7LICENSE = "tcl & BSD-3-Clause"
8LIC_FILES_CHKSUM = "file://../license.terms;md5=058f6229798281bbcac4239c788cfa38 \ 8LIC_FILES_CHKSUM = "file://license.terms;md5=058f6229798281bbcac4239c788cfa38 \
9 file://../compat/license.terms;md5=058f6229798281bbcac4239c788cfa38 \ 9 file://compat/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
10 file://../library/license.terms;md5=058f6229798281bbcac4239c788cfa38 \ 10 file://library/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
11 file://../macosx/license.terms;md5=058f6229798281bbcac4239c788cfa38 \ 11 file://macosx/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
12 file://../tests/license.terms;md5=058f6229798281bbcac4239c788cfa38 \ 12 file://tests/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
13 file://../win/license.terms;md5=058f6229798281bbcac4239c788cfa38 \ 13 file://win/license.terms;md5=058f6229798281bbcac4239c788cfa38 \
14" 14"
15 15
16DEPENDS = "tcl-native zlib" 16DEPENDS = "tcl-native zlib"
@@ -28,17 +28,17 @@ SRC_URI[sha256sum] = "cfb49aab82bd179651e23eeeb69606f51b0ddc575ca55c3d35e2457469
28 28
29SRC_URI_class-native = "${BASE_SRC_URI}" 29SRC_URI_class-native = "${BASE_SRC_URI}"
30 30
31S = "${WORKDIR}/${BPN}${PV}/unix" 31S = "${WORKDIR}/${BPN}${PV}"
32 32
33PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/${BPN}${PV}"
34VER = "${PV}" 33VER = "${PV}"
35 34
36inherit autotools ptest binconfig 35inherit autotools ptest binconfig
37 36
37AUTOTOOLS_SCRIPT_PATH = "${S}/unix"
38EXTRA_OECONF = "--enable-threads --disable-rpath --enable-man-suffix" 38EXTRA_OECONF = "--enable-threads --disable-rpath --enable-man-suffix"
39 39
40do_compile_prepend() { 40do_compile_prepend() {
41 echo > ${S}/../compat/fixstrtod.c 41 echo > ${S}/compat/fixstrtod.c
42} 42}
43 43
44do_install() { 44do_install() {
@@ -53,7 +53,7 @@ do_install() {
53 install -m 0755 tclConfig.sh ${D}${libdir} 53 install -m 0755 tclConfig.sh ${D}${libdir}
54 for dir in compat generic unix; do 54 for dir in compat generic unix; do
55 install -d ${D}${includedir}/${BPN}${VER}/$dir 55 install -d ${D}${includedir}/${BPN}${VER}/$dir
56 install -m 0644 ${S}/../$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/ 56 install -m 0644 ${S}/$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/
57 done 57 done
58} 58}
59 59
@@ -76,8 +76,8 @@ do_compile_ptest() {
76 76
77do_install_ptest() { 77do_install_ptest() {
78 cp ${B}/tcltest ${D}${PTEST_PATH} 78 cp ${B}/tcltest ${D}${PTEST_PATH}
79 cp -r ${S}/../library ${D}${PTEST_PATH} 79 cp -r ${S}/library ${D}${PTEST_PATH}
80 cp -r ${S}/../tests ${D}${PTEST_PATH} 80 cp -r ${S}/tests ${D}${PTEST_PATH}
81} 81}
82 82
83# Fix some paths that might be used by Tcl extensions 83# Fix some paths that might be used by Tcl extensions