connman-ncurses: respect cflags

This commit is contained in:
Đoàn Trần Công Danh 2022-11-09 21:46:54 +07:00
parent 23e79b5556
commit e0ff4190e6
2 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,13 @@
Index: connman-ncurses-1.0/configure.ac
===================================================================
--- connman-ncurses-1.0.orig/configure.ac
+++ connman-ncurses-1.0/configure.ac
@@ -24,8 +24,6 @@ AC_PROG_CC
AC_PROG_CC_C99
AM_PROG_CC_C_O
-CFLAGS=""
-
AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
[disable code optimization through compiler]), [
if (test "${enableval}" = "no"); then

View File

@ -1,7 +1,7 @@
# Template file for 'connman-ncurses'
pkgname=connman-ncurses
version=1.0
revision=5
revision=6
build_style=gnu-configure
hostmakedepends="automake autoconf pkg-config json-c-devel ncurses-devel dbus-devel"
makedepends="json-c-devel ncurses-devel dbus-devel"
@ -12,10 +12,10 @@ license="GPL-2.0-or-later"
homepage="https://github.com/eurogiciel-oss/connman-json-client"
distfiles="https://github.com/eurogiciel-oss/connman-json-client/archive/v${version}.tar.gz"
checksum=724604787b51cd3bd2ba5d2291f5f2efe0558a1ec78d92d3c92ebc78f6c63219
make_build_args=V=1
CFLAGS=-Wno-error
pre_configure() {
mkdir -p m4
vsed -i Makefile.am -e "s;-Werror;-Wno-error;"
autoreconf -fi
}