termux-packages/packages/lsof/Configure.patch

81 lines
2.5 KiB
Diff

diff -uNr lsof-4.93.2/Configure lsof-4.93.2.mod/Configure
--- lsof-4.93.2/Configure 2019-05-08 10:32:25.000000000 +0300
+++ lsof-4.93.2.mod/Configure 2020-06-07 03:20:36.117487707 +0300
@@ -2976,27 +2976,6 @@
fi #}
fi # }
- # Test for SELinux support.
-
- LSOF_TMP1=0
- if test "X$LINUX_HASSELINUX" = "X" # {
- then
- if test -r ${LSOF_INCLUDE}/selinux/selinux.h # {
- then
- LSOF_TMP1=1
- fi # }
- else
- if test "X$LINUX_HASSELINUX" = "XY" -o "X$LINUX_HASSELINUX" = "Xy" # {
- then
- LSOF_TMP1=1
- fi # }
- fi # }
- if test $LSOF_TMP1 -eq 1 # {
- then
- LSOF_CFGF="$LSOF_CFGF -DHASSELINUX"
- LSOF_CFGL="$LSOF_CFGL -lselinux"
- fi # }
-
# Test for UNIX socket endpoint support.
if test -r ${LSOF_INCLUDE}/linux/sock_diag.h -a -r ${LSOF_INCLUDE}/linux/unix_diag.h # {
@@ -5617,7 +5596,7 @@
if test "X$LSOF_LIB_NO" = "X" # {
then
echo "" >> $LSOF_MKFC
- echo "CFGL= $LSOF_FCFGL -L./$LSOF_LIB -llsof $LSOF_CFGL" >> $LSOF_MKFC
+ echo "CFGL= $LSOF_FCFGL -Wl,-rpath=@TERMUX_PREFIX@/lib,--enable-new-dtags -L./$LSOF_LIB -llsof -L@TERMUX_PREFIX@/lib -ltirpc -landroid-support $LSOF_CFGL" >> $LSOF_MKFC
fi # }
echo "" >> $LSOF_MKFC
if test "X$LSOF_DEBUG" = "X" # {
diff -uNr lsof-4.93.2/OLD/Configure lsof-4.93.2.mod/OLD/Configure
--- lsof-4.93.2/OLD/Configure 2019-05-08 10:32:25.000000000 +0300
+++ lsof-4.93.2.mod/OLD/Configure 2020-06-07 03:20:49.621626530 +0300
@@ -2961,27 +2961,6 @@
fi #}
fi # }
- # Test for SELinux support.
-
- LSOF_TMP1=0
- if test "X$LINUX_HASSELINUX" = "X" # {
- then
- if test -r ${LSOF_INCLUDE}/selinux/selinux.h # {
- then
- LSOF_TMP1=1
- fi # }
- else
- if test "X$LINUX_HASSELINUX" = "XY" -o "X$LINUX_HASSELINUX" = "Xy" # {
- then
- LSOF_TMP1=1
- fi # }
- fi # }
- if test $LSOF_TMP1 -eq 1 # {
- then
- LSOF_CFGF="$LSOF_CFGF -DHASSELINUX"
- LSOF_CFGL="$LSOF_CFGL -lselinux"
- fi # }
-
# Test for UNIX socket endpoint support.
if test -r ${LSOF_INCLUDE}/linux/sock_diag.h -a -r ${LSOF_INCLUDE}/linux/unix_diag.h # {
@@ -5591,7 +5570,7 @@
if test "X$LSOF_LIB_NO" = "X" # {
then
echo "" >> $LSOF_MKFC
- echo "CFGL= $LSOF_FCFGL -L./$LSOF_LIB -llsof $LSOF_CFGL" >> $LSOF_MKFC
+ echo "CFGL= $LSOF_FCFGL -Wl,-rpath=@TERMUX_PREFIX@/lib,--enable-new-dtags -L./$LSOF_LIB -llsof -L@TERMUX_PREFIX@/lib -ltirpc -landroid-support $LSOF_CFGL" >> $LSOF_MKFC
fi # }
echo "" >> $LSOF_MKFC
if test "X$LSOF_DEBUG" = "X" # {