Dynamic Window Manager install with patch(es)

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Sep 22 11:10:04 UTC 2011

On 22/09/2011 11:21, Andy Zammy wrote:
> File to patch: files/patch-defaultopacity
> No file found--skip this patch? [n] n
> File to patch: /usr/home/user/Downloads/dwm.defaultopacity.patch
> patch: **** malformed patch at line 9: @@ -52,6 +54,9 @@
> => Patch patch-defaultopacity failed to apply cleanly.

Um.. when it says 'file to patch', it means it wants the name of a file
to apply the patch /to/, not the file to read the patch /from/.  There
are some requirements about relative paths in the diff file that I
entirely glossed over when I mentioned adding patches to the files
directory; unfortunately not all patches will 'just work' (tm).

[[ Do this next bit after unpacking the distfiles but before building
the port.  ie. after running these commands:

   # cd /usr/ports/x11-wm/dwm
   # make clean ; make extract


For your purposes, first work out how to apply the patch by hand --
ie. running some variant of the command lines

   # cd /usr/ports/x11-wm/dwm/work
   # patch -p0 < ~/downloads/dwm.defaultopacity.patch

However, it seems the patch you've obtained is somehow corrupt.  If it's
not too long, you could post it here, or put it on the web somewhere for
people to look at (pastebin springs to mind).

Once the patch applies cleanly you should be able to continue with
building and installing the port as usual:

   # cd /usr/ports/x11-wm/dwm
   # make ; make install

If you want the low-down on adding patches to a port, start by reading
this section of the Porter's Handbook:


Then take a look at the handy patchtool helper script in
/usr/ports/Tools/scripts/patchtool.py -- the README.patchtool file in
that directory will be more accessible if you aren't fluent in python.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110922/b1c52ebf/signature.pgp

More information about the freebsd-questions mailing list