From owner-freebsd-questions@FreeBSD.ORG Tue Nov 29 13:45:18 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4CE516A41F for ; Tue, 29 Nov 2005 13:45:18 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id A709943D8C for ; Tue, 29 Nov 2005 13:44:53 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 17495 invoked from network); 29 Nov 2005 13:44:47 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 Nov 2005 13:44:47 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 555E628424; Tue, 29 Nov 2005 08:44:46 -0500 (EST) Sender: lowell@be-well.ilk.org To: "Guillaume R." References: <7ab0fd580511280219g3ba34c29p@mail.gmail.com> From: Lowell Gilbert Date: 29 Nov 2005 08:44:46 -0500 In-Reply-To: <7ab0fd580511280219g3ba34c29p@mail.gmail.com> Message-ID: <44veybk1pt.fsf@be-well.ilk.org> Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Problem while patching a file 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: Tue, 29 Nov 2005 13:45:19 -0000 "Guillaume R." writes: > I'm trying to install the last version of emacs (to test Gnus!) on my > box. I've got a compil error, I made a search and found that thread: > http://lists.freebsd.org/pipermail/freebsd-ports/2005-September/025703.html > By reading the thread I could deduce that this patch seems to work > fine. By reading that thread, *I* conclude that the patch is completely unnecesssary today. The emacs port is building fine on the build cluster, on all supported releases. So the compile error is strictly local to you. > I decided to apply it. And here is my problem: I don't know how > to patch correctly a file i suppose coz when i type: > patch src/xterm.c < mypatch.patch Leave out the filename there. As the manual says, you usually just use "patch < patchfile". > Then the patch is not include in the file but simply copied at the top of it. > Could someone explain me how to patch correctly a file? And especially > where i could find some docs on diff/patch commands (apart man)? If you don't want to read the actual manual for the program, then it's unlikely any other documentation will help you either. Just stick with the FreeBSD ports collection and let other people do the porting work for you. Good luck.