* [Buildroot] changing sources before patching
@ 2016-03-13 19:28 Alexander Dahl
2016-03-13 19:45 ` Bernd Kuhls
2016-03-13 21:53 ` Arnout Vandecappelle
0 siblings, 2 replies; 3+ messages in thread
From: Alexander Dahl @ 2016-03-13 19:28 UTC (permalink / raw)
To: buildroot
Hei hei,
in the fli4l [1] project, we use buildroot as build system, a little
custom stuff on top, but basically it's buildroot. Now Carsten wanted to
make a package for sfftools [2], especially sfftobmp3. The source is
only available from subversion and we need to patch it. The problem we
face is: some files we need to patch (e.g. configure.ac) have CRLF aka
DOS line endings and patch fails then. So we want to convert the line
endings to LF aka unix before patching. Is this possible with buildroot
and how? Or does anyone else has a good idea for an elegant solution to
this problem?
(please keep Carsten and Christoph in Cc)
Greets
Alex
[1] http://www.fli4l.de/
[2] https://sourceforge.net/projects/sfftools/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160313/8a531e54/attachment.asc>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] changing sources before patching
2016-03-13 19:28 [Buildroot] changing sources before patching Alexander Dahl
@ 2016-03-13 19:45 ` Bernd Kuhls
2016-03-13 21:53 ` Arnout Vandecappelle
1 sibling, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2016-03-13 19:45 UTC (permalink / raw)
To: buildroot
[posted and mailed]
Alexander Dahl <post@lespocky.de> wrote in
news:56E5BF43.90507 at lespocky.de:
> This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
> --NrP0L1VLM4NiKNKJwl3xQicXrxMteJBOT
>The problem we face is: some files we need to patch (e.g. configure.ac)
>have CRLF aka DOS line endings and patch fails then.
Hi Alexander,
patching a package where source files contain CRLF is possible with
buildroot, the patch file has to contain CRLF as well, for example see
https://git.busybox.net/buildroot/tree/package/transmission/0001-fix-utypes
.patch
Regards, Bernd
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] changing sources before patching
2016-03-13 19:28 [Buildroot] changing sources before patching Alexander Dahl
2016-03-13 19:45 ` Bernd Kuhls
@ 2016-03-13 21:53 ` Arnout Vandecappelle
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2016-03-13 21:53 UTC (permalink / raw)
To: buildroot
On 03/13/16 20:28, Alexander Dahl wrote:
> Hei hei,
>
> in the fli4l [1] project, we use buildroot as build system, a little
> custom stuff on top, but basically it's buildroot. Now Carsten wanted to
> make a package for sfftools [2], especially sfftobmp3. The source is
> only available from subversion and we need to patch it. The problem we
> face is: some files we need to patch (e.g. configure.ac) have CRLF aka
> DOS line endings and patch fails then. So we want to convert the line
> endings to LF aka unix before patching. Is this possible with buildroot
> and how? Or does anyone else has a good idea for an elegant solution to
> this problem?
As Bernt wrote, you can have a patch containing the correct CRLF.
Alternatively, you can run a conversion in the _PRE_PATCH_HOOKS.
Regards,
Arnout
>
> (please keep Carsten and Christoph in Cc)
>
> Greets
> Alex
>
> [1] http://www.fli4l.de/
> [2] https://sourceforge.net/projects/sfftools/
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-13 21:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-13 19:28 [Buildroot] changing sources before patching Alexander Dahl
2016-03-13 19:45 ` Bernd Kuhls
2016-03-13 21:53 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox