poky/meta
Yoann Congal 2c59f5ad01 lib/oe/patch: handle creating patches for CRLF sources
Using devtool to patch CRLF based sources creates patch files which have
mixed end of lines : LF for headers and CRLF for source context and
modified lines.

Python open(..., newline=None) (default for newline arg)does detect
end-of-line in this mixed file but only outputs LF EOL data. This
result in patch files that does not apply on the original sources.

Switching to open(..., newline='') allows to detect end-of-line but keep
the original end-of-line intact. This generate correct patches for CRLF
based sources.

Fixes [YOCTO #15285]

(From OE-Core rev: 58f845499c0277a2b8069eefa235430b5f5f7661)

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-06 22:55:49 +00:00
..
classes Revert "cve-check: Modify judgment processing using "=" in version comparison" 2023-12-05 21:16:43 +00:00
classes-global package_ipk: Fix Source: field variable dependency 2023-11-23 12:12:00 +00:00
classes-recipe rust-common.bbclass: Define rust arch for x32 platforms 2023-12-02 17:18:57 +00:00
conf systemtap-uprobes: removed as obsolete 2023-12-06 22:55:49 +00:00
files bitbake.conf: Drop oldincludedir 2023-11-20 15:30:52 +00:00
lib lib/oe/patch: handle creating patches for CRLF sources 2023-12-06 22:55:49 +00:00
recipes-bsp grub: Fix for CVE-2023-4692 and CVE-2023-4693 2023-11-10 17:44:27 +00:00
recipes-connectivity avahi: update URL for new project location 2023-12-06 22:55:49 +00:00
recipes-core gettext: Upgrade 0.22.3 -> 0.22.4 2023-12-06 22:55:49 +00:00
recipes-devtools python3-pygments: upgrade 2.16.1 -> 2.17.2 2023-12-06 22:55:49 +00:00
recipes-extended bash: changes to SIGINT handler while waiting for a child 2023-12-04 11:23:37 +00:00
recipes-gnome json-glib: upgrade 1.6.6 -> 1.8.0 2023-12-06 22:55:49 +00:00
recipes-graphics virglrenderer: Fix build with clang 2023-12-02 17:18:57 +00:00
recipes-kernel systemtap-uprobes: removed as obsolete 2023-12-06 22:55:49 +00:00
recipes-multimedia mpg123: upgrade 1.31.3 -> 1.32.3 2023-11-30 08:43:04 +00:00
recipes-rt rt-tests: update 2.5 -> 2.6 2023-11-30 08:43:04 +00:00
recipes-sato webkitgtk: update 2.40.5 -> 2.42.2 2023-11-30 08:43:04 +00:00
recipes-support vte: Separate out gtk4 pieces of vte into individual packages 2023-12-04 12:45:27 +00:00
site site: remove at-spi2-core values 2023-09-02 07:45:29 +01:00
COPYING.MIT
recipes.txt