From owner-freebsd-questions@FreeBSD.ORG Wed May 18 09:32:29 2005 Return-Path: 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 9FB0D16A4CE for ; Wed, 18 May 2005 09:32:29 +0000 (GMT) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id A891143D8D for ; Wed, 18 May 2005 09:32:26 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226])j4I9Uj0h002833; Wed, 18 May 2005 12:30:46 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) j4I9WKP7004014; Wed, 18 May 2005 12:32:20 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost)j4I9WI1j004013; Wed, 18 May 2005 12:32:18 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 18 May 2005 12:32:18 +0300 From: Giorgos Keramidas To: Xu Qiang Message-ID: <20050518093218.GB3537@orion.daedalusnetworks.priv> References: <20050518054505.23DFD1D92E@imss.sgp.fujixerox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050518054505.23DFD1D92E@imss.sgp.fujixerox.com> cc: freebsd-questions@freebsd.org Subject: Re: The availability of socketbits.h? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 09:32:29 -0000 On 2005-05-18 13:54, Xu Qiang wrote: >Ted Mittelstaedt wrote: >> Would you post a diff of the files you had to change to the list once >> you get it running? > > If you follow this thread, it would be quite easy. Anyway, it is my > pleasure to do a summary here. But I don't know how to put the diff > result into a more readable format (like the old line is prefixed with > a "-", and the newline is prefixed with a "+") than this: That should be easy. You'll need two directory hierarchies: * One with the unchanged, "vendor" version of the code, i.e. an extracted copy of the tarballs you got from sourceforge. * One with the fixed version that builds and runs fine on your system. Assuming that you have the tarballs of mlrate-1.1.0 and nngs-1.1.14 that you got from sourceforge under /tmp/nngs/vendor/mlrate-1.1.0 and /tmp/nngs/vendor/nngs-1.1.14 respectively, you can copy these directories recursively to /tmp/nngs/local: # mkdir -p /tmp/nngs/local # cd /tmp/nngs/vendor # cp -Rp mlrate-1.10 nngs-1.1.14 /tmp/nngs/local Then you can make all the changes you need to /tmp/nngs/local and see all the changes of mlrate or nngs in one patchfile with: # cd /tmp/nngs # diff -ruN vendor/mlrate* local/mlrate* > /tmp/nngs/mlrate.patch # less /tmp/nngs/mlrate.patch # cd /tmp/nngs # diff -ruN vendor/nngs* local/nngs* > /tmp/nngs/nngs.patch # less /tmp/nngs/nngs.patch > If you can tell me how to do it in a "-", "+" format, I will post a > complete revision to the list. See above :-)