gcc: Drop stdlib++ option patch
PATCH 1/4 gcc: Drop stdlib++ option patch
The patch to gcc to disable use of libstdc++ when configuring the library during gcc-runtime is old and there are perhaps better ways to do this now.
If removed, most builds still "work" but incorrect values for things like atomic ops are found during configure. mips64 and ppc fail with on target simple tests of g++ in testimage.
Instead we can create a dummy libstdc++ which allows the correct configure test results to be obtained.
Discussed with upstream about the patch are ongoing, if accepted, we can switch back to the commandline option if it is added in future.
--- meta/recipes-devtools/gcc/gcc-11.2.inc | 1 - meta/recipes-devtools/gcc/gcc-runtime.inc | 8 +- .../gcc/gcc/0005-optional-libstdc.patch | 118 ------------------ 3 files changed, 6 insertions(+), 121 deletions(-) delete mode 100644 meta/recipes-devtools/gcc/gcc/0005-optional-libstdc.patch
meta/recipes-devtools/gcc/gcc-11.2.inc +0 -1
@@ -33,7 +33,6 @@ SRC_URI = "\ file://0001-gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \ file://0002-gcc-poison-system-directories.patch \ file://0004-64-bit-multilib-hack.patch \ - file://0005-optional-libstdc.patch \ file://0007-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch \ file://0009-cpp-honor-sysroot.patch \ file://0011-Define-GLIBC_DYNAMIC_LINKER-and-UCLIBC_DYNAMIC_LINKE.patch \
meta/recipes-devtools/gcc/gcc-runtime.inc +6 -2
@@ -64,7 +64,11 @@ DEBUG_PREFIX_MAP:class-target = " \ " do_configure () { - export CXX="${CXX} -nostdinc++ -nostdlib++" + export CXX="${CXX} -nostdinc++ -L${WORKDIR}/dummylib" + # libstdc++ isn't built yet so CXX would error not able to find it which breaks stdc++'s configure + # tests. Create a dummy empty lib for the purposes of configure. + mkdir -p ${WORKDIR}/dummylib + touch ${WORKDIR}/dummylib/libstdc++.so for d in libgcc ${RUNTIMETARGET}; do echo "Configuring $d" rm -rf ${B}/${TARGET_SYS}/$d/
@@ -302,7 +306,7 @@ do_check() { export DEJAGNU="${WORKDIR}/dejagnu/site.exp" # HACK: this works around the configure setting CXX with -nostd* args - sed -i 's/-nostdinc++ -nostdlib++//g' $(find ${B} -name testsuite_flags | head -1) + sed -i 's#-nostdinc++ -L${WORKDIR}/dummylib##g' $(find ${B} -name testsuite_flags | head -1) if [ "${TOOLCHAIN_TEST_TARGET}" = "user" ]; then # qemu user has issues allocating large amounts of memory
meta/recipes-devtools/gcc/gcc/0005-optional-libstdc.patch deleted +0 -118
118 lines not on this page · raw message
Signature · 1 line
2.32.0
PATCH 2/4 patchelf: Upgrade 0.14.1 -> 0.14.2
---
.../patchelf/{patchelf_0.14.1.bb => patchelf_0.14.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-devtools/patchelf/{patchelf_0.14.1.bb => patchelf_0.14.2.bb} (91%)meta/recipes-devtools/patchelf/patchelf_0.14.2.bb renamed from meta/recipes-devtools/patchelf/patchelf_0.14.1.bb +1 -1
@@ -7,7 +7,7 @@ LICENSE = "GPLv3" SRC_URI = "git://github.com/NixOS/patchelf;protocol=https;branch=master \ file://handle-read-only-files.patch \ " -SRCREV = "8f7b4a7a3648970fe55824cfee2afd3808626a3f" +SRCREV = "2ac5798fdc79762ceee520b2b3b4758f7f97b17e" S = "${WORKDIR}/git"
Signature · 1 line
2.32.0
PATCH 3/4 debian: Fix renaming packagedata dependencies
In reply to Richard PurdieWe've recently seen issues where libxkbcommon was changed in/out of debian renaming and weston which DEPENDS but doesn't RDEPEND on it would show build failures.
Looking at the sigdata file for weston:do_package_write_XXX, there were dependencies on packagedata for RDEPENDS but not DEPENDS. Some items like libxkbcommon are in DEPENDS but become autodetected RDEPENDS. The debian class already handles RDEPENDS but needs to handle DEPENDS in a similar way to avoid failures since bitbake treats them as two separate namespaces (unlike recrdepends).
--- meta/classes/debian.bbclass | 4 ++++ 1 file changed, 4 insertions(+)
meta/classes/debian.bbclass +4 -0
@@ -14,6 +14,10 @@ AUTO_LIBNAME_PKGS = "${PACKAGES}" inherit package DEBIANRDEP = "do_packagedata" +do_package_write_ipk[deptask] = "${DEBIANRDEP}" +do_package_write_deb[deptask] = "${DEBIANRDEP}" +do_package_write_tar[deptask] = "${DEBIANRDEP}" +do_package_write_rpm[deptask] = "${DEBIANRDEP}" do_package_write_ipk[rdeptask] = "${DEBIANRDEP}" do_package_write_deb[rdeptask] = "${DEBIANRDEP}" do_package_write_tar[rdeptask] = "${DEBIANRDEP}"
Signature · 1 line
2.32.0
PATCH 4/4 gst-plugins-bad: Add missing libxkbcommon vulkan dependency
In reply to Richard PurdieThe vulkan module has a dependency on libxkbcommon which needs to be listed so the dependency is correctly handled with debian renaming.
--- .../gstreamer/gstreamer1.0-plugins-bad_1.18.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.18.5.bb +1 -1
@@ -87,7 +87,7 @@ PACKAGECONFIG[v4l2codecs] = "-Dv4l2codecs=enabled,-Dv4l2codecs=disabled,lib PACKAGECONFIG[va] = "-Dva=enabled,-Dva=disabled,libva" PACKAGECONFIG[voaacenc] = "-Dvoaacenc=enabled,-Dvoaacenc=disabled,vo-aacenc" PACKAGECONFIG[voamrwbenc] = "-Dvoamrwbenc=enabled,-Dvoamrwbenc=disabled,vo-amrwbenc" -PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader shaderc-native" +PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,vulkan-loader shaderc-native libxkbcommon" PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland-native wayland wayland-protocols libdrm" PACKAGECONFIG[webp] = "-Dwebp=enabled,-Dwebp=disabled,libwebp" PACKAGECONFIG[webrtc] = "-Dwebrtc=enabled,-Dwebrtc=disabled,libnice"
Signature · 1 line
2.32.0