On Mon, 2023-11-27 at 11:17 +0100, Alexander Kanavin wrote:
> Drop CFLAGS (containing host paths) from installed pkg-config file.
> 
> Signed-off-by: Alexander Kanavin <[email protected]>
> ---
>  .../usbutils/{usbutils_015.bb => usbutils_017.bb}           | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>  rename meta/recipes-bsp/usbutils/{usbutils_015.bb => usbutils_017.bb} (86%)
> 
> diff --git a/meta/recipes-bsp/usbutils/usbutils_015.bb 
> b/meta/recipes-bsp/usbutils/usbutils_017.bb
> similarity index 86%
> rename from meta/recipes-bsp/usbutils/usbutils_015.bb
> rename to meta/recipes-bsp/usbutils/usbutils_017.bb
> index a30037b6938..c62c6256fc8 100644
> --- a/meta/recipes-bsp/usbutils/usbutils_015.bb
> +++ b/meta/recipes-bsp/usbutils/usbutils_017.bb
> @@ -13,7 +13,7 @@ DEPENDS = "libusb1 virtual/libiconv udev"
>  
>  SRC_URI = 
> "${KERNELORG_MIRROR}/linux/utils/usb/usbutils/usbutils-${PV}.tar.gz \
>            "
> -SRC_URI[sha256sum] = 
> "2b8140664578f39c3f6f0166a1b950f8655304e63e3d7f89899acb99bc5cb8e7"
> +SRC_URI[sha256sum] = 
> "f704c4cb78a060db88b43aac6ebfd3d93c2c5cf1d6dd0e42936faaf00814ab00"
>  
>  inherit autotools pkgconfig update-alternatives
>  
> @@ -30,3 +30,7 @@ RRECOMMENDS:${PN} = "udev-hwdb"
>  PACKAGE_BEFORE_PN =+ "${PN}-python"
>  FILES:${PN}-python += "${bindir}/lsusb.py"
>  RDEPENDS:${PN}-python = "python3-core"
> +
> +do_install:append() {
> +    sed -i -e "s,${WORKDIR},,g" ${D}/${libdir}/pkgconfig/*.pc
> +}

This looks like it removes WORKDIR, not CFLAGS so it doesn't quite
match the commit message?

I think it might be wise to put a comment in the code here saying
exactly what its doing so we can know in future too.

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#191567): 
https://lists.openembedded.org/g/openembedded-core/message/191567
Mute This Topic: https://lists.openembedded.org/mt/102826372/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to