From owner-freebsd-questions@FreeBSD.ORG Thu Sep 22 11:10:04 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4D59106564A for ; Thu, 22 Sep 2011 11:10:04 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 16E638FC12 for ; Thu, 22 Sep 2011 11:10:03 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p8MBA01B020640 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 22 Sep 2011 12:10:00 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p8MBA01B020640 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1316689800; bh=QJAxm27CJJ9KgPjVUDHUDYpRTEej10ABVQ7i9oXhO+k=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4E7B1781.30800@infracaninophile.co.uk>|Date:=20Thu ,=2022=20Sep=202011=2012:09:53=20+0100|From:=20Matthew=20Seaman=20 |User-Agent:=20Mozilla/5.0=20(Mac intosh=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20rv:6.0.2)=20Gecko/201 10902=20Thunderbird/6.0.2|MIME-Version:=201.0|To:=20Andy=20Zammy=2 0|CC:=20freebsd-questions@freebsd.org|Su bject:=20Re:=20Dynamic=20Window=20Manager=20install=20with=20patch (es)|References:=20=20<4E7ADE4B.6010601@infracaninophile.co.uk>= 20|In-Reply-To:=20|X-Enigmail-Version:=201.3.1|OpenPGP:=20id=3 D60AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1= 3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bound ary=3D"------------enigFB9AF7587EA8C372C7B4B24A"; b=Q551+NyKjxvunCBScHLBLbCrPuUN5alYpDxw03JJvp6Bc2OhmtpUvtlAS/mJ1Kob/ OoIWgoKvIsZPOq5+OlkSlM/JZL7iiB9IiJ7YItAoE71fSYgvGPX8zz2BvJQZkez6XC CRnP6gL6Ju4as/yQke7T10Zw5WI5F0qrF9C4kHJ8= Message-ID: <4E7B1781.30800@infracaninophile.co.uk> Date: Thu, 22 Sep 2011 12:09:53 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Andy Zammy References: <4E7ADE4B.6010601@infracaninophile.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFB9AF7587EA8C372C7B4B24A" X-Virus-Scanned: clamav-milter 0.97.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Dynamic Window Manager install with patch(es) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2011 11:10:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFB9AF7587EA8C372C7B4B24A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 @@ > =3D> 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: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-pa= tch.html 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. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigFB9AF7587EA8C372C7B4B24A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk57F4gACgkQ8Mjk52CukIxGnwCdGvlF5xaTI2sqRLmvNhcA2FHM TzAAnAho3sJLKVby1eoPrSOJV78kky/v =ZOvW -----END PGP SIGNATURE----- --------------enigFB9AF7587EA8C372C7B4B24A--