All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel type naming and package version conflicts
@ 2010-12-14 20:52 Darren Hart
  2010-12-14 21:20 ` Bruce Ashfield
  0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2010-12-14 20:52 UTC (permalink / raw)
  To: poky@yoctoproject.org

I believe I've identified why my preempt_rt kernel recipes are failing 
to build. The do_package_write_ipk is complaining about invalid 
characters in the file name - specifically:

kernel-2.6.34.7-rt-yocto-preempt_rt
*** Error: Package name  contains illegal characters, (other than 
[a-z0-9.+-])

Note the "_" in preempt_rt.

This name appears to be generated in part from the following assignment:

LINUX_KERNEL_TYPE = "preempt_rt"
LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"

Changing this to the following allows the build to succeed without error 
(replacing _ with -).
LINUX_VERSION_EXTENSION ?= "-yocto-preempt-rt"

As I see it we have two options, we can rewrite linux-yocto kernel 
branches for use in bitbake package names (replacing _ with -), or we 
can forbid the use of _ in the linux-yocto git branches. Rather than 
clutter up the recipes with string manipulators, I would prefer the 
latter option.

Bruce, Tom, do you have an opinion?


-- 
Darren Hart
Yocto Linux Kernel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel type naming and package version conflicts
  2010-12-14 20:52 kernel type naming and package version conflicts Darren Hart
@ 2010-12-14 21:20 ` Bruce Ashfield
  2010-12-14 21:43   ` Darren Hart
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Ashfield @ 2010-12-14 21:20 UTC (permalink / raw)
  To: Darren Hart; +Cc: poky@yoctoproject.org

On Tue, Dec 14, 2010 at 3:52 PM, Darren Hart <dvhart@linux.intel.com> wrote:
> I believe I've identified why my preempt_rt kernel recipes are failing to
> build. The do_package_write_ipk is complaining about invalid characters in
> the file name - specifically:
>
> kernel-2.6.34.7-rt-yocto-preempt_rt
> *** Error: Package name  contains illegal characters, (other than
> [a-z0-9.+-])
>
> Note the "_" in preempt_rt.
>
> This name appears to be generated in part from the following assignment:
>
> LINUX_KERNEL_TYPE = "preempt_rt"
> LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
>
> Changing this to the following allows the build to succeed without error
> (replacing _ with -).
> LINUX_VERSION_EXTENSION ?= "-yocto-preempt-rt"
>
> As I see it we have two options, we can rewrite linux-yocto kernel branches
> for use in bitbake package names (replacing _ with -), or we can forbid the
> use of _ in the linux-yocto git branches. Rather than clutter up the recipes
> with string manipulators, I would prefer the latter option.

Ah yes. The _ in preempt_rt pre-dates bitbake, but I'm not particularly
attached to it.

As for forbidding, I'll have to add sanity checks, since the branch names
are board customizable, and I know of plenty that will use _'s.

>
> Bruce, Tom, do you have an opinion?

I'll fix preempt_rt to be preempt-rt, and add sanity checks, but won't
go for full replacement.

How does that sound ?

Bruce

>
>
> --
> Darren Hart
> Yocto Linux Kernel
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: kernel type naming and package version conflicts
  2010-12-14 21:20 ` Bruce Ashfield
@ 2010-12-14 21:43   ` Darren Hart
  0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2010-12-14 21:43 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: poky@yoctoproject.org

On 12/14/2010 01:20 PM, Bruce Ashfield wrote:
> On Tue, Dec 14, 2010 at 3:52 PM, Darren Hart<dvhart@linux.intel.com>  wrote:
>> I believe I've identified why my preempt_rt kernel recipes are failing to
>> build. The do_package_write_ipk is complaining about invalid characters in
>> the file name - specifically:
>>
>> kernel-2.6.34.7-rt-yocto-preempt_rt
>> *** Error: Package name  contains illegal characters, (other than
>> [a-z0-9.+-])
>>
>> Note the "_" in preempt_rt.
>>
>> This name appears to be generated in part from the following assignment:
>>
>> LINUX_KERNEL_TYPE = "preempt_rt"
>> LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
>>
>> Changing this to the following allows the build to succeed without error
>> (replacing _ with -).
>> LINUX_VERSION_EXTENSION ?= "-yocto-preempt-rt"
>>
>> As I see it we have two options, we can rewrite linux-yocto kernel branches
>> for use in bitbake package names (replacing _ with -), or we can forbid the
>> use of _ in the linux-yocto git branches. Rather than clutter up the recipes
>> with string manipulators, I would prefer the latter option.
>
> Ah yes. The _ in preempt_rt pre-dates bitbake, but I'm not particularly
> attached to it.
>
> As for forbidding, I'll have to add sanity checks, since the branch names
> are board customizable, and I know of plenty that will use _'s.
>
>>
>> Bruce, Tom, do you have an opinion?
>
> I'll fix preempt_rt to be preempt-rt, and add sanity checks, but won't
> go for full replacement.
>
> How does that sound ?

Sounds sound ;-)

Thanks,

-- 
Darren Hart
Yocto Linux Kernel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-14 21:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-14 20:52 kernel type naming and package version conflicts Darren Hart
2010-12-14 21:20 ` Bruce Ashfield
2010-12-14 21:43   ` Darren Hart

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.