Gentoo Archives: gentoo-user

From: "»Q«" <boxcars@×××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: static nano - how to?
Date: Wed, 01 Feb 2012 06:09:17
Message-Id: 20120201000731.2f4fb884@fuchsia.remarqs.net
In Reply to: Re: [gentoo-user] static nano - how to? by Florian Philipp
1 On Tue, 31 Jan 2012 23:25:37 +0100
2 Florian Philipp <lists@×××××××××××.net> wrote:
3
4 > Am 31.01.2012 18:15, schrieb Helmut Jarausch:
5 > > Hi,
6 > >
7 > > from time to time I need to boot in 'single' mode.
8 > > I'd like to use the nano editor in this case.
9 > > But unfortunately it doesn't run since it cannot resolve the
10 > > dynamic library libmagic.so.1
11 > >
12 > > How can I build a static version of nano?
13 > >
14 > > Many thanks for a hint,
15 > > Helmut.
16 >
17 > That must be a use flag issue:
18 >
19 > ldd `which nano`
20 > linux-vdso.so.1 => (0x00007fffde9ff000)
21 > libncursesw.so.5 => /lib64/libncursesw.so.5
22 > (0x00007f47f3b64000) libc.so.6 => /lib64/libc.so.6
23 > (0x00007f47f37be000) libdl.so.2 => /lib64/libdl.so.2
24 > (0x00007f47f35ba000) /lib64/ld-linux-x86-64.so.2 (0x00007f47f3dc5000)
25 >
26 > USE="ncurses nls unicode -debug -justify -minimal -slang -spell"
27
28 libmagic is used by >=app-editors/nano-2.3.0