From owner-freebsd-current@FreeBSD.ORG Tue Feb 1 14:11:24 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC0F3106566C for ; Tue, 1 Feb 2011 14:11:24 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7D96D8FC12 for ; Tue, 1 Feb 2011 14:11:24 +0000 (UTC) Received: by iyb26 with SMTP id 26so6139723iyb.13 for ; Tue, 01 Feb 2011 06:11:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.35.131 with SMTP id p3mr8233206ibd.87.1296569483646; Tue, 01 Feb 2011 06:11:23 -0800 (PST) Received: by 10.231.145.198 with HTTP; Tue, 1 Feb 2011 06:11:23 -0800 (PST) In-Reply-To: <86wrljuce6.fsf@gmail.com> References: <86k4hkiyr1.fsf@gmail.com> <86wrljuce6.fsf@gmail.com> Date: Tue, 1 Feb 2011 15:11:23 +0100 Message-ID: From: Olivier Smedts To: Anonymous Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD-current , Shawn Webb Subject: Re: zpool v28 and -current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 14:11:24 -0000 2011/2/1 Anonymous : > Olivier Smedts writes: > >> Hello, >> >> 2011/1/31 Anonymous : >>> Shawn Webb writes: >>> >>>> I'm having trouble building freebsd-current (sources as of 29 Jan 2011= ) with >>>> the latest zpool v28 patch. `make buildworld` fails. I'd attach a copy= of >>>> the build log, but it's pretty big. I can put it online on my tech blo= g if >>>> needed. Has anyone else had the same problem? The `uname -a` output of= the >>>> box in question: >>>> >>>> FreeBSD beastie 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r218075: Sat Jan 29 >>>> 15:14:44 MST 2011 =A0 shawn@beastie:/usr/obj/usr/src/sys/GENERIC amd64 >>> >>> Try below diff-against-diff. I'm using it for weeks with a few p4 commi= ts. >>> >>> inb4 you're encouraged to wait after 7.4/8.2 are out >>> >>> %% >>> --- zfs_20101212.patch =A0 =A0 pjd's original >>> +++ zfs_20101212.patch =A0 =A0 sync with r218058 >> >> Could you send it as an attachment please ? Thanks ! > > It's not needed, patch(1) is smart enough to ignore junk. > > =A0$ fetch http://people.freebsd.org/~pjd/patches/zfs_20101212.patch.bz2 > =A0$ fetch -o anon_fixup.diff 'http://docs.freebsd.org/cgi/getmsg.cgi?fet= ch=3D55203+0+current/freebsd-current+raw' > =A0$ bzip2 -d zfs_20101212.patch.bz2 > =A0$ patch -si anon_fixup.diff > =A0$ cd /usr/src > =A0$ patch -Efsp0 -i $OLDPWD/zfs_20101212.patch > =A0[ any rejects here are probably because of $FreeBSD: ...$ vs. $FreeBSD= $ ] No problem with latest HEAD (r218166) through SVN. > =A0$ make -j5 world kernel DESTDIR=3D/ > > Note, some bugs are fixed in pjd_zfs branch. > > =A0http://p4db.freebsd.org/changeList.cgi?FSPC=3D//depot/user/pjd/zfs/... > > My guess, pjd's patch was generated before 186914. So, in order to grab > all latest p4 commits in the branch try > > =A0[...] > =A0$ for ci in 186914 186921 186938 186940 186942 186944 186945 \ > =A0 =A0 =A0187192 187461 187462 187836 187837 187875 187883 188248; do > =A0 =A0 =A0 =A0p4diff $ci >>zfs_v28_sync.diff; done > =A0$ cd /usr/src > =A0$ patch -Efsp0 -i $OLDPWD/zfs_20101212.patch > =A0$ patch -Efsp6 -i $OLDPWD/zfs_v28_sync.diff > =A0[...] Much thanks for the procedure. And without using ports/devel/p4... wow ! Testing right now. Cheers > %% > #! /bin/sh > # p4diff - a dumb way to grab diffs from perforce cgi > > getopts s: opt > shift $((OPTIND - 1)) > > usage=3D"usage: ${0##*/} [-s servaddr] > ex.: =A0 ${0##*/} 187192" > ch=3D${1:?$usage} > serv=3D${OPTARG:-perforce.freebsd.org} > > fetch -qo- "http://$serv/changeView.cgi?CH=3D$ch" | > sed -n "s|.*fileLogView\.cgi[^>]*>\([^<]*\)<.*|\1|p > =A0 =A0 =A0 =A0s|.*fileViewer\([^\"]*\).*|http://$serv/fileDownLoad\1|p" = | > while read currlink; do > =A0 =A0rev=3D${currlink##*REV=3D} > =A0 =A0prevlink=3D${currlink%%REV=3D*}REV=3D$((rev-1)) > =A0 =A0fetch -qo${prevfile:=3D$(mktemp -t p4diff)} "$prevlink" > =A0 =A0sleep 1 > =A0 =A0fetch -qo${currfile:=3D$(mktemp -t p4diff)} "$currlink" > =A0 =A0read filename > =A0 =A0diff -u $prevfile $currfile | > =A0 =A0sed "s?$prevfile.*?$filename =A0 =A0 =A0 =A0$((ch-1))? > =A0 =A0 =A0 =A0 s?$currfile.*?$filename =A0 =A0 =A0 =A0$ch?" > =A0 =A0rm -f $prevfile $currfile > done > %% > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."