* [krogoth][wic][PATCH] wic: rawcopy: make source filenames unique
@ 2016-07-01 8:05 Ed Bartosh
2016-07-06 12:38 ` Fabio Berton
2016-07-06 15:01 ` [OE-core] problem with blacklisted packages piotr.lewicki
0 siblings, 2 replies; 6+ messages in thread
From: Ed Bartosh @ 2016-07-01 8:05 UTC (permalink / raw)
To: openembedded-core
Rawcopy plugin copies source files to build folder before using them
to assemble result image. After assembling the image wic renames
source files to <image>.p<partition number>. If the same source file
is used in multiple partitions wic breaks trying to rename file that
doesn't exist.
Added <line number> suffix to the files when copying them to the
build dir. This should make filename unique even if the same source
file is used for multiple partitions.
[YOCTO #9826]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
scripts/lib/wic/plugins/source/rawcopy.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py
index 0472f53..7ce0cc4 100644
--- a/scripts/lib/wic/plugins/source/rawcopy.py
+++ b/scripts/lib/wic/plugins/source/rawcopy.py
@@ -67,7 +67,7 @@ class RawCopyPlugin(SourcePlugin):
return
src = os.path.join(bootimg_dir, source_params['file'])
- dst = os.path.join(cr_workdir, source_params['file'])
+ dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno))
if 'skip' in source_params:
dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \
--
2.1.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [krogoth][wic][PATCH] wic: rawcopy: make source filenames unique
2016-07-01 8:05 [krogoth][wic][PATCH] wic: rawcopy: make source filenames unique Ed Bartosh
@ 2016-07-06 12:38 ` Fabio Berton
2016-07-06 15:01 ` [OE-core] problem with blacklisted packages piotr.lewicki
1 sibling, 0 replies; 6+ messages in thread
From: Fabio Berton @ 2016-07-06 12:38 UTC (permalink / raw)
To: Ed Bartosh; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]
Hi Ed,
This patch was already tested, can be applied to krogoth?
Regards,
Fabio
On Fri, Jul 1, 2016 at 5:05 AM, Ed Bartosh <ed.bartosh@linux.intel.com>
wrote:
> Rawcopy plugin copies source files to build folder before using them
> to assemble result image. After assembling the image wic renames
> source files to <image>.p<partition number>. If the same source file
> is used in multiple partitions wic breaks trying to rename file that
> doesn't exist.
>
> Added <line number> suffix to the files when copying them to the
> build dir. This should make filename unique even if the same source
> file is used for multiple partitions.
>
> [YOCTO #9826]
>
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> ---
> scripts/lib/wic/plugins/source/rawcopy.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/lib/wic/plugins/source/rawcopy.py
> b/scripts/lib/wic/plugins/source/rawcopy.py
> index 0472f53..7ce0cc4 100644
> --- a/scripts/lib/wic/plugins/source/rawcopy.py
> +++ b/scripts/lib/wic/plugins/source/rawcopy.py
> @@ -67,7 +67,7 @@ class RawCopyPlugin(SourcePlugin):
> return
>
> src = os.path.join(bootimg_dir, source_params['file'])
> - dst = os.path.join(cr_workdir, source_params['file'])
> + dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'],
> part.lineno))
>
> if 'skip' in source_params:
> dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \
> --
> 2.1.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 2878 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [OE-core] problem with blacklisted packages
2016-07-01 8:05 [krogoth][wic][PATCH] wic: rawcopy: make source filenames unique Ed Bartosh
2016-07-06 12:38 ` Fabio Berton
@ 2016-07-06 15:01 ` piotr.lewicki
2016-07-06 15:23 ` Gary Thomas
2016-07-06 15:35 ` Davis, Michael
1 sibling, 2 replies; 6+ messages in thread
From: piotr.lewicki @ 2016-07-06 15:01 UTC (permalink / raw)
To: openembedded-devel
Hi,
I'm having problem with some of the recipes which are blacklisted due to
problems with compilation using GCC-6.
I wonder if there is a way to "whitelist" those packages without
changing content of original recipe?
For now I have:
GCCVERSION = "5.%"
in my distro.conf so if a recipe is not building due to problems with
gcc6 I simply edit the recipe and remove the line with PNBLACKLIST.
Is there a better way to deal with those problems?
Can this blacklisting depend on "GCCVERSION" ?
Example of problematic recipe : crda (from crda_3.18.bb)
Thanks,
Piotr Lewicki
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] problem with blacklisted packages
2016-07-06 15:01 ` [OE-core] problem with blacklisted packages piotr.lewicki
@ 2016-07-06 15:23 ` Gary Thomas
2016-07-06 15:35 ` Davis, Michael
1 sibling, 0 replies; 6+ messages in thread
From: Gary Thomas @ 2016-07-06 15:23 UTC (permalink / raw)
To: openembedded-devel
On 2016-07-06 17:01, piotr.lewicki wrote:
> Hi,
> I'm having problem with some of the recipes which are blacklisted due to problems with compilation using GCC-6.
>
> I wonder if there is a way to "whitelist" those packages without changing content of original recipe?
>
> For now I have:
>
> GCCVERSION = "5.%"
>
> in my distro.conf so if a recipe is not building due to problems with gcc6 I simply edit the recipe and remove the line
> with PNBLACKLIST.
>
> Is there a better way to deal with those problems?
> Can this blacklisting depend on "GCCVERSION" ?
>
> Example of problematic recipe : crda (from crda_3.18.bb)
>
I asked this same question last week :-) I agree that not everyone
is using the leading edge compilers and making those of us have to
take such pains is a bit unfair.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] problem with blacklisted packages
2016-07-06 15:01 ` [OE-core] problem with blacklisted packages piotr.lewicki
2016-07-06 15:23 ` Gary Thomas
@ 2016-07-06 15:35 ` Davis, Michael
2016-07-07 8:50 ` piotr.lewicki
1 sibling, 1 reply; 6+ messages in thread
From: Davis, Michael @ 2016-07-06 15:35 UTC (permalink / raw)
To: openembedded-devel
You can override the blacklist to off. That is what I have been doing.
Put the following in your local.conf or distro conf file.
PNBLACKLIST[crda] = ""
On Wednesday, July 06, 2016 05:01:56 PM piotr. lewicki wrote:
> Hi,
> I'm having problem with some of the recipes which are blacklisted due to
> problems with compilation using GCC-6.
>
> I wonder if there is a way to "whitelist" those packages without
> changing content of original recipe?
>
> For now I have:
>
> GCCVERSION = "5.%"
>
> in my distro.conf so if a recipe is not building due to problems with
> gcc6 I simply edit the recipe and remove the line with PNBLACKLIST.
>
> Is there a better way to deal with those problems?
> Can this blacklisting depend on "GCCVERSION" ?
>
> Example of problematic recipe : crda (from crda_3.18.bb)
>
>
>
> Thanks,
> Piotr Lewicki
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] problem with blacklisted packages
2016-07-06 15:35 ` Davis, Michael
@ 2016-07-07 8:50 ` piotr.lewicki
0 siblings, 0 replies; 6+ messages in thread
From: piotr.lewicki @ 2016-07-07 8:50 UTC (permalink / raw)
To: Davis, Michael, openembedded-devel, openembedded-core
Awesome.
Then maybe some comment should be added to
meta/classes/blacklist.bbclass for clarity.
Like this:
# * Package can be unblacklisted by setting:
# PNBLACKLIST[pn] = ""
#
Thanks,
Piotr Lewicki
On 06.07.2016 17:35, Davis, Michael wrote:
> You can override the blacklist to off. That is what I have been doing.
> Put the following in your local.conf or distro conf file.
> PNBLACKLIST[crda] = ""
>
> On Wednesday, July 06, 2016 05:01:56 PM piotr. lewicki wrote:
>> Hi,
>> I'm having problem with some of the recipes which are blacklisted due to
>> problems with compilation using GCC-6.
>>
>> I wonder if there is a way to "whitelist" those packages without
>> changing content of original recipe?
>>
>> For now I have:
>>
>> GCCVERSION = "5.%"
>>
>> in my distro.conf so if a recipe is not building due to problems with
>> gcc6 I simply edit the recipe and remove the line with PNBLACKLIST.
>>
>> Is there a better way to deal with those problems?
>> Can this blacklisting depend on "GCCVERSION" ?
>>
>> Example of problematic recipe : crda (from crda_3.18.bb)
>>
>>
>>
>> Thanks,
>> Piotr Lewicki
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-07-07 8:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-01 8:05 [krogoth][wic][PATCH] wic: rawcopy: make source filenames unique Ed Bartosh
2016-07-06 12:38 ` Fabio Berton
2016-07-06 15:01 ` [OE-core] problem with blacklisted packages piotr.lewicki
2016-07-06 15:23 ` Gary Thomas
2016-07-06 15:35 ` Davis, Michael
2016-07-07 8:50 ` piotr.lewicki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.