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