Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

elf2pkgs: use pacman -Qo instead of -Ql

we've got full paths thanks to ldd now, so use them!
  • Loading branch information...
commit 414eb84f265d2deafdbba78e585cf7156c0f3d6c 1 parent 29b32b8
Dave Reisner authored March 04, 2012

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. 7  elf2pkgs
7  elf2pkgs
@@ -17,10 +17,9 @@ resolve_bin() {
17 17
     depmap["${BASH_REMATCH[1]}"]=${BASH_REMATCH[2]}
18 18
   done <<< "$lddout"
19 19
 
20  
-  pacman -Ql | grep -Ff \
21  
-    <(objdump -p "$1" | while read section soname; do
22  
-        [[ $section == NEEDED && ${depmap[$soname]} ]] && printf '%s\n' "${depmap[$soname]}"
23  
-      done) | cut '-d ' -f1 | sort -u
  20
+  objdump -p "$1" 2>/dev/null | while read section soname; do
  21
+    [[ $section == NEEDED && ${depmap[$soname]} ]] && printf '%s\n' "${depmap[$soname]}"
  22
+  done | pacman -Qqo - 2>/dev/null
24 23
 }
25 24
 
26 25
 for bin; do

0 notes on commit 414eb84

Please sign in to comment.
Something went wrong with that request. Please try again.