Bug 115519 by Diego Petteno: Fix ldconfig command ordering, add dragonfly support
authorMike Frysinger <vapier@gentoo.org>
Thu, 15 Dec 2005 04:51:44 +0000 (04:51 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 15 Dec 2005 04:51:44 +0000 (04:51 -0000)
svn path=/main/trunk/; revision=2372

pym/portage.py

index d0734b458a18344203d1f727ebe0a904a0ae75c7..52a048053d3d12a07fece91ba80e81dacca399d7 100644 (file)
@@ -669,10 +669,10 @@ def env_update(makelinks=1):
                                commands.getstatusoutput("cd / ; /sbin/ldconfig -r "+root)
                        else:
                                commands.getstatusoutput("cd / ; /sbin/ldconfig -X -r "+root)
-       elif ostype == "FreeBSD":
+       elif ostype == "FreeBSD" or ostype == "DragonFly":
                if (ld_cache_update):
                        writemsg(">>> Regenerating "+str(root)+"var/run/ld-elf.so.hints...\n")
-                       commands.getstatusoutput("cd / ; /sbin/ldconfig -i -elf -f "+str(root)+"var/run/ld-elf.so.hints "+str(root)+"etc/ld.so.conf")
+                       commands.getstatusoutput("cd / ; /sbin/ldconfig -elf -i -f "+str(root)+"var/run/ld-elf.so.hints "+str(root)+"etc/ld.so.conf")
 
        del specials["LDPATH"]