How to apply a patch to a port
Clay Daniels
clay.daniels.jr at gmail.com
Tue Oct 22 08:34:35 UTC 2019
Thanks Yasuhiro & Polytropon for your help. I was able to apply the
patch. This is what I did, once again doing a fresh install first:
Read "man patch"! Good stuff!
Copied the patch file from a thumbdrive to /root/files. The file looked
ok when I used cat to read it.
Went to main port directory, ran "make patch"
Went to the created /work/work/kms-drm-2d2852e directory, ran patch:
"patch -p0 -i /root/files/patch-linuxkpi_gplv2_src_linux__page.c" (no
-s - no need to be silent)
Patch dialog asked for the patch file, I entered " linux_page.c"
Patch dialog said file not found (as I expected) & asked "Skip [n] ?" ,
I hit return for default no.
Went back up two levels to main port directory, ran "make makepatch"
Then ran " make install" , "make clean"
The exit message said the package was installed, so I rebooted. The
patch did not work as advertised, but I know it was installed as the
behavior was different than an install without the patch.
The best thing is that I now have a pretty good idea of how to do this,
and a better understanding of what I am doing.
I will just wait until Friday for the next weekly snapshot of 13.0
Current. Maybe I will try 12.1-RC2 in the meantime.
Thanks again,
Clay
More information about the freebsd-questions
mailing list