From owner-freebsd-questions@FreeBSD.ORG Sun Dec 22 23:20:25 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67FAC7C6 for ; Sun, 22 Dec 2013 23:20:25 +0000 (UTC) Received: from relaygateway02.edpnet.net (relaygateway02.edpnet.net [212.71.1.211]) by mx1.freebsd.org (Postfix) with ESMTP id 05EC51100 for ; Sun, 22 Dec 2013 23:20:24 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlkGAOFyt1JNbXbJ/2dsb2JhbABZgws4g1a1bU+BFBd0giUBAQEEAQEBICsIGAsQCxgCAgUTDgICDwUTAQkIJAgHBAEcBIdnCbElk2OFexeBKY0rAQFPB4IuQIFIBJVHgk8BgTCQZIMuOzGBBA X-IPAS-Result: AlkGAOFyt1JNbXbJ/2dsb2JhbABZgws4g1a1bU+BFBd0giUBAQEEAQEBICsIGAsQCxgCAgUTDgICDwUTAQkIJAgHBAEcBIdnCbElk2OFexeBKY0rAQFPB4IuQIFIBJVHgk8BgTCQZIMuOzGBBA X-IronPort-AV: E=Sophos;i="4.95,533,1384297200"; d="scan'208";a="219422966" Received: from 77.109.118.201.adsl.dyn.edpnet.net (HELO mordor.lan) ([77.109.118.201]) by relaygateway02.edpnet.net with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Dec 2013 00:03:28 +0100 Date: Mon, 23 Dec 2013 00:20:16 +0100 From: Julien Cigar To: Polytropon Subject: Re: make release memstick Message-ID: <20131222232015.GK51116@mordor.lan> References: <20131219093122.GF40836@mordor.lan> <20131219224754.GD51116@mordor.lan> <20131220024545.31f423c3.freebsd@edvax.de> <20131222135250.GH51116@mordor.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20131222135250.GH51116@mordor.lan> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Dec 2013 23:20:25 -0000 On Sun, Dec 22, 2013 at 02:52:50PM +0100, Julien Cigar wrote: > On Fri, Dec 20, 2013 at 02:45:45AM +0100, Polytropon wrote: > > On Thu, 19 Dec 2013 23:47:54 +0100, Julien Cigar wrote: > > > On Thu, Dec 19, 2013 at 10:31:22AM +0100, Julien Cigar wrote: > > > > Hello, > > > > > > > > I'm trying to build a custom FreeBSD memstick for my Soekris box. > > > > Everything runs fine except when I'm doing the $> make memstick target > > > > with sudo, I'v put the logs here: https://dpaste.de/TOOU > > > > > > > > Any idea why does it fails..? > > > > > > No one on this .. ? > > > > YAFIYGI. :-) > > > > > > thanks for replying :) > > > > > > Should I submit a bug report ? > > > > From the messages at https://dpaste.de/TOOU/raw (better readability > > this way) I would conclude that you're running into a problem with > > make's -C parameter and the ~ interpretation because the path names > > look mangled: > > > > mkdir /home/mage/soekris10dst//usr/home/mage/soekris10obj/usr/home/mage/soekris10/release/dist/doc > > > > I tried without -C and I have the same problem .. > > > Also an earlier command executed by make looks wrong: > > > > cd /usr/home/mage/soekris10/release/.. && make TARGET_ARCH=amd64 TARGET=amd64 distributeworld DISTDIR=/usr/home/mage/soekris10obj/usr/home/mage/soekris10/release/dist > > > > The path is "doubled" here, whereas the the upper example shows a > > "concatenation" (notice the "//"). > > > > Maybe sudo is also involved here, because "make -j 3 -C ~/soekris10 > > buildworld buildkernel" didn't seem to get any problems. How about > > trying su instead of sudo? I cannot explain this entirely, but I > > assume this is the result of too many variable resolutions (the > > environmental settings, the command line parameters) and probably > > a strange kind of precedence... > > > > I also tried with su -m but it doesn't work either .. > > I wonder how this DISTDIR is "computed" .. it seems the root of the > problem mage@mordor:/home/mage/soekris10 % env NODOC=yes NOSRC=yes NOPORTS=yes TARGET=amd64 KERNCONF=SOEKRIS DESTDIR=/home/mage/soekris10dst MAKEOBJDIRPREFIX=/home/mage/soekris10obj OLDPWD=/home/mage/soekris10/share PWD=/home/mage/soekris10 TMUX_PANE=%2 TMUX=/tmp/tmux-1001/default,1759,0 _=/usr/bin/env PS1=%n@%m:%d %# SHLVL=2 USER=mage LOGNAME=mage HOME=/home/mage MAIL=/var/mail/mage PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/mage/bin TERM=screen BLOCKSIZE=K MM_CHARSET=UTF-8 LANG=en_US.UTF-8 SHELL=/usr/local/bin/zsh SSH_CLIENT=192.168.0.10 40188 22 SSH_CONNECTION=192.168.0.10 40188 192.168.0.254 22 SSH_TTY=/dev/pts/0 mage@mordor:/home/mage/soekris10 % make -f bsd.obj.mk -V .OBJDIR /usr/home/mage/soekris10obj/usr/home/mage/soekris10 that's also strange, no ? > > > > > > > -- > > Polytropon > > Magdeburg, Germany > > Happy FreeBSD user since 4.0 > > Andra moi ennepe, Mousa, ... > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > -- > No trees were killed in the creation of this message. > However, many electrons were terribly inconvenienced. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced.