RDEPENDS fails to find an existing package
Hello all,
I've been trying to package libharu for yocto. So, wrote a recipe for
its latest version libharu_2.2.1.bb. The generated .so, .la and .a files for this are in the name 'libhpdf'. (I guess this will not cause any problem.) These files are found in ${WORKDIR}/image/usr/lib
My custom-image RDEPENDS for libharu. While building the custom-image bitbake complains
| error: Failed dependencies:
| libharu is needed by task-custom-hdb-1.0-r3.ekino
How do I fix this issue?
There were no errors reported while building libharu recipe.
Any pointers in this regard would be very helpful
Regards
Joshua
Signature · 3 lines
Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
Hello all,
Quoted 6 lines · Joshua Immanuel
While building the custom-image bitbake complains
| error: Failed dependencies:
| libharu is needed by task-custom-hdb-1.0-r3.ekinoHow do I fix this issue?
On further digging (log.do_package_write_rpm) I found that libharu, libharu-doc and libharu-locale rpms were not created
NOTE: Creating RPM package for libharu-dbg
NOTE: Not creating empty RPM package for libharu
NOTE: Not creating empty RPM package for libharu-doc
NOTE: Creating RPM package for libharu-dev
NOTE: Creating RPM package for libharu-staticdev
NOTE: Not creating empty RPM package for libharu-locale
To fix this I added ALLOW_EMPTY = "1" in the recipe which ended up creating empty rpms
NOTE: Creating RPM package for libharu-dbg
NOTE: Creating RPM package for libharu
NOTE: Creating EMPTY RPM Package for libharu
NOTE: Creating EMPTY RPM Package for libharu-doc
NOTE: Creating RPM package for libharu-dev
NOTE: Creating RPM package for libharu-staticdev
NOTE: Creating EMPTY RPM Package for libharu-locale
This suppressed the dependency error and was able to generate final rootfs image but the libharu libraries were not available in that image. So, how do I end up creating non-empty libharu rpm. (I guess that will solve the issue)
Please guide me.
Regards
Joshua
Signature · 3 lines
Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
Quoted 11 lines · Joshua Immanuel
its latest version libharu_2.2.1.bb. The generated .so, .la and .a files for this are in the name 'libhpdf'. (I guess this will not cause any problem.) These files are found in ${WORKDIR}/image/usr/lib
My custom-image RDEPENDS for libharu. While building the custom-image bitbake complains
| error: Failed dependencies:
| libharu is needed by task-custom-hdb-1.0-r3.ekinoHow do I fix this issue?
the .a files are going into -static package and I guess there is .so and not .so.X which means .so goes into -dev package and hence your libharu package is empty so you have to redirect the files into correct package with the help of FILES_${PN} = "libharu.so ...." etc.
Hello Khem Raj,
Quoted 5 lines · Khem Raj
the .a files are going into -static package and I guess there is .so and not .so.X which means .so goes into -dev package and hence your libharu package is empty so you have to redirect the files into correct package with the help of FILES_${PN} = "libharu.so ...." etc.
You were right. Thanks for the tip.
Adding FILES_${PN} = "${libdir}/lib*.so" made bitbake to create an non-empty libharu package thereby fixing the problem.
Regards
Joshua
Signature · 3 lines
Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
Quoted 9 lines
Hello Khem Raj,
Quoted 5 lines · Khem Raj
the .a files are going into -static package and I guess there is .so and not .so.X which means .so goes into -dev package and hence your libharu package is empty so you have to redirect the files into correct package with the help of FILES_${PN} = "libharu.so ...." etc.
Quoted 4 lines
You were right. Thanks for the tip.
Adding FILES_${PN} = "${libdir}/lib*.so" made bitbake to create an non-empty libharu package thereby fixing the problem.
Heads up - if you are using 1.2 M2 - you may have to add the following line in your recipe:
INSANE_SKIP_{PN} = "dev-so"
Hello Autif,
Quoted 7 lines · Autif Khan
Quoted 2 lines
Adding FILES_${PN} = "${libdir}/lib*.so" made bitbake to create an non-empty libharu package thereby fixing the problem.
Heads up - if you are using 1.2 M2 - you may have to add the following line in your recipe:
INSANE_SKIP_{PN} = "dev-so"
Can you please explain little bit more on what INSANE_SKIP_${PN} = "dev-so" does. I don't find any documentation on it. The only piece of information available by greping the code spoke something about skipping QA tests (in insane.bbclass).
Quoted 5 lines
for package in
packages.split():skip = (bb.data.getVar('INSANE_SKIP_' + package, d, True) or "").split() if skip: bb.note("Package %s skipping QA tests: %s" % (package, str(skip))) ...
It would be really helpful if you would enlighten me on this.
Regards
Joshua
Signature · 3 lines
Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
Hello,
Quoted 2 lines · Joshua Immanuel
Can you please explain little bit more on what INSANE_SKIP_${PN} = "dev-so" does. I don't find any documentation on it.
I guess, it suppresses the warnings stating that an non-dev package contains symlink. This is the warning I got, when I packaged protobuf for yocto
Quoted 4 lines
WARNING: QA Issue: non -dev/-dbg/-nativesdk package contains symlink .so:
protobuf path '/work/core2-poky-linux/protobuf-2.4.1-r1/packages-split/protobuf/usr/lib/libprotobuf.so'
WARNING: QA Issue: protobuf: /work/core2-poky-linux/protobuf-2.4.1-r1/packages-split/protobuf/usr/lib/libprotobuf.so contains probably-redundant RPATH/usr/lib
Adding the line INSANE_SKIP_${PN} = "dev-so" suppressed the above warnings.
Regards
Joshua
Signature · 3 lines
Joshua Immanuel HiPro IT Solutions Private Limited http://hipro.co.in
Quoted 9 lines
Hello,
Quoted 2 lines · Joshua Immanuel
Can you please explain little bit more on what INSANE_SKIP_${PN} = "dev-so" does. I don't find any documentation on it.
I guess, it suppresses the warnings stating that an non-dev package contains symlink. This is the warning I got, when I packaged protobuf for yocto
In the e-mail I mentioned that if you are using M2 1.2 (means the milestone 2 of version 1.2). 1,2 final will be released sometime in the next few weeks/months.
Sometime between 1.1 and 1.2 M2 - the behavior has been changed where the warning you described below has been changed to an error - thereby
- the said .so files are not actually included.
This does not apply if you are using 1.0 or 1.1 (not sure about 1.1 myself - I jumped from 1.0 to 1.2 M2)
Eventually - if/when you will be using a newer release of yocto - your recipe will fail to work as expected - unless you have that insane skip.
Quoted 8 lines
Quoted 5 lines
WARNING: QA Issue: non -dev/-dbg/-nativesdk package contains symlink .so:
protobuf path '/work/core2-poky-linux/protobuf-2.4.1-r1/packages-split/protobuf/usr/lib/libprotobuf.so'
WARNING: QA Issue: protobuf: /work/core2-poky-linux/protobuf-2.4.1-r1/packages-split/protobuf/usr/lib/libprotobuf.so contains probably-redundant RPATH/usr/libAdding the line INSANE_SKIP_${PN} = "dev-so" suppressed the above warnings.
This is correct.
Quoted 18 lines · Autif Khan
Quoted 9 lines
Hello,
Quoted 2 lines · Joshua Immanuel
Can you please explain little bit more on what INSANE_SKIP_${PN} = "dev-so" does. I don't find any documentation on it.
I guess, it suppresses the warnings stating that an non-dev package contains symlink. This is the warning I got, when I packaged protobuf for yocto
In the e-mail I mentioned that if you are using M2 1.2 (means the milestone 2 of version 1.2). 1,2 final will be released sometime in the next few weeks/months.
Sometime between 1.1 and 1.2 M2 - the behavior has been changed where the warning you described below has been changed to an error - thereby
- the said .so files are not actually included.
Quoted 7 lines
This does not apply if you are using 1.0 or 1.1 (not sure about 1.1 myself - I jumped from 1.0 to 1.2 M2)
Eventually - if/when you will be using a newer release of yocto - your recipe will fail to work as expected - unless you have that insane skip.
Did you even try to understand what his original problem was ? If not go back to first post and reread it
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
WARNING: QA Issue: non -dev/-dbg/-nativesdk package contains symlink
.so:
Quoted 1 line
Quoted 1 line
Quoted 1 line
protobuf path
'/work/core2-poky-linux/protobuf-2.4.1-r1/packages-split/protobuf/usr/lib/libprotobuf.so'
Quoted 1 line
Quoted 1 line
Quoted 1 line
WARNING: QA Issue: protobuf:
/work/core2-poky-linux/protobuf-2.4.1-r1/packages-split/protobuf/usr/lib/libprotobuf.so
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
contains probably-redundant RPATH
/usr/libAdding the line INSANE_SKIP_${PN} = "dev-so" suppressed the above warnings.
This is correct.