From 84b80b4e1796dd7d8151c7a4f7fdd539f723fa86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 27 Mar 2021 19:26:47 +0700 Subject: [PATCH] ympd: hardening --- srcpkgs/ympd/patches/fix-cflags.patch | 13 +++++++++++++ srcpkgs/ympd/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/ympd/patches/fix-cflags.patch diff --git a/srcpkgs/ympd/patches/fix-cflags.patch b/srcpkgs/ympd/patches/fix-cflags.patch new file mode 100644 index 00000000000..4720dd39e74 --- /dev/null +++ b/srcpkgs/ympd/patches/fix-cflags.patch @@ -0,0 +1,13 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -24,7 +24,7 @@ include_directories(${PROJECT_BINARY_DIR + + include(CheckCSourceCompiles) + +-set(CMAKE_C_FLAGS "-std=gnu99 -Wall") ++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall") + set(CMAKE_C_FLAGS_DEBUG "-ggdb -pedantic") + if(WITH_IPV6) + set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS NS_ENABLE_IPV6) diff --git a/srcpkgs/ympd/template b/srcpkgs/ympd/template index 14437beb538..450c079b2ca 100644 --- a/srcpkgs/ympd/template +++ b/srcpkgs/ympd/template @@ -1,7 +1,7 @@ # Template file for 'ympd' pkgname=ympd version=1.3.0 -revision=7 +revision=8 build_style=cmake hostmakedepends="perl pkg-config" makedepends="libmpdclient-devel openssl-devel"