From bb3a94e7ce9bfb5bb9cc05930191849c395e770e 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:08:11 +0700 Subject: [PATCH] xstarter: hardening --- .../patches/cmake-build-type-none.patch | 22 +++++++++++++++++++ srcpkgs/xstarter/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xstarter/patches/cmake-build-type-none.patch diff --git a/srcpkgs/xstarter/patches/cmake-build-type-none.patch b/srcpkgs/xstarter/patches/cmake-build-type-none.patch new file mode 100644 index 00000000000..4f793e4c473 --- /dev/null +++ b/srcpkgs/xstarter/patches/cmake-build-type-none.patch @@ -0,0 +1,22 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -5,16 +5,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8) + + project(xstarter) + +-if(NOT CMAKE_BUILD_TYPE) +- set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build (Debug or Release)" FORCE) +-endif() +- + set(PROJECT_VERSION "0.8.0") +-if (CMAKE_BUILD_TYPE STREQUAL Debug) +- set(CMAKE_C_FLAGS "-g -Wall -pedantic") +-else() +- set(CMAKE_C_FLAGS "-Wall -pedantic -O3") +-endif() ++set(CMAKE_C_FLAGS "-Wall -pedantic ${CMAKE_C_FLAGS}") + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin") + + set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") diff --git a/srcpkgs/xstarter/template b/srcpkgs/xstarter/template index aa9a47e45e5..4363d36e3c3 100644 --- a/srcpkgs/xstarter/template +++ b/srcpkgs/xstarter/template @@ -1,7 +1,7 @@ # Template file for 'xstarter' pkgname=xstarter version=0.8.0 -revision=1 +revision=2 build_style=cmake hostmakedepends="pkg-config" makedepends="glib-devel ncurses-devel"