blob: df5f764e16596e5a1430d6793e3194e322688e8b [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "XFS Filesystem Utilities"
2HOMEPAGE = "http://oss.sgi.com/projects/xfs"
3SECTION = "base"
4LICENSE = "GPLv2 & LGPLv2.1"
Patrick Williams213cb262021-08-07 19:21:33 -05005LICENSE:libhandle = "LGPLv2.1"
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05006LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08007 file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
8DEPENDS = "util-linux util-linux-native"
9SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \
10 file://remove_flags_from_build_flags.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011 file://0001-Check-for-MAP_SYNC-in-sys-mman.h.patch \
12 file://0002-include-include-xfs-linux.h-after-sys-mman.h.patch \
Brad Bishop0f291cc2019-09-01 15:16:57 -040013 file://0001-support-usrmerge.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014 "
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050015SRC_URI[sha256sum] = "4e142d4babe086adf9016d8c606c805829da08e46389a4433f40346204f90cdb"
Andrew Geissler5199d832021-09-24 16:47:35 -050016inherit autotools-brokensep pkgconfig
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017
18PACKAGES =+ "${PN}-fsck ${PN}-mkfs ${PN}-repair libhandle"
19
Andrew Geissler97771a32021-03-05 15:23:11 -060020DEPENDS += "util-linux libinih"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021
Patrick Williams213cb262021-08-07 19:21:33 -050022RDEPENDS:${PN} = "${PN}-fsck ${PN}-mkfs ${PN}-repair"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023
Patrick Williams213cb262021-08-07 19:21:33 -050024FILES:${PN}-fsck = "${base_sbindir}/fsck.xfs"
25FILES:${PN}-mkfs = "${base_sbindir}/mkfs.xfs"
26FILES:${PN}-repair = "${base_sbindir}/xfs_repair"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080027
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:libhandle = "${base_libdir}/libhandle${SOLIBS}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029
30EXTRA_OECONF = "--enable-gettext=no \
Brad Bishop15ae2502019-06-18 21:44:24 -040031 --enable-scrub=no \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080032 INSTALL_USER=root \
33 INSTALL_GROUP=root \
34 ac_cv_header_aio_h=yes \
35 ac_cv_lib_rt_lio_listio=yes \
Andrew Geissler82c905d2020-04-13 13:39:40 -050036 OPTIMIZER='${SELECTED_OPTIMIZATION}' \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080037"
38
39DISABLE_STATIC = ""
40EXTRA_AUTORECONF += "-I ${S}/m4 --exclude=autoheader"
41
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -050042PACKAGECONFIG ??= "blkid"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080043
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080044PACKAGECONFIG[blkid] = "--enable-blkid=yes,--enable-blkid=no,util-linux"
45
46export DEBUG="-DNDEBUG"
47export BUILD_VERBOSE="1"
48export tagname="CC"
49
50EXTRA_OEMAKE = "DIST_ROOT='${D}'"
51
52do_configure () {
53 export BUILD_CC="${BUILD_CC} ${BUILD_CFLAGS}"
54 # Prevent Makefile from calling configure without arguments,
55 # when do_configure gets called for a second time.
56 rm -f ${B}/include/builddefs ${B}/include/platform_defs.h ${B}/configure
57 # Recreate configure script.
58 oe_runmake configure
Brad Bishop19323692019-04-05 15:28:33 -040059 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}
60 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080061 oe_runconf
62}
63
Patrick Williams213cb262021-08-07 19:21:33 -050064do_install:append() {
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080065 oe_runmake 'DESTDIR=${D}' install-dev
66 rm ${D}${libdir}/*.la
67 rmdir --ignore-fail-on-non-empty ${D}${libdir}
Brad Bishop15ae2502019-06-18 21:44:24 -040068
Brad Bishop0f291cc2019-09-01 15:16:57 -040069 if [ ${libdir} != ${base_libdir} ];then
70 ln -sf -r ${D}${libdir}/libhandle.a ${D}${base_libdir}/libhandle.a
71 ln -sf -r ${D}${base_libdir}/libhandle.so ${D}${libdir}/libhandle.so
72 fi
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080073}