* Re: [PATCH v2] classes/archiver: fix tarball content in "original" mode
[not found] <20260909170357.2887215-1-joaomarcos.costa@bootlin.com>
@ 2026-09-18 8:03 ` Joao Marcos Costa
2026-09-18 8:18 ` [OE-core] " Yoann Congal
0 siblings, 1 reply; 3+ messages in thread
From: Joao Marcos Costa @ 2026-09-18 8:03 UTC (permalink / raw)
To: openembedded-core; +Cc: thomas.petazzoni, paul
Hello, folks
On 9/9/26 7:03 PM, João Marcos Costa wrote:
> When ARCHIVER_MODE[src] is set to "original", a tarball is generated with
> the unpacked sources of a given recipe. Prior to it, a tmpdir
> (i.e. from tempfile.mkdtemp()) is created and the sources are unpacked inside:
>
> (...)/vim/9.2.0340/archiver-work/tmp8pu2nsck
> `-- vim-9.2.0340
> |-- READMEdir
> |-- ci
> |-- lang
>
> This tmpdir, however, ends up being shipped in the deployed tarball:
>
> $ tar -tf vim-9.2.0340-r0.tar.xz
> (...)
> tmp8pu2nsck/vim-9.2.0340/ci/config.mk.clang-12.sed
> tmp8pu2nsck/vim-9.2.0340/LICENSE
> tmp8pu2nsck/vim-9.2.0340/.git-blame-ignore-revs
> (...)
>
> This can be avoided by pointing to the subdir where the sources are
> unpacked, rather than to tmpdir, when calling create_tarball().
>
> The subdir's name can be inferred from 'BP', so we will use
> 'tmp8pu2nsck/vim-9.2.0340/.' instead of 'tmp8pu2nsck/.' as input.
>
> e.g. and in the result:
>
> ./
> ./vim-9.2.0304/
> ./vim-9.2.0304/SECURITY.md
> ./vim-9.2.0304/.codecov.yml
> (...)
>
> Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
> ---
> meta/classes/archiver.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
> index b274c53e79..c824718a1d 100644
> --- a/meta/classes/archiver.bbclass
> +++ b/meta/classes/archiver.bbclass
> @@ -230,7 +230,7 @@ python do_ar_original() {
> else:
> bb.fatal("Cannot determine archive names for original source because 'name=' URL parameter '%s' is used twice. Make it unique in: %s %s" % (tarball_suffix[name], url))
> tarball_suffix[name] = url
> - create_tarball(d, tmpdir + '/.', name, ar_outdir)
> + create_tarball(d, os.path.join(tmpdir, d.getVar('BP'), '.'), name, ar_outdir)
>
> # Emit patch series files for 'original'
> bb.note('Writing patch series files...')
Gentle ping: would there by any updates on this one?
Thanks!
--
Best regards,
João Marcos Costa
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH v2] classes/archiver: fix tarball content in "original" mode
2026-09-18 8:03 ` [PATCH v2] classes/archiver: fix tarball content in "original" mode Joao Marcos Costa
@ 2026-09-18 8:18 ` Yoann Congal
2026-09-18 8:40 ` Joao Marcos Costa
0 siblings, 1 reply; 3+ messages in thread
From: Yoann Congal @ 2026-09-18 8:18 UTC (permalink / raw)
To: joaomarcos.costa, openembedded-core; +Cc: thomas.petazzoni, paul
On Fri Sep 18, 2026 at 10:03 AM CEST, Joao Marcos Costa via lists.openembedded.org wrote:
> Hello, folks
>
> On 9/9/26 7:03 PM, João Marcos Costa wrote:
>> When ARCHIVER_MODE[src] is set to "original", a tarball is generated with
>> the unpacked sources of a given recipe. Prior to it, a tmpdir
>> (i.e. from tempfile.mkdtemp()) is created and the sources are unpacked inside:
>>
>> (...)/vim/9.2.0340/archiver-work/tmp8pu2nsck
>> `-- vim-9.2.0340
>> |-- READMEdir
>> |-- ci
>> |-- lang
>>
>> This tmpdir, however, ends up being shipped in the deployed tarball:
>>
>> $ tar -tf vim-9.2.0340-r0.tar.xz
>> (...)
>> tmp8pu2nsck/vim-9.2.0340/ci/config.mk.clang-12.sed
>> tmp8pu2nsck/vim-9.2.0340/LICENSE
>> tmp8pu2nsck/vim-9.2.0340/.git-blame-ignore-revs
>> (...)
>>
>> This can be avoided by pointing to the subdir where the sources are
>> unpacked, rather than to tmpdir, when calling create_tarball().
>>
>> The subdir's name can be inferred from 'BP', so we will use
>> 'tmp8pu2nsck/vim-9.2.0340/.' instead of 'tmp8pu2nsck/.' as input.
>>
>> e.g. and in the result:
>>
>> ./
>> ./vim-9.2.0304/
>> ./vim-9.2.0304/SECURITY.md
>> ./vim-9.2.0304/.codecov.yml
>> (...)
>>
>> Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
>> ---
>> meta/classes/archiver.bbclass | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
>> index b274c53e79..c824718a1d 100644
>> --- a/meta/classes/archiver.bbclass
>> +++ b/meta/classes/archiver.bbclass
>> @@ -230,7 +230,7 @@ python do_ar_original() {
>> else:
>> bb.fatal("Cannot determine archive names for original source because 'name=' URL parameter '%s' is used twice. Make it unique in: %s %s" % (tarball_suffix[name], url))
>> tarball_suffix[name] = url
>> - create_tarball(d, tmpdir + '/.', name, ar_outdir)
>> + create_tarball(d, os.path.join(tmpdir, d.getVar('BP'), '.'), name, ar_outdir)
>>
>> # Emit patch series files for 'original'
>> bb.note('Writing patch series files...')
>
> Gentle ping: would there by any updates on this one?
> Thanks!
Hello João,
I think there was a mail issue with the patch, it is not on lore (and,
so, invisible to patchwork and most tools):
https://lore.kernel.org/all/970d21c2-3b07-4c54-ada5-c9a0eae762dc@bootlin.com/
> [parent not found: <20260909170357.2887215-1-joaomarcos.costa@bootlin.com>]
I think you should RESEND it.
Regards,
--
Yoann Congal
Smile ECS
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH v2] classes/archiver: fix tarball content in "original" mode
2026-09-18 8:18 ` [OE-core] " Yoann Congal
@ 2026-09-18 8:40 ` Joao Marcos Costa
0 siblings, 0 replies; 3+ messages in thread
From: Joao Marcos Costa @ 2026-09-18 8:40 UTC (permalink / raw)
To: Yoann Congal, openembedded-core; +Cc: thomas.petazzoni, paul
Hello, Yoann
On 9/18/26 10:18 AM, Yoann Congal wrote:
(...)
>
> I think there was a mail issue with the patch, it is not on lore (and,
> so, invisible to patchwork and most tools):
> https://lore.kernel.org/all/970d21c2-3b07-4c54-ada5-c9a0eae762dc@bootlin.com/
>> [parent not found: <20260909170357.2887215-1-joaomarcos.costa@bootlin.com>]
>
> I think you should RESEND it.
>
> Regards,
Oh, that's odd. Thanks for the heads up! I'll resend it.
--
Best regards,
João Marcos Costa
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-18 8:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260909170357.2887215-1-joaomarcos.costa@bootlin.com>
2026-09-18 8:03 ` [PATCH v2] classes/archiver: fix tarball content in "original" mode Joao Marcos Costa
2026-09-18 8:18 ` [OE-core] " Yoann Congal
2026-09-18 8:40 ` Joao Marcos Costa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox