diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2020-05-06 07:56:57 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-22 16:23:23 +0100 |
commit | 2c9338ad8f75748e33895a06fb64b1fbd6517682 (patch) | |
tree | 37b6e897306becb5ec0def25c19c08fbe964325a /meta/recipes-extended/newt/files/0002-don-t-ignore-CFLAGS-when-building-snack.patch | |
parent | c0d765f8bfaee261f1e5ce6b4d411ece475c6ad2 (diff) | |
download | poky-2c9338ad8f75748e33895a06fb64b1fbd6517682.tar.gz |
libnewt: Backport patch to fix reproducibility
Backports a patch from upstream to fix a reproducibility problem where
paths would be encoded in the binary.
Drops an obsolete patch that conflicted with the backport
(From OE-Core rev: b8f5114aabf6bbbc4adf5802a6707efaf18ba2ee)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/newt/files/0002-don-t-ignore-CFLAGS-when-building-snack.patch')
-rw-r--r-- | meta/recipes-extended/newt/files/0002-don-t-ignore-CFLAGS-when-building-snack.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/newt/files/0002-don-t-ignore-CFLAGS-when-building-snack.patch b/meta/recipes-extended/newt/files/0002-don-t-ignore-CFLAGS-when-building-snack.patch new file mode 100644 index 0000000000..ca235d5108 --- /dev/null +++ b/meta/recipes-extended/newt/files/0002-don-t-ignore-CFLAGS-when-building-snack.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From f60dc1063607ca1f201ba4cbda467d8af3f78f64 Mon Sep 17 00:00:00 2001 | ||
2 | From: Miroslav Lichvar <mlichvar@redhat.com> | ||
3 | Date: Tue, 1 Oct 2019 16:37:55 +0200 | ||
4 | Subject: [PATCH] don't ignore CFLAGS when building snack | ||
5 | |||
6 | In addition to the flags returned by python-config --cflags, use the | ||
7 | user-specified CFLAGS when building the snack object. | ||
8 | |||
9 | Upstream-Status: Backport from master | ||
10 | Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> | ||
11 | --- | ||
12 | Makefile.in | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/Makefile.in b/Makefile.in | ||
16 | index be5f87b..6facd5e 100644 | ||
17 | --- a/Makefile.in | ||
18 | +++ b/Makefile.in | ||
19 | @@ -96,8 +96,8 @@ _snack.$(SOEXT): snack.c $(LIBNEWTSH) | ||
20 | PIFLAGS=`$$pyconfig --includes`; \ | ||
21 | PLDFLAGS=`$$pyconfig --ldflags`; \ | ||
22 | PLFLAGS=`$$pyconfig --libs`; \ | ||
23 | - echo $(CC) $(SHCFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snack.o snack.c; \ | ||
24 | - $(CC) $(SHCFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snack.o snack.c; \ | ||
25 | + echo $(CC) $(SHCFLAGS) $(CFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snack.o snack.c; \ | ||
26 | + $(CC) $(SHCFLAGS) $(CFLAGS) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snack.o snack.c; \ | ||
27 | echo $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snack.$(SOEXT) $$ver/snack.o -L. -lnewt $(LIBS); \ | ||
28 | $(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snack.$(SOEXT) $$ver/snack.o -L. -lnewt $(LIBS); \ | ||
29 | done || : | ||