[Buildroot] [PATCH 01/10] input-tools: convert to gentargets

Martin Banky Martin.Banky at gmail.com
Tue Oct 5 19:26:24 UTC 2010

     Well, what do you know, post patch does work for gentargets! You learn
something new every day. I'll change the packages that are affected and
     Ok, I just checked on the cvs Debian patches, and now remember why I
didn't check the sed routine very hard. The patch is over 12,000 lines long,
however I just checked the patch and found at least on instance where the
patch needs to be fixed. Line 9527, '++++
../build-tree.new/cvs-1.12.13/src/root.c    2006-05-05 23:34:12.000000000
+0800' is one reason why the sed routine is needed. I haven't checked the
other patch sets, but it kind of seems that the sed routine might be needed
after all. Thoughts?


On Tue, Oct 5, 2010 at 11:38 AM, Martin Banky <Martin.Banky at gmail.com>wrote:

> Thomas,
>      I got the Debian patch routine from the cvs package, when I was
> converting it. I just figured that there was some type of formatting issue
> in the debian patches that needed to be addressed. If I read it correctly,
> it looks like it strips any prefix from the name of the package to patch. I
> must confess, I'm not very good with sed. Is this something that doesn't
> need to be done? If so, just let me know, and I'll change the packages that
> are affected.
>      As to the *_TOOLS_BUILD_CMDS issue, until now, I thought that the
> hooks were only available for the autotargets packages. I just re-read that
> section in the Usage and documentation page, and it looks like you can use
> the hooks in a gentargets package. I'll try it out, and change the packages
> that have that issue.
> Martin
> On Tue, Oct 5, 2010 at 2:17 AM, Thomas Petazzoni <
> thomas.petazzoni at free-electrons.com> wrote:
>> Hello,
>> Thanks Martin for doing all this conversion work, this is much
>> appreciated!
>> On Tue,  5 Oct 2010 01:22:34 -0700
>> Martin Banky <martin.banky at gmail.com> wrote:
>> > +     if [ -d $(@D)/debian/patches ]; then \
>> > +             (cd $(@D)/debian/patches && for i in *; \
>> > +              do $(SED) 's,^\+\+\+
>> .*joystick-$(INPUT_TOOLS_VERSION)/,+++ joystick-$(INPUT_TOOLS_VERSION)/,'
>> $$i; \
>> I have seen this in several of your patches, but I don't understand why
>> it is here. There are several other packages that do apply the debian
>> patches, but such a sed step is not needed.
>> Even though it doesn't technically make any difference, I'd prefer to
>> have this as a post-patch hook.
>> Thanks!
>> Thomas
>> --
>> Thomas Petazzoni, Free Electrons
>> Kernel, drivers, real-time and embedded Linux
>> development, consulting, training and support.
>> http://free-electrons.com
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101005/d5c51630/attachment-0002.html>

More information about the buildroot mailing list