All of lore.kernel.org
 help / color / mirror / Atom feed
* ipk zImage in master-next
@ 2015-08-07 13:19 Trevor Woerner
  2015-08-09 10:07 ` Paul Barker
  0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2015-08-07 13:19 UTC (permalink / raw)
  To: yocto, Paul Barker

When packaging a zImage kernel for IPK in master-next the following
error shows up:

| kernel-image-zImage-4.1.2-fslc+g95d9e15
| *** Error: Package name  contains illegal characters, (other than
[a-z0-9.+-])

It looks like the newer kernel.bbclass is much more sophisticated about
generating package names than before.

Has anyone else seen this? Is there a simple way of saying "the type is
zimage where packaging for ipk is concerned but zImage otherwise"?

Best regards,
	Trevor


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

* Re: ipk zImage in master-next
  2015-08-07 13:19 ipk zImage in master-next Trevor Woerner
@ 2015-08-09 10:07 ` Paul Barker
  2015-08-10 13:49   ` Trevor Woerner
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Barker @ 2015-08-09 10:07 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 999 bytes --]

On Fri, Aug 07, 2015 at 09:19:45AM -0400, Trevor Woerner wrote:
> When packaging a zImage kernel for IPK in master-next the following
> error shows up:
> 
> | kernel-image-zImage-4.1.2-fslc+g95d9e15
> | *** Error: Package name  contains illegal characters, (other than
> [a-z0-9.+-])
> 
> It looks like the newer kernel.bbclass is much more sophisticated about
> generating package names than before.
> 
> Has anyone else seen this? Is there a simple way of saying "the type is
> zimage where packaging for ipk is concerned but zImage otherwise"?
> 
> Best regards,
> 	Trevor

I believe this check is present in opkg-build just to ensure compatibility with
the Debian Policy Manual. I don't remember this being an actual restriction of
opkg.

You could try patching the opkg-build script (in opkg-utils) to remove this
check and see if opkg is happy to install the resulting package.

Thanks,

-- 
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]

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

* Re: ipk zImage in master-next
  2015-08-09 10:07 ` Paul Barker
@ 2015-08-10 13:49   ` Trevor Woerner
  2015-08-12 16:05     ` Alejandro del Castillo
  2015-08-14 18:46     ` Paul Barker
  0 siblings, 2 replies; 5+ messages in thread
From: Trevor Woerner @ 2015-08-10 13:49 UTC (permalink / raw)
  To: Paul Barker; +Cc: yocto

On 08/09/15 06:07, Paul Barker wrote:
> On Fri, Aug 07, 2015 at 09:19:45AM -0400, Trevor Woerner wrote:
>> When packaging a zImage kernel for IPK in master-next the following
>> error shows up:
>>
>> | kernel-image-zImage-4.1.2-fslc+g95d9e15
>> | *** Error: Package name  contains illegal characters, (other than
>> [a-z0-9.+-])
>>
>> It looks like the newer kernel.bbclass is much more sophisticated about
>> generating package names than before.
>>
>> Has anyone else seen this? Is there a simple way of saying "the type is
>> zimage where packaging for ipk is concerned but zImage otherwise"?
>>
>> Best regards,
>> 	Trevor
> 
> I believe this check is present in opkg-build just to ensure compatibility with
> the Debian Policy Manual. I don't remember this being an actual restriction of
> opkg.
> 
> You could try patching the opkg-build script (in opkg-utils) to remove this
> check and see if opkg is happy to install the resulting package.

Yes, this works. Removing the check from opkg-build causes my build to
succeed, and the resulting image boots with this kernel (meaning opkg is
happy to install the package into the image).

Normally this is the part where I'd ask if you want me to send a patch,
but if that check is there for a reason, simply removing it isn't a
proper solution.

Thoughts?

Best regards,
	Trevor


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

* Re: ipk zImage in master-next
  2015-08-10 13:49   ` Trevor Woerner
@ 2015-08-12 16:05     ` Alejandro del Castillo
  2015-08-14 18:46     ` Paul Barker
  1 sibling, 0 replies; 5+ messages in thread
From: Alejandro del Castillo @ 2015-08-12 16:05 UTC (permalink / raw)
  To: yocto



On 08/10/2015 08:49 AM, Trevor Woerner wrote:
> On 08/09/15 06:07, Paul Barker wrote:
>> On Fri, Aug 07, 2015 at 09:19:45AM -0400, Trevor Woerner wrote:
>>> When packaging a zImage kernel for IPK in master-next the following
>>> error shows up:
>>>
>>> | kernel-image-zImage-4.1.2-fslc+g95d9e15
>>> | *** Error: Package name  contains illegal characters, (other than
>>> [a-z0-9.+-])
>>>
>>> It looks like the newer kernel.bbclass is much more sophisticated about
>>> generating package names than before.
>>>
>>> Has anyone else seen this? Is there a simple way of saying "the type is
>>> zimage where packaging for ipk is concerned but zImage otherwise"?
>>>
>>> Best regards,
>>> 	Trevor
>>
>> I believe this check is present in opkg-build just to ensure compatibility with
>> the Debian Policy Manual. I don't remember this being an actual restriction of
>> opkg.
>>
>> You could try patching the opkg-build script (in opkg-utils) to remove this
>> check and see if opkg is happy to install the resulting package.
> 
> Yes, this works. Removing the check from opkg-build causes my build to
> succeed, and the resulting image boots with this kernel (meaning opkg is
> happy to install the package into the image).
> 
> Normally this is the part where I'd ask if you want me to send a patch,
> but if that check is there for a reason, simply removing it isn't a
> proper solution.
> 
> Thoughts?

Looks like the dpkg back-end should be broken too. Sounds to me like the problem
is not on opkg-build but on the new changes to the kernel class, maybe is
missing a call to legitimize_package_name?.

-- 
cheers,

Alejandro


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

* Re: ipk zImage in master-next
  2015-08-10 13:49   ` Trevor Woerner
  2015-08-12 16:05     ` Alejandro del Castillo
@ 2015-08-14 18:46     ` Paul Barker
  1 sibling, 0 replies; 5+ messages in thread
From: Paul Barker @ 2015-08-14 18:46 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1790 bytes --]

On Mon, Aug 10, 2015 at 09:49:47AM -0400, Trevor Woerner wrote:
> On 08/09/15 06:07, Paul Barker wrote:
> > On Fri, Aug 07, 2015 at 09:19:45AM -0400, Trevor Woerner wrote:
> >> When packaging a zImage kernel for IPK in master-next the following
> >> error shows up:
> >>
> >> | kernel-image-zImage-4.1.2-fslc+g95d9e15
> >> | *** Error: Package name  contains illegal characters, (other than
> >> [a-z0-9.+-])
> >>
> >> It looks like the newer kernel.bbclass is much more sophisticated about
> >> generating package names than before.
> >>
> >> Has anyone else seen this? Is there a simple way of saying "the type is
> >> zimage where packaging for ipk is concerned but zImage otherwise"?
> >>
> >> Best regards,
> >> 	Trevor
> > 
> > I believe this check is present in opkg-build just to ensure compatibility with
> > the Debian Policy Manual. I don't remember this being an actual restriction of
> > opkg.
> > 
> > You could try patching the opkg-build script (in opkg-utils) to remove this
> > check and see if opkg is happy to install the resulting package.
> 
> Yes, this works. Removing the check from opkg-build causes my build to
> succeed, and the resulting image boots with this kernel (meaning opkg is
> happy to install the package into the image).
> 
> Normally this is the part where I'd ask if you want me to send a patch,
> but if that check is there for a reason, simply removing it isn't a
> proper solution.
> 
> Thoughts?
> 

I'd suggest removing it if the latest version of opkg can install the resulting
package. It's either an old limitation or there purely to comply with the Debian
Policy Manual (which we don't need to comply with).

Thanks,

-- 
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 501 bytes --]

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

end of thread, other threads:[~2015-08-14 23:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-07 13:19 ipk zImage in master-next Trevor Woerner
2015-08-09 10:07 ` Paul Barker
2015-08-10 13:49   ` Trevor Woerner
2015-08-12 16:05     ` Alejandro del Castillo
2015-08-14 18:46     ` Paul Barker

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.