You are not logged in.

#1 2015-05-01 00:01:04

derrickcope
Member
Registered: 2015-04-30
Posts: 15

DWM apply patch manually

I want to apply a second patch to dwm and the patch is unsuccessful. How to I apply it manually? I can see the lines of code in the .diff. Do I just go through the dwm.c and find the lines that match. What do the different colors mean? How do I know what line number is to be changed?

Offline

#2 2015-05-01 00:04:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: DWM apply patch manually

An unsuccessful patch will generate a (or more than one, depending on how many files are being patched) *.rej file.

Look at what was rejected, compare it to the *.orig and work out why it failed. You can then manually paste the amended code into the file.

This is all explained in `man patch`.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-05-01 00:22:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: DWM apply patch manually

The colors probably depend on the color scheme of your editor / pager.

Offline

#4 2015-05-02 01:42:32

derrickcope
Member
Registered: 2015-04-30
Posts: 15

Re: DWM apply patch manually

for future reference, the systray patch and the fancycolors clickable patch do not work well together. I applied the patches manually and the result make was fine. after install the bar covers the clickable tabs rather than the tabs being over the bar. This is understandable since they are both patching the status area.

Offline

Board footer

Powered by FluxBB