Skip to contentSkip to conversation

help with bitbake recipe

DISCUSSION Shawn Rutledge 3 participants 4 messages Jul 15, 2008

lore
Share & tools
lore
#0 lore raw

I'm trying to build some Chicken Scheme ipk's for OpenMoko. It's making them, but putting some docs in the main package, and not enough stuff in the chicken-doc package. Judging from other bb files it looks like the thing to do is something like this, at the end:

FILES_chicken-doc = "${prefix}/share/chicken/doc ${prefix}/share/info ${prefix}/share/man"

or maybe

FILES_${PN}-doc = "${prefix}/share/chicken/doc ${prefix}/share/info ${prefix}/share/man"

However that's not taking effect:

/var/media/moko/build/tmp/work/armv4t-angstrom-linux-gnueabi/chicken-3.3.0-r0 [neutron][01:08:10 AM] grep -r FILES_chick * 2>/dev/null staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken:FILES_chicken:
/usr/bin/* /usr/sbin/* /usr/libexec/* /usr/lib/lib*.so.* /etc /usr/com
/var /bin/* /sbin/* /lib/*.so* /usr/share/chicken /usr/lib/chicken/* /usr/share/pixmaps /usr/share/applications /usr/share/idl
/usr/share/omf /usr/share/sounds /usr/lib/bonobo/servers staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-dbg:FILES_chicken-dbg:
/usr/bin/.debug /usr/sbin/.debug /usr/libexec/.debug /usr/lib/.debug
/bin/.debug /sbin/.debug /lib/.debug /usr/lib/chicken/.debug /usr/lib/matchbox-panel/.debug staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-dev:FILES_chicken-dev:
/usr/include /usr/lib/lib*.so /usr/lib/*.la /usr/lib/*.a /usr/lib/*.o /usr/lib/pkgconfig /lib/*.a /lib/*.o /usr/share/aclocal staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-doc:FILES_chicken-doc:
/usr/share/doc /usr/share/man /usr/share/info /usr/share/gtk-doc /usr/share/gnome/help staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-locale:FILES_chicken-locale:
/usr/share/locale

I keep trying by doing
bitbake -vD chicken -c rebuild

after I make a change. I wish I didn't have to recompile it too, just to retry the packaging.

Another one: at what point is EXTRA_OEMAKE applied? I was hoping it would set some extra env variables every time make is run, but doesn't seem to.

EXTRA_OEMAKE = "PLATFORM=linux PREFIX=/usr"

#1 lore raw
Quoted 5 lines · Shawn Rutledge

I'm trying to build some Chicken Scheme ipk's for OpenMoko. It's making them, but putting some docs in the main package, and not enough stuff in the chicken-doc package. Judging from other bb files it looks like the thing to do is something like this, at the end:

Quoted 7 lines

FILES_chicken-doc = "${prefix}/share/chicken/doc ${prefix}/share/info ${prefix}/share/man"

or maybe

FILES_${PN}-doc = "${prefix}/share/chicken/doc ${prefix}/share/info ${prefix}/share/man"

Try altering FILES_${PN}, since that gets packages before ${PN}-doc

Quoted 23 lines

However that's not taking effect:

/var/media/moko/build/tmp/work/armv4t-angstrom-linux-gnueabi/chicken-3.3.0-r0 [neutron][01:08:10 AM] grep -r FILES_chick * 2>/dev/null staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken:FILES_chicken:
/usr/bin/* /usr/sbin/* /usr/libexec/* /usr/lib/lib*.so.* /etc /usr/com
/var /bin/* /sbin/* /lib/*.so* /usr/share/chicken /usr/lib/chicken/* /usr/share/pixmaps /usr/share/applications /usr/share/idl
/usr/share/omf /usr/share/sounds /usr/lib/bonobo/servers staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-dbg:FILES_chicken-dbg:
/usr/bin/.debug /usr/sbin/.debug /usr/libexec/.debug /usr/lib/.debug
/bin/.debug /sbin/.debug /lib/.debug /usr/lib/chicken/.debug /usr/lib/matchbox-panel/.debug staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-dev:FILES_chicken-dev:
/usr/include /usr/lib/lib*.so /usr/lib/*.la /usr/lib/*.a /usr/lib/*.o /usr/lib/pkgconfig /lib/*.a /lib/*.o /usr/share/aclocal staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-doc:FILES_chicken-doc:
/usr/share/doc /usr/share/man /usr/share/info /usr/share/gtk-doc /usr/share/gnome/help staging-pkg/staging/pkgdata/armv4t-angstrom-linux-gnueabi/runtime/chicken-locale:FILES_chicken-locale:
/usr/share/locale

Quoted 2 lines

I keep trying by doing
bitbake -vD chicken -c rebuild

bitbake -b chicken_3.3.0.bb -c install -f ; bitbake -b chicken_3.3.0.bb -c package_write

regards,

Koen

#2 lore raw
Quoted 1 line · Koen Kooi

Try altering FILES_${PN}, since that gets packages before ${PN}-doc

So does it subtract the files it found in FILES_${PN} from being available for the following packages?

Quoted 2 lines

bitbake -b chicken_3.3.0.bb -c install -f ; bitbake -b chicken_3.3.0.bb -c package_write

Thanks.

#3 lore raw
Quoted 5 lines · Shawn Rutledge
Quoted 1 line · Koen Kooi

Try altering FILES_${PN}, since that gets packages before ${PN}-doc

So does it subtract the files it found in FILES_${PN} from being available for the following packages?

Yes, so you need to alter the pattern matching so that it matches only what you want in the base package.

Quoted 4 lines
Quoted 2 lines

bitbake -b chicken_3.3.0.bb -c install -f ; bitbake -b chicken_3.3.0.bb -c package_write

Thanks.

mike (mwester)