slitaz-41 -- CmakeLists.txt-patch
+#install(TARGETS slimlock RUNTIME DESTINATION bin)
Executing: compile_rules
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- CMakeLists.txt 2022-06-18 19:10:05.000000000 +0200
|+++ CMakeLists.txt 2022-06-18 19:10:18.000000000 +0200
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
----
compile_rules()
{
patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
mkdir build; cd build
|--- CMakeLists.txt 2022-06-18 19:10:05.000000000 +0200
|+++ CMakeLists.txt 2022-06-18 19:10:18.000000000 +0200patch -p1 < $stuff/$PACKAGE-$VERSION.patch || return 1
patching file CMakeLists.txt
Hunk #1 succeeded at 221 (offset -3 lines).
patch -p1 should be patch -p0
https://forum.slitaz.org/topic/slitaz-development-strategy-direction/page/7#post-50854
root@slitaz:~# cat /home/slitaz/wok/slim/stuff/slim-1.3.6.patch
--- CMakeLists.txt 2022-06-18 19:10:05.000000000 +0200
+++ CMakeLists.txt 2022-06-18 19:10:18.000000000 +0200
@@ -224,7 +224,7 @@
####### install
# slim
install(TARGETS slim RUNTIME DESTINATION bin)
-install(TARGETS slimlock RUNTIME DESTINATION bin)
+#install(TARGETS slimlock RUNTIME DESTINATION bin)
if (BUILD_SHARED_LIBS)
set_target_properties(libslim PROPERTIES
----
disable slimlock
-install(TARGETS slimlock RUNTIME DESTINATION bin)
+install(TARGETS RUNTIME DESTINATION bin)