Blame SOURCES/0002-pcap-config-mitigate-multilib-conflict.patch

67fde7
From 5b80ca39b1f01177e98c78bbc622dfda6f7a7e71 Mon Sep 17 00:00:00 2001
67fde7
From: Michal Sekletar <msekleta@redhat.com>
67fde7
Date: Mon, 29 Sep 2014 08:27:15 +0200
67fde7
Subject: [PATCH 2/4] pcap-config: mitigate multilib conflict
67fde7
67fde7
libdir path is different on 64bit and 32bit arches. Hence when installing both
67fde7
multilib versions on the system yum complains about conflicting pcap-config
67fde7
file.
67fde7
67fde7
Hence remove libdir references from pcap-config, libdir is in dynamic linker
67fde7
path anyway.
67fde7
---
67fde7
 pcap-config.in | 27 ++++++++-------------------
67fde7
 1 file changed, 8 insertions(+), 19 deletions(-)
67fde7
67fde7
diff --git a/pcap-config.in b/pcap-config.in
67fde7
index 206be3b..75f2c9f 100644
67fde7
--- a/pcap-config.in
67fde7
+++ b/pcap-config.in
67fde7
@@ -7,7 +7,6 @@
67fde7
 prefix="@prefix@"
67fde7
 exec_prefix="@exec_prefix@"
67fde7
 includedir="@includedir@"
67fde7
-libdir="@libdir@"
67fde7
 V_RPATH_OPT="@V_RPATH_OPT@"
67fde7
 LIBS="@LIBS@"
67fde7
 PACKAGE_NAME="@PACKAGE_NAME@"
67fde7
@@ -36,16 +35,6 @@ do
67fde7
 	esac
67fde7
 	shift
67fde7
 done
67fde7
-if [ "$V_RPATH_OPT" != "" ]
67fde7
-then
67fde7
-	#
67fde7
-	# If libdir isn't /usr/lib, add it to the run-time linker path.
67fde7
-	#
67fde7
-	if [ "$libdir" != "/usr/lib" ]
67fde7
-	then
67fde7
-		RPATH=$V_RPATH_OPT$libdir
67fde7
-	fi
67fde7
-fi
67fde7
 if [ "$static" = 1 ]
67fde7
 then
67fde7
 	#
67fde7
@@ -54,16 +43,16 @@ then
67fde7
 	#
67fde7
 	if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
67fde7
 	then
67fde7
-		echo "-I$includedir -L$libdir -lpcap $LIBS"
67fde7
+		echo "-lpcap @LIBS@"
67fde7
 	elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
67fde7
 	then
67fde7
-		echo "-I$includedir -L$libdir $LIBS"
67fde7
+		echo "@LIBS@"
67fde7
 	elif [ "$show_cflags" = 1 ]
67fde7
 	then
67fde7
-		echo "-I$includedir"
67fde7
+		echo ""
67fde7
 	elif [ "$show_libs" = 1 ]
67fde7
 	then
67fde7
-		echo "-L$libdir -lpcap $LIBS"
67fde7
+		echo "-lpcap @LIBS@"
67fde7
 	elif [ "$show_additional_libs" = 1 ]
67fde7
 	then
67fde7
 		echo "$LIBS"
67fde7
@@ -75,15 +64,15 @@ else
67fde7
 	#
67fde7
 	if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
67fde7
 	then
67fde7
-		echo "-I$includedir -L$libdir $RPATH -l$PACKAGE_NAME"
67fde7
+		echo "-lpcap"
67fde7
 	elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
67fde7
 	then
67fde7
-		echo "-I$includedir"
67fde7
+		echo ""
67fde7
 	elif [ "$show_cflags" = 1 ]
67fde7
 	then
67fde7
-		echo "-I$includedir"
67fde7
+		echo ""
67fde7
 	elif [ "$show_libs" = 1 ]
67fde7
 	then
67fde7
-		echo "-L$libdir $RPATH -l$PACKAGE_NAME"
67fde7
+		echo "-lpcap"
67fde7
 	fi
67fde7
 fi
67fde7
-- 
67fde7
1.8.3.1
67fde7