On 3/21/19 2:10 PM, Hans Malissa wrote:
Hi,

I'm playing around with the "Flash-Friendly File System" (f2fs), and I've installed f2fs-tools (https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/about/), the utility package for the f2fs. Building and installing worked nicely, and the mkfs and fsck tools seem to be functioning properly. The only thing that I'm not sure about is where to place the installed files in a LFS-compatible way. I'm aware that f2fs is not part of LFS or BLFS, so I'm addressing this question to the lfs-chat group only. I've followed the instructions given in the f2fs-tools package closely. I did not specify a --prefix when running ./configure, which makes it default to /usr/local (which is okay for a first test). I disabled static libraries and se-linux support, and enabled shared libraries. Here's a list of the files that were installed in /usr/local (the default prefix):

/usr/local/sbin/parse.f2fs
/usr/local/sbin/f2fstat
/usr/local/sbin/sg_write_buffer
/usr/local/sbin/mkfs.f2fs
/usr/local/sbin/fsck.f2fs
/usr/local/sbin/fibmap.f2fs
/usr/local/sbin/f2fscrypt
/usr/local/share/man/man8/sload.f2fs.8
/usr/local/share/man/man8/fsck.f2fs.8
/usr/local/share/man/man8/defrag.f2fs.8
/usr/local/share/man/man8/dump.f2fs.8
/usr/local/share/man/man8/mkfs.f2fs.8
/usr/local/share/man/man8/resize.f2fs.8
/usr/local/share/man/man8/f2fscrypt.8
/usr/local/lib/libf2fs_format.la
/usr/local/lib/libf2fs.la
/usr/local/lib/libf2fs_format.so.5.0.0
/usr/local/lib/libf2fs.so.6.0.0
/usr/local/include/quota.h
/usr/local/include/f2fs_fs.h

Now I'm wondering where to place these files for a system-wide installation (and possibly for using f2fs as a root file system in the future):

1. I guess the man-pages can go into /usr/share/man - I don't see any alternatives to that. 2. I'm not sure about the headers; I'm guessing /usr/include would be appropriate.
3. The *.la files in /usr/local/lib can be deleted.
4. The shared libraries in /usr/local/lib and the the programs in /usr/local/sbin: I'm really not sure. Should it be /usr/lib and /usr/sbin or /lib and /sbin? During the installation of e2fsprogs in LFS, we specified /lib and /sbin. During the installation of dosfstools in BLFS, we even used '--prefix=/' in order not to place the files in subdirectories in /usr.
Any thoughts on this?
Greetings,

Hans

Greetings!

Rebuilding for a prefix of /usr would be simpler, but here's what you would want to do:

1 - move man pages to /usr/share/man

2 - for headers, /usr/include

3 - libraries: Move to /lib, create a symlink:

ln -sv ../../lib/libf2fs.so.6.0.0 /usr/lib/libf2fs.so

ln -sv ../../lib/libf2fs_format.so.5.0.0 /usr/lib/libf2fs_format.so

4 - for binaries, move to /sbin

5 - as you mentioned, remove the *.la files


This is the best approach IMO

--
http://lists.linuxfromscratch.org/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to