On Mon, 24 Jun 2024 at 11:56, Sreejith Ravi via lists.openembedded.org
<[email protected]> wrote:
>
> Currently, the process_pkgconfig() would process only the "Requires" key 
> field and ignore "Requires.private" while generating the dev dependency chain.
>
> Example: usr/lib/pkgconfig/libical.pc
> ----------
> Libs: -L${libdir} -lical -licalss -licalvcal
> Libs.private: -lpthread
> Requires.private: icu-i18n
> ----------
> Depends field generated for libical-dev
> Depends: glib-2.0-dev, libical (= 3.0.7-r0)
> ------------
>
> When trying to resolve the build time dependency with libical package using 
> “-dev” ipk generated, it will throw the below error.
> -----------
> Package icu-i18n was not found in the pkg-config search path.
> Perhaps you should add the directory containing `icu-i18n.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'icu-i18n', required by 'libical', not found
> -----------
>
> This patch will add the packages listed in "Requires.private" to the 
> dependency chain.
>
> -------
> Depends field generated with this change for libical-dev
> Depends: glib-2.0-dev, icu-dev, libical (= 3.0.7-r0)
> -------

The icu-dev package is already listed in the Recommends section that
is formed from shared libraries libical uses, so you need to install
the recommended packages:

%package -n libical-dev
Summary: iCal and scheduling (RFC 2445, 2446, 2447) library - Development files
License: LGPL-2.1-only | MPL-2.0
Group: devel
Requires: glib-2.0-dev
Requires: libical
Recommends: glib-2.0-dev
Recommends: glibc-dev
Recommends: gobject-introspection-dev
Recommends: icu-dev
Recommends: libgcc-dev
Recommends: libical = 3.0.18-r0
Recommends: libicui18n-dev
Recommends: libicuuc-dev
Recommends: libstdc++-dev
Recommends: libxml2-dev
Recommends: vala-dev

Seems like there's quite a bit more needed for a successful build than
just icu-dev and glib-2.0-dev.

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

Reply via email to