Skip to content

btrfs-progs: Create libbtrfs and package it up

Jeff Mahoney linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5btrfs-progs: convert to autotoolsAUTHORS ChangeLog Makefile +5 more+84 -694 replies
2/5btrfs-progs: Test for sparse support in configureMakefile.am configure.ac+11 -60 replies
3/5btrfs-progs: Restructure code layout, create libbtrfsMakefile.am configure.ac lib/Makefile.am +7 more+106 -330 replies
4/5btrfs-progs: Add RPM spec file supportbtrfs-progs.spec btrfs-progs.spec.in configure.ac+133 -10 replies
5/5btrfs-progs: Script to restructure the source as needed by patch 3+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/5] btrfs-progs: Create libbtrfs and package it up

Hi Chris -

Here's the patch set I mentioned earlier.

It consists of 4 patches and a script. Otherwise it'd be a lot more patches that only move files around. The end result after running the script is a directory tree that looks like this:

btrfs-progs/lib
btrfs-progs/src/debug
btrfs-progs/src/fsck
btrfs-progs/src/test
btrfs-progs/src/util
btrfs-progs/src/convert
btrfs-progs/src/mkfs

lib contains the objects that used to be $(COMMON_OBJS), but are now a full-fledged shared library with supporting includes to be installed in /usr/include/btrfs. Headers are also placed in lib so that patches indended for the kernel can also apply to the library without a lot of effort.

* Patch 1: Converts to autotools
* Patch 2: Adds check for sparse support
* Patch 3: Creates libbtrfs and reshuffle programs to use it
* Patch 4: Creates a spec file

I know there are a lot of people out there who hate autotools. I'm not a fan myself, but it does make the checking for optional libraries and the generation of new ones really easy.

The spec file expects the library to exist and will create three packages:
btrfs-progs, libbtrfs, and libbtrfs-devel.

This all works for me.

-Jeff

Signature · 2 lines
Jeff Mahoney
SUSE Labs