From owner-freebsd-stable@FreeBSD.ORG Sun Feb 24 04:44:23 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CF302B41 for ; Sun, 24 Feb 2013 04:44:23 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) by mx1.freebsd.org (Postfix) with ESMTP id 69DD714BD for ; Sun, 24 Feb 2013 04:44:23 +0000 (UTC) Received: from [188.108.250.211] (helo=michael-think) by www81.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.74) (envelope-from ) id 1U9TRl-0007rq-EO; Sun, 24 Feb 2013 05:44:22 +0100 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Jeremy Chadwick" Subject: Re: svn - but smaller? References: <20130125092723.GC79995@e-Gitt.NET> <1359320641-6493504.60501067.fr0RL3aYw027137@rs149.luxsci.com> <1359380582-6256705.77592125.fr0SDgrYH000991@rs149.luxsci.com> <20130224031509.GA47838@icarus.home.lan> <20130224041638.GA51493@icarus.home.lan> Date: Sun, 24 Feb 2013 05:44:10 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: In-Reply-To: <20130224041638.GA51493@icarus.home.lan> User-Agent: Opera Mail/12.14 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.5/16731/Sun Feb 24 03:57:31 2013) Cc: John Mehr , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2013 04:44:23 -0000 On Sun, 24 Feb 2013 05:16:38 +0100, Jeremy Chadwick wrote: > On Sun, Feb 24, 2013 at 04:56:23AM +0100, Michael Ross wrote: >> On Sun, 24 Feb 2013 04:15:09 +0100, Jeremy Chadwick >> wrote: >> >> >On Sun, Feb 24, 2013 at 03:45:57AM +0100, Michael Ross wrote: >> >>On Sun, 24 Feb 2013 01:36:36 +0100, John Mehr wrote: >> >> >> >>> Hello all, >> >>> I've believe I've made just about all of the progress >> >>optimizing svnup >> >>> as I can and I've just submitted it as a new port. With my >> >>~ 350kb/s >> >>> DSL connection, it now takes just under 30 minutes to >> >>download a fresh >> >>> base/releng/8.3 tree using svnup (Subversion's svn takes >> >>approximately >> >>> 12 minutes). Incremental updates, such as tracking one of >> >>the stable >> >>> branches takes only 2-3 minutes. >> >>> For anyone that wants to preview the port before it gets >> >>added to the >> >>> ports tree (assuming I got the send-pr correct), the tarball is >> >>>located >> >>> at: >> >>> http://jcm.dsl.visi.com/freebsd/svnup/svnup-0.5.tar.xz >> >>> Please let me know if you find any issues. >> >> >> >> >> >>Maybe it's me, but: >> >> >> >>No Makefile. >> >>So I try manually: >> >> >> >>gurder> cc svnup.c >> >>/tmp//cconKEOv.o: In function `compare_md5': >> >>svnup.c:(.text+0x175e): undefined reference to `MD5Init' >> >>svnup.c:(.text+0x1774): undefined reference to `MD5Update' >> >>svnup.c:(.text+0x1785): undefined reference to `MD5End' >> >>/tmp//cconKEOv.o: In function `get_files': >> >>svnup.c:(.text+0x1f20): undefined reference to `MD5Init' >> >>svnup.c:(.text+0x1f4e): undefined reference to `MD5Update' >> >>svnup.c:(.text+0x1f5f): undefined reference to `MD5End' >> >> >> >> >> >>9.0-STABLE FreeBSD 9.0-STABLE #17: Fri May 4 02:53:49 CEST 2012 >> > >> >Those are all defined in libmd (see MD5Init(3) man page). Thus: >> > >> >cc -o svnup svnup.c -lmd >> > >> >> Thanks. >> >> gurder> ./svnup -h svn0.us-west.FreeBSD.org -b ports/head -l test >> >> Dumps core: http://gurder.ross.cx/misc/svnup.core > > Should be easy enough to debug: > > $ cc -g3 -ggdb -o svnup svnup.c -lmd > $ gdb svnup > (gdb) run -h svn0.us-west.FreeBSD.org -b ports/head -l test > > Then once it cores, provide the output from "bt" and/or "bt full". > > Might also be useful to compile with -Wall to see if there are any > compile-time warnings. > gurder> cc -Wall -g3 -ggdb -o svnup svnup.c -lmd svnup.c: In function 'main': svnup.c:1002: warning: zero-length printf format string svnup.c:1020: warning: zero-length printf format string svnup.c:1027: warning: zero-length printf format string svnup.c:1065: warning: zero-length printf format string (gdb) run -h svn0.us-west.FreeBSD.org -b ports/head -l test Starting program: /usr/ports/sysutils/svnup-0.5/svnup -h svn0.us-west.FreeBSD.org -b ports/head -l test ####### Fetching revision: 312860 ? test/archivers Program received signal SIGSEGV, Segmentation fault. 0x0000000800b22950 in strchr () from /lib/libc.so.7 Backtrace: http://gurder.ross.cx/misc/backtrace.txt