Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH next 0/4] btrfs-progs related improvements
@ 2018-08-21 21:59 Thomas Petazzoni
  2018-08-21 21:59 ` [Buildroot] [PATCH next 1/4] lzo: build shared library for the host Thomas Petazzoni
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2018-08-21 21:59 UTC (permalink / raw)
  To: buildroot

Hello,

Following the addition of host-btrfs-progs recently by Robert
J. Heywood, I wondered why e2fsprogs was needed as a
dependency. Indeed, why would btrfs need the library of a completely
different filesystem?

Turns out it's because btrfs-progs can optionally build a tool called
btrfs-convert, to convert an ext2 or reiserfs filesystem to a btrfs
one, and this tool needs e2fsprogs as a dependency to support ext2
filesystem conversion. But this is completely optional.

For the host variant, I don't think it makes sense to support that at
all, so we forcibly disable building btrfs-convert.

For the target variant, e2fsprogs is turned into an automatic optional
dependency: when available, btrfs-convert is compiled with ext2
support, otherwise btrfs-convert is not built at all. We don't take
into account reiserfs support because we don't have the corresponding
libraries packaged in Buildroot.

While doing this work on the host variant, I noticed the e2fsprogs and
lzo host libraries were only available as static libraries. So I went
ahead and fixed that as well.

Best regards,

Thomas

Thomas Petazzoni (4):
  lzo: build shared library for the host
  e2fsprogs: build shared library for the host
  btrfs-progs: drop dependency on e2fsprogs by not building
    btrfs-convert
  btrfs-progs: make e2fsprogs an optional dependency

 package/btrfs-progs/Config.in      |  1 -
 package/btrfs-progs/btrfs-progs.mk | 20 +++++++++++++++++---
 package/e2fsprogs/e2fsprogs.mk     |  3 ++-
 package/lzo/lzo.mk                 |  2 ++
 4 files changed, 21 insertions(+), 5 deletions(-)

-- 
2.14.4

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-08-22 11:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-21 21:59 [Buildroot] [PATCH next 0/4] btrfs-progs related improvements Thomas Petazzoni
2018-08-21 21:59 ` [Buildroot] [PATCH next 1/4] lzo: build shared library for the host Thomas Petazzoni
2018-08-21 22:07   ` Yann E. MORIN
2018-08-21 21:59 ` [Buildroot] [PATCH next 2/4] e2fsprogs: " Thomas Petazzoni
2018-08-21 22:11   ` Yann E. MORIN
2018-08-22 11:46     ` Thomas Petazzoni
2018-08-21 21:59 ` [Buildroot] [PATCH next 3/4] btrfs-progs: drop dependency on e2fsprogs by not building btrfs-convert Thomas Petazzoni
2018-08-21 22:15   ` Yann E. MORIN
2018-08-21 21:59 ` [Buildroot] [PATCH next 4/4] btrfs-progs: make e2fsprogs an optional dependency Thomas Petazzoni
2018-08-21 22:18   ` Yann E. MORIN
2018-08-21 22:08 ` [Buildroot] [PATCH next 0/4] btrfs-progs related improvements Yann E. MORIN
2018-08-22 11:46 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox