Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | SUMMARY = "Checksumming Copy on Write Filesystem utilities" |
| 2 | DESCRIPTION = "Btrfs is a new copy on write filesystem for Linux aimed at \ |
| 3 | implementing advanced features while focusing on fault tolerance, repair and \ |
| 4 | easy administration. \ |
| 5 | This package contains utilities (mkfs, fsck, btrfsctl) used to work with \ |
| 6 | btrfs and an utility (btrfs-convert) to make a btrfs filesystem from an ext3." |
| 7 | |
| 8 | HOMEPAGE = "https://btrfs.wiki.kernel.org" |
| 9 | |
| 10 | LICENSE = "GPLv2" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067" |
| 12 | SECTION = "base" |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 13 | DEPENDS = "util-linux attr e2fsprogs lzo acl" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 14 | DEPENDS_append_class-target = " udev" |
| 15 | RDEPENDS_${PN} = "libgcc" |
| 16 | |
Brad Bishop | 6dbb316 | 2019-11-25 09:41:34 -0500 | [diff] [blame] | 17 | SRCREV = "f82e569b33c3c1cfd4f8f405085ff8d439a0a915" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 18 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 19 | file://0001-Add-a-possibility-to-specify-where-python-modules-ar.patch \ |
| 20 | " |
| 21 | |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 22 | PACKAGECONFIG ??= "python" |
| 23 | PACKAGECONFIG[manpages] = "--enable-documentation, --disable-documentation, asciidoc-native xmlto-native" |
| 24 | PACKAGECONFIG[python] = "--enable-python,--disable-python,python3-setuptools-native" |
| 25 | PACKAGECONFIG[zstd] = "--enable-zstd,--disable-zstd,zstd" |
| 26 | |
| 27 | inherit autotools-brokensep pkgconfig manpages |
| 28 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'distutils3-base', '', d)} |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 29 | |
| 30 | CLEANBROKEN = "1" |
| 31 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 32 | EXTRA_OECONF_append_libc-musl = " --disable-backtrace " |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 33 | EXTRA_PYTHON_CFLAGS = "${DEBUG_PREFIX_MAP}" |
| 34 | EXTRA_PYTHON_CFLAGS_class-native = "" |
| 35 | EXTRA_PYTHON_LDFLAGS = "${LDFLAGS}" |
| 36 | EXTRA_OEMAKE = "V=1 'EXTRA_PYTHON_CFLAGS=${EXTRA_PYTHON_CFLAGS}' 'EXTRA_PYTHON_LDFLAGS=${EXTRA_PYTHON_LDFLAGS}'" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 37 | |
| 38 | do_configure_prepend() { |
| 39 | # Upstream doesn't ship this and autoreconf won't install it as automake isn't used. |
| 40 | mkdir -p ${S}/config |
| 41 | cp -f $(automake --print-libdir)/install-sh ${S}/config/ |
| 42 | } |
| 43 | |
| 44 | S = "${WORKDIR}/git" |
| 45 | |
| 46 | do_install_append() { |
Brad Bishop | 79641f2 | 2019-09-10 07:20:22 -0400 | [diff] [blame] | 47 | if [ "${@bb.utils.filter('PACKAGECONFIG', 'python', d)}" ]; then |
| 48 | oe_runmake 'DESTDIR=${D}' 'PYTHON_SITEPACKAGES_DIR=${PYTHON_SITEPACKAGES_DIR}' install_python |
| 49 | fi |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | BBCLASSEXTEND = "native" |