kuser: fix build w/ newer cmake
This commit is contained in:
parent
1a9c325393
commit
69b196272e
2 changed files with 24 additions and 1 deletions
23
srcpkgs/kuser/patches/fix-cmake.patch
Normal file
23
srcpkgs/kuser/patches/fix-cmake.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
Newer cmake has CHECK_INCLUDE_FILES() instead of check_include_files()
|
||||
and needs to INCLUDE(CheckIncludeFiles) to use that function.
|
||||
|
||||
--- CMakeLists.txt 2013-08-04 06:22:20.000000000 +0200
|
||||
+++ CMakeLists.txt 2016-09-19 12:56:04.548697684 +0200
|
||||
@@ -35,11 +35,12 @@
|
||||
set(KU_FIRSTGID 500 CACHE STRING "First GID of normal users")
|
||||
set(KU_USERPRIVATEGROUP true CACHE STRING "User private groups by default")
|
||||
|
||||
-check_include_files(shadow.h HAVE_SHADOW_H)
|
||||
-check_include_files(crypt.h HAVE_CRYPT_H)
|
||||
-check_include_files(sys/stat.h HAVE_SYS_STAT_H)
|
||||
-check_include_files(unistd.h HAVE_UNISTD_H)
|
||||
-check_include_files(paths.h HAVE_PATHS_H)
|
||||
+INCLUDE(CheckIncludeFiles)
|
||||
+CHECK_INCLUDE_FILES(shadow.h HAVE_SHADOW_H)
|
||||
+CHECK_INCLUDE_FILES(crypt.h HAVE_CRYPT_H)
|
||||
+CHECK_INCLUDE_FILES(sys/stat.h HAVE_SYS_STAT_H)
|
||||
+CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H)
|
||||
+CHECK_INCLUDE_FILES(paths.h HAVE_PATHS_H)
|
||||
check_library_exists(crypt crypt "" HAVE_CRYPT_LIBRARY)
|
||||
|
||||
set(CMAKE_REQUIRED_INCLUDES pwd.h)
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'kuser'
|
||||
pkgname=kuser
|
||||
version=4.14.3
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
configure_args="-Wno-dev -DKDE4_BUILD_TESTS=OFF -DSYSCONF_INSTALL_DIR=/etc"
|
||||
hostmakedepends="cmake automoc4 pkg-config"
|
||||
|
|
Loading…
Reference in a new issue