| Summary: | Changing files in packages-split with populate_packages_prepend does not impact rpm packages, while it does for deb and ipk | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Diego <diego.ml> |
| Component: | Scripts and Tools | Assignee: | Ed Bartosh <eduard.bartosh> |
| Status: | RESOLVED NOTABUG | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | jose.perez.carranza, richard.purdie, ross.burton, sgw |
| Version: | unspecified | ||
| Target Milestone: | 2.2 M3 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Diego
2016-07-01 09:16:59 UTC
I know Ed has looked into this. The issue is that deb/ipk use the packages-split directories in a particular way whilst rpm uses the packages-split directory to indicate how to split the packages but pulls the files from packages/, due to the way rpmbuild works. The trouble is your code is breaking some of the assumptions that the packaging code makes. The system doesn't support a few things: a) You can't put the same file into multiple packages. If two packages need it, they should have some kind of dependency relationship on a separate package which contains that file or files. b) You shouldn't bypass PACKAGES and FILES_<pkg>, these are used to build the different packages and used for a variety of checks. Effectively by copying files in populate_packages you're bypassing this. This isn't supported. c) One recipe can't install different files into the same location. You need to use separate recipes for that. So you really need to use a different approach to achieve this, sorry. |