Hi,
In our product we need to hide the mouse cursor. This is done modifying the file /etc/default/xserver-nodm in rootfs. I’ve created a custom recipe to modify the file but I’m getting errors:
ERROR: nocursor-1.0-r0 do_patch: Command Error: 'quilt --quiltrc /home/joao/projetos/mT100_imx7_2.8/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/nocursor/1.0-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch no-cursor.patch
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:
--------------------------
|--- /etc/default/xserver-nodm 2018-10-27 15:10:21.619382641 -0300
|+++ /etc/default/xserver-nodm_new 2018-10-27 15:03:52.887492399 -0300
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch no-cursor.patch does not apply (enforce with -f)
ERROR: nocursor-1.0-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/joao/projetos/mT100_imx7_2.8/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/nocursor/1.0-r0/temp/log.do_patch.7314
ERROR: Task (/home/joao/projetos/mT100_imx7_2.8/build/../myTapp-OS/oe_core/meta-mytapp/recipes-mytapp/recipes-core/nocursor_1.0.bb:do_patch) failed with exit code '1'
nocursor_1.0.bb:
SUMMARY = " "
DESCRIPTION = " "
LICENSE = "CLOSED"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://no-cursor.patch"
no-cursor.patch
--- /etc/default/xserver-nodm 2018-10-27 15:10:21.619382641 -0300
+++ /etc/default/xserver-nodm_new 2018-10-27 15:03:52.887492399 -0300
@@ -2,6 +2,6 @@
XSERVER=/usr/bin/Xorg
DISPLAY=:0
-ARGS=" -br -pn "
+ARGS=" -br -pn -nocursor "
HOME=/home/root
USER=root
I’m quite sure the problem is the patch file no-cursor.path. How correctly create the patch?
Best regards