Skip to contentSkip to conversation

changing sources before patching

Buildroot Alexander Dahl 3 participants 3 messages Mar 13, 2016

lore
Share & tools
lore
#0 lore raw

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>

#1 lore raw

[posted and mailed]

Alexander Dahl <[email protected]> wrote in
news:56E5BF43.90507 at lespocky.de:

Quoted 4 lines

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

#2 lore raw
In reply to Alexander Dahl
Quoted 11 lines · Alexander Dahl

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

Quoted 16 lines

(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

Signature · 6 lines
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