[OE-core] [PATCH] iputils: fix a usrmerge build issue

Peter Kjellerstedt peter.kjellerstedt at axis.com
Tue Sep 3 21:21:05 UTC 2019


> -----Original Message-----
> From: openembedded-core-bounces at lists.openembedded.org <openembedded-
> core-bounces at lists.openembedded.org> On Behalf Of liu.ming50 at gmail.com
> Sent: den 3 september 2019 11:02
> To: openembedded-core at lists.openembedded.org
> Cc: stefan.agner at toradex.com; Ming Liu <liu.ming50 at gmail.com>
> Subject: [OE-core] [PATCH] iputils: fix a usrmerge build issue
> 
> From: Ming Liu <liu.ming50 at gmail.com>
> 
> Fix a following build issue when usrmerge is enabled:
> | WARNING: iputils-s20190709-r0 do_package: iputils: alternative target
> (/usr/bin/ping or /usr/bin/ping.iputils) does not exist, skipping...
> | WARNING: iputils-s20190709-r0 do_package: iputils: NOT adding
> alternative provide /usr/bin/ping: /usr/bin/ping.iputils does not exist
> | ERROR: iputils-s20190709-r0 do_package: QA Issue: iputils:
> Files/directories were installed but not shipped in any package:
> |  /bin/tracepath
> |  /bin/ping
> |  /bin/arping
> |  /bin/traceroute6
> |  /bin/tftpd
> |  /bin/clockdiff
> |  /sbin/rdisc
> |  /sbin/rarpd
> |  /sbin/ninfod
> 
> Signed-off-by: Ming Liu <liu.ming50 at gmail.com>
> ---
>  meta/recipes-extended/iputils/iputils_s20190709.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-extended/iputils/iputils_s20190709.bb
> b/meta/recipes-extended/iputils/iputils_s20190709.bb
> index 34a6c68..ea7e6e3 100644
> --- a/meta/recipes-extended/iputils/iputils_s20190709.bb
> +++ b/meta/recipes-extended/iputils/iputils_s20190709.bb
> @@ -28,7 +28,7 @@ PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true -
> DBUILD_MANS=true,-DBUILD_HTML_MAN
> 
>  inherit meson update-alternatives
> 
> -EXTRA_OEMESON += "--prefix=/"
> +EXTRA_OEMESON += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '', '--prefix=/', d)}"

This should be better:

EXTRA_OEMESON += "--prefix=${root_prefix}/"

(and yes, the / after ${root_prefix} is needed in this case or meson 
will complain about --prefix having to be an absolute path in case 
${root_prefix} is empty, which it is when usrmerge is not set.)

>  ALTERNATIVE_PRIORITY = "100"
> 
> --
> 2.7.4

//Peter



More information about the Openembedded-core mailing list