From owner-freebsd-java@FreeBSD.ORG Wed Aug 7 11:19:20 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 96FC679D for ; Wed, 7 Aug 2013 11:19:20 +0000 (UTC) (envelope-from Thomas.Gellekum@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3074622E5 for ; Wed, 7 Aug 2013 11:19:19 +0000 (UTC) Received: from siegel.tg.intern ([78.34.202.39]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MMoU7-1VESQE2PeR-008czi for ; Wed, 07 Aug 2013 13:19:17 +0200 Message-ID: <52022D33.7020002@gmx.de> Date: Wed, 07 Aug 2013 13:19:15 +0200 From: Thomas Gellekum User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130627 Thunderbird/17.0.7 MIME-Version: 1.0 To: Jonathan Chen Subject: Re: Eclipse-devel References: <03be01ce91c2$18b437f0$4a1ca7d0$@btinternet.com> <6C900CDB-D9AC-4A20-8ABD-2868CBF879C5@freebsd.org> <51FFEA27.4040402@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:TCrfpMFRC24oW4KcwaOMvY59M2tckfWzCVZyQsYtgHy9R7/hgxh f+9DrVdhXCGz10Z3H4BugyqEYIOHJj+Do1yuGHYAZaDFEp+lKNpoWlRRZCRaVAnmNALBaDW kb0rjqhkztOT5YM0Y0Nzy0Eh0TNYG1U5hNNqm+upnGYLTReGlWmNdBjr5pt1oH9gfI4ofG+ 9TyqFxhsItIWqyYMvtWrg== Cc: George Neville-Neil , Thomas Sparrevohn , kron , freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Aug 2013 11:19:20 -0000 On 08/07/13 11:48, Jonathan Chen wrote: > I'm still trying to figure out just how the patching works for Eclipse > work so that I can modify the os.h and os.c for the freebsd.gtk > module. If anyone wants to jump in here and provide some advice, > please feel free to do so. This is what the main build.xml does in very short form: it will 1. execute some consistency checks (mainly to the OSGi manifests for 3rd party bundles), 2. unpack the eclipse source, 3. apply the patches in the patches/ subdir, 4. bootstrap PDE to generate the build.xml files for all bundles, 5. build eclipse. We want to change files, of course, but need to do that at different times, or our changes would be overwritten or the files wouldn't exist yet. files/eclipse-build-upstream.patch and files/patch-* are applied by our ports framework. files/freebsd-support.patch is copied to the working directory and will be applied by the build process outlined above in step 3. Most importantly, it will create files necessary to build the eclipse launcher and SWT bundles. You need to add your patches to os.[ch] to files/freebsd-support.patch, otherwise there'd be no file to patch. HTH, tg