You are not logged in.

#1 2010-05-04 12:44:59

paldepind
Member
From: Århus, Denmark
Registered: 2010-02-17
Posts: 141

How to install patches in DWM?

I've been trying but I can't figure out how to install patches in DWM. For instance I'm trying to install the Fancybar pathc from the DWM. I tried to do this by going to my dwm directory, run patch -p1 < ~/fancybar-r1496.diff, then rebuild DWM with makepkg -efi --skipinteg and finally restart DWM.. But it doesn't work sad

What am I doing wrong?

Offline

#2 2010-05-04 12:57:16

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: How to install patches in DWM?

If you compile dwm, by hand, you obviously need to run plain "make clean install" and not resort to makepkg. If you want to resort to makepkg (which is in this specific case, IMOO, overkill) you can: apply the patch in the PKGBUILD itself; apply the patch by hand in $startdir/src/dwm-<version>, but then you need to use the specific option "-e", so to instruct makepkg to use the existing $startdir/src without untarring again the source tarball.

Last edited by patroclo7 (2010-05-04 12:57:33)


Mortuus in anima, curam gero cutis

Offline

#3 2010-05-04 13:09:57

paldepind
Member
From: Århus, Denmark
Registered: 2010-02-17
Posts: 141

Re: How to install patches in DWM?

patroclo7 wrote:

If you compile dwm, by hand, you obviously need to run plain "make clean install" and not resort to makepkg. If you want to resort to makepkg (which is in this specific case, IMOO, overkill) you can: apply the patch in the PKGBUILD itself; apply the patch by hand in $startdir/src/dwm-<version>, but then you need to use the specific option "-e", so to instruct makepkg to use the existing $startdir/src without untarring again the source tarball.

Well, the reason I'm using PKGBUILD is because that's what the Arch Wiki says. But if make's better then I'll use that instead. How exactly do I do that?

Offline

#4 2010-05-04 14:53:36

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How to install patches in DWM?

Just edit the PKGBUILD instead of trying to patch the source by hand in the "dwm directory"

Last edited by Mr.Elendig (2010-05-04 14:54:10)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2010-05-04 15:35:07

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: How to install patches in DWM?

I personally find the PKGBUILD system complete overkill for dwm.  Not only does it make more work for you, it assumes that you are the only user on your computer.  The wiki article should specify three different methods of installation/patching however, just read up on the alternative methods.


thayer williams ~ cinderwick.ca

Offline

#6 2010-05-04 20:22:34

paldepind
Member
From: Århus, Denmark
Registered: 2010-02-17
Posts: 141

Re: How to install patches in DWM?

Mr.Elendig wrote:

Just edit the PKGBUILD instead of trying to patch the source by hand in the "dwm directory"

How do I do that?

Offline

Board footer

Powered by FluxBB