From owner-freebsd-current@FreeBSD.ORG Mon Apr 29 08:39:33 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 A4BC5697; Mon, 29 Apr 2013 08:39:33 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx1.freebsd.org (Postfix) with ESMTP id 810C01F82; Mon, 29 Apr 2013 08:39:33 +0000 (UTC) Received: by mail-pd0-f178.google.com with SMTP id w11so1502022pde.37 for ; Mon, 29 Apr 2013 01:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=5DyYSCRgG4/Laai+5tHaRT+gnP6U9i38CSDr9mfTJjk=; b=YIxiAjpwT91kazeZVHRgpTLxkhrW0PyzM0nsZA/pZFzIWAXUlwx1JcquXeyQOXI+0R li835uB5P2A/7+3682usdwoDBJ8/vjMVEnkYP4+F0KB5vG6jA3zLQqVA/0rqhsPcntEx j3V/Zu8dm8mXE6TrPmytC2iU4X3fM/pnYhZMrDA9Mrn5PDKP7hNHDvu7ATJQLqZB7/mB tysddCn4sCVjkXCZCQmVgHGBpTQLzBPDQiBUTUMvR26hbN2qs1vbhuD833BMkeJGHQDL L6ssnYtFS0lZRX0/hrvbGhBPavBicl5M0Bhv0P7UlMv1Mpldc06Gok1pAVNM+N/nT/FA UrCA== X-Received: by 10.68.90.197 with SMTP id by5mr27890980pbb.196.1367224767040; Mon, 29 Apr 2013 01:39:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.156.163 with HTTP; Mon, 29 Apr 2013 01:39:06 -0700 (PDT) In-Reply-To: <20130429061941.GF76816@glebius.int.ru> References: <20130429061941.GF76816@glebius.int.ru> From: Eir Nym Date: Mon, 29 Apr 2013 12:39:06 +0400 Message-ID: Subject: Re: Installing new world failed (install -l) To: Gleb Smirnoff Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 29 Apr 2013 08:39:33 -0000 On 29 April 2013 10:19, Gleb Smirnoff wrote: > On Sun, Apr 28, 2013 at 11:36:20PM +0400, Eir Nym wrote: > E> Since -l switch introduced into install(8), I can't build new FreeBSD > E> box at all. > E> > E> I do following command set to build new box: (http://eroese.org/mkw.sh) > E> 1) cd /usr/head/src && svn up > E> 2) make buildworld > E> 3) make DESTDIR=/path/to/directory hierarchy distrib-dirs distribution > E> installworld > E> > E> This worked for long time but after some point it had been broken. I > E> found only 20130425 in UPDATING about this, but installing mergemaster > E> gives nothing, obviously. > E> I can't compile new install(8) since I have old system like > E> FreeBSD-9-RELEASE (FreeBSD-CURRENT, r226748) and it doesn't have > E> needed functions. > E> > E> The tail of install log is below. > E> > E> .. (lines removed) > E> mtree -deU -f /usr/head/src/etc/mtree/BSD.sendmail.dist -p > E> /usr/home/root/logs/2013-04-28/16.18.03/distro.i386/ > E> ./var/spool/clientmqueue missing (created) > E> install -l s usr/src/sys /usr/home/root/logs/2013-04-28/16.18.03/distro.i386/sys > E> install: illegal option -- l > E> usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] > E> [-o owner] file1 file2 > E> install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode] > E> [-o owner] file1 ... fileN directory > E> install -d [-v] [-g group] [-m mode] [-o owner] directory ... > E> *** [distrib-dirs] Error code 64 > > I came to the following recipe when upgrading from a stale current to > a modern one. This workarounds problem with install(1) and failure of > clang bootstrap with old time.h in /usr/include. > > cd usr.bin/xinstall > make && make install && make clean > cd - > make hierarchy > make includes > > Now, make buildworld is possible. > I've tried this, but with no hope: Warning: Object directory not changed from original /usr/head/src/usr.bin/xinstall cc -O2 -pipe -I/usr/head/src/usr.bin/xinstall/../../contrib/mtree -I/usr/head/src/usr.bin/xinstall/../../lib/libnetbsd -I/usr/head/src/usr.bin/xinstall/../../lib/libmd -DNDEBUG -std=gnu99 -fstack-protector -Wsystem-headers -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 -c xinstall.c xinstall.c: In function 'main': xinstall.c:301: warning: implicit declaration of function 'gid_from_group' xinstall.c:301: warning: nested extern declaration of 'gid_from_group' xinstall.c:311: warning: implicit declaration of function 'uid_from_user' xinstall.c:311: warning: nested extern declaration of 'uid_from_user' xinstall.c: In function 'metadata_log': xinstall.c:1331: warning: implicit declaration of function 'strsvis' xinstall.c:1331: warning: nested extern declaration of 'strsvis' cc -O2 -pipe -I/usr/head/src/usr.bin/xinstall/../../contrib/mtree -I/usr/head/src/usr.bin/xinstall/../../lib/libnetbsd -I/usr/head/src/usr.bin/xinstall/../../lib/libmd -DNDEBUG -std=gnu99 -fstack-protector -Wsystem-headers -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 -c /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c: In function 'setup_getid': /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:137: warning: implicit declaration of function 'pwcache_groupdb' /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:137: warning: nested extern declaration of 'pwcache_groupdb' /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:139: warning: implicit declaration of function 'pwcache_userdb' /usr/head/src/usr.bin/xinstall/../../contrib/mtree/getid.c:139: warning: nested extern declaration of 'pwcache_userdb' cc -O2 -pipe -I/usr/head/src/usr.bin/xinstall/../../contrib/mtree -I/usr/head/src/usr.bin/xinstall/../../lib/libnetbsd -I/usr/head/src/usr.bin/xinstall/../../lib/libmd -DNDEBUG -std=gnu99 -fstack-protector -Wsystem-headers -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 -o xinstall xinstall.o getid.o -lmd xinstall.o: In function `metadata_log': xinstall.c:(.text+0x169): undefined reference to `strsvis' xinstall.c:(.text+0x20e): undefined reference to `strsvis' xinstall.o: In function `main': xinstall.c:(.text+0x2472): undefined reference to `gid_from_group' xinstall.c:(.text+0x24f8): undefined reference to `uid_from_user' getid.o: In function `setup_getid': getid.c:(.text+0x7c2): undefined reference to `pwcache_groupdb' getid.c:(.text+0x7e2): undefined reference to `pwcache_userdb' *** Error code 1 > -- > Totus tuus, Glebius.