[Buildroot] [PATCH] apply-patches.sh: use series file to apply patches in proper order

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Mar 14 08:59:35 UTC 2012


On 22:23 Tue 13 Mar     , Ludovic Desroches wrote:
> On Tue, Mar 13, 2012 at 02:05:40PM +0100, Julien Boibessot wrote:
> > On 03/12/2012 09:57 AM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > >On 18:29 Thu 08 Mar     , Samuel Martin wrote:
> > >>Hi Ludovic,
> > >>
> > >>>+    # If there is a series file, use it instead of using ls sort order
> > >>>+    # to apply patches. Skip line starting with a dash.
> > >>>+    if [ -e "${path}/series" ] ; then
> > >>>+        for i in `cat ${path}/series | grep -Ev "^#" 2>  /dev/null` ; do
> > >>Or simply:
> > >>for i in `grep -Ev "^#" ${path}/series 2>  /dev/null` ; do
> > >why not simply use quilt?
> > >
> 
> I have just followed Arnout comments since they have already discussed about
> this topic.
> 
> > >it will simply also patch series upgrade
> > >
> > >we just have to add quilt to the host tools
> > 
> > +1
> > 
> 
> Why not.
> 
> I have never used quilt so I have read the man page and I don't see how
> it could make our life easier to simply apply patches.
You can easly manage conflict when upgrading the series

and you just need to do quilt push
> 
> From what I have seen (the man page and a small tutorial), it is requiring
> a series file so I don't see how it can be useful to apply a patch serie
> without this series file.
> 
> As I said, I have never used quilt so I'm probably wrong. Maybe I have missed
> some useful and powerful commands. Please let me know how it can feet our needs.
yes it's quilt manage the series file and you can push or pop patch and it's
used for 20 years IIRC originally for the kernel to maintain patch series when GIT
does not even exist

Best Regards,
J.


More information about the buildroot mailing list