Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "XFS Filesystem Utilities" |
| 2 | HOMEPAGE = "http://oss.sgi.com/projects/xfs" |
| 3 | SECTION = "base" |
| 4 | LICENSE = "GPLv2 & LGPLv2.1" |
| 5 | LICENSE_libhandle = "LGPLv2.1" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=74274e8a218423e49eefdea80bc55038 \ |
| 7 | file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd" |
| 8 | DEPENDS = "util-linux util-linux-native" |
| 9 | SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \ |
| 10 | file://remove_flags_from_build_flags.patch \ |
| 11 | file://0001-build-Check-for-sync_file_range-libc-function.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | file://0001-Check-for-MAP_SYNC-in-sys-mman.h.patch \ |
| 13 | file://0002-include-include-xfs-linux.h-after-sys-mman.h.patch \ |
| 14 | " |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 15 | SRC_URI[md5sum] = "b6acc4aa93a952595fc8f2e7447be6f2" |
| 16 | SRC_URI[sha256sum] = "fcc2e6478aed55408a341567c0459f514e575296d8827d9004cae8aa0367dc4a" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 17 | |
| 18 | inherit autotools-brokensep |
| 19 | |
| 20 | PACKAGES =+ "${PN}-fsck ${PN}-mkfs ${PN}-repair libhandle" |
| 21 | |
| 22 | DEPENDS += "util-linux" |
| 23 | |
| 24 | RDEPENDS_${PN} = "${PN}-fsck ${PN}-mkfs ${PN}-repair" |
| 25 | |
| 26 | FILES_${PN}-fsck = "${base_sbindir}/fsck.xfs" |
| 27 | FILES_${PN}-mkfs = "${base_sbindir}/mkfs.xfs" |
| 28 | FILES_${PN}-repair = "${base_sbindir}/xfs_repair" |
| 29 | |
| 30 | FILES_libhandle = "${base_libdir}/libhandle${SOLIBS}" |
| 31 | |
| 32 | EXTRA_OECONF = "--enable-gettext=no \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 33 | --enable-scrub=no \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 34 | INSTALL_USER=root \ |
| 35 | INSTALL_GROUP=root \ |
| 36 | ac_cv_header_aio_h=yes \ |
| 37 | ac_cv_lib_rt_lio_listio=yes \ |
| 38 | " |
| 39 | |
| 40 | DISABLE_STATIC = "" |
| 41 | EXTRA_AUTORECONF += "-I ${S}/m4 --exclude=autoheader" |
| 42 | |
| 43 | PACKAGECONFIG ??= "readline blkid" |
| 44 | |
| 45 | PACKAGECONFIG[readline] = "--enable-readline=yes,--enable-readline=no,readline" |
| 46 | PACKAGECONFIG[blkid] = "--enable-blkid=yes,--enable-blkid=no,util-linux" |
| 47 | |
| 48 | export DEBUG="-DNDEBUG" |
| 49 | export BUILD_VERBOSE="1" |
| 50 | export tagname="CC" |
| 51 | |
| 52 | EXTRA_OEMAKE = "DIST_ROOT='${D}'" |
| 53 | |
| 54 | do_configure () { |
| 55 | export BUILD_CC="${BUILD_CC} ${BUILD_CFLAGS}" |
| 56 | # Prevent Makefile from calling configure without arguments, |
| 57 | # when do_configure gets called for a second time. |
| 58 | rm -f ${B}/include/builddefs ${B}/include/platform_defs.h ${B}/configure |
| 59 | # Recreate configure script. |
| 60 | oe_runmake configure |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 61 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S} |
| 62 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S} |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 63 | oe_runconf |
| 64 | } |
| 65 | |
| 66 | do_install_append() { |
| 67 | oe_runmake 'DESTDIR=${D}' install-dev |
| 68 | rm ${D}${libdir}/*.la |
| 69 | rmdir --ignore-fail-on-non-empty ${D}${libdir} |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame^] | 70 | |
| 71 | ln -sf -r ${D}${libdir}/libhandle.a ${D}${base_libdir}/libhandle.a |
| 72 | ln -sf -r ${D}${base_libdir}/libhandle.so ${D}${libdir}/libhandle.so |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 73 | } |