Change:
Steps to reproduce the behavior: , , and itself is effectively abandoned by the upstream (yocto project). I think we may as well drop it rather than fix it. However now relies on it as a runtime linker for use in cross compilation, we have to find an alternative. Please run and paste the result.
openembedded replaced prelink with objdump will test

Discussion:
"-Dcairo=disabled" "-Dgtk_doc=${lib.boolToString (stdenv.hostPlatform == stdenv.buildPlatform)}" ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ <del> "-Dgi_cross_ldd_wrapper=${buildPackages.prelink}/bin/prelink-rtld" </del> <ins> "-Dgi_cross_ldd_wrapper=${substituteAll { name = "g-ir-scanner-lddwrapper"; isExecutable = true; src = ./wrappers/g-ir-scanner-lddwrapper.sh; inherit (buildPackages) bash; buildobjdump = "${buildPackages.stdenv.cc.bintools}/bin/objdump"; }}" </ins> "-Dgi_cross_use_prebuilt_gi=true" "-Dgi_cross_binary_wrapper=${stdenv.hostPlatform.emulator buildPackages}" ];

<del> From e0fc4a2a5161a36483ddc518be9bb14390f11b19 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <alex.kanavin@gmail.com> Date: Wed, 5 Sep 2018 16:46:52 +0200 Subject: [PATCH] giscanner: ignore error return codes from ldd-wrapper prelink-rtld, which we use instead of ldd returns 127 when it can't find a library. It is not an error per se, but it breaks subprocess.check_output(). Upstream-Status: Inappropriate [oe-core specific] Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Adam Duskett <aduskett@gmail.com> --- giscanner/shlibs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py index 9f8ab5df..7a1a72fe 100644 --- a/giscanner/shlibs.py +++ b/giscanner/shlibs.py @@ -103,7 +103,7 @@ def _resolve_non_libtool(options, binary, libraries): args.extend(['otool', '-L', binary.args[0]]) else: args.extend(['ldd', binary.args[0]]) -        output = subprocess.check_output(args) +        output = subprocess.run(args, check=False, stdout=subprocess.PIPE).stdout if isinstance(output, bytes): output = output.decode("utf-8", "replace") -- 2.25.1 </del>

(gobject-introspection-unwrapped.override args).overrideAttrs (previousAttrs: { pname = "gobject-introspection-wrapped"; <del> # failure in e.g. pkgsCross.aarch64-multiplatform.polkit # subprocess.CalledProcessError: Command '['/nix/store/...-prelink-unstable-2019-06-24/bin/prelink-rtld', '/build/source/build/tmp-introspectzp2ldkyk/PolkitAgent-1.0']' returned non-zero exit status 127. patches = previousAttrs.patches ++ [ ./giscanner-ignore-error-return-codes-from-ldd-wrapper.patch ]; </del> postFixup = (previousAttrs.postFixup or "") + '' mv $dev/bin/g-ir-compiler $dev/bin/.g-ir-compiler-wrapped mv $dev/bin/g-ir-scanner $dev/bin/.g-ir-scanner-wrapped ( <del> export bash="${buildPackages.bash}/bin/bash" </del> <ins> export bash="${buildPackages.bash}" </ins> export emulator=${lib.escapeShellArg (stdenv.targetPlatform.emulator buildPackages)} <del> export buildprelink="${buildPackages.prelink}/bin/prelink-rtld" </del> <ins> export buildobjdump="${buildPackages.stdenv.cc.bintools}/bin/objdump" </ins> export targetgir="${lib.getDev (targetPackages.gobject-introspection-unwrapped.override argsForTarget)}" substituteAll "${./wrappers/g-ir-compiler.sh}" "$dev/bin/g-ir-compiler" substituteAll "${./wrappers/g-ir-scanner.sh}" "$dev/bin/g-ir-scanner" <ins> substituteAll "${./wrappers/g-ir-scanner-lddwrapper.sh}" "$dev/bin/g-ir-scanner-lddwrapper" </ins> chmod +x "$dev/bin/g-ir-compiler" chmod +x "$dev/bin/g-ir-scanner" <ins> chmod +x "$dev/bin/g-ir-scanner-lddwrapper" </ins> ) '' # when cross-compiling and using the wrapper then when a package looks up the g_ir_X

<del> #! @bash@ </del> <ins> #! @bash@/bin/bash </ins> # shellcheck shell=bash exec @emulator@ @targetgir@/bin/g-ir-compiler "$@"

<ins> #! @bash@/bin/bash # shellcheck shell=bash exec @buildobjdump@ -p "$@" </ins>

<del> #! @bash@ </del> <ins> #! @bash@/bin/bash </ins> # shellcheck shell=bash exec @dev@/bin/.g-ir-scanner-wrapped  --use-binary-wrapper=@emulator@  <del> --use-ldd-wrapper=@buildprelink@  </del> <ins> --use-ldd-wrapper=@dev@/bin/g-ir-scanner-lddwrapper  </ins> "$@"

, stdenv , fetchFromGitLab , meson <ins> , mesonEmulatorHook </ins> , ninja , pkg-config , gobject-introspection

gtk-doc docbook-xsl-nons docbook_xml_dtd_43 <ins> ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook </ins> ]; buildInputs = [ <ins> gobject-introspection </ins> glib ]; <del> mesonFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "-Dgtk_doc=false" ]; </del> meta = with lib; { homepage = "https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib"; description = "Qualcomm IPC Router protocol helper library";