From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 06:39:17 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77C9516A4CE for ; Wed, 28 Jan 2004 06:39:17 -0800 (PST) Received: from mail.dt.e-technik.uni-dortmund.de (mail.dt.E-Technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B6F43D45 for ; Wed, 28 Jan 2004 06:39:16 -0800 (PST) (envelope-from ma@dt.e-technik.uni-dortmund.de) Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])302111BA32 for ; Wed, 28 Jan 2004 15:39:15 +0100 (CET) Received: by merlin.emma.line.org (Postfix, from userid 500) id 690AA6AC; Wed, 28 Jan 2004 15:39:11 +0100 (CET) To: Theodore Ts'o In-Reply-To: <20040128044345.GC23831@thunk.org> (Theodore Ts'o's message of "Tue, 27 Jan 2004 23:43:45 -0500") References: <20040122215703.E8399@gamplex.bde.org> <20040127200335.GA23372@thunk.org> <20040128001647.GA24110@merlin.emma.line.org> <20040128044345.GC23831@thunk.org> From: Matthias Andree Date: Wed, 28 Jan 2004 15:39:11 +0100 Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-current@freebsd.org Subject: Re: How to fsck -CURRENT on next reboot [ext2fs] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 28 Jan 2004 14:39:17 -0000 Theodore Ts'o writes: > Would it be legit to have the postinstall script attempt to hard link > /sbin/fsck_ext2fs to /usr/local/..., and if that fails (because /usr > is on a separate filesystem from /), then copy e2fsck to > /sbin/fsck_ext2fs? I had the same idea implemented before I read your mail, and implementing it, I found a build system bug: LIBINTL contains shared libraries (I'm using --enable-elf-shlibs) but is used by the static link as well. The problem appears to be that STATIC_LIBS and LIBS both contain $(LIBINTL), on the assumption that the gcc frontend does the right thing when -ldb is given, but LIBINTL contains "/usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib". On Linux, my LIBINTL is empty for some reason. Anyways, I've worked around that in the port by passing STATIC_LIBS fit for FreeBSD on the make command line. -- Matthias Andree Encrypt your mail: my GnuPG key ID is 0x052E7D95