ec4c2d75fa
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
17 lines
896 B
Diff
17 lines
896 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -25,11 +25,11 @@
|
|
set(APP_EXEC ${CMAKE_PROJECT_NAME})
|
|
set(DAEMON_EXEC ${CMAKE_PROJECT_NAME}-daemon)
|
|
set(DAEMON_PATH ${CMAKE_INSTALL_FULL_LIBEXECDIR}/${DAEMON_EXEC})
|
|
-if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
|
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
set(BITNESS "32")
|
|
-else(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
|
+else(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
set(BITNESS "64")
|
|
-endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
|
+endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations -Wno-unused-result")
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra -Wuninitialized -Wstrict-prototypes -Wformat -Wformat-security")
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
|