Skip to contentSkip to conversation

tk: Add recipe for TK 9.0.0 release

PATCH New Khem Raj 1 participant 2 messages Nov 20, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 tk: Add recipe for TK 9.0.0 release

Core is upgrading TCL to 9.0.0 as well, this has to be done in tandem

Rename tk 8.x as tk8 recipe

---
 .../tcltk/{tk => tk8}/confsearch.diff          |  0
 .../tcltk/{tk => tk8}/fix-xft.diff             |  0
 .../tcltk/{tk => tk8}/tkprivate.diff           |  0
 .../tcltk/{tk_8.6.15.bb => tk8_8.6.15.bb}      | 10 +++++-----
 .../tcltk/{tk_8.6.15.bb => tk_9.0.0.bb}        | 18 ++++++++----------
 5 files changed, 13 insertions(+), 15 deletions(-)
 rename meta-oe/recipes-devtools/tcltk/{tk => tk8}/confsearch.diff (100%)
 rename meta-oe/recipes-devtools/tcltk/{tk => tk8}/fix-xft.diff (100%)
 rename meta-oe/recipes-devtools/tcltk/{tk => tk8}/tkprivate.diff (100%)
 copy meta-oe/recipes-devtools/tcltk/{tk_8.6.15.bb => tk8_8.6.15.bb} (94%)
 rename meta-oe/recipes-devtools/tcltk/{tk_8.6.15.bb => tk_9.0.0.bb} (88%)
meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff renamed from meta-oe/recipes-devtools/tcltk/tk/confsearch.diff +0 -0
similarity index 100%
rename from meta-oe/recipes-devtools/tcltk/tk/confsearch.diff
rename to meta-oe/recipes-devtools/tcltk/tk8/confsearch.diff
meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff renamed from meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff +0 -0
similarity index 100%
rename from meta-oe/recipes-devtools/tcltk/tk/fix-xft.diff
rename to meta-oe/recipes-devtools/tcltk/tk8/fix-xft.diff
meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff renamed from meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff +0 -0
similarity index 100%
rename from meta-oe/recipes-devtools/tcltk/tk/tkprivate.diff
rename to meta-oe/recipes-devtools/tcltk/tk8/tkprivate.diff
meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb renamed from meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb +5 -5
similarity index 94%
copy from meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb
copy to meta-oe/recipes-devtools/tcltk/tk8_8.6.15.bb
index 1438a05625..f277b86d91 100644
@@ -15,10 +15,10 @@ LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe \
     file://xlib/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
 "
 
-DEPENDS = "tcl virtual/libx11 libxt"
+DEPENDS = "tcl8 virtual/libx11 libxt"
 
 SRC_URI = "\
-    ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \
+    ${SOURCEFORGE_MIRROR}/tcl/tk${PV}-src.tar.gz \
     file://confsearch.diff \
     file://tkprivate.diff \
     file://fix-xft.diff \
@@ -29,13 +29,13 @@ SRC_URI[sha256sum] = "550969f35379f952b3020f3ab7b9dd5bfd11c1ef7c9b7c6a75f5c49aca
 UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/"
 UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/"
 
-S = "${WORKDIR}/${BPN}${PV}"
+S = "${WORKDIR}/tk${PV}"
 
 # Short version format: "8.6"
 VER = "${@os.path.splitext(d.getVar('PV'))[0]}"
 
 LDFLAGS += "-Wl,-rpath,${libdir}/tcltk/${PV}/lib"
-
+CFLAGS += "-I${STAGING_INCDIR}/tcl${VER}"
 inherit autotools features_check pkgconfig
 
 AUTOTOOLS_SCRIPT_PATH = "${S}/unix"
@@ -73,7 +73,7 @@ FILES:${PN}-lib = "${libdir}/libtk${VER}.so*"
 FILES:${PN} += "${libdir}/tk*"
 
 # isn't getting picked up by shlibs code
-RDEPENDS:${PN} += "tk-lib"
+RDEPENDS:${PN} += "tk8-lib"
 RDEPENDS:${PN}:class-native = ""
 
 BBCLASSEXTEND = "native nativesdk"
meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb renamed from meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb +8 -10
similarity index 88%
rename from meta-oe/recipes-devtools/tcltk/tk_8.6.15.bb
rename to meta-oe/recipes-devtools/tcltk/tk_9.0.0.bb
index 1438a05625..7deba151f7 100644
@@ -15,16 +15,12 @@ LIC_FILES_CHKSUM = "file://license.terms;md5=c88f99decec11afa967ad33d314f87fe \
     file://xlib/license.terms;md5=c88f99decec11afa967ad33d314f87fe \
 "
 
-DEPENDS = "tcl virtual/libx11 libxt"
+DEPENDS = "tcl virtual/libx11 libxt zip-native"
 
 SRC_URI = "\
     ${SOURCEFORGE_MIRROR}/tcl/${BPN}${PV}-src.tar.gz \
-    file://confsearch.diff \
-    file://tkprivate.diff \
-    file://fix-xft.diff \
 "
-
-SRC_URI[sha256sum] = "550969f35379f952b3020f3ab7b9dd5bfd11c1ef7c9b7c6a75f5c49aca793fec"
+SRC_URI[sha256sum] = "f166e3c20773c82243f753cef4b091d05267cb7f87da64be88cb2ca5a2ba027e"
 
 UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/tcl/files/Tcl/"
 UPSTREAM_CHECK_REGEX = "Tcl/(?P<pver>\d+(\.\d+)+)/"
@@ -44,7 +40,6 @@ AUTOTOOLS_SCRIPT_PATH = "${S}/unix"
 REQUIRED_DISTRO_FEATURES = "x11"
 
 EXTRA_OECONF = "\
-    --enable-threads \
     --with-x \
     --with-tcl=${STAGING_BINDIR}/crossscripts \
     --libdir=${libdir} \
@@ -53,8 +48,6 @@ EXTRA_OECONF = "\
 export TK_LIBRARY='${libdir}/tk${VER}'
 
 do_install:append() {
-    ln -sf libtk${VER}.so ${D}${libdir}/libtk${VER}.so.0
-    oe_libinstall -so libtk${VER} ${D}${libdir}
     ln -sf wish${VER} ${D}${bindir}/wish
 
     sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tkConfig.sh
@@ -69,7 +62,10 @@ PACKAGECONFIG[xss] = "--enable-xss,--disable-xss,libxscrnsaver libxext"
 
 PACKAGES =+ "${PN}-lib"
 
-FILES:${PN}-lib = "${libdir}/libtk${VER}.so*"
+SOLIBS = ".so"
+FILES_SOLIBSDEV = ""
+
+FILES:${PN}-lib = "${libdir}/libtcl9tk${VER}.so*"
 FILES:${PN} += "${libdir}/tk*"
 
 # isn't getting picked up by shlibs code
@@ -96,6 +92,8 @@ tcl_package_preprocess() {
                -e "s;-L${STAGING_LIBDIR};-L${libdir};g" \
                -e "s;${STAGING_INCDIR};${includedir};g" \
                -e "s;--sysroot=${RECIPE_SYSROOT};;g" \
+               -e "s;${B};${libdir};g" \
+               -e "s;${WORKDIR};${TARGET_DBGSRC_DIR};g" \
                ${PKGD}${libdir}/tkConfig.sh
 
         rm -f ${PKGD}${bindir_crossscripts}/tkConfig.sh
author
#1 lore raw

PATCH 2/2 keepalived: Upgrade to 2.3.2

Changes are
https://www.keepalived.org/release-notes/Release-2.3.0.html
https://www.keepalived.org/release-notes/Release-2.3.1.html
https://www.keepalived.org/release-notes/Release-2.3.2.html

---
 ...nfigure.ac-Do-not-emit-compiler-flags-into-object-.patch | 6 ++----
 .../keepalived/{keepalived_2.2.8.bb => keepalived_2.3.2.bb} | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
 rename meta-networking/recipes-daemons/keepalived/{keepalived_2.2.8.bb => keepalived_2.3.2.bb} (95%)
meta-networking/recipes-daemons/keepalived/keepalived/0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch +2 -4
index 1f9f8b30b1..e44e2035c2 100644
@@ -13,12 +13,10 @@ Signed-off-by: Khem Raj <[email protected]>
  configure.ac | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
 
-diff --git a/configure.ac b/configure.ac
-index fae16f1..677b94a 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -904,8 +904,7 @@ if test "$enable_hardening" != no; then
- 	  "-Wp,-D_FORTIFY_SOURCE=2" \
+@@ -1013,8 +1013,7 @@ if test "$enable_hardening" != no; then
+ 	  "-Wp,-D_FORTIFY_SOURCE=$FORTIFY_SOURCE" \
  	  "-fexceptions" \
  	  "-fstack-protector-strong" \
 -	  "--param=ssp-buffer-size=4" \
meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb renamed from meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb +1 -1
similarity index 95%
rename from meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb
rename to meta-networking/recipes-daemons/keepalived/keepalived_2.3.2.bb
index c4d59d3caa..2cb76e6d41 100644
@@ -13,7 +13,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz \
            file://0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch \
            "
-SRC_URI[sha256sum] = "85882eb62974f395d4c631be990a41a839594a7e62fbfebcb5649a937a7a1bb6"
+SRC_URI[sha256sum] = "77f4a22e5a23fa8e49b8916acdfb584c864e72905a2f1de2a7f62ed40a896160"
 UPSTREAM_CHECK_URI = "https://github.com/acassen/keepalived/releases"
 
 DEPENDS = "libnfnetlink openssl"