• [gentoo-dev] [PATCH 7/7] dev-libs/libbsd: Strip prefix from paths in ld

    From James Le Cuirot@21:1/5 to All on Sat Jan 21 23:30:01 2023
    ld scripts on standalone prefix (RAP) systems should have the prefix stripped from any paths, as the sysroot is automatically prepended.

    I originally thought this script was just used to apply --as-needed and was therefore unneeded. It's actually used to automatically link libmd when it is needed.

    Signed-off-by: James Le Cuirot <chewi@gentoo.org>
    ---
    dev-libs/libbsd/libbsd-0.11.7-r2.ebuild | 43 +++++++++++++++++++++++++
    1 file changed, 43 insertions(+)
    create mode 100644 dev-libs/libbsd/libbsd-0.11.7-r2.ebuild

    diff --git a/dev-libs/libbsd/libbsd-0.11.7-r2.ebuild b/dev-libs/libbsd/libbsd-0.11.7-r2.ebuild
    new file mode 100644
    index 000000000000..0fcfb6bd563b
    --- /dev/null
    +++ b/dev-libs/libbsd/libbsd-0.11.7-r2.ebuild
    @@ -0,0 +1,43 @@
    +# Copyright 1999-2022 Gentoo Authors
    +# Distributed under the terms of the GNU General Public License v2
    +
    +EAPI=8
    + +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/guillemjover.asc +inherit multilib multilib-minimal verify-sig
    +
    +DESCRIPTION="Library to provide useful functions commonly found on BSD systems"
    +HOMEPAGE="https://libbsd.freedesktop.org/wiki/ https://gitlab.freedesktop.org/libbsd/libbsd"
    +SRC_URI="https://${PN}.freedesktop.org/releases/${P}.tar.xz"
    +SRC_URI+=" verify-sig? ( https://${PN}.freedesktop.org/releases/${P}.tar.xz.asc )"
    +
    +LICENSE="BSD BSD-2 BSD-4 ISC"
    +S