Bug 3763 - generate error if file in FILES is not found
Summary: generate error if file in FILES is not found
Status: RESOLVED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Low enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-01-21 09:42 UTC by Frans Meulenbroeks
Modified: 2017-06-20 11:14 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frans Meulenbroeks 2013-01-21 09:42:38 UTC

    
Comment 1 Frans Meulenbroeks 2013-01-21 09:45:54 UTC
Aargh, accidently hit enter, anyway here is the description.
Also not sure if this belongs in the bitbake section but didn't know about a better place.

I bumped into a recipe that generated multiple packages. In the FILES_xyz for one of the packages there was a typo (/ missing after ${sbindir} ).
bitbake silently skipped the files and packed the file in the base package (so in FILES).
It would have been nice if it had barfed that it could not find/package one of the files mentioned in FILES_xyz.
Comment 2 Richard Purdie 2013-01-21 13:49:33 UTC
This isn't practical since we have default FILES expressions which don't always match any files. I'm therefore not sure how we can reasonably fix this?
Comment 3 Frans Meulenbroeks 2013-01-22 08:04:16 UTC
I understand there are default expressions for FILES that will not always match.
However for user specified files there should (imho) be a match.

I see several ways to fix this. To give a few:

split files into two, say IFILES for the internal default FILES and FILES for the ones in the recipe. FILES is then checked for presentness, after that IFILES and FILES are merged and used as today.

or

Use an indicator in the file spec in FILES that there does not need to be a match.
E.g. by prefixing or postfixing the file spec

or

require only matches for file specs without wildcards.

or maybe even compare the entries in FILES with a whitelist variable containing entries that can be there but do not need to have a match

(and ideally I would expect that every entry that a user specified in FILES should result in a match).
Comment 4 Richard Purdie 2017-06-20 11:14:46 UTC
I can't see anyone wanting to split FILES into two components, we just don't have the time/resources or interest to do that. I'm therefore not sure we can practically do this.

What would be nice would be a graphical representation of the packaging process in something like toaster but equally, that is also under resources right now.