All of lore.kernel.org
 help / color / mirror / Atom feed
* how to convert source rpm spec to bitbake recipe?
@ 2013-03-31  8:45 Michael Fainstein
  2013-04-03  7:47 ` Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Fainstein @ 2013-03-31  8:45 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Is there a tool or guide for conversion of source rpm spec file to bitbake recipe?

I have a distro for our embedded product based on CentOS 5 with about 140 packages. Third are source rpm packages from CentOS without any change, third are with some of our proprietary changes and the rest are our proprietary packages in source rpm format. All source code is in our local repository (Perforce). I use RPM on native host server to build binary rpm packages and use binary rpms for software upgrade on our product. Both build on host and  install on target are driven using the same rpm spec file. Our product uses Freescale's PowerPC CPUs, so I am using PowerPC server to build our distro natively. I'd like to switch to cross-build using bitbake.
So I need to write 140 bitbake recipes that build my packages the same way as RPM and create binary rpm packages with my current existing specs for compatibility with our existing units in the field. That brings me to my question: is there a tool or guide for conversion of source rpm spec file to bitbake recipe that preserve all rpm spec scriplets?

Thanks,
Michael



This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.



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

* Re: how to convert source rpm spec to bitbake recipe?
  2013-03-31  8:45 how to convert source rpm spec to bitbake recipe? Michael Fainstein
@ 2013-04-03  7:47 ` Paul Eggleton
  2013-04-03 10:47   ` Samuel Stirtzel
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2013-04-03  7:47 UTC (permalink / raw)
  To: Michael Fainstein; +Cc: yocto

Hi Michael,

On Sunday 31 March 2013 08:45:23 Michael Fainstein wrote:
> Is there a tool or guide for conversion of source rpm spec file to bitbake
> recipe?

There is scripts/create-recipe - this is aimed at just downloading source and 
using a spec file contained within as a basis for a new recipe (among other 
methods it uses to determine recipe contents), however it could be adapted to 
read a specified spec file I would think.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: how to convert source rpm spec to bitbake recipe?
  2013-04-03  7:47 ` Paul Eggleton
@ 2013-04-03 10:47   ` Samuel Stirtzel
  2013-04-03 11:21     ` Michael Fainstein
  0 siblings, 1 reply; 5+ messages in thread
From: Samuel Stirtzel @ 2013-04-03 10:47 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto@yoctoproject.org

2013/4/3 Paul Eggleton <paul.eggleton@linux.intel.com>:
> Hi Michael,
>
> On Sunday 31 March 2013 08:45:23 Michael Fainstein wrote:
>> Is there a tool or guide for conversion of source rpm spec file to bitbake
>> recipe?
>
> There is scripts/create-recipe - this is aimed at just downloading source and
> using a spec file contained within as a basis for a new recipe (among other
> methods it uses to determine recipe contents), however it could be adapted to
> read a specified spec file I would think.
>
> Cheers,
> Paul

Hi Paul,
good to know.

Does this script also helps with packaging?

For KDE there are tons of sub-packages within one recipe, adding them
per hand is the major time factor in this case.
Currently I use a decrepit script [1] to do this, but maybe I can use
this one if it meets my expectations.

[1] kde-spec2bb.sh beware, contains excessive sed usage:
http://pastebin.com/3g5xDKJ5


--
Regards
Samuel


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

* Re: how to convert source rpm spec to bitbake recipe?
  2013-04-03 10:47   ` Samuel Stirtzel
@ 2013-04-03 11:21     ` Michael Fainstein
  2013-04-03 11:45       ` Samuel Stirtzel
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Fainstein @ 2013-04-03 11:21 UTC (permalink / raw)
  To: Samuel Stirtzel; +Cc: yocto@yoctoproject.org

> -----Original Message-----
> From: Samuel Stirtzel [mailto:s.stirtzel@googlemail.com]
> Sent: יום ד 03 אפריל 2013 13:47
> To: Paul Eggleton
> Cc: Michael Fainstein; yocto@yoctoproject.org
> Subject: Re: [yocto] how to convert source rpm spec to bitbake recipe?
> 
> 2013/4/3 Paul Eggleton <paul.eggleton@linux.intel.com>:
> > Hi Michael,
> >
> > On Sunday 31 March 2013 08:45:23 Michael Fainstein wrote:
> >> Is there a tool or guide for conversion of source rpm spec file to
> bitbake
> >> recipe?
> >
> > There is scripts/create-recipe - this is aimed at just downloading source
> and
> > using a spec file contained within as a basis for a new recipe (among
> other
> > methods it uses to determine recipe contents), however it could be
> adapted to
> > read a specified spec file I would think.
> >
> > Cheers,
> > Paul
> 
> Hi Paul,
> good to know.
> 
> Does this script also helps with packaging?
> 
> For KDE there are tons of sub-packages within one recipe, adding them
> per hand is the major time factor in this case.
> Currently I use a decrepit script [1] to do this, but maybe I can use
> this one if it meets my expectations.
> 
> [1] kde-spec2bb.sh beware, contains excessive sed usage:
> http://pastebin.com/3g5xDKJ5
> 
> 
> --
> Regards
> Samuel

Hi Samuel,
kde-spec2bb.sh script references spec2bb.inc script. Can you post a link to it?

Thanks,
Michael


This e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.


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

* Re: how to convert source rpm spec to bitbake recipe?
  2013-04-03 11:21     ` Michael Fainstein
@ 2013-04-03 11:45       ` Samuel Stirtzel
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Stirtzel @ 2013-04-03 11:45 UTC (permalink / raw)
  To: Michael Fainstein; +Cc: yocto@yoctoproject.org

2013/4/3 Michael Fainstein <Michael.Fainstein@ecitele.com>:
>> -----Original Message-----
>> From: Samuel Stirtzel [mailto:s.stirtzel@googlemail.com]
>> Sent: יום ד 03 אפריל 2013 13:47
>> To: Paul Eggleton
>> Cc: Michael Fainstein; yocto@yoctoproject.org
>> Subject: Re: [yocto] how to convert source rpm spec to bitbake recipe?
>>
>> 2013/4/3 Paul Eggleton <paul.eggleton@linux.intel.com>:
>> > Hi Michael,
>> >
>> > On Sunday 31 March 2013 08:45:23 Michael Fainstein wrote:
>> >> Is there a tool or guide for conversion of source rpm spec file to
>> bitbake
>> >> recipe?
>> >
>> > There is scripts/create-recipe - this is aimed at just downloading source
>> and
>> > using a spec file contained within as a basis for a new recipe (among
>> other
>> > methods it uses to determine recipe contents), however it could be
>> adapted to
>> > read a specified spec file I would think.
>> >
>> > Cheers,
>> > Paul
>>
>> Hi Paul,
>> good to know.
>>
>> Does this script also helps with packaging?
>>
>> For KDE there are tons of sub-packages within one recipe, adding them
>> per hand is the major time factor in this case.
>> Currently I use a decrepit script [1] to do this, but maybe I can use
>> this one if it meets my expectations.
>>
>> [1] kde-spec2bb.sh beware, contains excessive sed usage:
>> http://pastebin.com/3g5xDKJ5
>>
>>
>> --
>> Regards
>> Samuel
>
> Hi Samuel,
> kde-spec2bb.sh script references spec2bb.inc script. Can you post a link to it?
>

The spec2bb.inc only handles the parameters.
But sure here is the link: http://pastebin.com/S64CkYUa


--
Regards
Samuel


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

end of thread, other threads:[~2013-04-03 11:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-31  8:45 how to convert source rpm spec to bitbake recipe? Michael Fainstein
2013-04-03  7:47 ` Paul Eggleton
2013-04-03 10:47   ` Samuel Stirtzel
2013-04-03 11:21     ` Michael Fainstein
2013-04-03 11:45       ` Samuel Stirtzel

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.