fix auto-provide stuff to use ROOT
authorroot <devnull@localhost>
Thu, 11 Jul 1996 15:11:49 +0000 (15:11 +0000)
committerroot <devnull@localhost>
Thu, 11 Jul 1996 15:11:49 +0000 (15:11 +0000)
CVS patchset: 783
CVS date: 1996/07/11 15:11:49

build/reqprov.c

index 6f6d5d9..7662fb1 100644 (file)
@@ -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);