From owner-freebsd-current@FreeBSD.ORG Tue May 25 02:22:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F31316A4CE for ; Tue, 25 May 2004 02:22:09 -0700 (PDT) Received: from cmsrelay02.mx.net (cmsrelay02.mx.net [165.212.11.111]) by mx1.FreeBSD.org (Postfix) with SMTP id E1C0E43D2D for ; Tue, 25 May 2004 02:22:08 -0700 (PDT) (envelope-from noackjr@alumni.rice.edu) Received: from uadvg129.cms.usa.net (165.212.11.129) by cmsoutbound.mx.net with SMTP; 25 May 2004 09:21:54 -0000 Received: from optimator.noacks.org [70.240.201.34] by uadvg129.cms.usa.net (ASMTP/noackjr@usa.net) via mtad (C8.MAIN.3.13N) with ESMTP id 484ieyJV10038M29; Tue, 25 May 2004 09:21:52 GMT X-USANET-Auth: 70.240.201.34 AUTH noackjr@usa.net optimator.noacks.org Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 0E01A6157; Tue, 25 May 2004 04:21:51 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 92608-07; Tue, 25 May 2004 04:21:49 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id 3191A6153; Tue, 25 May 2004 04:21:49 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.12.11/8.12.11) with ESMTP id i4P9LmtO026070; Tue, 25 May 2004 04:21:48 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <40B3102C.9010400@alumni.rice.edu> Date: Tue, 25 May 2004 04:21:48 -0500 From: Jon Noack User-Agent: Mozilla Thunderbird 0.6 (X11/20040518) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Colin Percival References: <40B2FEAF.7050701@alumni.rice.edu> <6.1.0.6.1.20040525091306.0370d840@popserver.sfu.ca> In-Reply-To: <6.1.0.6.1.20040525091306.0370d840@popserver.sfu.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at noacks.org cc: current@freebsd.org Subject: Re: anoncvs.FreeBSD.org gone? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2004 09:22:09 -0000 On 05/25/04 03:17, Colin Percival wrote: > At 09:07 25/05/2004, Jon Noack wrote: >> For the last couple days I have been unable to resolve >> anoncvs.FreeBSD.org. It appears to have disappeared even from the >> FreeBSD DNS servers: > > I believe that anoncvs was recently taken offline due to security > concerns. OK. >> The handbook still mentions anoncvs.FreeBSD.org -- what is the best >> anonymous CVS server for someone in the US? > > This may be a silly question, but why do you need anoncvs? Well, I've made various local modifications to the source tree that are easy to keep around with anoncvs. For example, I got mad at the output of file(1) for recent versions of FreeBSD and created a patch for it (see below for more info). I've written a script to reapply the patch after every CVSup, but this script is only workable if you have a limited number of patches. After a while (adding more patches) I got fed up and started using anoncvs instead and let CVS do the merging. Can you recommend a better way of doing this? I wouldn't it put it past myself to miss the obvious here... Jon Noack file(1) patch: I sent the patch upstream to Christos Zoulas (file's author), but he hasn't released a version with it (4.08+ are partially fixed, but are still rather broken). This patch includes proper detection of FreeBSD 4.10 with it's funky __FreeBSD_version. I will push for an import of whatever version of file is released with this patch. Compare your output of 'file /usr/bin/file' with my patched version below: $ uname -r 5.2.1-RELEASE-p6 $ file /usr/bin/file /usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.2.1, dynamically linked (uses shared libs), stripped My version also tries to determine (with decent success) whether you're running a development version and will then also print the __FreeBSD_version of the executable: $ uname -r 5.2-CURRENT $ file /usr/bin/file /usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 5.2 (502112), dynamically linked (uses shared libs), stripped The submitted patch against file 4.08 (will not apply to FreeBSD's version of file): http://www.noacks.org/freebsd/readelf.c.diff A quick and dirty patch using the same algorithm that applies cleanly to FreeBSD's file (version 3.41 -- src/contrib/file/readelf.c): http://www.noacks.org/freebsd/readelf.c.diff-freebsd