rofs-filtered: hardening
This commit is contained in:
parent
8048e3997d
commit
2376856b1e
2 changed files with 16 additions and 7 deletions
13
srcpkgs/rofs-filtered/patches/fix-cflags.patch
Normal file
13
srcpkgs/rofs-filtered/patches/fix-cflags.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
Index: CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -9,7 +9,7 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PA
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
|
add_definitions(-D_GNU_SOURCE)
|
||||||
|
-set(CMAKE_C_FLAGS "-Wall -std=c99")
|
||||||
|
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -Wall -std=c99")
|
||||||
|
|
||||||
|
# find fuse library
|
||||||
|
find_package (FUSE REQUIRED)
|
|
@ -1,17 +1,13 @@
|
||||||
# Template file for 'rofs-filtered'
|
# Template file for 'rofs-filtered'
|
||||||
pkgname=rofs-filtered
|
pkgname=rofs-filtered
|
||||||
version=1.7
|
version=1.7
|
||||||
revision=1
|
revision=2
|
||||||
|
wrksrc="${pkgname}-rel-${version}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
makedepends="fuse-devel"
|
makedepends="fuse-devel"
|
||||||
short_desc="Filtered read only filesystem for FUSE"
|
short_desc="Filtered read only filesystem for FUSE"
|
||||||
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
|
maintainer="Alexander Gehrke <void@qwertyuiop.de>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://github.com/gburca/rofs-filtered"
|
homepage="https://github.com/gburca/rofs-filtered"
|
||||||
distfiles="https://github.com/gburca/rofs-filtered/archive/rel-${version}.tar.gz"
|
distfiles="https://github.com/gburca/rofs-filtered/archive/rel-${version}.tar.gz"
|
||||||
checksum=d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8
|
checksum=d66066dfd0274a2fb7b71dd929445377dd23100b9fa43e3888dbe3fc7e8228e8
|
||||||
wrksrc="${pkgname}-rel-${version}"
|
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
sed -i -e 's/CMAKE_C_FLAGS "/CMAKE_C_FLAGS "-fPIC /' ${wrksrc}/CMakeLists.txt
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue