system/multipath-tools: Fix build failure.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-08-09 22:19:46 -04:00 committed by Willy Sudiarto Raharjo
parent 4aafff77e6
commit 6dffd315fe
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -20,6 +20,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20230809 bkw: Modified by SlackBuilds.org: fix FTBFS.
# 20220413 bkw: Modified by SlackBuilds.org, BUILD=3:
# - fix broken symlink in doc dir.
# - strip binaries and libraries.
@ -79,6 +81,9 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
# 20230809 bkw: fix FTBFS due to missing header.
sed -i '1i#include <assert.h>' libmultipath/checkers.c
# Patch for slackware compatibility
cat $CWD/0002-multipathd-add-ncurses-to-linker.patch | patch -p0 --verbose