diff options
| -rw-r--r-- | meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-sato/puzzles/puzzles_git.bb | 38 |
2 files changed, 5 insertions, 65 deletions
diff --git a/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch b/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch deleted file mode 100644 index d40a3b1ef9..0000000000 --- a/meta/recipes-sato/puzzles/files/0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | From 337799e40350b3db2441cc98f65ec36a74dfb356 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 21 Apr 2017 12:18:08 -0700 | ||
| 4 | Subject: [PATCH] Use -Wno-error=format-overflow= if the compiler supports it | ||
| 5 | |||
| 6 | we need this warning to be suppressed with gcc7+ | ||
| 7 | however older compilers dont support it so we need | ||
| 8 | a way to disble it only if compiler supports it | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | configure.ac | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/configure.ac b/configure.ac | ||
| 18 | index 3a38c95..bb9035e 100644 | ||
| 19 | --- a/configure.ac | ||
| 20 | +++ b/configure.ac | ||
| 21 | @@ -42,7 +42,7 @@ fi | ||
| 22 | if test "x$GCC" = "xyes"; then | ||
| 23 | AC_MSG_CHECKING([for usable gcc warning flags]) | ||
| 24 | gccwarningflags= | ||
| 25 | - for flag in -Wall -Werror -std=c89 -pedantic; do | ||
| 26 | + for flag in -Wall -Werror -std=c89 -pedantic -Wno-error=format-overflow=; do | ||
| 27 | ac_save_CFLAGS="$CFLAGS" | ||
| 28 | ac_save_LIBS="$LIBS" | ||
| 29 | CFLAGS="$CFLAGS$gccwarningflags $flag $GTK_CFLAGS" | ||
| 30 | -- | ||
| 31 | 2.12.2 | ||
| 32 | |||
diff --git a/meta/recipes-sato/puzzles/puzzles_git.bb b/meta/recipes-sato/puzzles/puzzles_git.bb index 16a08585cc..f5e49a4ab2 100644 --- a/meta/recipes-sato/puzzles/puzzles_git.bb +++ b/meta/recipes-sato/puzzles/puzzles_git.bb | |||
| @@ -2,17 +2,14 @@ SUMMARY = "Simon Tatham's Portable Puzzle Collection" | |||
| 2 | DESCRIPTION = "Collection of small computer programs which implement one-player puzzle games." | 2 | DESCRIPTION = "Collection of small computer programs which implement one-player puzzle games." |
| 3 | HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" | 3 | HOMEPAGE = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/" |
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENCE;md5=6099f4981f9461d7f411091e69a7f07a" | 5 | LIC_FILES_CHKSUM = "file://LICENCE;md5=93c2525113e094a4a744cf14d4de07e2" |
| 6 | 6 | ||
| 7 | DEPENDS = "libxt" | 7 | # gtk support includes a bunch of x11 headers |
| 8 | |||
| 9 | # The libxt requires x11 in DISTRO_FEATURES | ||
| 10 | REQUIRED_DISTRO_FEATURES = "x11" | 8 | REQUIRED_DISTRO_FEATURES = "x11" |
| 11 | 9 | ||
| 12 | SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ | 10 | SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ |
| 13 | file://fix-compiling-failure-with-option-g-O.patch \ | 11 | file://fix-compiling-failure-with-option-g-O.patch \ |
| 14 | file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ | 12 | file://0001-palisade-Fix-warnings-with-clang-on-arm.patch \ |
| 15 | file://0001-Use-Wno-error-format-overflow-if-the-compiler-suppor.patch \ | ||
| 16 | file://0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch \ | 13 | file://0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch \ |
| 17 | file://fix-ki-uninitialized.patch \ | 14 | file://fix-ki-uninitialized.patch \ |
| 18 | file://0001-malloc-Check-for-excessive-values-to-malloc.patch \ | 15 | file://0001-malloc-Check-for-excessive-values-to-malloc.patch \ |
| @@ -20,27 +17,15 @@ SRC_URI = "git://git.tartarus.org/simon/puzzles.git \ | |||
| 20 | " | 17 | " |
| 21 | 18 | ||
| 22 | UPSTREAM_CHECK_COMMITS = "1" | 19 | UPSTREAM_CHECK_COMMITS = "1" |
| 23 | SRCREV = "84cb4c6701e027090ff3fd955ce08065e20121b2" | 20 | SRCREV = "c0da615a933a6676e2c6b957368067ca1bc10abd" |
| 24 | PE = "2" | 21 | PE = "2" |
| 25 | PV = "0.0+git${SRCPV}" | 22 | PV = "0.0+git${SRCPV}" |
| 26 | 23 | ||
| 27 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
| 28 | 25 | ||
| 29 | inherit autotools features_check pkgconfig | 26 | inherit cmake features_check pkgconfig |
| 30 | |||
| 31 | PACKAGECONFIG ??= "gtk3" | ||
| 32 | PACKAGECONFIG[gtk2] = "--with-gtk=2,,gtk+," | ||
| 33 | PACKAGECONFIG[gtk3] = "--with-gtk=3,,gtk+3," | ||
| 34 | |||
| 35 | CFLAGS_append = " -Wno-deprecated-declarations" | ||
| 36 | |||
| 37 | ASNEEDED = "" | ||
| 38 | 27 | ||
| 39 | do_configure_prepend () { | 28 | DEPENDS += "gtk+3" |
| 40 | cd ${S} | ||
| 41 | ./mkfiles.pl | ||
| 42 | cd ${B} | ||
| 43 | } | ||
| 44 | 29 | ||
| 45 | do_install_append () { | 30 | do_install_append () { |
| 46 | # net conflicts with Samba, so rename it | 31 | # net conflicts with Samba, so rename it |
| @@ -68,16 +53,3 @@ STOP | |||
| 68 | done | 53 | done |
| 69 | } | 54 | } |
| 70 | 55 | ||
| 71 | PACKAGES += "${PN}-extra" | ||
| 72 | |||
| 73 | FILES_${PN} = "" | ||
| 74 | FILES_${PN}-extra = "${prefix}/bin ${datadir}/applications" | ||
| 75 | |||
| 76 | python __anonymous () { | ||
| 77 | var = d.expand("FILES_${PN}") | ||
| 78 | data = d.getVar(var, False) | ||
| 79 | for name in ("bridges", "fifteen", "inertia", "map", "samegame", "slant"): | ||
| 80 | data = data + " ${bindir}/%s" % name | ||
| 81 | data = data + " ${datadir}/applications/%s.desktop" % name | ||
| 82 | d.setVar(var, data) | ||
| 83 | } | ||
