freebsd-ports/misc/e2fsprogs-libblkid/Makefile
Matthias Andree 594ba3e582 sysutils/e2fsprogs: bugfix update to 1.46.6
ChangeLog: https://e2fsprogs.sourceforge.net/e2fsprogs-release.html#1.46.6

Add patch to make m_offset reliable. Due to some race conditions on the
pipeline between FreeBSD's yes a, which emits 8190-long writes on
13-STABLE, and GNU dd (gdd), which it pipes its output into, gdd can
sometimes receive short reads occasionally, and because the count=
normally is the number of read(2) calls dispatched, this then leads to a
shorter reference "file system" that we crcsum, and that causes false
negative test results.  gdd warns that iflag=fullblock would avoid
effects of short reads, but this warning is discarded in the test
script.  Anyways, patch m_offset to use dd's and gdd's iflag=fullblock,
which causes (g)dd to call read(2) again until the block is full for
each nominal block, so we definitely read the desired output size 512 kB
no matter what shorter blocks might travel through the pipeline.

MFH:		2023Q1
2023-02-03 00:49:24 +01:00

31 lines
735 B
Makefile

PORTREVISION= 0
CATEGORIES= misc devel
PKGNAMESUFFIX= -libblkid
COMMENT= Blkid library from e2fsprogs package
LICENSE= LGPL20+
_no_license_file= sorry
LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid
CONFIGURE_ARGS= --enable-elf-shlibs --disable-libuuid --enable-libblkid
MASTERDIR= ${.CURDIR}/../../sysutils/e2fsprogs-core
MAKE_ARGS= LIB_SUBDIRS=lib/blkid LDFLAGS_SHLIB=-L${LOCALBASE}/lib
USE_LDCONFIG= yes
ALL_TARGET= libs
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install install-shlibs
INSTALL_WRKSRC= ${WRKSRC}/lib/blkid
PKGDIR= ${.CURDIR}
pre-build:
${MKDIR} ${WRKSRC}/lib/blkid/elfshared
cd ${WRKSRC}/util && ${MAKE_CMD} subst
post-build:
cd ${INSTALL_WRKSRC} && ${MAKE_CMD} check
.include "${MASTERDIR}/Makefile"