[OE-core] [oe-core 2/2] glib-networking:enable glib-networking complie as native package
Burton, Ross
ross.burton at intel.com
Tue Mar 19 15:50:34 UTC 2019
On Tue, 19 Mar 2019 at 15:37, Peter Kjellerstedt
<peter.kjellerstedt at axis.com> wrote:
> > +do_install_append_class-native () {
> > + for _pc in ${D}${libdir}/pkgconfig/*.pc; do
> > + case $_pc in
> > + *'*.pc') rm -fr ${D}${libdir}/pkgconfig;;
> > + *.pc) break;;
> > + esac
> > + done
>
> Why complicate things? Just remove the directory if it exists
> and is empty:
>
> rmdir ${D}${libdir}/pkgconfig 2>/dev/null || :
Bikeshed! Or
rmdir --ignore-fail-on-non-empty ${D}${libdir}/pkgconfig
Ross
More information about the Openembedded-core
mailing list