[Slackbuilds-users] system/st patches can't be applied

Ythogtha yth at ythogtha.org
Sun Apr 1 09:45:48 UTC 2018


Hello all of you,

	I'm using "st", the very small terminal emulator from suckless.org, with
the patches for scrollback.
In the slackbuild, there's a line to include any patch present in the patches/
directory.
However, putting a patch downloaded from the suckless.org website in this
directory doesn't work. "patch" needs to be called with -p1 instead of -p0.

	Here is the (pretty tiny) diff :
##########
diff --git a/system/st/st.SlackBuild b/system/st/st.SlackBuild
index 5f3c1fa1cf..ac8b110397 100644
--- a/system/st/st.SlackBuild
+++ b/system/st/st.SlackBuild
@@ -72,7 +72,7 @@ find -L . \
 # Now apply any other patches that users might have added
 for i in $(ls $CWD/patches); do
   echo "Applying patch $i"
-  patch -p0 < $CWD/patches/$i
+  patch -p1 < $CWD/patches/$i
 done

 # Remove "tic" line from Makefile - we cannot do this here!
##########

Have a nice day !

-- 
Arnaud <yth at ythogtha.org>


More information about the SlackBuilds-users mailing list