From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v8 06/12] e2fsprogs: let it create symlinks
Date: Sat, 22 Apr 2017 14:49:14 +0200 [thread overview]
Message-ID: <20170422144914.60f5b97e@free-electrons.com> (raw)
In-Reply-To: <20170422115955.22718-7-arnout@mind.be>
Hello,
On Sat, 22 Apr 2017 13:59:49 +0200, Arnout Vandecappelle
(Essensium/Mind) wrote:
> From: Carlos Santos <casantos@datacom.ind.br>
>
> We have post-install hooks to create the symlinks mkfs.ext2 -> mke2fs
> etc. However, the e2fsprogs build system creates those symlinks itself.
> So just rely on that.
>
> fsck.ext4dev and mkfs.ext4dev were dropped in version 1.43.4.
>
> Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> [Arnout: keep configure options more or less alphabetical]
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This would definitely be a very very nice cleanup, but it doesn't seem
to work. I've tried to build the following configuration:
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2017.02-756-gae15148.tar.bz2"
BR2_TOOLCHAIN_EXTERNAL_GCC_4_8=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_E2FSPROGS=y
# BR2_PACKAGE_E2FSPROGS_BADBLOCKS is not set
# BR2_PACKAGE_E2FSPROGS_CHATTR is not set
# BR2_PACKAGE_E2FSPROGS_DUMPE2FS is not set
# BR2_PACKAGE_E2FSPROGS_E2FREEFRAG is not set
# BR2_PACKAGE_E2FSPROGS_E2FSCK is not set
# BR2_PACKAGE_E2FSPROGS_E2LABEL is not set
# BR2_PACKAGE_E2FSPROGS_E2UNDO is not set
# BR2_PACKAGE_E2FSPROGS_FILEFRAG is not set
# BR2_PACKAGE_E2FSPROGS_LOGSAVE is not set
# BR2_PACKAGE_E2FSPROGS_LSATTR is not set
# BR2_PACKAGE_E2FSPROGS_MKE2FS is not set
# BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND is not set
# BR2_PACKAGE_E2FSPROGS_TUNE2FS is not set
# BR2_TARGET_ROOTFS_TAR is not set
and I get numerous broken symbolic links:
thomas at skate:~/projets/buildroot (master)$ ls -l output/target/usr/sbin/
total 116
-rwxr-xr-x 1 thomas thomas 13976 avril 22 14:38 e4crypt
-rwxr-xr-x 1 thomas thomas 18180 avril 22 14:38 fsck
lrwxrwxrwx 1 thomas thomas 6 avril 22 14:38 fsck.ext2 -> e2fsck
lrwxrwxrwx 1 thomas thomas 6 avril 22 14:38 fsck.ext3 -> e2fsck
lrwxrwxrwx 1 thomas thomas 6 avril 22 14:38 fsck.ext4 -> e2fsck
lrwxrwxrwx 1 thomas thomas 6 avril 22 14:38 mkfs.ext2 -> mke2fs
lrwxrwxrwx 1 thomas thomas 6 avril 22 14:38 mkfs.ext3 -> mke2fs
lrwxrwxrwx 1 thomas thomas 6 avril 22 14:38 mkfs.ext4 -> mke2fs
-rwxr-xr-x 1 thomas thomas 80996 avril 22 14:38 tune2fs
So basically: all the symbolic links are broken. It raises a few
questions:
- What is the difference between the fsck option and the e2fsck option?
- Why is this creating the symbolic links even for programs not
installed (e2fsck and mke2fs in our case) ?
- Why is tune2fs built/installed even if it wasn't enabled in my
configuration?
- Why is e4crypt built/installed?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-04-22 12:49 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-22 11:59 [Buildroot] [PATCH v8 00/12] e2fsprogs: refactor to fix conflicts with busybox and util-linux Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 01/12] e2fsprogs: change upstream URL sf.net -> sourceforge.net Arnout Vandecappelle
2017-04-22 12:28 ` Thomas Petazzoni
2017-04-22 11:59 ` [Buildroot] [PATCH v8 02/12] e2fsprogs: add missing arch depends to comment Arnout Vandecappelle
2017-04-22 12:28 ` Thomas Petazzoni
2017-04-22 11:59 ` [Buildroot] [PATCH v8 03/12] e2fsprogs: change into menuconfig Arnout Vandecappelle
2017-04-22 12:28 ` Thomas Petazzoni
2017-04-22 11:59 ` [Buildroot] [PATCH v8 04/12] e2fsprogs: remove uuidgen support Arnout Vandecappelle
2017-04-22 12:29 ` Thomas Petazzoni
2017-04-22 21:57 ` Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 05/12] e2fsprogs: use libblkid and libuuid from util-linux for host Arnout Vandecappelle
2017-04-22 12:30 ` Thomas Petazzoni
2017-04-22 11:59 ` [Buildroot] [PATCH v8 06/12] e2fsprogs: let it create symlinks Arnout Vandecappelle
2017-04-22 12:49 ` Thomas Petazzoni [this message]
2017-04-22 22:32 ` Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 07/12] e2fsprogs: refactor to fix conflicts with busybox and util-linux Arnout Vandecappelle
2017-04-22 13:03 ` Thomas Petazzoni
2017-04-22 22:34 ` Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 08/12] e2fsprogs: add help text for all config options Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 09/12] e2fsprogs: disable unneeded features for host Arnout Vandecappelle
2017-04-22 13:03 ` Thomas Petazzoni
2017-04-22 22:34 ` Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 10/12] e2fsprogs: add explicit --enable/--disable configure options Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 11/12] e2fsprogs: avoid conflict with util-linux fsck wrapper Arnout Vandecappelle
2017-04-22 11:59 ` [Buildroot] [PATCH v8 12/12] e2fsprogs: only add -lintl for static builds Arnout Vandecappelle
2017-04-22 13:04 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170422144914.60f5b97e@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox