You are not logged in.
Pages: 1
I am trying to add a patch from suckless to dmenu. I've never used the patch command before but I think thats what I need to use. I'm not sure which file to patch though. Do I patch the file at /usr/bin/dmenu?
Last edited by davidstein (2020-07-13 03:05:01)
Offline
Does the patch not contain the path it should be applied to?
Offline
Now that you say that I guess it should patch these three files,
config.def.h | 2 ++
dmenu.1 | 3 +++
dmenu.c | 39 ++++++++++++++++++++++++++++++++-------I'm not sure where to find the uncompiled dmenu code though. I know the binaries are in usr/bin. And also, do I apply the patch once to each of those three files?
Offline
See Patching_packages. patch will apply the patch to all the files listed in the patch / diff file.
Offline
Apply the patch to the source files, then rebuild and install the executable.
$ git clone https://git.suckless.org/dmenu
$ cd dmenuDownload the patch into this directory.
$ git apply _name-of-patch-file_
$ make && sudo make installOffline
tucuxi the files installed would then not be tracked by pacman.
Offline
Take a PKGBUILD of a patched dmenu from the AUR as an example to create your own PKGBUILD.
Offline
I read the Patching_packages wiki (should have done that to begin with) and that did the trick. Thanks!
Offline
Pages: 1