From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] gnu: gcj: Fix build on armhf. Date: Sat, 26 Nov 2016 18:30:54 +0100 Message-ID: <874m2u173l.fsf@elephly.net> References: <20161125213515.14677-1-rekado@elephly.net> <20161125213515.14677-2-rekado@elephly.net> <20161126053202.GA16546@jasmine> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAgoc-0002Pu-RD for guix-devel@gnu.org; Sat, 26 Nov 2016 12:31:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAgoZ-0003ym-Ky for guix-devel@gnu.org; Sat, 26 Nov 2016 12:31:06 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21407) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cAgoZ-0003yf-CT for guix-devel@gnu.org; Sat, 26 Nov 2016 12:31:03 -0500 In-reply-to: <20161126053202.GA16546@jasmine> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC http://elephly.net Leo Famulari writes: > On Fri, Nov 25, 2016 at 10:35:15PM +0100, Ricardo Wurmus wrote: >> * gnu/packages/patches/gcj-arm-mode.patch: New file. >> * gnu/local.mk (dist_patch_DATA): Add patch. >> * gnu/packages/gcc.scm (gcj): Add patch. >> [arguments]: Delete failing tests. > >> diff --git a/gnu/packages/patches/gcj-arm-mode.patch b/gnu/packages/patches/gcj-arm-mode.patch >> new file mode 100644 >> index 0000000..16fdb5e >> --- /dev/null >> +++ b/gnu/packages/patches/gcj-arm-mode.patch >> @@ -0,0 +1,36 @@ >> +Taken from >> +https://sources.debian.net/data/main/g/gcc-4.9/4.9.2-10/debian/patches/gcj-arm-mode.diff >> + >> +# DP: For armhf, force arm mode instead of thumb mode >> + >> +--- a/src/libjava/configure.host >> ++++ b/src/libjava/configure.host >> +@@ -66,6 +66,9 @@ >> + ;; >> + esac >> + >> ++# on armhf force arm mode >> ++libgcj_flags="${libgcj_flags} -marm" >> ++ > > Is the patch applied only on armhf machines? It is applied to the sources but they affect the behaviour on armhf only AFAICS. -- Ricardo