diff --git a/lksctp-tools-1.0.19-libdir.patch b/lksctp-tools-1.0.19-libdir.patch new file mode 100644 index 0000000..db82318 --- /dev/null +++ b/lksctp-tools-1.0.19-libdir.patch @@ -0,0 +1,10 @@ +--- lksctp-tools-1.0.16/src/withsctp/withsctp.in.orig 2014-02-18 10:42:49.000000000 +0000 ++++ lksctp-tools-1.0.16/src/withsctp/withsctp.in 2014-05-06 12:24:12.931873787 +0100 +@@ -1,6 +1,6 @@ + #!/bin/sh + # -*- sh -*- +-LIBDIR=@libdir@/@PACKAGE@ ++LIBDIR=`rpm --eval "%{_libdir}"`/@PACKAGE@ + BINDIR=@bindir@ + LIBVER=@LIBWITHSCTP_CURRENT@.@LIBWITHSCTP_AGE@.@LIBWITHSCTP_REVISION@ + export LD_PRELOAD=${LIBDIR}/libwithsctp.so.${LIBVER} diff --git a/lksctp-tools.spec b/lksctp-tools.spec index 265b04f..d5e98ba 100644 --- a/lksctp-tools.spec +++ b/lksctp-tools.spec @@ -1,17 +1,18 @@ Name: lksctp-tools Summary: User-space access to Linux Kernel SCTP Version: 1.0.19 -Release: 1%{?dist} +Release: 2%{?dist} # src/apps/bindx_test.C is GPLv2, I've asked upstream for clarification License: GPLv2 and GPLv2+ and LGPLv2 and MIT Group: System Environment/Libraries URL: http://lksctp.sourceforge.net Source0: https://github.com/sctp/lksctp-tools/archive/%{name}-%{version}.tar.gz -Patch0: myftp-replace-use-of-deprecated-gethostbyname-with-g.patch -Patch1: sctp_xconnect-replace-use-of-deprecated-gethostbynam.patch -Patch2: sctp_test-replace-use-of-deprecated-gethostbyname-wi.patch -Patch3: sctp_darn-replace-use-of-deprecated-gethostbyname-wi.patch +Patch0: lksctp-tools-1.0.19-libdir.patch +Patch1: myftp-replace-use-of-deprecated-gethostbyname-with-g.patch +Patch2: sctp_xconnect-replace-use-of-deprecated-gethostbynam.patch +Patch3: sctp_test-replace-use-of-deprecated-gethostbyname-wi.patch +Patch4: sctp_darn-replace-use-of-deprecated-gethostbyname-wi.patch BuildRequires: libtool, automake, autoconf, make %description @@ -50,6 +51,7 @@ Drafts). %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build [ ! -x ./configure ] && sh bootstrap @@ -86,6 +88,10 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -delete %doc doc/*.txt %changelog +* Tue Apr 12 2022 Xin Long - 1.0.19-2 +- Bring back one RHEL specific patch to fix the installation issue. + Related: rhbz#2031786 + * Wed Nov 17 2021 Xin Long - 1.0.19-1 - Rebase to 1.0.19 and append the fixes for gethostbyname. Related: rhbz#1982820