From owner-freebsd-current@FreeBSD.ORG Thu May 16 07:18:53 2013 Return-Path: Delivered-To: freebsd-current@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 DEE95418 for ; Thu, 16 May 2013 07:18:53 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 7D239274 for ; Thu, 16 May 2013 07:18:53 +0000 (UTC) Received: from [82.113.121.41] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UcsSb-0007JK-33 for freebsd-current@freebsd.org; Thu, 16 May 2013 09:18:45 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r4G7IgR7001135 for ; Thu, 16 May 2013 09:18:43 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r4G7IgTk001134 for freebsd-current@freebsd.org; Thu, 16 May 2013 09:18:42 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Thu, 16 May 2013 09:18:41 +0200 From: Matthias Apitz To: freebsd-current@freebsd.org Subject: MAKEOBJDIRPREFIX and rsync/cp problem (was: Re: head && auditdistd) Message-ID: <20130516071840.GA1043@tiny.Sisis.de> References: <20130514064752.GA1098@tiny.Sisis.de> <20130514170856.GA7271@sh4-5.1blu.de> <4461yli2jq.fsf@lowell-desk.lan> <20130515071110.GA965@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20130515071110.GA965@tiny.Sisis.de> X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.121.41 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 May 2013 07:18:53 -0000 El día Wednesday, May 15, 2013 a las 09:11:11AM +0200, Matthias Apitz escribió: > # newfs /dev/ad4s1a > # mount /dev/ad4s1a /mnt > # setenv MAKEOBJDIRPREFIX /home/guru/head/obj > # cd /home/guru/head/src > # make installworld DESTDIR=/mnt > > ... > >>> Installing everything > -------------------------------------------------------------- > cd /home/guru/head/src; make -f Makefile.inc1 install > ===> share/info (install) > ===> lib (install) > ===> lib/csu/i386-elf (install) > cc -O2 -pipe -I/home/guru/head/src/lib/csu/i386-elf/../common -I/home/guru/head/src/lib/csu/i386-elf/../../libc/include -std=gnu99 -Qunused-arguments -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c crti.S > cc: not found > *** [crti.o] Error code 127 Yesterday evening I investigated in detail why this was failing. It failed for two reasons: 1) On the host where world and kernel have been compiled the sources and resulting obj files have been in /home/guru/head/src /home/guru/head/obj and MAKEOBJDIRPREFIX=/home/guru/head/obj was used; later both trees have been copied over to the USB stick to /mnt/home/guru/head/src /mnt/home/guru/head/obj with the idea that when this was booted the trees would be again like the original ones /home/....; and the same MAKEOBJDIRPREFIX would make the "make installworld" (...) happy again; but not, it failed; the installer was unable to locate the obj files and wanted to run compilation again; the reason for this was that on the original host /home was a symlink: # ls -l /home lrwxr-xr-x 1 root wheel 8 28 abr 11:06 /home -> usr/home while this was not the same on the USB system; after changing this the installer could find the objects; 2) But then a 2nd problem showed up: for the first time I copied "src" and "obj" to the USB stick with rsync(1) this way # cd /home/guru/head/ # rsync -av -q --cvs-exclude src /mnt/home/guru/head/ # rsync -av -q --cvs-exclude obj /mnt/home/guru/head/ in the past I have used always the cp(1) command this way: # cp -Rp src /mnt/home/guru/head/ # cp -Rp obj /mnt/home/guru/head/ I wanted to use rsync(1) with --cvs-exclude to not copy over all the .svn/.... files to the USB key; but silently this failed and a lot of files and dirs have been missing on the target directory tree; until now I have no idea why :-( Any hints? matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards