[oe-commits] [Bug 5149] New: e2fsprogs-libs fails to compile for RELEASE

bugzilla-daemon at amethyst.openembedded.net bugzilla-daemon at amethyst.openembedded.net
Thu Jun 4 15:37:28 UTC 2009


http://bugs.openembedded.net/show_bug.cgi?id=5149

           Summary: e2fsprogs-libs fails to compile for RELEASE
    Classification: Unclassified
           Product: Openembedded
           Version: Angstrom 2008.x
          Platform: Other
        OS/Version: other
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: org.openembedded.dev
        AssignedTo: openembedded-commits at lists.openembedded.org
        ReportedBy: macka at adixein.com
                CC: koen at openembedded.org


With the bitbake options set to build e2fsprogs-libs for release (as opposed to
debug), "bitbake e2fsprogs-libs" fails to package reporting a file missing
(e2fsprogs-libs-dbg).

I had a look back through the changelogs and I think there was a specific
change
(http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=38cea1ff24566d5f50bcaa4a208947b7ee14b7e8)
which seems to have caused the problem.  

--- a/recipes/e2fsprogs-libs/e2fsprogs-libs.inc
+++ b/recipes/e2fsprogs-libs/e2fsprogs-libs.inc
@@ -12,6 +12,16 @@ SRC_URI =
"${SOURCEFORGE_MIRROR}/e2fsprogs/e2fsprogs-libs-${PV}.tar.gz \
S = "${WORKDIR}/e2fsprogs-libs-${PV}"
FILES_e2fsprogs-libs-dev_append = " ${datadir}/et ${datadir}/ss"
+FILES_${PN} = "${bindir}"
+
+python populate_packages_prepend () {
+ cv_libdir = bb.data.expand('${libdir}', d)
+ cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
+ do_split_packages(d, cv_libdir, '^lib(.*)\.so$', 'lib%s-dev', 'e2fsprogs-libs
%s development package', extra_depends='${PN}-dev', allow_links=True)
+ do_split_packages(d, cv_libdir, '^lib(.*)\.la$', 'lib%s-dev', 'e2fsprogs-libs
%s development package', extra_depends='${PN}-dev')
+ do_split_packages(d, cv_libdir, '^lib(.*)\.a$', 'lib%s-dev', 'e2fsprogs-libs
%s development package', extra_depends='${PN}-dev')
+ do_split_packages(d, cv_libdir, '^lib(.*)\.so\.*', 'lib%s', 'e2fsprogs-libs
%s library', extra_depends='', allow_links=True)
+}

I _think_ there should be a condition wrapped around the following line to make
the inclusion of debug libraries dependent upon the release mode (which will
not be available in release mode):
cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
To exclude it during release builds.

As a temporary fix on my own system, I hashed out this line as follows:
- cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d)
+ #cv_libdir_dbg = bb.data.expand('${libdir}/.debug', d)

... run bitbake -c clean e2fsprogs-libs, bitbake -c rebuild e2fsprogs-libs, and
voila, compiled.

Regards,
Elliot.

-- 
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-commits mailing list