]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-libtool-deps.patch
- fixed
[packages/rpm.git] / rpm-libtool-deps.patch
CommitLineData
fbb69252
JB
1--- rpm-4.4.8.org/scripts/libtooldeps.sh 2005-11-12 22:20:42.000000000 +0100
2+++ rpm-4.4.8/scripts/libtooldeps.sh 2006-11-26 20:06:49.254008750 +0100
0b9cac1a
AM
3@@ -5,6 +5,8 @@
4 exit 0
5 }
6
7+pkgname="$3"
8+
9 case $1 in
10 -P|--provides)
11 shift
12@@ -13,7 +15,8 @@
1a583afd
AM
13 do
14 case "$possible" in
15 *.la)
16- if grep -iq '^# Generated by ltmain.sh' "$possible" 2> /dev/null ; then
c74077dc 17+ possible="`readlink -f "$possible" 2> /dev/null || echo "$possible"`"
d2c8ceb1 18+ if file "$possible" | grep -iq 'libtool library file' 2> /dev/null ; then
1a583afd
AM
19 possible="`echo ${possible} | sed -e s,${RPM_BUILD_ROOT}/,/,`"
20 echo "libtool($possible)"
21 fi
13c09e01 22@@ -22,21 +25,28 @@
0b9cac1a
AM
23 done
24 ;;
25 -R|--requires)
26- while read possible ; do
27- case "$possible" in
28- *.la)
fbb69252
JB
29- for dep in `grep '^dependency_libs='"$possible" 2> /dev/null | \
30- sed -e "s,^dependency_libs='\(.*\)',\1,g"`
0b9cac1a
AM
31- do
32- case "$dep" in
33- /*.la)
34- echo "libtool($dep)"
35+ case $pkgname in
36+ *-devel)
37+ while read possible ; do
38+ case "$possible" in
39+ *.la)
325a5322 40+ for dep in `grep '^dependency_libs=' "$possible" 2> /dev/null | \
fbb69252 41+ sed -e "s,^dependency_libs='\(.*\)',\1,g"`
0b9cac1a
AM
42+ do
43+ case "$dep" in
44+ /*.la)
45+ dep="`readlink -f "$dep" 2> /dev/null || echo "$dep"`"
46+ echo "libtool($dep)"
47+ ;;
48+ esac
49+ done
f2e1b51e
AM
50 ;;
51 esac
0b9cac1a
AM
52 done
53- ;;
54- esac
55- done
56- ;;
57+ ;;
13c09e01
AM
58+ *)
59+ cat > /dev/null
60+ ;;
0b9cac1a
AM
61+ esac
62 esac
63 exit 0
This page took 0.049223 seconds and 4 git commands to generate.