Skip to contentSkip to conversation

gobject-introspection: Fix variable override order

PATCH In review Richard Purdie 3 participants 17 messages Jan 29, 2021 – Feb 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/13 gobject-introspection: Fix variable override order

The DEPENDS variable override ordering here was almostly certainly incorrect and led to weird behaviour when making changes elsewhere. Correct it.

---
 .../gobject-introspection/gobject-introspection_1.66.1.bb     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb +2 -2
index ee0ab2866b8..ebac8d3a432 100644
@@ -28,14 +28,14 @@ GTKDOC_MESON_OPTION = "gtk_doc"
 
 MULTILIB_SCRIPTS = "${PN}:${bindir}/g-ir-annotation-tool ${PN}:${bindir}/g-ir-scanner"
 
-DEPENDS_append = " libffi zlib glib-2.0 python3 flex-native bison-native autoconf-archive"
+DEPENDS += " libffi zlib glib-2.0 python3 flex-native bison-native autoconf-archive"
 
 # target build needs qemu to run temporary introspection binaries created
 # on the fly by g-ir-scanner and a native version of itself to run
 # native versions of its own tools during build.
 # Also prelink-rtld is used to find out library dependencies of introspection binaries
 # (standard ldd doesn't work when cross-compiling).
-DEPENDS_class-target_append = " gobject-introspection-native qemu-native prelink-native"
+DEPENDS_append_class-target = " gobject-introspection-native qemu-native prelink-native"
 
 # needed for writing out the qemu wrapper script
 export STAGING_DIR_HOST
Signature · 1 line
2.27.0
#1 lore raw

PATCH 2/13 nativesdk-buildtools-perl-dummy: Add missing entries for nativesdk-automake

This allows the hardcoded nativesdk dependency hacking in the automake recipe to be dropped and matches what autoconf is doing.

---
 meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-core/meta/nativesdk-buildtools-perl-dummy.bb +3 -0
index cfa41c4ae63..cce086caf2a 100644
@@ -21,9 +21,12 @@ DUMMYPROVIDES_PACKAGES = "\
     nativesdk-perl-module-io-file \
     nativesdk-perl-module-overloading \
     nativesdk-perl-module-posix \
+    nativesdk-perl-module-strict \
+    nativesdk-perl-module-text-parsewords \
     nativesdk-perl-module-thread-queue \
     nativesdk-perl-module-threads \
     nativesdk-perl-module-warnings \
+    nativesdk-perl-module-vars \
 "
 
 DUMMYPROVIDES = "\
Signature · 1 line
2.27.0
#2 lore raw

PATCH 3/13 package_rpm: Clean up unset runtime package variable handling

In reply to Richard Purdie

If the R* runtime package variables are unset it could cause trackbacks. There were some fallbacks already, clean this up to handle consistently.

The code was expecting strings but setting defaults of empty lists which silently were converted to strings by the "or" statements which was a nightmare to understand or alter.

---
 meta/classes/package_rpm.bbclass | 40 ++++++++++++++++----------------
 1 file changed, 20 insertions(+), 20 deletions(-)
meta/classes/package_rpm.bbclass +20 -20
index 53b4700cddb..43a825ad424 100644
@@ -300,13 +300,13 @@ python write_specfile () {
     srccustomtagschunk = get_package_additional_metadata("rpm", localdata)
 
     srcdepends     = d.getVar('DEPENDS')
-    srcrdepends    = []
-    srcrrecommends = []
-    srcrsuggests   = []
-    srcrprovides   = []
-    srcrreplaces   = []
-    srcrconflicts  = []
-    srcrobsoletes  = []
+    srcrdepends    = ""
+    srcrrecommends = ""
+    srcrsuggests   = ""
+    srcrprovides   = ""
+    srcrreplaces   = ""
+    srcrconflicts  = ""
+    srcrobsoletes  = ""
 
     srcrpreinst  = []
     srcrpostinst = []
@@ -365,13 +365,13 @@ python write_specfile () {
         # Map the dependencies into their final form
         mapping_rename_hook(localdata)
 
-        splitrdepends    = localdata.getVar('RDEPENDS')
-        splitrrecommends = localdata.getVar('RRECOMMENDS')
-        splitrsuggests   = localdata.getVar('RSUGGESTS')
-        splitrprovides   = localdata.getVar('RPROVIDES')
-        splitrreplaces   = localdata.getVar('RREPLACES')
-        splitrconflicts  = localdata.getVar('RCONFLICTS')
-        splitrobsoletes  = []
+        splitrdepends    = localdata.getVar('RDEPENDS') or ""
+        splitrrecommends = localdata.getVar('RRECOMMENDS') or ""
+        splitrsuggests   = localdata.getVar('RSUGGESTS') or ""
+        splitrprovides   = localdata.getVar('RPROVIDES') or ""
+        splitrreplaces   = localdata.getVar('RREPLACES') or ""
+        splitrconflicts  = localdata.getVar('RCONFLICTS') or ""
+        splitrobsoletes  = ""
 
         splitrpreinst  = localdata.getVar('pkg_preinst')
         splitrpostinst = localdata.getVar('pkg_postinst')
@@ -439,9 +439,9 @@ python write_specfile () {
             spec_preamble_bottom.append(splitcustomtagschunk)
 
         # Replaces == Obsoletes && Provides
-        robsoletes = bb.utils.explode_dep_versions2(splitrobsoletes or "")
-        rprovides = bb.utils.explode_dep_versions2(splitrprovides or "")
-        rreplaces = bb.utils.explode_dep_versions2(splitrreplaces or "")
+        robsoletes = bb.utils.explode_dep_versions2(splitrobsoletes)
+        rprovides = bb.utils.explode_dep_versions2(splitrprovides)
+        rreplaces = bb.utils.explode_dep_versions2(splitrreplaces)
         for dep in rreplaces:
             if not dep in robsoletes:
                 robsoletes[dep] = rreplaces[dep]
@@ -533,9 +533,9 @@ python write_specfile () {
     tail_source(d)
 
     # Replaces == Obsoletes && Provides
-    robsoletes = bb.utils.explode_dep_versions2(srcrobsoletes or "")
-    rprovides = bb.utils.explode_dep_versions2(srcrprovides or "")
-    rreplaces = bb.utils.explode_dep_versions2(srcrreplaces or "")
+    robsoletes = bb.utils.explode_dep_versions2(srcrobsoletes)
+    rprovides = bb.utils.explode_dep_versions2(srcrprovides)
+    rreplaces = bb.utils.explode_dep_versions2(srcrreplaces)
     for dep in rreplaces:
         if not dep in robsoletes:
             robsoletes[dep] = rreplaces[dep]
Signature · 1 line
2.27.0
#3 lore raw

PATCH 4/13 bitbake.conf/python: Drop setting RDEPENDS/RPROVIDES default

In reply to Richard Purdie

We never recommend setting RDEPENDS or RPROVIDES without a package name against them. The default in bitbake.conf is legacy only, drop it.

The python recipe was trying to add to the empty variable in the native case fix that too.

---
 meta/conf/bitbake.conf                        | 2 --
 meta/recipes-devtools/python/python3_3.9.1.bb | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)
meta/conf/bitbake.conf +0 -2
index af1b3b8c3e2..790859e8ae1 100644
@@ -272,10 +272,8 @@ DEPCHAIN_PRE = ""
 DEPCHAIN_POST = "-dev -dbg"
 
 DEPENDS = ""
-RDEPENDS = ""
 PROVIDES = ""
 PROVIDES_prepend = "${PN} "
-RPROVIDES = ""
 
 MULTI_PROVIDER_WHITELIST = "virtual/libintl virtual/libintl-native virtual/nativesdk-libintl virtual/xserver virtual/update-alternatives-native virtual/update-alternatives"
 
meta/recipes-devtools/python/python3_3.9.1.bb +1 -1
index a89122f9494..a2dc572672c 100644
@@ -240,7 +240,7 @@ python(){
     # First set RPROVIDES for -native case
     # Hardcoded since it cant be python3-native-foo, should be python3-foo-native
     pn = 'python3'
-    rprovides = d.getVar('RPROVIDES').split()
+    rprovides = (d.getVar('RPROVIDES') or "").split()
 
     # ${PN}-misc-native is not in the manifest
     rprovides.append(pn + '-misc-native')
Signature · 1 line
2.27.0
#4 lore raw

PATCH 5/13 native: Stop clearing PACKAGES

In reply to Richard Purdie

Native recipes have been special and they don't have packages generated from them. The RDEPENDS/RPROVIDES and other runtime package specific variables can contain important data about dependencies recipes need though and currently it is required to write this information explicitly in the native case.

We now delete the packaging tasks for native recipes which removes the need to clear PACKAGES. The next step to improve the metadata is to stop clearing it and ensure any entries in these variables are remapped appropriately. The R* variables were already being processed by the class extension code but the implementation was suboptimal.

This patch stops clearing PACKAGES and PACKAGES_DYNAMIC and fixes the places where that caused issues in OE-Core, for example PACKAGES additions in anonymous python without the "-native" suffix and a case where the included classes caused a self reference in DEPENDS which would once have been removed by the previous code.

The implementation uses datastore/parser parameters to ensure that the variable overrides are not overwritten when calling setVar which is appropriate for a function as close to the core as this one is.

Some now unneeded code in python3-setuptools is dropped, there are further changes like this which can follow.

This change was verified with OE-Core by comparing task-depends.dot generated by "bitbake world -g" before and after the change, the files were identical.

---
 meta/classes/native.bbclass                   | 23 ++++++++-----------
 .../python/python3-setuptools_51.0.0.bb       |  5 ----
 .../gdk-pixbuf/gdk-pixbuf_2.40.0.bb           |  1 +
 meta/recipes-graphics/mesa/mesa.inc           | 14 +++++++----
 meta/recipes-support/boost/boost.inc          |  3 +++
 5 files changed, 22 insertions(+), 24 deletions(-)
meta/classes/native.bbclass +9 -14
index 08106e345ca..a0838e41b97 100644
@@ -5,20 +5,12 @@ inherit relocatable
 # no need for them to be a direct target of 'world'
 EXCLUDE_FROM_WORLD = "1"
 
-PACKAGES = ""
-PACKAGES_class-native = ""
-PACKAGES_DYNAMIC = ""
-PACKAGES_DYNAMIC_class-native = ""
 PACKAGE_ARCH = "${BUILD_ARCH}"
 
 # used by cmake class
 OECMAKE_RPATH = "${libdir}"
 OECMAKE_RPATH_class-native = "${libdir}"
 
-# When this class has packaging enabled, setting 
-# RPROVIDES becomes unnecessary.
-RPROVIDES = "${PN}"
-
 TARGET_ARCH = "${BUILD_ARCH}"
 TARGET_OS = "${BUILD_OS}"
 TARGET_VENDOR = "${BUILD_VENDOR}"
@@ -138,7 +130,7 @@ python native_virtclass_handler () {
     if "native" not in classextend:
         return
 
-    def map_dependencies(varname, d, suffix = ""):
+    def map_dependencies(varname, d, suffix = "", selfref=True):
         if suffix:
             varname = varname + "_" + suffix
         deps = d.getVar(varname)
@@ -148,22 +140,25 @@ python native_virtclass_handler () {
         newdeps = []
         for dep in deps:
             if dep == pn:
-                continue
+                if not selfref:
+                    continue
+                newdeps.append(dep)
             elif "-cross-" in dep:
                 newdeps.append(dep.replace("-cross", "-native"))
             elif not dep.endswith("-native"):
-                newdeps.append(dep + "-native")
+                newdeps.append(dep.replace("-native", "") + "-native")
             else:
                 newdeps.append(dep)
-        d.setVar(varname, " ".join(newdeps))
+        d.setVar(varname, " ".join(newdeps), parsing=True)
 
-    map_dependencies("DEPENDS", e.data)
-    for pkg in [e.data.getVar("PN"), "", "${PN}"]:
+    map_dependencies("DEPENDS", e.data, selfref=False)
+    for pkg in e.data.getVar("PACKAGES", False).split():
         map_dependencies("RDEPENDS", e.data, pkg)
         map_dependencies("RRECOMMENDS", e.data, pkg)
         map_dependencies("RSUGGESTS", e.data, pkg)
         map_dependencies("RPROVIDES", e.data, pkg)
         map_dependencies("RREPLACES", e.data, pkg)
+    map_dependencies("PACKAGES", e.data)
 
     provides = e.data.getVar("PROVIDES")
     nprovides = []
meta/recipes-devtools/python/python3-setuptools_51.0.0.bb +0 -5
index 6ee935f8f79..db336bfa13b 100644
@@ -58,8 +58,3 @@ RDEPENDS_${PYTHON_PN}-pkg-resources = "\
   ${PYTHON_PN}-plistlib \
   ${PYTHON_PN}-pprint \
 "
-# Due to the way OE-Core implemented native recipes, the native class cannot
-# have a dependency on something that is not a recipe name. Work around that by
-# manually setting RPROVIDES.
-RDEPENDS_${PN}_append = " ${PYTHON_PN}-pkg-resources"
-RPROVIDES_append_class-native = " ${PYTHON_PN}-pkg-resources-native"
meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb +1 -0
index 16708fd581d..226e1c7b89f 100644
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
 SECTION = "libs"
 
 DEPENDS = "glib-2.0 gdk-pixbuf-native shared-mime-info"
+DEPENDS_remove_class-native = "gdk-pixbuf-native"
 
 MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
 
meta/recipes-graphics/mesa/mesa.inc +9 -5
index efb12e573f8..cb075a8b89e 100644
@@ -218,6 +218,9 @@ do_install_append () {
 # RPROVIDEs/RCONFLICTs on the generic libgl name.
 python __anonymous() {
     pkgconfig = (d.getVar('PACKAGECONFIG') or "").split()
+    suffix = ""
+    if "-native" in d.getVar("PN"):
+        suffix = "-native"
     for p in (("egl", "libegl", "libegl1"),
               ("dri", "libgl", "libgl1"),
               ("gles", "libgles1", "libglesv1-cm1"),
@@ -226,19 +229,19 @@ python __anonymous() {
         if not p[0] in pkgconfig:
             continue
         mlprefix = d.getVar("MLPREFIX")
-        fullp = mlprefix + p[1] + "-mesa"
+        fullp = mlprefix + p[1] + "-mesa" + suffix
         mlprefix = d.getVar("MLPREFIX")
-        pkgs = " ".join(mlprefix + x for x in p[1:])
+        pkgs = " ".join(mlprefix + x + suffix for x in p[1:])
         d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
         d.appendVar("RREPLACES_" + fullp, pkgs)
         d.appendVar("RPROVIDES_" + fullp, pkgs)
         d.appendVar("RCONFLICTS_" + fullp, pkgs)
 
-        d.appendVar("RRECOMMENDS_" + fullp, " ${MLPREFIX}mesa-megadriver")
+        d.appendVar("RRECOMMENDS_" + fullp, " ${MLPREFIX}mesa-megadriver" + suffix)
 
         # For -dev, the first element is both the Debian and original name
-        fullp += "-dev"
-        pkgs = mlprefix + p[1] + "-dev"
+        fullp = mlprefix + p[1] + "-mesa-dev" + suffix
+        pkgs = mlprefix + p[1] + "-dev" + suffix
         d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1")
         d.appendVar("RREPLACES_" + fullp, pkgs)
         d.appendVar("RPROVIDES_" + fullp, pkgs)
@@ -272,6 +275,7 @@ python mesa_populate_packages() {
 PACKAGESPLITFUNCS_prepend = "mesa_populate_packages "
 
 PACKAGES_DYNAMIC += "^mesa-driver-.*"
+PACKAGES_DYNAMIC_class-native = "^mesa-driver-.*-native"
 
 FILES_mesa-megadriver = "${libdir}/dri/* ${datadir}/drirc.d/00-mesa-defaults.conf"
 FILES_mesa-vulkan-drivers = "${libdir}/libvulkan_*.so ${datadir}/vulkan"
meta/recipes-support/boost/boost.inc +3 -0
index cbf9cad7071..c9bb1785419 100644
@@ -59,10 +59,13 @@ PACKAGES = "${PN}-dbg ${BOOST_PACKAGES}"
 python __anonymous () {
     packages = []
     extras = []
+    pn = d.getVar("PN")
     mlprefix = d.getVar("MLPREFIX")
     for lib in d.getVar('BOOST_LIBS').split():
         extras.append("--with-%s" % lib)
         pkg = "boost-%s" % (lib.replace("_", "-"))
+        if "-native" in pn:
+            pkg = pkg + "-native"
         packages.append(mlprefix + pkg)
         if not d.getVar("FILES_%s" % pkg):
                 d.setVar("FILES_%s%s" % (mlprefix, pkg), "${libdir}/libboost_%s*.so.*" % lib)
Signature · 1 line
2.27.0
#5 lore raw

PATCH 6/13 meta: Clean up various class-native* RDEPENDS overrides

In reply to Richard Purdie

With PACKAGES functioning more correctly for native recipes combined with classextend improvements over the years, there are various overrides of RDEPENDS which look unecessary now, clean them up.

There some some minor changes in dependencies, specifically:

"python3-numpy-native.do_populate_sysroot" -> "python3-native.do_populate_sysroot" "python3-mako-native.do_populate_sysroot" -> "python3-native.do_populate_sysroot" "itstool-native.do_populate_sysroot" -> "libxml2-native.do_populate_sysroot"

however there are already:

XXX-native.do_prepare_recipe_ssysroot -> YYY-native.do_populate_sysroot

mappings from DEPENDS so this is effectively a null op.

---
 meta/recipes-core/dbus/dbus_1.12.20.bb        |  2 --
 meta/recipes-devtools/autoconf/autoconf.inc   | 29 +------------------
 .../automake/automake_1.16.2.bb               |  1 -
 .../python-numpy/python3-numpy_1.19.5.bb      |  2 --
 .../python/python3-mako_1.1.4.bb              |  2 --
 meta/recipes-devtools/tcltk/tcl_8.6.11.bb     |  1 -
 .../perl/libtimedate-perl_2.30.bb             |  1 -
 meta/recipes-support/itstool/itstool_2.0.6.bb |  1 -
 8 files changed, 1 insertion(+), 38 deletions(-)
meta/recipes-core/dbus/dbus_1.12.20.bb +0 -2
index 09049301cc7..32e7d9cfa38 100644
@@ -6,8 +6,6 @@ SECTION = "base"
 require dbus.inc
 
 DEPENDS = "expat virtual/libintl autoconf-archive"
-RDEPENDS_dbus_class-native = ""
-RDEPENDS_dbus_class-nativesdk = ""
 PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}"
 ALLOW_EMPTY_dbus-ptest = "1"
 RDEPENDS_dbus-ptest_class-target = "dbus-test-ptest"
meta/recipes-devtools/autoconf/autoconf.inc +1 -28
index 868e1c8256d..03e4ca8a3ed 100644
@@ -34,34 +34,7 @@ RDEPENDS_${PN} = "m4 gnu-config \
 		  perl-module-thread-queue \
 		  perl-module-threads \
 		 "
-RDEPENDS_${PN}_class-native = "m4-native gnu-config-native"
-RDEPENDS_${PN}_class-nativesdk = "\
-		  nativesdk-gnu-config \
-		  nativesdk-m4 \
-		  nativesdk-perl \
-		  nativesdk-perl-module-bytes \
-		  nativesdk-perl-module-carp \
-		  nativesdk-perl-module-constant \
-		  nativesdk-perl-module-data-dumper \
-		  nativesdk-perl-module-errno \
-		  nativesdk-perl-module-exporter \
-		  nativesdk-perl-module-file-basename \
-		  nativesdk-perl-module-file-compare \
-		  nativesdk-perl-module-file-copy \
-		  nativesdk-perl-module-file-find \
-		  nativesdk-perl-module-file-glob \
-		  nativesdk-perl-module-file-path \
-		  nativesdk-perl-module-file-spec \
-		  nativesdk-perl-module-file-spec-unix \
-		  nativesdk-perl-module-file-stat \
-		  nativesdk-perl-module-getopt-long \
-		  nativesdk-perl-module-io-file \
-		  nativesdk-perl-module-overloading \
-		  nativesdk-perl-module-posix \
-		  nativesdk-perl-module-symbol \
-		  nativesdk-perl-module-thread-queue \
-		  nativesdk-perl-module-threads \
-                  "
+RDEPENDS_${PN}_class-native = "m4-native gnu-config-native hostperl-runtime-native"
 
 inherit autotools texinfo
 
meta/recipes-devtools/automake/automake_1.16.2.bb +0 -1
index fd8ed0ed3b8..08ec0346263 100644
@@ -17,7 +17,6 @@ RDEPENDS_${PN} += "\
     perl-module-vars "
 
 RDEPENDS_${PN}_class-native = "autoconf-native hostperl-runtime-native"
-RDEPENDS_${PN}_class-nativesdk = "nativesdk-autoconf"
 
 SRC_URI += "file://python-libdir.patch \
             file://buildtest.patch \
meta/recipes-devtools/python-numpy/python3-numpy_1.19.5.bb +0 -2
index 5037d2a4221..b619bf6f32a 100644
@@ -53,6 +53,4 @@ RDEPENDS_${PN}-ptest += "${PYTHON_PN}-pytest \
                          ldd \
 "
 
-RDEPENDS_${PN}_class-native = ""
-
 BBCLASSEXTEND = "native nativesdk"
meta/recipes-devtools/python/python3-mako_1.1.4.bb +0 -2
index 531fc6a3c0e..1645f37da44 100644
@@ -15,6 +15,4 @@ RDEPENDS_${PN} = "${PYTHON_PN}-html \
                   ${PYTHON_PN}-threading \
 "
 
-RDEPENDS_${PN}_class-native = ""
-
 BBCLASSEXTEND = "native nativesdk"
meta/recipes-devtools/tcltk/tcl_8.6.11.bb +0 -1
index 74bdb098c6f..d0112020813 100644
@@ -69,7 +69,6 @@ ALTERNATIVE_LINK_NAME[Thread.3] = "${mandir}/man3/Thread.3"
 
 # isn't getting picked up by shlibs code
 RDEPENDS_${PN} += "tcl-lib"
-RDEPENDS_${PN}_class-native = ""
 RDEPENDS_${PN}-ptest += "libgcc"
 
 BBCLASSEXTEND = "native nativesdk"
meta/recipes-extended/perl/libtimedate-perl_2.30.bb +0 -1
index 7219c7d11eb..d42eadb586e 100644
@@ -13,7 +13,6 @@ inherit cpan ptest-perl
 
 BBCLASSEXTEND = "native"
 
-RDEPENDS_${PN}_class-native = ""
 RDEPENDS_${PN} += "perl-module-carp perl-module-exporter perl-module-strict perl-module-time-local"
 RDEPENDS_${PN}-ptest += "perl-module-test-more perl-module-utf8"
 
meta/recipes-support/itstool/itstool_2.0.6.bb +0 -1
index 5f358f463d0..c52aa7941a3 100644
@@ -18,4 +18,3 @@ SRC_URI[sha256sum] = "6233cc22726a9a5a83664bf67d1af79549a298c23185d926c3677afa91
 BBCLASSEXTEND = "native nativesdk"
 
 RDEPENDS_${PN} += "libxml2-python"
-RDEPENDS_${PN}_class-native = ""
Signature · 1 line
2.27.0
#6 lore raw

PATCH 7/13 gtk-doc: Disable dependencies in native case

In reply to Richard Purdie

Ensure that dependencies like qemu-native aren't added in the native case since we don't want docs generate for native recipes.

---
 meta/classes/gtk-doc.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/gtk-doc.bbclass +1 -0
index 7dd662bf868..ef99e63faf9 100644
@@ -7,6 +7,7 @@
 #
 # It should be used in recipes to determine whether gtk-doc based documentation should be built,
 # so that qemu use can be avoided when necessary.
+GTKDOC_ENABLED_class-native = "False"
 GTKDOC_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', \
                       bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}"
 
Signature · 1 line
2.27.0
#7 lore raw

PATCH 8/13 pseudo: Update to include passwd and file renaming fixes

In reply to Richard Purdie

Pulls in:
pseudo_client: Ensure renames update open fd file paths pseudo_client.c: Rebuild passwd paths after chroot

which should fix issues seen in apt package index creation, new binutils and other autobuilder race issues in pseudo amongst other issues.

---
 meta/recipes-devtools/pseudo/pseudo_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/pseudo/pseudo_git.bb +1 -1
index 29fa9152e2d..0ba7b503551 100644
@@ -6,7 +6,7 @@ SRC_URI = "git://git.yoctoproject.org/pseudo;branch=oe-core \
            file://fallback-group \
            "
 
-SRCREV = "f9754ac14672c4af19b77bc698a1a808b0828265"
+SRCREV = "8317c0ab172db47dabcef909bae02cd77b1f1010"
 S = "${WORKDIR}/git"
 PV = "1.9.0+git${SRCPV}"
 
Signature · 1 line
2.27.0
#8 lore raw

Re: [OE-core] [PATCH 08/13] pseudo: Update to include passwd and file renaming fixes

Hi Richard

I am seeing compile errors for pseudo, it could be glibc 2.33 introduced and perhaps pseudo needs some forward porting ?

https://errors.yoctoproject.org/Errors/Details/566884/

Quoted 33 lines · Richard Purdie

Pulls in:
pseudo_client: Ensure renames update open fd file paths pseudo_client.c: Rebuild passwd paths after chroot

which should fix issues seen in apt package index creation, new binutils and other autobuilder race issues in pseudo amongst other issues.

---
 meta/recipes-devtools/pseudo/pseudo_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/pseudo/pseudo_git.bb +1 -2
index 29fa9152e2d..0ba7b503551 100644
@@ -6,7 +6,7 @@ SRC_URI = "git://git.yoctoproject.org/pseudo;branch=oe-core \
            file://fallback-group \
            "
 
-SRCREV = "f9754ac14672c4af19b77bc698a1a808b0828265"
+SRCREV = "8317c0ab172db47dabcef909bae02cd77b1f1010"
 S = "${WORKDIR}/git"
 PV = "1.9.0+git${SRCPV}"
 
--

2.27.0

#9 lore raw

Re: [OE-core] [PATCH 08/13] pseudo: Update to include passwd and file renaming fixes

Quoted 6 lines · Khem Raj

Hi Richard

I am seeing compile errors for pseudo, it could be glibc 2.33 introduced and perhaps pseudo needs some forward porting ?

https://errors.yoctoproject.org/Errors/Details/566884/

Looks very likely that we'll need to fix it to work with 2.33 given those errors...

Cheers,

Richard

#10 lore raw

PATCH 9/13 apr: Fix to work with autoconf 2.70

In reply to Richard Purdie

Fix an issue with autoconf 2.70 where duplicate macro includes caused configure failures.

---
 .../recipes-support/apr/apr/autoconf270.patch | 22 +++++++++++++++++++
 meta/recipes-support/apr/apr_1.7.0.bb         |  1 +
 2 files changed, 23 insertions(+)
 create mode 100644 meta/recipes-support/apr/apr/autoconf270.patch
meta/recipes-support/apr/apr/autoconf270.patch new file +22 -0
new file mode 100644
index 00000000000..9f7b5c624cf
@@ -0,0 +1,22 @@
+With autoconf 2.70 confdefs.h is already included. Including it twice generates
+compiler warnings and since this macros is to error on warnings, it breaks.
+
+Fix by not including the file.
+
+Upstream-Status: Pending
+RP - 2021/1/28
+
+Index: apr-1.7.0/build/apr_common.m4
+===================================================================
+--- apr-1.7.0.orig/build/apr_common.m4
++++ apr-1.7.0/build/apr_common.m4
+@@ -505,8 +505,7 @@ AC_DEFUN([APR_TRY_COMPILE_NO_WARNING],
+  fi
+  AC_COMPILE_IFELSE(
+   [AC_LANG_SOURCE(
+-   [#include "confdefs.h"
+-   ]
++   []
+    [[$1]]
+    [int main(int argc, const char *const *argv) {]
+    [[$2]]
meta/recipes-support/apr/apr_1.7.0.bb +1 -0
index c9b9bf0f50b..f879e2864a7 100644
@@ -23,6 +23,7 @@ SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
            file://0007-explicitly-link-libapr-against-phtread-to-make-gold-.patch \
            file://libtoolize_check.patch \
            file://0001-Add-option-to-disable-timed-dependant-tests.patch \
+           file://autoconf270.patch \
            "
 
 SRC_URI[md5sum] = "7a14a83d664e87599ea25ff4432e48a7"
Signature · 1 line
2.27.0
#11 lore raw

PATCH 10/13 lrzsz: Fix to work with autoconf 2.70

In reply to Richard Purdie

Add the missing gettext version needed for autoconf 2.70.

---
 .../lrzsz-0.12.20/autotools-update.patch      | 249 ++++++++++--------
 1 file changed, 142 insertions(+), 107 deletions(-)
meta/recipes-bsp/lrzsz/lrzsz-0.12.20/autotools-update.patch +142 -107
index 33af38b4a8d..4a50f7410a2 100644
@@ -3,9 +3,10 @@ Update autotools infrastructure (including gettext) to modern versions.
 Upstream-Status: Pending
 Signed-off-by: Phil Blundell <[email protected]>
 
-diff -uprN clean/lrzsz-0.12.20/configure.in lrzsz-0.12.20/configure.in
---- clean/lrzsz-0.12.20/configure.in	1998-12-30 07:50:07.000000000 +0000
-+++ lrzsz-0.12.20/configure.in	2019-11-25 16:22:37.000000000 +0000
+Index: lrzsz-0.12.20/configure.in
+===================================================================
+--- lrzsz-0.12.20.orig/configure.in
++++ lrzsz-0.12.20/configure.in
 @@ -92,7 +92,6 @@ AC_PROG_RANLIB
  AC_ISC_POSIX
  AC_AIX
@@ -14,7 +15,7 @@ diff -uprN clean/lrzsz-0.12.20/configure.in lrzsz-0.12.20/configure.in
  AC_C_CONST
  AC_C_INLINE
  
-@@ -253,18 +252,13 @@ ihave$lookup_facility
+@@ -253,18 +252,14 @@ ihave$lookup_facility
  fi
  
  
@@ -24,6 +25,7 @@ diff -uprN clean/lrzsz-0.12.20/configure.in lrzsz-0.12.20/configure.in
  
 -AM_GNU_GETTEXT
 +AM_GNU_GETTEXT([external])
++AM_GNU_GETTEXT_VERSION([0.21])
  
 -AC_DEFINE_UNQUOTED(LOCALEDIR,"$prefix/$DATADIRNAME")
 -AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
@@ -36,9 +38,10 @@ diff -uprN clean/lrzsz-0.12.20/configure.in lrzsz-0.12.20/configure.in
 +[
  chmod +x debian/rules;
  test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])
-diff -uprN clean/lrzsz-0.12.20/intl/bindtextdom.c lrzsz-0.12.20/intl/bindtextdom.c
---- clean/lrzsz-0.12.20/intl/bindtextdom.c	1998-04-26 14:22:36.000000000 +0100
-+++ lrzsz-0.12.20/intl/bindtextdom.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/bindtextdom.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/bindtextdom.c
++++ /dev/null
 @@ -1,199 +0,0 @@
 -/* Implementation of the bindtextdomain(3) function
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -239,9 +242,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/bindtextdom.c lrzsz-0.12.20/intl/bindtextdom
 -/* Alias for function name in GNU C Library.  */
 -weak_alias (__bindtextdomain, bindtextdomain);
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/cat-compat.c lrzsz-0.12.20/intl/cat-compat.c
---- clean/lrzsz-0.12.20/intl/cat-compat.c	1998-04-26 14:22:37.000000000 +0100
-+++ lrzsz-0.12.20/intl/cat-compat.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/cat-compat.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/cat-compat.c
++++ /dev/null
 @@ -1,262 +0,0 @@
 -/* Compatibility code for gettext-using-catgets interface.
 -   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
@@ -505,9 +509,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/cat-compat.c lrzsz-0.12.20/intl/cat-compat.c
 -  return dest - 1;
 -}
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/ChangeLog lrzsz-0.12.20/intl/ChangeLog
---- clean/lrzsz-0.12.20/intl/ChangeLog	1998-04-26 14:22:35.000000000 +0100
-+++ lrzsz-0.12.20/intl/ChangeLog	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/ChangeLog
+===================================================================
+--- lrzsz-0.12.20.orig/intl/ChangeLog
++++ /dev/null
 @@ -1,1022 +0,0 @@
 -1997-09-06 02:10  Ulrich Drepper  <[email protected]>
 -
@@ -1531,9 +1536,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/ChangeLog lrzsz-0.12.20/intl/ChangeLog
 -	which allow to use the X/Open catgets function with an interface
 -	like the Uniforum gettext function.  For system which does not
 -	have neither of those a complete implementation is provided.
-diff -uprN clean/lrzsz-0.12.20/intl/dcgettext.c lrzsz-0.12.20/intl/dcgettext.c
---- clean/lrzsz-0.12.20/intl/dcgettext.c	1998-04-26 14:22:36.000000000 +0100
-+++ lrzsz-0.12.20/intl/dcgettext.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/dcgettext.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/dcgettext.c
++++ /dev/null
 @@ -1,593 +0,0 @@
 -/* Implementation of the dcgettext(3) function
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -2128,9 +2134,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/dcgettext.c lrzsz-0.12.20/intl/dcgettext.c
 -  return dest - 1;
 -}
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/dgettext.c lrzsz-0.12.20/intl/dgettext.c
---- clean/lrzsz-0.12.20/intl/dgettext.c	1998-04-26 14:20:52.000000000 +0100
-+++ lrzsz-0.12.20/intl/dgettext.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/dgettext.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/dgettext.c
++++ /dev/null
 @@ -1,59 +0,0 @@
 -/* dgettext.c -- implementation of the dgettext(3) function
 -   Copyright (C) 1995 Software Foundation, Inc.
@@ -2191,9 +2198,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/dgettext.c lrzsz-0.12.20/intl/dgettext.c
 -/* Alias for function name in GNU C Library.  */
 -weak_alias (__dgettext, dgettext);
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/explodename.c lrzsz-0.12.20/intl/explodename.c
---- clean/lrzsz-0.12.20/intl/explodename.c	1998-04-26 14:22:37.000000000 +0100
-+++ lrzsz-0.12.20/intl/explodename.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/explodename.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/explodename.c
++++ /dev/null
 @@ -1,181 +0,0 @@
 -/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
 -   Contributed by Ulrich Drepper <[email protected]>, 1995.
@@ -2376,9 +2384,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/explodename.c lrzsz-0.12.20/intl/explodename
 -
 -  return mask;
 -}
-diff -uprN clean/lrzsz-0.12.20/intl/finddomain.c lrzsz-0.12.20/intl/finddomain.c
---- clean/lrzsz-0.12.20/intl/finddomain.c	1998-04-26 14:22:36.000000000 +0100
-+++ lrzsz-0.12.20/intl/finddomain.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/finddomain.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/finddomain.c
++++ /dev/null
 @@ -1,189 +0,0 @@
 -/* Handle list of needed message catalogs
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -2569,9 +2578,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/finddomain.c lrzsz-0.12.20/intl/finddomain.c
 -
 -  return retval;
 -}
-diff -uprN clean/lrzsz-0.12.20/intl/gettext.c lrzsz-0.12.20/intl/gettext.c
---- clean/lrzsz-0.12.20/intl/gettext.c	1998-04-26 14:22:36.000000000 +0100
-+++ lrzsz-0.12.20/intl/gettext.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/gettext.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/gettext.c
++++ /dev/null
 @@ -1,70 +0,0 @@
 -/* Implementation of gettext(3) function
 -   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
@@ -2643,9 +2653,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/gettext.c lrzsz-0.12.20/intl/gettext.c
 -/* Alias for function name in GNU C Library.  */
 -weak_alias (__gettext, gettext);
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/gettext.h lrzsz-0.12.20/intl/gettext.h
---- clean/lrzsz-0.12.20/intl/gettext.h	1998-04-26 14:22:35.000000000 +0100
-+++ lrzsz-0.12.20/intl/gettext.h	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/gettext.h
+===================================================================
+--- lrzsz-0.12.20.orig/intl/gettext.h
++++ /dev/null
 @@ -1,105 +0,0 @@
 -/* Internal header for GNU gettext internationalization functions
 -   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
@@ -2752,9 +2763,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/gettext.h lrzsz-0.12.20/intl/gettext.h
 -/* @@ begin of epilog @@ */
 -
 -#endif	/* gettext.h  */
-diff -uprN clean/lrzsz-0.12.20/intl/gettextP.h lrzsz-0.12.20/intl/gettextP.h
---- clean/lrzsz-0.12.20/intl/gettextP.h	1998-04-26 14:22:35.000000000 +0100
-+++ lrzsz-0.12.20/intl/gettextP.h	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/gettextP.h
+===================================================================
+--- lrzsz-0.12.20.orig/intl/gettextP.h
++++ /dev/null
 @@ -1,73 +0,0 @@
 -/* Header describing internals of gettext library
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -2829,9 +2841,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/gettextP.h lrzsz-0.12.20/intl/gettextP.h
 -/* @@ begin of epilog @@ */
 -
 -#endif /* gettextP.h  */
-diff -uprN clean/lrzsz-0.12.20/intl/hash-string.h lrzsz-0.12.20/intl/hash-string.h
---- clean/lrzsz-0.12.20/intl/hash-string.h	1998-04-26 14:22:36.000000000 +0100
-+++ lrzsz-0.12.20/intl/hash-string.h	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/hash-string.h
+===================================================================
+--- lrzsz-0.12.20.orig/intl/hash-string.h
++++ /dev/null
 @@ -1,63 +0,0 @@
 -/* Implements a string hashing function.
 -   Copyright (C) 1995, 1997 Free Software Foundation, Inc.
@@ -2896,9 +2909,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/hash-string.h lrzsz-0.12.20/intl/hash-string
 -    }
 -  return hval;
 -}
-diff -uprN clean/lrzsz-0.12.20/intl/intl-compat.c lrzsz-0.12.20/intl/intl-compat.c
---- clean/lrzsz-0.12.20/intl/intl-compat.c	1998-04-26 14:20:52.000000000 +0100
-+++ lrzsz-0.12.20/intl/intl-compat.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/intl-compat.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/intl-compat.c
++++ /dev/null
 @@ -1,76 +0,0 @@
 -/* intl-compat.c - Stub functions to call gettext functions from GNU gettext
 -   Library.
@@ -2976,9 +2990,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/intl-compat.c lrzsz-0.12.20/intl/intl-compat
 -{
 -  return textdomain__ (domainname);
 -}
-diff -uprN clean/lrzsz-0.12.20/intl/l10nflist.c lrzsz-0.12.20/intl/l10nflist.c
---- clean/lrzsz-0.12.20/intl/l10nflist.c	1998-04-26 14:22:37.000000000 +0100
-+++ lrzsz-0.12.20/intl/l10nflist.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/l10nflist.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/l10nflist.c
++++ /dev/null
 @@ -1,409 +0,0 @@
 -/* Handle list of needed message catalogs
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -3389,9 +3404,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/l10nflist.c lrzsz-0.12.20/intl/l10nflist.c
 -  return dest - 1;
 -}
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/libgettext.h lrzsz-0.12.20/intl/libgettext.h
---- clean/lrzsz-0.12.20/intl/libgettext.h	1998-04-26 14:22:36.000000000 +0100
-+++ lrzsz-0.12.20/intl/libgettext.h	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/libgettext.h
+===================================================================
+--- lrzsz-0.12.20.orig/intl/libgettext.h
++++ /dev/null
 @@ -1,182 +0,0 @@
 -/* Message catalogs for internationalization.
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -3575,9 +3591,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/libgettext.h lrzsz-0.12.20/intl/libgettext.h
 -#endif
 -
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/linux-msg.sed lrzsz-0.12.20/intl/linux-msg.sed
---- clean/lrzsz-0.12.20/intl/linux-msg.sed	1998-04-26 14:20:52.000000000 +0100
-+++ lrzsz-0.12.20/intl/linux-msg.sed	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/linux-msg.sed
+===================================================================
+--- lrzsz-0.12.20.orig/intl/linux-msg.sed
++++ /dev/null
 @@ -1,100 +0,0 @@
 -# po2msg.sed - Convert Uniforum style .po file to Linux style .msg file
 -# Copyright (C) 1995 Free Software Foundation, Inc.
@@ -3679,9 +3696,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/linux-msg.sed lrzsz-0.12.20/intl/linux-msg.s
 -  tb
 -}
 -d
-diff -uprN clean/lrzsz-0.12.20/intl/loadinfo.h lrzsz-0.12.20/intl/loadinfo.h
---- clean/lrzsz-0.12.20/intl/loadinfo.h	1998-04-26 14:20:52.000000000 +0100
-+++ lrzsz-0.12.20/intl/loadinfo.h	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/loadinfo.h
+===================================================================
+--- lrzsz-0.12.20.orig/intl/loadinfo.h
++++ /dev/null
 @@ -1,58 +0,0 @@
 -#ifndef PARAMS
 -# if __STDC__
@@ -3741,9 +3759,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/loadinfo.h lrzsz-0.12.20/intl/loadinfo.h
 -				     const char **special,
 -				     const char **sponsor,
 -				     const char **revision));
-diff -uprN clean/lrzsz-0.12.20/intl/loadmsgcat.c lrzsz-0.12.20/intl/loadmsgcat.c
---- clean/lrzsz-0.12.20/intl/loadmsgcat.c	1998-04-26 14:22:37.000000000 +0100
-+++ lrzsz-0.12.20/intl/loadmsgcat.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/loadmsgcat.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/loadmsgcat.c
++++ /dev/null
 @@ -1,199 +0,0 @@
 -/* Load needed message catalogs
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -3944,9 +3963,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/loadmsgcat.c lrzsz-0.12.20/intl/loadmsgcat.c
 -     translations invalid.  */
 -  ++_nl_msg_cat_cntr;
 -}
-diff -uprN clean/lrzsz-0.12.20/intl/localealias.c lrzsz-0.12.20/intl/localealias.c
---- clean/lrzsz-0.12.20/intl/localealias.c	1998-04-26 14:22:37.000000000 +0100
-+++ lrzsz-0.12.20/intl/localealias.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/localealias.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/localealias.c
++++ /dev/null
 @@ -1,378 +0,0 @@
 -/* Handle aliases for locale names
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -4326,9 +4346,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/localealias.c lrzsz-0.12.20/intl/localealias
 -  return c1 - c2;
 -#endif
 -}
-diff -uprN clean/lrzsz-0.12.20/intl/Makefile.in lrzsz-0.12.20/intl/Makefile.in
---- clean/lrzsz-0.12.20/intl/Makefile.in	1998-04-26 14:22:35.000000000 +0100
-+++ lrzsz-0.12.20/intl/Makefile.in	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/Makefile.in
+===================================================================
+--- lrzsz-0.12.20.orig/intl/Makefile.in
++++ /dev/null
 @@ -1,214 +0,0 @@
 -# Makefile for directory with message catalog handling in GNU NLS Utilities.
 -# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -4544,9 +4565,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/Makefile.in lrzsz-0.12.20/intl/Makefile.in
 -# Tell versions [3.59,3.63) of GNU make not to export all variables.
 -# Otherwise a system limit (for SysV at least) may be exceeded.
 -.NOEXPORT:
-diff -uprN clean/lrzsz-0.12.20/intl/po2tbl.sed.in lrzsz-0.12.20/intl/po2tbl.sed.in
---- clean/lrzsz-0.12.20/intl/po2tbl.sed.in	1998-04-26 14:20:52.000000000 +0100
-+++ lrzsz-0.12.20/intl/po2tbl.sed.in	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/po2tbl.sed.in
+===================================================================
+--- lrzsz-0.12.20.orig/intl/po2tbl.sed.in
++++ /dev/null
 @@ -1,102 +0,0 @@
 -# po2tbl.sed - Convert Uniforum style .po file to lookup table for catgets
 -# Copyright (C) 1995 Free Software Foundation, Inc.
@@ -4650,9 +4672,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/po2tbl.sed.in lrzsz-0.12.20/intl/po2tbl.sed.
 -  s/0*\(.*\)/int _msg_tbl_length = \1;/p
 -}
 -d
-diff -uprN clean/lrzsz-0.12.20/intl/textdomain.c lrzsz-0.12.20/intl/textdomain.c
---- clean/lrzsz-0.12.20/intl/textdomain.c	1998-04-26 14:22:37.000000000 +0100
-+++ lrzsz-0.12.20/intl/textdomain.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/textdomain.c
+===================================================================
+--- lrzsz-0.12.20.orig/intl/textdomain.c
++++ /dev/null
 @@ -1,106 +0,0 @@
 -/* Implementation of the textdomain(3) function
 -   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
@@ -4760,14 +4783,16 @@ diff -uprN clean/lrzsz-0.12.20/intl/textdomain.c lrzsz-0.12.20/intl/textdomain.c
 -/* Alias for function name in GNU C Library.  */
 -weak_alias (__textdomain, textdomain);
 -#endif
-diff -uprN clean/lrzsz-0.12.20/intl/VERSION lrzsz-0.12.20/intl/VERSION
---- clean/lrzsz-0.12.20/intl/VERSION	1998-04-26 14:22:37.000000000 +0100
-+++ lrzsz-0.12.20/intl/VERSION	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/VERSION
+===================================================================
+--- lrzsz-0.12.20.orig/intl/VERSION
++++ /dev/null
 @@ -1 +0,0 @@
 -GNU gettext library from gettext-0.10.32
-diff -uprN clean/lrzsz-0.12.20/intl/xopen-msg.sed lrzsz-0.12.20/intl/xopen-msg.sed
---- clean/lrzsz-0.12.20/intl/xopen-msg.sed	1998-04-26 14:20:52.000000000 +0100
-+++ lrzsz-0.12.20/intl/xopen-msg.sed	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/intl/xopen-msg.sed
+===================================================================
+--- lrzsz-0.12.20.orig/intl/xopen-msg.sed
++++ /dev/null
 @@ -1,104 +0,0 @@
 -# po2msg.sed - Convert Uniforum style .po file to X/Open style .msg file
 -# Copyright (C) 1995 Free Software Foundation, Inc.
@@ -4873,9 +4898,10 @@ diff -uprN clean/lrzsz-0.12.20/intl/xopen-msg.sed lrzsz-0.12.20/intl/xopen-msg.s
 -  tb
 -}
 -d
-diff -uprN clean/lrzsz-0.12.20/lib/Makefile.am lrzsz-0.12.20/lib/Makefile.am
---- clean/lrzsz-0.12.20/lib/Makefile.am	1998-12-27 16:25:26.000000000 +0000
-+++ lrzsz-0.12.20/lib/Makefile.am	2019-11-25 16:22:34.000000000 +0000
+Index: lrzsz-0.12.20/lib/Makefile.am
+===================================================================
+--- lrzsz-0.12.20.orig/lib/Makefile.am
++++ lrzsz-0.12.20/lib/Makefile.am
 @@ -1,6 +1,4 @@
  noinst_LIBRARIES=libzmodem.a
 -CFLAGS=@CFLAGS@
@@ -4883,9 +4909,10 @@ diff -uprN clean/lrzsz-0.12.20/lib/Makefile.am lrzsz-0.12.20/lib/Makefile.am
  
  EXTRA_DIST = alloca.c ansi2knr.1 ansi2knr.c \
  	getopt.c getopt1.c mkdir.c mktime.c \
-diff -uprN clean/lrzsz-0.12.20/Makefile.am lrzsz-0.12.20/Makefile.am
---- clean/lrzsz-0.12.20/Makefile.am	1998-12-30 11:19:40.000000000 +0000
-+++ lrzsz-0.12.20/Makefile.am	2019-11-26 11:47:29.000000000 +0000
+Index: lrzsz-0.12.20/Makefile.am
+===================================================================
+--- lrzsz-0.12.20.orig/Makefile.am
++++ lrzsz-0.12.20/Makefile.am
 @@ -1,5 +1,5 @@
 -SUBDIRS = lib intl src po man testsuite
 -EXTRA_DIST = check.lrzsz COMPATABILITY README.cvs README.isdn4linux \
@@ -4908,9 +4935,10 @@ diff -uprN clean/lrzsz-0.12.20/Makefile.am lrzsz-0.12.20/Makefile.am
  
 +
 +ACLOCAL_AMFLAGS = -I m4
-diff -uprN clean/lrzsz-0.12.20/po/cat-id-tbl.c lrzsz-0.12.20/po/cat-id-tbl.c
---- clean/lrzsz-0.12.20/po/cat-id-tbl.c	1998-12-29 09:24:24.000000000 +0000
-+++ lrzsz-0.12.20/po/cat-id-tbl.c	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/po/cat-id-tbl.c
+===================================================================
+--- lrzsz-0.12.20.orig/po/cat-id-tbl.c
++++ /dev/null
 @@ -1,234 +0,0 @@
 -/* Automatically generated by po2tbl.sed from lrzsz.pot.  */
 -
@@ -5146,10 +5174,10 @@ diff -uprN clean/lrzsz-0.12.20/po/cat-id-tbl.c lrzsz-0.12.20/po/cat-id-tbl.c
 -};
 -
 -int _msg_tbl_length = 136;
-Binary files clean/lrzsz-0.12.20/po/de.gmo and lrzsz-0.12.20/po/de.gmo differ
-diff -uprN clean/lrzsz-0.12.20/po/de.po lrzsz-0.12.20/po/de.po
---- clean/lrzsz-0.12.20/po/de.po	1998-12-30 16:31:46.000000000 +0000
-+++ lrzsz-0.12.20/po/de.po	2019-11-26 11:42:07.000000000 +0000
+Index: lrzsz-0.12.20/po/de.po
+===================================================================
+--- lrzsz-0.12.20.orig/po/de.po
++++ lrzsz-0.12.20/po/de.po
 @@ -6,10 +6,12 @@
  msgid ""
  msgstr ""
@@ -5384,9 +5412,10 @@ diff -uprN clean/lrzsz-0.12.20/po/de.po lrzsz-0.12.20/po/de.po
  #: src/lrz.c:2079
  msgid "rzfile: reached stop time"
  msgstr "rzfile: Abbruchzeit erreicht"
-diff -uprN clean/lrzsz-0.12.20/po/lrzsz.pot lrzsz-0.12.20/po/lrzsz.pot
---- clean/lrzsz-0.12.20/po/lrzsz.pot	1998-12-30 07:50:00.000000000 +0000
-+++ lrzsz-0.12.20/po/lrzsz.pot	2019-11-26 11:39:12.000000000 +0000
+Index: lrzsz-0.12.20/po/lrzsz.pot
+===================================================================
+--- lrzsz-0.12.20.orig/po/lrzsz.pot
++++ lrzsz-0.12.20/po/lrzsz.pot
 @@ -1,24 +1,27 @@
  # SOME DESCRIPTIVE TITLE.
  # Copyright (C) YEAR Free Software Foundation, Inc.
@@ -5618,9 +5647,10 @@ diff -uprN clean/lrzsz-0.12.20/po/lrzsz.pot lrzsz-0.12.20/po/lrzsz.pot
  #: src/lrz.c:2079
  msgid "rzfile: reached stop time"
  msgstr ""
-diff -uprN clean/lrzsz-0.12.20/po/Makevars lrzsz-0.12.20/po/Makevars
---- clean/lrzsz-0.12.20/po/Makevars	1970-01-01 01:00:00.000000000 +0100
-+++ lrzsz-0.12.20/po/Makevars	2019-11-25 18:09:52.000000000 +0000
+Index: lrzsz-0.12.20/po/Makevars
+===================================================================
+--- /dev/null
++++ lrzsz-0.12.20/po/Makevars
 @@ -0,0 +1,78 @@
 +# Makefile variables for PO directory in any package using GNU gettext.
 +
@@ -5700,19 +5730,22 @@ diff -uprN clean/lrzsz-0.12.20/po/Makevars lrzsz-0.12.20/po/Makevars
 +# "no".  Set this to no if the POT file and PO files are maintained
 +# externally.
 +DIST_DEPENDS_ON_UPDATE_PO = yes
-diff -uprN clean/lrzsz-0.12.20/po/stamp-cat-id lrzsz-0.12.20/po/stamp-cat-id
---- clean/lrzsz-0.12.20/po/stamp-cat-id	1998-12-30 07:50:01.000000000 +0000
-+++ lrzsz-0.12.20/po/stamp-cat-id	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/po/stamp-cat-id
+===================================================================
+--- lrzsz-0.12.20.orig/po/stamp-cat-id
++++ /dev/null
 @@ -1 +0,0 @@
 -timestamp
-diff -uprN clean/lrzsz-0.12.20/po/stamp-po lrzsz-0.12.20/po/stamp-po
---- clean/lrzsz-0.12.20/po/stamp-po	1970-01-01 01:00:00.000000000 +0100
-+++ lrzsz-0.12.20/po/stamp-po	2019-11-26 11:42:09.000000000 +0000
+Index: lrzsz-0.12.20/po/stamp-po
+===================================================================
+--- /dev/null
++++ lrzsz-0.12.20/po/stamp-po
 @@ -0,0 +1 @@
 +timestamp
-diff -uprN clean/lrzsz-0.12.20/src/Makefile.am lrzsz-0.12.20/src/Makefile.am
---- clean/lrzsz-0.12.20/src/Makefile.am	1998-12-28 08:38:47.000000000 +0000
-+++ lrzsz-0.12.20/src/Makefile.am	2019-11-25 16:22:49.000000000 +0000
+Index: lrzsz-0.12.20/src/Makefile.am
+===================================================================
+--- lrzsz-0.12.20.orig/src/Makefile.am
++++ lrzsz-0.12.20/src/Makefile.am
 @@ -2,13 +2,11 @@ bin_PROGRAMS=lrz lsz
  lrz_SOURCES=lrz.c timing.c zperr.c zreadline.c crctab.c rbsb.c zm.c protname.c tcp.c lsyslog.c canit.c
  lsz_SOURCES=lsz.c timing.c zperr.c zreadline.c crctab.c rbsb.c zm.c protname.c tcp.c lsyslog.c canit.c
@@ -5729,9 +5762,10 @@ diff -uprN clean/lrzsz-0.12.20/src/Makefile.am lrzsz-0.12.20/src/Makefile.am
  EXTRA_DIST = ansi2knr.1 ansi2knr.c lrzszbug.in
  INCLUDES = -I.. -I$(srcdir) -I$(top_srcdir)/src -I../intl -I$(top_srcdir)/lib
  #DEFS = -DLOCALEDIR=\"$(localedir)\" -DOS=\"@host_os@\" -DCPU=\"@host_cpu@\"
-diff -uprN clean/lrzsz-0.12.20/src/zglobal.h lrzsz-0.12.20/src/zglobal.h
---- clean/lrzsz-0.12.20/src/zglobal.h	1998-12-29 12:34:59.000000000 +0000
-+++ lrzsz-0.12.20/src/zglobal.h	2019-11-25 16:32:42.000000000 +0000
+Index: lrzsz-0.12.20/src/zglobal.h
+===================================================================
+--- lrzsz-0.12.20.orig/src/zglobal.h
++++ lrzsz-0.12.20/src/zglobal.h
 @@ -180,9 +180,6 @@ struct termios;
  #if HAVE_LOCALE_H
  # include <locale.h>
@@ -5742,8 +5776,9 @@ diff -uprN clean/lrzsz-0.12.20/src/zglobal.h lrzsz-0.12.20/src/zglobal.h
  
  #if ENABLE_NLS
  # include <libintl.h>
-diff -uprN clean/lrzsz-0.12.20/stamp-h.in lrzsz-0.12.20/stamp-h.in
---- clean/lrzsz-0.12.20/stamp-h.in	1998-12-30 07:51:07.000000000 +0000
-+++ lrzsz-0.12.20/stamp-h.in	1970-01-01 01:00:00.000000000 +0100
+Index: lrzsz-0.12.20/stamp-h.in
+===================================================================
+--- lrzsz-0.12.20.orig/stamp-h.in
++++ /dev/null
 @@ -1 +0,0 @@
 -timestamp
Signature · 1 line
2.27.0
#12 lore raw

PATCH 11/13 at: Upgrade 3.1.23 -> 3.2.1

In reply to Richard Purdie

This fixes flex issues with autoconf 2.70 rather than backporting patches.

Patches refreshed.

---
 .../at/at/0001-remove-glibc-assumption.patch  | 23 ++++++++-----------
 .../at/at/file_replacement_with_gplv2.patch   |  8 +++----
 .../at/at/fix_parallel_build_error.patch      | 11 ++++-----
 .../at/at/makefile-fix-parallel.patch         |  8 +++----
 .../at/{at_3.1.23.bb => at_3.2.1.bb}          |  5 ++--
 5 files changed, 24 insertions(+), 31 deletions(-)
 rename meta/recipes-extended/at/{at_3.1.23.bb => at_3.2.1.bb} (90%)
meta/recipes-extended/at/at/0001-remove-glibc-assumption.patch +10 -13
index 7fdecc7fd1b..fd57f94cd5a 100644
@@ -18,21 +18,21 @@ Signed-off-by: Dengke Du <[email protected]>
  parsetime.y | 11 +++++++----
  1 file changed, 7 insertions(+), 4 deletions(-)
 
-diff --git a/parsetime.y b/parsetime.y
-index 7005e88..324e6d3 100644
---- a/parsetime.y
-+++ b/parsetime.y
-@@ -8,6 +8,9 @@
- 
- #define YYDEBUG 1
+Index: at-3.2.1/parsetime.y
+===================================================================
+--- at-3.2.1.orig/parsetime.y
++++ at-3.2.1/parsetime.y
+@@ -14,6 +14,9 @@
+     ((y) % 4 == 0 && ((y) % 100 != 0 || (y) % 400 == 0))
+ #endif
  
 +#define is_leap_year(y) \
 +    ((y) % 4 == 0 && ((y) % 100 != 0 || (y) % 400 == 0))
 +
  struct tm exectm;
  static int isgmt;
- static int yearspec;
-@@ -217,8 +220,8 @@ date            : month_name day_number
+ static char *tz = NULL;
+@@ -230,8 +233,8 @@ date            : month_name day_number
  				 mnum == 12) && dnum > 31)
  			    || ((mnum ==  4 || mnum ==  6 || mnum ==  9 ||
  			         mnum == 11) && dnum > 30)
@@ -43,7 +43,7 @@ index 7005e88..324e6d3 100644
  			   )
  			{
  			    yyerror("Error in day of month");
-@@ -261,8 +264,8 @@ date            : month_name day_number
+@@ -274,8 +277,8 @@ date            : month_name day_number
  				 mnum == 12) && dnum > 31)
  			    || ((mnum ==  4 || mnum ==  6 || mnum ==  9 ||
  			         mnum == 11) && dnum > 30)
@@ -54,6 +54,3 @@ index 7005e88..324e6d3 100644
  			   )
  			{
  			    yyerror("Error in day of month");
--- 
-2.8.1
-
meta/recipes-extended/at/at/file_replacement_with_gplv2.patch +4 -4
index d5ef0032be2..11023bdf52f 100644
@@ -10,11 +10,11 @@ update the Copyright file information to reflect the replaced files.
 Date: 2010/08/31
 Nitin A Kamble [email protected]
 
-Index: at-3.1.12/Copyright
+Index: at-3.2.1/Copyright
 ===================================================================
---- at-3.1.12.orig/Copyright
-+++ at-3.1.12/Copyright
-@@ -31,10 +31,10 @@ The files posixtm.c and posixtm.h have t
+--- at-3.2.1.orig/Copyright
++++ at-3.2.1/Copyright
+@@ -34,10 +34,10 @@ The files posixtm.c and posixtm.h have t
     Copyright (C) 1989, 1990, 1991, 1998, 2000, 2001, 2002, 2003, 2004,
     2005, 2006, 2007 Free Software Foundation Inc.
  
meta/recipes-extended/at/at/fix_parallel_build_error.patch +4 -7
index 30d2324126d..e4f32b82b6c 100644
@@ -22,10 +22,10 @@ Signed-off-by: Chen Qi <[email protected]>
  Makefile.in | 2 ++
  1 file changed, 2 insertions(+)
 
-diff --git a/Makefile.in b/Makefile.in
-index 4c11913..18ecc23 100644
---- a/Makefile.in
-+++ b/Makefile.in
+Index: at-3.2.1/Makefile.in
+===================================================================
+--- at-3.2.1.orig/Makefile.in
++++ at-3.2.1/Makefile.in
 @@ -83,6 +83,8 @@ y.tab.c y.tab.h: parsetime.y
  lex.yy.c: parsetime.l
  	$(LEX) -i parsetime.l
@@ -35,6 +35,3 @@ index 4c11913..18ecc23 100644
  atd.service: atd.service.in
  	cat $< | sed -e 's![@]sbindir[@]!$(sbindir)!g' | sed -e 's![@]atjobdir[@]!$(atjobdir)!g' > $@
  
--- 
-2.7.4
-
meta/recipes-extended/at/at/makefile-fix-parallel.patch +4 -4
index d6056dceffa..adb8652053b 100644
@@ -15,11 +15,11 @@ Signed-off-by: Robert Yang <[email protected]>
  Makefile |    4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
 
-Index: at-3.1.20/Makefile.in
+Index: at-3.2.1/Makefile.in
 ===================================================================
---- at-3.1.20.orig/Makefile.in
-+++ at-3.1.20/Makefile.in
-@@ -76,7 +76,9 @@ at: $(ATOBJECTS)
+--- at-3.2.1.orig/Makefile.in
++++ at-3.2.1/Makefile.in
+@@ -77,7 +77,9 @@ at: $(ATOBJECTS)
  atd: $(RUNOBJECTS)
  	$(CC) $(LDFLAGS) -o atd $(RUNOBJECTS) $(LIBS) $(PAMLIB) $(SELINUXLIB)
  
meta/recipes-extended/at/at_3.2.1.bb renamed from meta/recipes-extended/at/at_3.1.23.bb +2 -3
similarity index 90%
rename from meta/recipes-extended/at/at_3.1.23.bb
rename to meta/recipes-extended/at/at_3.2.1.bb
index b74882d342b..9574b27792b 100644
@@ -22,7 +22,7 @@ PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits"
 RCONFLICTS_${PN} = "atd"
 RREPLACES_${PN} = "atd"
 
-SRC_URI = "http://snapshot.debian.org/archive/debian/20180825T090248Z/pool/main/a/${BPN}/${BPN}_${PV}.orig.tar.gz \
+SRC_URI = "http://software.calhariz.com/at/${BPN}_${PV}.orig.tar.gz \
     file://fix_parallel_build_error.patch \
     file://posixtm.c \
     file://posixtm.h \
@@ -37,8 +37,7 @@ SRC_URI = "http://snapshot.debian.org/archive/debian/20180825T090248Z/pool/main/
 PAM_SRC_URI = "file://pam.conf.patch \
                file://configure-add-enable-pam.patch"
 
-SRC_URI[md5sum] = "1cec945506b5ddf1d776c92c315fc581"
-SRC_URI[sha256sum] = "97450aa954aaa8a70218cc8e61a33df9fee9f86527e9f861de302fb7a3c81710"
+SRC_URI[sha256sum] = "aabe6e5cb6dd19fe9fb25c2747492f2db38762b95ea41b86f949609c39fb55c4"
 
 UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/a/at/"
 
Signature · 1 line
2.27.0
#13 lore raw

PATCH 12/13 msmtp: Fix to work with autoconf 2.70

In reply to Richard Purdie

Add the required gettext version macro to work with the new autoconf version.

---
 .../msmtp/msmtp/autoconf270.patch               | 17 +++++++++++++++++
 meta/recipes-extended/msmtp/msmtp_1.8.14.bb     |  3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/msmtp/msmtp/autoconf270.patch
meta/recipes-extended/msmtp/msmtp/autoconf270.patch new file +17 -0
new file mode 100644
index 00000000000..6efd3d6d7cc
@@ -0,0 +1,17 @@
+Update to add the required gettext version to work with autoconf 2.70
+
+Upstream-Status: Pending
+RP - 2021/1/28
+
+Index: msmtp-1.8.14/configure.ac
+===================================================================
+--- msmtp-1.8.14.orig/configure.ac
++++ msmtp-1.8.14/configure.ac
+@@ -44,6 +44,7 @@ case "${target}" in *-*-mingw*) LIBS="$L
+ 
+ dnl Gettext
+ AM_GNU_GETTEXT([external])
++AM_GNU_GETTEXT_VERSION([0.21])
+ 
+ dnl Headers, functions, and types
+ AC_CHECK_HEADERS([sysexits.h netdb.h arpa/inet.h sys/select.h sys/socket.h sys/wait.h netinet/in.h])
meta/recipes-extended/msmtp/msmtp_1.8.14.bb +2 -1
index 3bd5f9edeb5..c35c8e7ecc9 100644
@@ -10,7 +10,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 UPSTREAM_CHECK_URI = "https://marlam.de/msmtp/download/"
 
-SRC_URI = "https://marlam.de/${BPN}/releases/${BP}.tar.xz"
+SRC_URI = "https://marlam.de/${BPN}/releases/${BP}.tar.xz \
+           file://autoconf270.patch"
 SRC_URI[sha256sum] = "d56f065d711486e9c234618515a02a48a48dab4051b34f3e108fbecb6fb773b4"
 
 inherit gettext autotools update-alternatives pkgconfig
Signature · 1 line
2.27.0
#14 lore raw

PATCH 13/13 ruby: Fix to work with autoconf 2.70

In reply to Richard Purdie

Drop a macro we don't need which was breaking with autoconf 2.70.

---
 .../ruby/ruby/autoconf270.patch               | 34 +++++++++++++++++++
 meta/recipes-devtools/ruby/ruby_2.7.2.bb      |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta/recipes-devtools/ruby/ruby/autoconf270.patch
meta/recipes-devtools/ruby/ruby/autoconf270.patch new file +34 -0
new file mode 100644
index 00000000000..8d205bde431
@@ -0,0 +1,34 @@
+This macro breaks under autoconf 2.70. Since we don't worry abot darwin or
+openbsd builds, simply remove it.
+
+Upstream-Status: Pending
+RP - 2021/1/28
+
+Index: ruby-2.7.2/configure.ac
+===================================================================
+--- ruby-2.7.2.orig/configure.ac
++++ ruby-2.7.2/configure.ac
+@@ -170,23 +170,6 @@ dnl     orig_cxxflags="$cxxflags"
+ dnl     cxxflags="$cxxflags "'${optflags} ${debugflags} ${warnflags}'
+ dnl ])
+ 
+-AS_CASE(["$host_os:$build_os"],
+-[darwin*:darwin*], [
+-    AC_CHECK_TOOLS(CC, [clang gcc cc])
+-    # Following Apple deployed clang are broken
+-    # clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported)
+-    # Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn)
+-    # Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)
+-    AS_IF([! $CC -E -xc - <<SRC >/dev/null], [
+-	@%:@if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3
+-	@%:@error premature clang
+-	@%:@endif
+-SRC
+-	AC_MSG_ERROR([clang version 3.0 or later is required])
+-    ])],
+-[openbsd*:openbsd*], [
+-    AC_CHECK_TOOLS(CC, [cc])
+-])
+ AS_IF([test x"${build}" != x"${host}"], [
+   AC_CHECK_TOOL(CC, gcc)
+ ])
meta/recipes-devtools/ruby/ruby_2.7.2.bb +1 -0
index db6d6729859..8c338ebecfa 100644
@@ -7,6 +7,7 @@ SRC_URI += " \
            file://run-ptest \
            file://0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch \
            file://0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch \
+           file://autoconf270.patch \
            "
 
 SRC_URI[md5sum] = "2d4a28dcfa38352a627a597f6057c465"
Signature · 1 line
2.27.0
#15 lore raw
In reply to Richard Purdie

Hi Richard,

Quoted 14 lines · Richard Purdie

The DEPENDS variable override ordering here was almostly certainly incorrect and led to weird behaviour when making changes elsewhere. Correct it.

---
 .../gobject-introspection/gobject-introspection_1.66.1.bb     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb +0 -0
index ee0ab2866b8..ebac8d3a432 100644

meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb GTKDOC_MESON_OPTION = "gtk_doc" · line 32

Quoted 6 lines
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb +1 -1
@@ -28,14 +28,14 @@ GTKDOC_MESON_OPTION = "gtk_doc"
 
 MULTILIB_SCRIPTS = "${PN}:${bindir}/g-ir-annotation-tool ${PN}:${bindir}/g-ir-scanner"
 
-DEPENDS_append = " libffi zlib glib-2.0 python3 flex-native bison-native autoconf-archive"
+DEPENDS += " libffi zlib glib-2.0 python3 flex-native bison-native autoconf-archive"
 

Not sure to understand the reason for this change other than "cleanup"?

Are you expecting to be able to override DEPENDS from other recipes and couldn't do so because of the "_append"?

If that is the case, it seems this patch should be split in two so there's proper explanation?

meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb GTKDOC_MESON_OPTION = "gtk_doc" · line 39

Quoted 8 lines
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb +1 -1
 # target build needs qemu to run temporary introspection binaries created
 # on the fly by g-ir-scanner and a native version of itself to run
 # native versions of its own tools during build.
 # Also prelink-rtld is used to find out library dependencies of introspection binaries
 # (standard ldd doesn't work when cross-compiling).
-DEPENDS_class-target_append = " gobject-introspection-native qemu-native prelink-native"
+DEPENDS_append_class-target = " gobject-introspection-native qemu-native prelink-native"
 

Ah, the classic :)

Cheers,
Quentin

#16 lore raw
Quoted 26 lines · Quentin Schulz

Hi Richard,

Quoted 19 lines · Richard Purdie

The DEPENDS variable override ordering here was almostly certainly incorrect and led to weird behaviour when making changes elsewhere. Correct it.

---
 .../gobject-introspection/gobject-introspection_1.66.1.bb | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb +0 -0
index ee0ab2866b8..ebac8d3a432 100644
@@ -28,14 +28,14 @@ GTKDOC_MESON_OPTION = "gtk_doc"
 

 MULTILIB_SCRIPTS = "${PN}:${bindir}/g-ir-annotation-tool ${PN}:${bindir}/g-ir-scanner"

meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb +1 -1
-DEPENDS_append = " libffi zlib glib-2.0 python3 flex-native bison-native autoconf-archive"
+DEPENDS += " libffi zlib glib-2.0 python3 flex-native bison-native autoconf-archive"
Quoted 1 line

Not sure to understand the reason for this change other than "cleanup"?

Quoted 5 lines

Are you expecting to be able to override DEPENDS from other recipes and couldn't do so because of the "_append"?

If that is the case, it seems this patch should be split in two so there's proper explanation?

This is a recipe, not a class so overriding from other recipes isn't an issue here and I maintain that even the classes should really be using +=. What is an issue is how the DEPENDS_append below interacts and also how the native.bbclass remapping interacts with things. I was wrestling with both of those trying to get the code to do the correct thing, probably before realising the bigger issue was the reversed overrides order below.

It probably is ultimately a cosmetic change but it seemed to make sense to clean it up whilst in here. To me, it seemed in keeping with the other change and I was already sending enough patches...

It is also the combination I tested and I have little interest in separating and testing it individually without the other change which I suspect will break.

Quoted 10 lines

meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb GTKDOC_MESON_OPTION = "gtk_doc" · line 38

Quoted 8 lines
 # target build needs qemu to run temporary introspection binaries created
 # on the fly by g-ir-scanner and a native version of itself to run
 # native versions of its own tools during build.
 # Also prelink-rtld is used to find out library dependencies of introspection binaries
 # (standard ldd doesn't work when cross-compiling).
meta/recipes-gnome/gobject-introspection/gobject-introspection_1.66.1.bb +1 -1
-DEPENDS_class-target_append = " gobject-introspection-native qemu-native prelink-native"
+DEPENDS_append_class-target = " gobject-introspection-native qemu-native prelink-native"

Ah, the classic :)

Indeed. I do suspect there were issues in the way native class extensions were behaving which may have lead to this :/.

Cheers,

Richard