{"id":502,"date":"2024-05-15T03:00:03","date_gmt":"2024-05-15T03:00:03","guid":{"rendered":"https:\/\/techris.in\/?p=502"},"modified":"2024-06-20T22:39:22","modified_gmt":"2024-06-20T22:39:22","slug":"how-to-solve-hunks-failed-saving-rejects-to-file","status":"publish","type":"post","link":"https:\/\/techris.in\/python\/how-to-solve-hunks-failed-saving-rejects-to-file.html","title":{"rendered":"How to solve hunks FAILED — saving rejects to file"},"content":{"rendered":"

During the building of android app from python code<\/a> you may come across this error<\/p>\n

\n
RAN: \/usr\/bin\/patch -t -d \/home\/gk\/.local\/share\/python-for-android\/build\/other_builds\/opencv\/arm64-v8a__ndk_target_24\/opencv -p1 -i \/home\/gk\/.local\/lib\/python3.11\/site-packages\/pythonforandroid\/recipes\/opencv\/patches\/p4a_build.patch\r\nSTDOUT:\r\npatching file cmake\/OpenCVDetectPython.cmake\r\nHunk #1 FAILED at 175.\r\nHunk #2 FAILED at 244.\r\n2 out of 2 hunks FAILED -- saving rejects to file cmake\/OpenCVDetectPython.cmake.rej\r\npatching file modules\/python\/CMakeLists.txt<\/code><\/pre>\n<\/div>\n
\n

Table of Contents<\/p>\n