[dbus-java] 14/17: Add no-translations.patch and do not use msgfmt anymore.

Markus Koschany apo at moszumanska.debian.org
Wed Dec 20 12:51:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

apo pushed a commit to branch master
in repository dbus-java.

commit cc0ef0012168ca92d4c05516dd557442334a27b1
Author: Markus Koschany <apo at debian.org>
Date:   Wed Dec 20 01:04:25 2017 +0100

    Add no-translations.patch and do not use msgfmt anymore.
    
    Apparently the JAVAC variable is set but msgfmt fails because of another yet
    unknown error. The only available translation is en_GB. I guess we can skip
    that.
    
    Closes: #875355
---
 debian/changelog                     |  4 ++++
 debian/patches/no-translations.patch | 22 ++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6b6336e..7606ccd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,10 @@ dbus-java (2.8-7) unstable; urgency=medium
   * Drop libdbus-java-doc.README.Debian.
   * Declare compliance with Debian Policy 4.1.2.
   * Depend on a Java 7 runtime at least.
+  * Add no-translations.patch and do not use msgfmt anymore.
+    Apparently the JAVAC variable is set but msgfmt fails because of another
+    yet unknown error. The only available translation is en_GB. I guess we can
+    skip that. (Closes: #875355)
 
  -- Markus Koschany <apo at debian.org>  Mon, 18 Dec 2017 21:58:39 +0100
 
diff --git a/debian/patches/no-translations.patch b/debian/patches/no-translations.patch
new file mode 100644
index 0000000..3baa30f
--- /dev/null
+++ b/debian/patches/no-translations.patch
@@ -0,0 +1,22 @@
+From: Markus Koschany <apo at debian.org>
+Date: Wed, 20 Dec 2017 01:04:04 +0100
+Subject: no translations
+
+Forwarded: no
+---
+ Makefile | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 48921cb..1ed859e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -79,8 +79,6 @@ binclasses: .binclasses
+ .classes: $(SRCDIR)/*.java $(SRCDIR)/dbus/*.java $(SRCDIR)/dbus/exceptions/*.java $(SRCDIR)/dbus/types/*.java translations/*.po
+ 	mkdir -p classes
+ 	$(JAVAC) -d classes -cp classes:${JAVAUNIXJARDIR}/unix.jar:${JAVAUNIXJARDIR}/debug-$(DEBUG).jar:${JAVAUNIXJARDIR}/hexdump.jar:$(CLASSPATH) $(JCFLAGS) $(SRCDIR)/*.java $(SRCDIR)/dbus/*.java $(SRCDIR)/dbus/exceptions/*.java $(SRCDIR)/dbus/types/*.java
+-	(cd translations; for i in *.po; do $(MSGFMT) --java2 -r dbusjava_localized -d ../classes -l $${i%.po} $$i; done)
+-	$(MSGFMT) --java2 -r dbusjava_localized -d classes translations/en_GB.po
+ 	touch .classes
+ 
+ translations/en_GB.po: $(SRCDIR)/*.java $(SRCDIR)/dbus/*.java $(SRCDIR)/dbus/exceptions/*.java $(SRCDIR)/dbus/types/*.java $(SRCDIR)/dbus/bin/*.java $(SRCDIR)/dbus/viewer/*.java
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..395092c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no-translations.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/dbus-java.git



More information about the pkg-java-commits mailing list