From owner-freebsd-questions@FreeBSD.ORG Mon Jan 28 02:04:31 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6D5C4397 for ; Mon, 28 Jan 2013 02:04:31 +0000 (UTC) (envelope-from ralf.mardorf@rocketmail.com) Received: from nm16-vm0.bullet.mail.ird.yahoo.com (nm16-vm0.bullet.mail.ird.yahoo.com [77.238.189.192]) by mx1.freebsd.org (Postfix) with ESMTP id 95035145 for ; Mon, 28 Jan 2013 02:04:30 +0000 (UTC) Received: from [212.82.105.245] by nm16.bullet.mail.ird.yahoo.com with NNFMP; 28 Jan 2013 02:04:28 -0000 Received: from [46.228.39.102] by tm17.bullet.mail.ird.yahoo.com with NNFMP; 28 Jan 2013 02:04:28 -0000 Received: from [127.0.0.1] by smtp139.mail.ir2.yahoo.com with NNFMP; 28 Jan 2013 02:04:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s1024; t=1359338668; bh=ichXrEYWJt1zaUxBD6RIsZ8rdAmWC2uC1pC/jVKu3u4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References:Content-Type:X-Mailer:Mime-Version:Content-Transfer-Encoding; b=Yij9vCUJXP+94/CjT69IyMrXoAzc+lE6hY8gMsHHRGK9GMZnwXWRSJw7sigrYRzu4I1laif8eu1f0q0jlKh3aGBdj1yG+MpeWJ+jSf971TLYk2UuwwaQ8UJWs6fg7tkueabMG/y5WOZSGcNgajL/teh4CvCBtA++8E0S25MXs1k= X-Yahoo-Newman-Id: 845281.13471.bm@smtp139.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: o021OJ0VM1lovxNSSis.l2zKlZIna4ytSrdKIm0Rs9IzfDS FcGmWeNkhSKYYt7EAbU8v2zskILQgJAWqTcES7JcrF71VjTnePev0Ekx3deS vXNLT0KpkcdCWSINF5ZzTHKj8tJVH0kzv7Bp4u3DrSV8yjOkBEAUsrPxWIrB ocGCwrc_RSN_qgiUrutFd8.a.7UIkAROwqEHyv0yKlz_36EQy2qn_DYRlqaX 1aOaS_jyMFDiioaveOJBYs6bWFVj.A_8mrXb3HvQj4xXZ4BNKBOSCBPNPVPI 9Dbc_OE2nOP.5hj5D8_dPFJcM6F36X86J3GV8dWDhapxQZdjkEKmCLSt4Xxz 4Qpv8h00N2kW4_BsJrwYb6svkB0pKQUU.YukMlOo1cE0b48hOkPN.iZvIT.H tiYmUI1EgXB12d2YnWNgLS7NtKNfpH8eHAPmhrfJ9iQ-- X-Yahoo-SMTP: BeMCPs2swBABTJ3kAeEiC_hE0mz8jRexLddJfD8pI2j32fOacjBmXg-- Received: from [78.50.22.55] (ralf.mardorf@78.50.22.55 with login) by smtp139.mail.ir2.yahoo.com with SMTP; 28 Jan 2013 02:04:28 +0000 UTC Message-ID: <1359338667.2513.48.camel@q> Subject: Re: Sharing a mail folder between Linux and FreeBSD From: Ralf Mardorf To: Polytropon Date: Mon, 28 Jan 2013 03:04:27 +0100 In-Reply-To: <20130128014631.4a31dade.freebsd@edvax.de> References: <20130125133346.f1484ed8.freebsd@edvax.de> <20130125150414.f262d162.freebsd@edvax.de> <20130125161215.f498f4e4.freebsd@edvax.de> <5102FE7B.4070808@gmail.com> <20130127153838.15b97613@X220.ovitrap.com> <20130127135806.4d19e997.freebsd@edvax.de> <1359333396.2513.10.camel@q> <20130128014631.4a31dade.freebsd@edvax.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.0-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 02:04:31 -0000 On Mon, 2013-01-28 at 01:46 +0100, Polytropon wrote: > On Mon, 28 Jan 2013 01:36:36 +0100, Ralf Mardorf wrote: > > On Sun, 2013-01-27 at 13:58 +0100, Polytropon wrote: > > > # 1. `cd /usr/src' (or to the directory containing your source tree). > > > # 2. `make buildworld' > > > # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). > > > # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). > > > # [steps 3. & 4. can be combined by using the "kernel" target] > > > # 5. `reboot' (in single user mode: boot -s from the loader prompt). > > > # 6. `mergemaster -p' > > > # 7. `make installworld' > > > # 8. `make delete-old' > > > # 9. `mergemaster' (you may wish to use -i, along with -U or -F). > > > # 10. `reboot' > > > # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) > > > > > > What source tree? I only checked out the kernel source using svn and > > IIRC it's using the /usr/src directory (I'm booted into Linux at the > > moment), without a subdirectory /kernel. I can delete the kernel source, > > since it's IMO fishy to have headers of another revision, than the > > kernel is, but when I asked, I got a reply, that it should be ok for > > FreeBSD. However, I never used the kernel source. > > The content of /usr/src does not only contain the kernel. It's > the whole OS, except of course you have only installed selected > parts of this tree. The file I've mentioned is at the top of > this structure: /usr/src/Makefile contains a short instruction > of how to install kernel and world (and explains other possible > targets). Before I checked out the kernel source it was empty. > > When I updated I did it like that (without subversion or cvs): > > > > # cd /usr/ports/misc/mc && make install clean > > # uname -r > > 8.3-RELEASE > > # freebsd-update -r 9.1-RELEASE upgrade > > # freebsd-update install > > # shutdown -r now > > > > # freebsd-update install > > # cd /usr/ports/ports-mgmt/portupgrade && make install clean > > # /usr/local/sbin/portupgrade -f ruby > > # rm /var/db/pkg/pkgdb.db > > # /usr/local/sbin/portupgrade -f ruby18-bdb > > # rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db > > # /usr/local/sbin/portupgrade -af > > # freebsd-update install > > # shutdown -r now > > > > # freebsd-update IDS >> outfile.ids > > > > I wanted to run it tonight, but since I don't know where my source tree > > is, I can't continue. > > That's the binary way of updating. The kernel definitively was compiled. > If you'd update from source, > the steps would usually involve first updating /usr/src (by > whatever means, CVS no more, SVN or as part of a binary update > that also keeps the OS sources current). To take this approach, > the sources have to be complete. You can follow a -STABLE and > even -CURRENT (-HEAD) branch if you like. > > My suggestion would have been: If you have already used this > method before, and maybe if your current system has been installed > that way, you can "do it again"; if /usr/obj (the "result tree" > for building world and kernel) is still present, only the > "make installworld" steps would have been involved; even better, > if you only have to deal with a few system components, a selective > "make install" would have been sufficient. > > However, it has already been suggested to utilize mtree, because > a real re-installation isn't actually needed (as no files have > been changed, only their permissions, and that can be checked > and corrected using the /etc/mtree reference files). # umount # mtree -U -f /etc/mtree ? Regards, Ralf