site: remove obsolete xorg_cv_malloc0_returns_null
PATCH 1/5 site: remove obsolete xorg_cv_malloc0_returns_null
xorg-macros 1.20.2 dropped the runtime check entirely[1], so these cached values are not being read.
[1] util/macros b9f5184 ("XORG_CHECK_MALLOC_ZERO: stop testing malloc, assume the worst")
--- meta/site/common-glibc | 3 --- meta/site/common-musl | 3 --- 2 files changed, 6 deletions(-)
meta/site/common-glibc +0 -3
@@ -73,6 +73,3 @@ ac_cv_va_copy=${ac_cv_va_copy=yes} ac_cv___va_copy=${ac_cv___va_copy=yes} ac_cv_func_va_copy=${ac_cv_func_va_copy=yes} ac_cv_func___va_copy=${ac_cv_func___va_copy=yes} - -# Xorg -xorg_cv_malloc0_returns_null=${xorg_cv_malloc0_returns_null=yes}
meta/site/common-musl +0 -3
@@ -45,6 +45,3 @@ ac_cv_va_copy=${ac_cv_va_copy=yes} ac_cv___va_copy=${ac_cv___va_copy=yes} ac_cv_func_va_copy=${ac_cv_func_va_copy=yes} ac_cv_func___va_copy=${ac_cv_func___va_copy=yes} - -# Xorg -xorg_cv_malloc0_returns_null=${xorg_cv_malloc0_returns_null=yes}
Signature · 1 line
2.43.0
PATCH 2/5 xorg-lib-common: remove --*-malloc0returnsnull from unknown configure option ignore list
This was removed as an option that is passed to all xorg libraries in 2013[1] but was not removed from the ignore list at the same time.
[1] oe-core b4aaacd7699 ("xorg-lib: remove explicit --enable-malloc0returnsnull")
--- meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/recipes-graphics/xorg-lib/xorg-lib-common.inc +1 -2
@@ -19,8 +19,7 @@ EXTRA_OECONF = "--disable-specs --without-groff --without-ps2pdf --without-fop" PACKAGECONFIG ??= "" PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" -UNKNOWN_CONFIGURE_OPT_IGNORE += "--enable-malloc0returnsnull --disable-malloc0returnsnull \ - --disable-specs --without-groff --without-ps2pdf --without-fop \ +UNKNOWN_CONFIGURE_OPT_IGNORE += "--disable-specs --without-groff --without-ps2pdf --without-fop \ --without-xmlto --with-xmlto \ "
Signature · 1 line
2.43.0
PATCH 3/5 xorg-lib-common: disable documentation generation
In reply to Ross BurtonThe X.org libraries have a number of different ways of building documentation, instead of disabling them individually just disable all documentation.
This doesn't change the output, as we were disabling everything anyway.
This simplifies the autoconf options, making things neater when we allow builds with meson.
--- meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
meta/recipes-graphics/xorg-lib/xorg-lib-common.inc +2 -7
@@ -14,13 +14,8 @@ S = "${UNPACKDIR}/${XORG_PN}-${PV}" inherit autotools features_check pkgconfig -EXTRA_OECONF = "--disable-specs --without-groff --without-ps2pdf --without-fop" +EXTRA_OECONF = "--disable-docs --disable-specs" -PACKAGECONFIG ??= "" -PACKAGECONFIG[xmlto] = "--with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" - -UNKNOWN_CONFIGURE_OPT_IGNORE += "--disable-specs --without-groff --without-ps2pdf --without-fop \ - --without-xmlto --with-xmlto \ -" +UNKNOWN_CONFIGURE_OPT_IGNORE += "--disable-docs --disable-specs" REQUIRED_DISTRO_FEATURES ?= "x11"
Signature · 1 line
2.43.0
PATCH 4/5 xorg-lib-common: add builder class variable
In reply to Ross BurtonAdd a variable XORGBUILDCLASS to control which builder class is used.
Defaults to autotools for no change, but this lets recipes switch to Meson if they can.
--- meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-graphics/xorg-lib/xorg-lib-common.inc +4 -2
@@ -12,10 +12,12 @@ SRC_URI = "${XORG_MIRROR}/individual/lib/${XORG_PN}-${PV}.${XORG_EXT}" S = "${UNPACKDIR}/${XORG_PN}-${PV}" -inherit autotools features_check pkgconfig +XORGBUILDCLASS ??= "autotools" +inherit_defer ${XORGBUILDCLASS} + +inherit features_check pkgconfig EXTRA_OECONF = "--disable-docs --disable-specs" - UNKNOWN_CONFIGURE_OPT_IGNORE += "--disable-docs --disable-specs" REQUIRED_DISTRO_FEATURES ?= "x11"
Signature · 1 line
2.43.0
PATCH 5/5 xorg-libs: use meson where possible
In reply to Ross BurtonThese recipes can use meson to build, so use it. The output is functionally identical but do_configure is faster:
PKG TASK ABSDIFF RELDIFF WALLTIME1 -> WALLTIME2 libfontenc do_configure -11.0s -89.0% 12.4s -> 1.4s libxau do_configure -11.0s -89.8% 12.2s -> 1.2s libxvmc do_configure -10.8s -87.1% 12.4s -> 1.6s libxscrnsaver do_configure -10.6s -88.4% 12.0s -> 1.4s libxcomposite do_configure -10.6s -88.3% 12.0s -> 1.4s libxinerama do_configure -10.5s -88.3% 11.9s -> 1.4s libxres do_configure -10.5s -87.8% 11.9s -> 1.4s libxdamage do_configure -10.4s -88.3% 11.8s -> 1.4s libxxf86vm do_configure -10.4s -87.9% 11.8s -> 1.4s libxrandr do_configure -10.4s -87.7% 11.9s -> 1.5s libxfixes do_configure -10.3s -88.2% 11.7s -> 1.4s libxft do_configure -10.3s -86.3% 11.9s -> 1.6s
--- meta/recipes-graphics/xorg-lib/libfontenc_1.1.9.bb | 3 +++ meta/recipes-graphics/xorg-lib/libxau_1.0.12.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxcomposite_0.4.7.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxdamage_1.1.7.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxfixes_6.0.2.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxft_2.3.9.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxinerama_1.1.6.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxrandr_1.5.5.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxres_1.2.3.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.5.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxvmc_1.0.15.bb | 2 ++ meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.7.bb | 2 ++ 12 files changed, 25 insertions(+)
meta/recipes-graphics/xorg-lib/libfontenc_1.1.9.bb +3 -0
@@ -9,6 +9,9 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=96254c20ab81c63e65b26f0dbcd4a1c1" DEPENDS += "zlib xorgproto font-util" + +XORGBUILDCLASS = "meson" + PE = "1" SRC_URI[sha256sum] = "9d8392705cb10803d5fe1d27d236cbab3f664e26841ce01916bbbe430cf273e2"
meta/recipes-graphics/xorg-lib/libxau_1.0.12.bb +2 -0
@@ -14,6 +14,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7908e342491198401321cec1956807ec" DEPENDS += " xorgproto" PROVIDES = "xau" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXau"
meta/recipes-graphics/xorg-lib/libxcomposite_0.4.7.bb +2 -0
@@ -18,6 +18,8 @@ DEPENDS += " xorgproto virtual/libx11 libxfixes libxext" PROVIDES = "xcomposite" BBCLASSEXTEND = "native nativesdk" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXcomposite"
meta/recipes-graphics/xorg-lib/libxdamage_1.1.7.bb +2 -0
@@ -19,6 +19,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9fe101f30dd24134cf43146863241868" DEPENDS += "virtual/libx11 xorgproto libxfixes" PROVIDES = "xdamage" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXdamage"
meta/recipes-graphics/xorg-lib/libxfixes_6.0.2.bb +2 -0
@@ -13,6 +13,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a5a9755c8921cc7dc08a5cfe4267d0ff" DEPENDS += "virtual/libx11 xorgproto" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXfixes"
meta/recipes-graphics/xorg-lib/libxft_2.3.9.bb +2 -0
@@ -18,6 +18,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24" DEPENDS += "virtual/libx11 libxrender freetype fontconfig" PROVIDES = "xft" +XORGBUILDCLASS = "meson" + PE = "1" SRC_URI[sha256sum] = "60a25b78945ed6932635b3bb1899a517d31df7456e69867ffba27f89ff3976f5"
meta/recipes-graphics/xorg-lib/libxinerama_1.1.6.bb +2 -0
@@ -15,6 +15,8 @@ DEPENDS += "libxext xorgproto" PROVIDES = "xinerama" PE = "1" +XORGBUILDCLASS = "meson" + XORG_PN = "libXinerama" SRC_URI[sha256sum] = "d00fc1599c303dc5cbc122b8068bdc7405d6fcb19060f4597fc51bd3a8be51d7"
meta/recipes-graphics/xorg-lib/libxrandr_1.5.5.bb +2 -0
@@ -13,6 +13,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c9d1a2118a6cd5727521db8e7a2fee69" DEPENDS += "virtual/libx11 xorgproto libxrender libxext" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXrandr"
meta/recipes-graphics/xorg-lib/libxres_1.2.3.bb +2 -0
@@ -12,6 +12,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8c89441a8df261bdc56587465e13c7fa" DEPENDS += "libxext xorgproto" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXres"
meta/recipes-graphics/xorg-lib/libxscrnsaver_1.2.5.bb +2 -0
@@ -17,6 +17,8 @@ PROVIDES = "libxss" RREPLACES:${PN} = "libxss" PE = "1" +XORGBUILDCLASS = "meson" + XORG_PN = "libXScrnSaver" SRC_URI[sha256sum] = "5057365f847253e0e275871441e10ff7846c8322a5d88e1e187d326de1cd8d00"
meta/recipes-graphics/xorg-lib/libxvmc_1.0.15.bb +2 -0
@@ -12,6 +12,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0a207f08d4961489c55046c9a5e500da \ DEPENDS += "libxext libxv xorgproto" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXvMC"
meta/recipes-graphics/xorg-lib/libxxf86vm_1.1.7.bb +2 -0
@@ -12,6 +12,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=fa0b9c462d8f2f13eba26492d42ea63d" DEPENDS += "libxext xorgproto" +XORGBUILDCLASS = "meson" + PE = "1" XORG_PN = "libXxf86vm"
Signature · 1 line
2.43.0