diff options
author | root <devnull@localhost> | 1996-07-11 15:11:49 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-07-11 15:11:49 +0000 |
commit | 269881b8bfea6277d053d2fdf9fa84bd36ec1b3b (patch) | |
tree | e06b97d88da010ef07d06d542938199cb0a067ae /build | |
parent | b4e0a62b6a2695fdf0f0e4fc9197c6160b103f52 (diff) | |
download | rpm-269881b8bfea6277d053d2fdf9fa84bd36ec1b3b.tar.gz rpm-269881b8bfea6277d053d2fdf9fa84bd36ec1b3b.tar.bz2 rpm-269881b8bfea6277d053d2fdf9fa84bd36ec1b3b.zip |
fix auto-provide stuff to use ROOT
CVS patchset: 783
CVS date: 1996/07/11 15:11:49
Diffstat (limited to 'build')
-rw-r--r-- | build/reqprov.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/reqprov.c b/build/reqprov.c index 6f6d5d9cb..7662fb1ad 100644 --- a/build/reqprov.c +++ b/build/reqprov.c @@ -102,7 +102,10 @@ static void parseFileForProv(char *f, struct PackageRec *p) s++; if (strstr(s, ".so.")) { - sprintf(command, "objdump --raw %s --section=.dynstr 2> /dev/null | tr '\\0' '\\n' | tail -1", f); + sprintf(command, + "objdump --raw %s%s --section=.dynstr 2> /dev/null |" + "tr '\\0' '\\n' | tail -1", + getVar(RPMVAR_ROOT) ? getVar(RPMVAR_ROOT) : "" ,f); pipe = popen(command, "r"); soname[0] = '\0'; fgets(soname, sizeof(soname)-1, pipe); |