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

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