[java-gnome] 01/01: add configure patch for ppc64el (Closes: #767322)

Tony Mancill tmancill at moszumanska.debian.org
Sun Nov 2 04:01:08 UTC 2014


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

tmancill pushed a commit to branch master
in repository java-gnome.

commit a39451fb5bc5fc168bc171774e8196d49db89c28
Author: tony mancill <tmancill at debian.org>
Date:   Sat Nov 1 20:58:42 2014 -0700

    add configure patch for ppc64el (Closes: #767322)
    
    Tested on pastel.debian.net porterbox.
    
    Note that this only fixes the FTBFS for the binary package.
    You'll need to build the binary-indep on another arch.
---
 debian/changelog                          |  5 +++++
 debian/patches/05_ppc64el_configure.patch | 25 +++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 3 files changed, 31 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ddd0799..cca2cae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,16 @@
 java-gnome (4.1.3-4) UNRELEASED; urgency=medium
 
+  [ Guillaume Mazoyer ]
   * debian/rules
     - Set CFLAGS and LDFLAGS variables according to the Debian standards.
     - Add -ffunction-sections to CFLAGS for hppa.
     - Set V=1 to build in verbose mode so the compiler flags are not hidden.
   * Properly use debhelper 9.
 
+  [ tony mancill ]
+  * Add patch for configure script on ppc64el.  (Closes: #767322)
+    - Note that patch only enables for binary (-B) builds.
+
  -- Guillaume Mazoyer <respawneral at gmail.com>  Wed, 10 Sep 2014 18:14:48 +0200
 
 java-gnome (4.1.3-3) unstable; urgency=medium
diff --git a/debian/patches/05_ppc64el_configure.patch b/debian/patches/05_ppc64el_configure.patch
new file mode 100644
index 0000000..9ee71e8
--- /dev/null
+++ b/debian/patches/05_ppc64el_configure.patch
@@ -0,0 +1,25 @@
+diff -ruN java-gnome-4.1.3.orig/configure java-gnome-4.1.3/configure
+--- java-gnome-4.1.3.orig/configure	2014-10-30 05:46:34.000000000 +0000
++++ java-gnome-4.1.3/configure	2014-10-30 05:46:54.000000000 +0000
+@@ -359,7 +359,8 @@
+ 	my $item = $_[1];
+ 	my $program = $_[2];
+ 	my $args = $_[3];
+-
++	my $arch;
++	
+ 	chomp $program;
+ 	if ( ! -f "$program") {
+ 		$$scalarref = "";
+@@ -395,6 +396,12 @@
+ 		return
+ 	}
+ 
++	$arch = `uname -m 2>/dev/null`;
++	chomp $arch;
++	if($arch eq "ppc64le") {
++		$args =~ s/-client //;
++	}
++
+ 	$output = `$program $args Hello 2>/dev/null`;
+ 	chomp $output;
diff --git a/debian/patches/series b/debian/patches/series
index 960de6c..4c094bb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 02_build_python.diff
 03_build_doc_snapshots.diff
 04_translations.patch
+05_ppc64el_configure.patch

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



More information about the pkg-java-commits mailing list