Re: [fedora-java] proposed rebuild-gcj-db patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gary> It might be nice to lose the $dbLocation.d stuff for all but FC4, just
Gary> so people don't get tempted to use it.

What do you think of the appended?

I figured I could make a tag in cvs before committing this, and any
FC4 updates could be based off this tag.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@xxxxxxxxxx>

	* rebuild-gcj-db.in: Loop over /usr/lib*.

Index: rebuild-gcj-db.in
===================================================================
RCS file: /cvs/rhug/java-gcj-compat/rebuild-gcj-db.in,v
retrieving revision 1.7
diff -u -r1.7 rebuild-gcj-db.in
--- rebuild-gcj-db.in 16 Nov 2005 00:09:50 -0000 1.7
+++ rebuild-gcj-db.in 23 Jan 2006 22:22:25 -0000
@@ -13,8 +13,16 @@
     fi
 fi
 
-dbLocation=`@GCJ_BIN_DIR@/gcj-dbtool@gcc_suffix@ -p @LIBDIR@`
-dirname $dbLocation | xargs mkdir -p
-@GCJ_BIN_DIR@/gcj-dbtool@gcc_suffix@ -n $dbLocation 64
-find $dbLocation.d @LIBDIR@/gcj -follow -name '*.db' -print0 | \
-    xargs -0 @GCJ_BIN_DIR@/gcj-dbtool@gcc_suffix@ -m $dbLocation $dbLocation
+# Rebuild all the standard databases.
+for base in /usr/lib*; do
+   dbLocation=`@GCJ_BIN_DIR@/gcj-dbtool@gcc_suffix@ -p $base`
+   libdir=$base/gcj
+   if ! test -d $libdir; then
+      # No shared libraries here.
+      continue
+   fi
+   dirname $dbLocation | xargs mkdir -p
+   @GCJ_BIN_DIR@/gcj-dbtool@gcc_suffix@ -n $dbLocation 64
+   find $libdir -follow -name '*.db' -print0 | \
+      xargs -0 @GCJ_BIN_DIR@/gcj-dbtool@gcc_suffix@ -m $dbLocation $dbLocation
+done


[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux