]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-libtool-deps.patch
00dd7d0dd3b9397af2207a0c44d8ec44ea3848ca
[packages/rpm.git] / rpm-libtool-deps.patch
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
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 @@
13      do
14         case "$possible" in
15         *.la)
16 -           if grep -iq '^# Generated by ltmain.sh' "$possible" 2> /dev/null ; then
17 +           possible="`readlink -f "$possible" 2> /dev/null || echo "$possible"`"
18 +           if file "$possible" | grep -iq 'libtool library file' 2> /dev/null ; then
19                 possible="`echo ${possible} | sed -e s,${RPM_BUILD_ROOT}/,/,`"
20                 echo "libtool($possible)"
21             fi
22 @@ -22,21 +25,28 @@
23      done
24      ;;
25  -R|--requires)
26 -    while read possible ; do
27 -       case "$possible" in
28 -       *.la)
29 -           for dep in `grep '^dependency_libs='"$possible" 2> /dev/null | \
30 -                       sed -e "s,^dependency_libs='\(.*\)',\1,g"`
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)
40 +                   for dep in `grep '^dependency_libs='"$possible" 2> /dev/null | \
41 +                               sed -e "s,^dependency_libs='\(.*\)',\1,g"`
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
50                     ;;
51                 esac
52             done
53 -           ;;
54 -       esac
55 -    done
56 -    ;;
57 +     ;;
58 +     *)
59 +            cat > /dev/null
60 +     ;;
61 +     esac
62  esac
63  exit 0
This page took 0.047863 seconds and 2 git commands to generate.