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

Bug#511491: Attached patch fixes the issue



The attached patch fixes the issue by removing the full path to
rebuild-gcj-db from the maintainer script snippets. This is valid
because rebuild-gcj-db is always installed if java-gcj-compat-dev gets
installed. This is the dependency chain:

java-gcj-compat depends on
libgcj9-0-awt depends on
libgcj9-0 depends on
libgcj-common

I added an explicit dependency to libgcj-common to make this more
visible though.


Regards
Jan
diff --git a/debian/changelog b/debian/changelog
index 8c6938c..76d7406 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+java-gcj-compat (1.0.78-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * remove path when invoking rebuild-gcj-db and add libgcj-common
+    java-gcj-compat-dev's Depends to ensure that the rebuild-gcj-db
+    command exists (Closes: #511491)
+
+ -- Jan Dittberner <jan@dittberner.info>  Fri, 16 Jan 2009 23:51:32 +0100
+
 java-gcj-compat (1.0.78-2) unstable; urgency=low
 
   * Replace doc dir with symlink on upgrade. Closes: #475884.
diff --git a/debian/control b/debian/control
index e5f6790..95be99f 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Standards-Version: 3.7.3
 Package: java-gcj-compat-dev
 Section: devel
 Architecture: any
-Depends: java-gcj-compat (= ${binary:Version}), ${pkg:gcj}, ${dev:Depends}, gjdoc (>= 0.7.8), ${python:Depends}, ${pkg:gappletviewer}
+Depends: java-gcj-compat (= ${binary:Version}), ${pkg:gcj}, ${dev:Depends}, gjdoc (>= 0.7.8), ${python:Depends}, ${pkg:gappletviewer}, libgcj-common
 Recommends: ${pkg:libgcjsrc}, ${dev:Recommends}
 Replaces: java-gcj-compat (<< 1.0.28-7)
 Provides: java-sdk, java2-sdk, java5-sdk
diff --git a/debian/postinst-rebuild-gcj-db b/debian/postinst-rebuild-gcj-db
index 1e7ef96..83d4341 100644
--- a/debian/postinst-rebuild-gcj-db
+++ b/debian/postinst-rebuild-gcj-db
@@ -1,3 +1 @@
-if [ -x "/usr/bin/rebuild-gcj-db" ]; then
-	/usr/bin/rebuild-gcj-db
-fi
+rebuild-gcj-db
diff --git a/debian/postrm-rebuild-gcj-db b/debian/postrm-rebuild-gcj-db
index ab1c764..4346227 100644
--- a/debian/postrm-rebuild-gcj-db
+++ b/debian/postrm-rebuild-gcj-db
@@ -1,3 +1 @@
-if [ -x "/usr/bin/rebuild-gcj-db" ]; then
-	/usr/bin/rebuild-gcj-db || true
-fi
+rebuild-gcj-db || true

Attachment: signature.asc
Description: Digital signature


Reply to: