Commit Graph

136 Commits

Author SHA1 Message Date
Nitin A Kamble fc81ca7d2d insane.bbclass: Throw better error if path is bad
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-06-07 16:05:12 +01:00
Nitin A Kamble 8825d4d455 License Checking: convert an error into warning
If license file md5 information (LIC_FILES_CHKSUMS variable) is
missing in the recipe then just throw a warning instead of the build
failure.
  Once enough recipes' LIC_FILES_CHKSUMS are filled then this warning
will be reverted back to the the fetal error.
  If LIC_FILES_CHKSUMS field is present but invalid then the it still
causes a fetal build error.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-05-12 10:54:05 -07:00
Nitin A Kamble 2ca1f78a95 License Change checking:
Added a new variable in recipe : LIC_FILES_CHKSUM

It is a required field for every recipe.

It describes license text location in the source files. And also stores
md5sum of that license text. Any change in this license text triggers build
error. Which enables developer to review any changes in the license and
update the license fields in the recipe accordingly.

For Example: contents of zlib_1.2.3.bb
LICENSE = "zlib"
LIC_FILES_CHKSUM = "file://README;md5=ae764cfda68da96df20af9fbf9fe49bd \
  file://zlib.h;beginline=1;endline=30;md5=6ab03f03a5ee92d06b809797d4d5586d "

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-05-11 16:25:39 -07:00
Joshua Lock e7fa3529f3 Update classes to use lib/oe
Adapt modifications from upstream to make Poky classes use lib/oe for the
common Python functionality.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-06 12:53:16 +01:00
Richard Purdie 847324b79b classes/conf: Update to handle gcc-runtime
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-29 22:28:49 +01:00
Richard Purdie fd34f26511 insane.bbclass: Since we have no legacy packaging, no need to repeatedly scan staging
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-26 16:00:13 +00:00
Richard Purdie ed2be0f349 insane.bbclass: Fix typo
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14 11:37:56 +00:00
Richard Purdie 9604ad0ddf cross-canadian: Fix gettext issues
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14 11:25:42 +00:00
Joshua Lock aef159c70c insane.bbclass: Fix multiline string
Earlier commit had created a multiline string without
updating the python string quotation (""" for multiline).

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-06 13:18:18 +00:00
Joshua Lock aee835ba8f insane.bbclass: enhance gettext error message
Point the user at gettext.bbclass which handles adding the
correct gettext to DEPENDS.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-06 09:32:41 +00:00
Joshua Lock 8a7fd14ad4 insane.bbclass: special case gettext as it can't depend on itself
Only run the gettext section of the QA configure sanity check if
the package is not gettext as the gettext tools, shipped with
gettext, use the macro employed in the sanity check.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-04 10:34:00 +00:00
Joshua Lock 2be65803cb insane.bbclass: Fix gettext test
The previous gettext check was broken resulting in many false positives.
This improved version works as follows:
* Adds to the existing os.walk() and builds a list of configure.in and
  configure.ac files
* Tests whether DEPENDS includes an appropriate gettext
* If not greps the configure files in the list for instances of AM_GNU_GETTEXT
* If if an instance is found we bb.fatal with an appropriate message

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-21 10:51:50 +00:00
Joshua Lock 4859945b11 insane.bbclass: Handle native packages in the gettext test
When the package we are checking is a native package we need to check
for gettext-native rather than gettext in the DEPENDS.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-17 10:26:05 +00:00
Joshua Lock 71e21a72cd insane.bbclass: Check whether gettext is required but not in DEPENDS
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-15 21:07:14 +00:00
Joshua Lock 62ab23e067 insane.bbclass: Skip arch check for Cross Canadian
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-14 11:56:01 +00:00
Richard Purdie b772c8cde5 bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot
This change makes the purpose of the staging directory more obvious and
the taskname more true to what it now actually does.

The layout version number is increased due to the change in layout
but code to convert existing directories and insert a symlink for
backwards compatibility is included.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:42 +00:00
Richard Purdie c54117458a classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:28 +00:00
Richard Purdie 0d7207ca39 sdk.bbclass: Rename to nativesdk.bbclass
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17 22:25:22 +01:00
Richard Purdie be10b46b73 base.bbclass: Use explode_deps from bb.utils and remove the obsolete base.bbclass version 2009-02-05 23:54:11 +00:00
Richard Purdie 1e53b0f578 insane.bbclass: Drop pointless QA_LOG variable, add QA_LOGFILE so QA errors can optionally end up logged in one place for ease of reference. Add sanity check searching for tmpdir references within built packages, not fatal at present.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4309 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-22 21:22:11 +00:00
Marcin Juszkiewicz fd652ded2e insane.bbclass: use 'desktop-file-validate' from staging not from host system
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4159 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-03 05:17:32 +00:00
Richard Purdie b1e715e233 insane.bbclass: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4060 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19 15:53:07 +00:00
Ross Burton a99199d729 insane.bbclass: find desktop-file-validate on the path, so it can be added to ASSUME_PROVIDED
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4053 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19 14:45:14 +00:00
Ross Burton dad7da8290 insane.bbvlass: split checks so the warnings are precise
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3478 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-13 16:58:42 +00:00
Ross Burton 5477906ca1 insane.bbclass: use bb.error when reporting desktop file problems
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3152 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-11-14 09:48:17 +00:00
Ross Burton ab2a04d843 insane.bbclass: validate desktop files
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3151 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-11-14 09:36:55 +00:00
Marcin Juszkiewicz c67429e4a1 insane.bbclass: fix x86_64 arch name (from OE)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2910 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-10-19 10:29:34 +00:00
Ross Burton 9694023446 insane.bbclass: don't raise strings, but exceptions
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2679 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-09-03 10:49:33 +00:00
Richard Purdie 5781fe13d6 insane.bbclass: Merge updates from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2644 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-09-02 09:46:35 +00:00
Richard Purdie aca29f112c package.bbclass/insane.bbclass: Don't set task dependencies when PACKAGES is empty
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1455 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-04-10 11:23:14 +00:00
Richard Purdie 409335beae classes: Rework core dependencies to work properly at the task level
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1427 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-04-03 11:31:02 +00:00
Ross Burton 74e0426503 Fix typo when reporting an error
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1258 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-02-04 18:44:37 +00:00
Ross Burton 4292e8199b Remove exclude hack in insane.bbclass and replace it with something a little less foul. This involces adding INSANE_SKIP_package=1 statements to the relevant .bb files
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1197 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-22 20:11:19 +00:00
Ross Burton 539b0f853a Add exclude list for now, until insane can handle per-package exclusions
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1196 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-22 19:41:29 +00:00
Ross Burton 6e6fdde69b When checking for .so files in non-dev packages, only check for .so symlinks
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1195 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-22 17:04:39 +00:00
Ross Burton 248c3ed477 Add insane, from OE (but with fatal warnings)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1187 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-21 21:28:51 +00:00