summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/bc/bc/no-gen-libmath.patch
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-07-17 17:38:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-24 11:52:26 +0100
commite3af86e98d62d09507011618ce254b12f5466750 (patch)
treea898fdcaed57a0b2f83415a9ae2b95e3caeed2ff /meta/recipes-extended/bc/bc/no-gen-libmath.patch
parent1d8c7fa36981dcecda45a417b0eb3943e049f4e0 (diff)
downloadpoky-e3af86e98d62d09507011618ce254b12f5466750.tar.gz
bc: upgrade to 1.07.1
Relicensed to just GPLv3+, update LICENSE and checksums. The build dependency for flex should be flex-native. libmath.h is missing from the tarball (it was present in 1.06) and the generation rules are not cross-friendly, so delete the rules and copy in a pre-generated libmath.h. Remove fix-segment-fault.patch as the fixes are now upstream. Add PACKAGECONFIG for readline and libedit, defaulting to readline. (From OE-Core rev: 9862849ba883c110e4d2c57c39ab2c58e9b2d216) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/bc/bc/no-gen-libmath.patch')
-rw-r--r--meta/recipes-extended/bc/bc/no-gen-libmath.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-extended/bc/bc/no-gen-libmath.patch b/meta/recipes-extended/bc/bc/no-gen-libmath.patch
new file mode 100644
index 0000000000..c4cce58759
--- /dev/null
+++ b/meta/recipes-extended/bc/bc/no-gen-libmath.patch
@@ -0,0 +1,24 @@
1These rules are not cross-friendly so delete them and we'll generate the file offline.
2
3Upstream-Status: Inappropriate
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6diff --git a/bc/Makefile.am b/bc/Makefile.am
7index d9d412e..f244241 100644
8--- a/bc/Makefile.am
9+++ b/bc/Makefile.am
10@@ -31,14 +31,6 @@ global.o: libmath.h
11
12 fbcOBJ = main.o bc.o scan.o execute.o load.o storage.o util.o warranty.o
13
14-libmath.h: libmath.b $(fbcOBJ) $(LIBBC)
15- echo '{0}' > libmath.h
16- $(MAKE) global.o
17- $(LINK) -o fbc $(fbcOBJ) global.o $(LIBBC) $(LIBL) $(READLINELIB) $(LIBS)
18- ./fbc -c $(srcdir)/libmath.b </dev/null >libmath.h
19- $(srcdir)/fix-libmath_h
20- rm -f ./fbc ./global.o
21-
22 sbcOBJ = main.o sbc.o scan.o execute.o global.o load.o storage.o util.o \
23 warranty.o
24 sbc.o: sbc.c