On 03/14/2014 01:39 AM, Burton, Ross wrote:
> On 11 March 2014 17:08, Robert Yang <liezhi.yang@windriver.com> wrote:>> - # Remove the source (SOURCE0, SOURCE1 ...)>> - cmd = cmd + " --rmsource ">> You probably want to keep this as otherwise> deploy/sources/MACHINE/RECIPE/ contains both the .src.rpm and the> separate sources.>
I'd like to remove the sources in the first thought, but that would
cause a problem: if we only re-run the do_package_write_rpm, for example,
when the FILES is changed, then the sources are gone, and we would get
nothing in the .src.rpm. I thing that keep both the .src.rpm and.tar.gz
is not a big problem, so I changed the usage to:
We will always get .tar.gz and other sources, and the .src.rpm is optional:
ARCHIVER_MODE[srpm] ?= "1"
I think that we can move the rpmbuild related code to archiver.*bbclass to
fix the problem, but that would change a lot of the code, I'd like to fix
it in the next release:-)
// Robert
> Ross>>

On 14 March 2014 02:14, Robert Yang <liezhi.yang@windriver.com> wrote:
> I'd like to remove the sources in the first thought, but that would> cause a problem: if we only re-run the do_package_write_rpm, for example,> when the FILES is changed, then the sources are gone, and we would get> nothing in the .src.rpm. I thing that keep both the .src.rpm and.tar.gz> is not a big problem, so I changed the usage to:
Good argument, fair enough.
Ross