All of lore.kernel.org
 help / color / mirror / Atom feed
From: VLG <3rdshift@comcast.net>
To: openembedded-devel@openembedded.org
Subject: .bb file syntax question
Date: Wed, 13 Dec 2006 22:29:44 -0500	[thread overview]
Message-ID: <1166066984.2740.21.camel@dollar.3rdshift.com> (raw)

Hi,

I am looking for a working example of a .bb file that builds a .ipk
package by pulling project from Sourceforge-hosted CVS. Somehow, what I
tried so far for my project (http://granule.sf.net) simply doesn't work:

granule_cvs.bb
---------------------------------------------------------
DESCRIPTION = "Generic memory training with flash cards.  Automatic
scheduling algorithm."
AUTHOR = "Vladislav Grinchenko <vlg@users.sourceforge.net>"
HOMEPAGE = "http://granule.sf.net"
SECTION = "x11/apps"
PRIORITY = "optional"
LICENSE = "GPLv2"
DEPENDS = "glib-2.0-native intltool-native gtkmm libxml2 libassa"
PR = "r0"
PV = "1.1+cvs"

EXTRA_OECONF += "--enable-pda=yes"

SRC_URI =
"cvs://anonymous@granule.cvs.sourceforge.net/cvsroot/granule;method=pserver;module=granule"

inherit autotools pkgconfig

---------------------------------------------------------

However, if I define SRC_URI to point to a local file, I get my package
built:

SRC_URI =
"file:///extra/stuff/org.openembedded.dev/packages/granule/granule-1.2.4.tar.gz"


Here is the failing output log:
=========================================================
[vlg@dollar]/extra/stuff> bitbake granule
NOTE: Using cache in '/extra/stuff/tmp/cache/collie'
NOTE: Handling BitBake files: \ (4100/4100) [100 %]
NOTE: Parsing finished. 3945 cached, 0 parsed, 155 skipped, 0 masked.

NOTE: build 200612132221: started

OE Build Configuration:
BB_VERSION     = "1.6.3"
OE_REVISION    = "dc5138ded31c9c1aacd6c0bf37d83ec11d95747c"
TARGET_ARCH    = "arm"
TARGET_OS      = "linux"
MACHINE        = "collie"
DISTRO         = "openzaurus"
DISTRO_VERSION = ".dev-snapshot-20061214"
TARGET_FPU     = "soft"

NOTE: multiple providers are available (glibc, glibc-intermediate);
NOTE: consider defining
PREFERRED_PROVIDER_virtual/arm-linux-libc-for-gcc
NOTE: multiple providers are available (db3-native, db-native);
NOTE: consider defining PREFERRED_PROVIDER_virtual/db-native
NOTE: multiple providers are available (db3, db);
NOTE: consider defining PREFERRED_PROVIDER_virtual/db
NOTE: package granule-1.1+cvs: started
NOTE: package granule-1.1+cvs-r0: task do_fetch: started
NOTE: fetch
http://ewi546.ewi.utwente.nl/mirror/www.openzaurus.org/official/unstable/3.5.4/sources/granule_granule.cvs.sourceforge.net__20061214.tar.gz
--22:21:52--
http://ewi546.ewi.utwente.nl/mirror/www.openzaurus.org/official/unstable/3.5.4/sources/granule_granule.cvs.sourceforge.net__20061214.tar.gz
           =>
`/extra/stuff/sources/granule_granule.cvs.sourceforge.net__20061214.tar.gz'
Resolving ewi546.ewi.utwente.nl... 130.89.145.130
Connecting to ewi546.ewi.utwente.nl|130.89.145.130|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
22:21:52 ERROR 404: Not Found.

NOTE: Update
cvs://anonymous@granule.cvs.sourceforge.net/cvsroot/granule;method=pserver;module=granule
cvs update: Updating .
cvs update: Updating debian
cvs update: Updating debian.hildon
cvs update: Updating docs
cvs update: Updating docs/C
cvs update: Updating hildon
cvs update: Updating hildon/icons
cvs update: Updating hildon/icons/26x26
cvs update: Updating hildon/icons/40x40
cvs update: Updating hildon/icons/scalable
cvs update: Updating pixmaps
cvs update: Updating po
cvs update: Updating src
NOTE: package granule-1.1+cvs-r0: task do_fetch: completed
NOTE: package granule-1.1+cvs-r0: task do_unpack: started
NOTE:
Unpacking /extra/stuff/sources/granule_granule.cvs.sourceforge.net__20061214.tar.gz to /extra/stuff/tmp/work/arm-linux/granule-1.1+cvs-r0/
NOTE: package granule-1.1+cvs-r0: task do_unpack: completed
NOTE: package granule-1.1+cvs-r0: task do_patch: started
NOTE: package granule-1.1+cvs-r0: task do_patch: completed
NOTE: package granule-1.1+cvs-r0: task do_bootstrap: started
NOTE: SITE
files /extra/stuff/org.openembedded.dev/site/endian-little /extra/stuff/org.openembedded.dev/site/arm-linux
NOTE: package granule-1.1+cvs-r0: task do_bootstrap: completed
NOTE: package granule-1.1+cvs-r0: task do_configure: started
NOTE: SITE
files /extra/stuff/org.openembedded.dev/site/endian-little /extra/stuff/org.openembedded.dev/site/arm-linux
NOTE: package granule-1.1+cvs-r0: task do_configure: completed
NOTE: package granule-1.1+cvs-r0: task do_compile: started
NOTE: SITE
files /extra/stuff/org.openembedded.dev/site/endian-little /extra/stuff/org.openembedded.dev/site/arm-linux
NOTE: package granule-1.1+cvs-r0: task do_compile: completed
NOTE: package granule-1.1+cvs-r0: task do_install: started
NOTE: SITE
files /extra/stuff/org.openembedded.dev/site/endian-little /extra/stuff/org.openembedded.dev/site/arm-linux
ERROR: function do_install failed
ERROR: log data follows (/extra/stuff/tmp/work/arm-linux/granule-1.1
+cvs-r0/temp/log.do_install.5506)
| NOTE: make DESTDIR=/extra/stuff/tmp/work/arm-linux/granule-1.1
+cvs-r0/image install
| make: *** No rule to make target `install'.  Stop.
| FATAL: oe_runmake failed
NOTE: Task failed: /extra/stuff/tmp/work/arm-linux/granule-1.1
+cvs-r0/temp/log.do_install.5506
NOTE: package granule-1.1+cvs-r0: task do_install: failed
ERROR: TaskFailed event exception, aborting
NOTE: package granule-1.1+cvs: failed
ERROR: Build of granule failed
===================================================================

Looking further down, 

[vlg@dollar]> ls /extra/stuff/tmp/work/arm-linux/granule-1.1+cvs-r0/

drwxr-xr-x 11 vlg 4.0K Dec 13 22:22 granule/           <- source pulled
from CVS
drwxr-xr-x  3 vlg 4.0K Dec 13 22:21 granule-1.1+cvs/   <- empty  (????)
drwxr-xr-x  2 vlg 4.0K Dec 13 22:22 image/
drwxr-xr-x  2 vlg 4.0K Dec 13 22:22 temp/


Another pecurliar thing I noted was that do_compile stage completes
awfully fast - it takes about 40 seconds on my machine to build the
package on a regular basis whereas in this case it's the blink of an
eye.

[vlg@dollar]/extra/stuff> bitbake --version
BitBake Build Tool Core version 1.6.3, bitbake version 1.6.3

I'm building with the latest unstable collie.

Any ideas will be very welcomed.
thanks,
-Vlad



             reply	other threads:[~2006-12-14  3:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14  3:29 VLG [this message]
2006-12-14  7:24 ` .bb file syntax question Justin Patrin
2006-12-15  3:13   ` VLG

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1166066984.2740.21.camel@dollar.3rdshift.com \
    --to=3rdshift@comcast.net \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=openembedded-devel@openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.