Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2004 15:39:11 +0100
From:      Matthias Andree <ma@dt.e-technik.uni-dortmund.de>
To:        Theodore Ts'o <tytso@mit.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: How to fsck -CURRENT on next reboot [ext2fs]
Message-ID:  <m3ad48jfxs.fsf@merlin.emma.line.org>
In-Reply-To: <20040128044345.GC23831@thunk.org> (Theodore Ts'o's message of "Tue, 27 Jan 2004 23:43:45 -0500")
References:  <m37jzmdnhf.fsf@merlin.emma.line.org> <20040122215703.E8399@gamplex.bde.org> <m3d69c81b2.fsf@merlin.emma.line.org> <20040127200335.GA23372@thunk.org> <20040128001647.GA24110@merlin.emma.line.org> <20040128044345.GC23831@thunk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Theodore Ts'o <tytso@mit.edu> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m3ad48jfxs.fsf>