From owner-freebsd-ports@FreeBSD.ORG Sun Oct 19 00:24:19 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0E9BF6D7 for ; Sun, 19 Oct 2014 00:24:19 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 896C9D97 for ; Sun, 19 Oct 2014 00:24:18 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id z11so2244952lbi.41 for ; Sat, 18 Oct 2014 17:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=GiOy4a2+J1CO4657mUph4Vx7BlppVGuoSduxv868sXc=; b=zXNFBHuw58N24WJk4pPBrKZ0RnT9cQVF3G+7hxpXot4nWcVbq5q+1q35TK57Jvd1gP bJVfaiQ47xq3DntbOu8hKRKp9SkdeQaIb/6C5rfDBppGiW2l2GSUenisYcj9LZeAfjwR mO77CUUdqiraLcEIoTCBBTaMBXyY4dNOSt5GqEHkPV0UQx/+AN70pcB6aHJLJPfdH1lv OOYlv9oj9p7y8Slzjx8IftNRIpMhLmmCnr/RQKqPS/Cv7nvmEBURRcVkVJa55YjAcM1t YWhJW12TFvNzNMl0gFbBkW6CDUuUy6TWYqMw1Bad2SEsghdrhx8qN355sHhrsXOdgsas bPpQ== MIME-Version: 1.0 X-Received: by 10.112.167.38 with SMTP id zl6mr17838504lbb.34.1413678256302; Sat, 18 Oct 2014 17:24:16 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.131.66 with HTTP; Sat, 18 Oct 2014 17:24:16 -0700 (PDT) In-Reply-To: References: Date: Sat, 18 Oct 2014 17:24:16 -0700 X-Google-Sender-Auth: cnIFx6ai3ZxRzmOd2p-_9YaJLNk Message-ID: Subject: Re: Patching a Java package substituting a precompiled class From: Craig Rodrigues To: Enrico Maria Crisostomo Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Oct 2014 00:24:19 -0000 On Sat, Oct 18, 2014 at 1:07 PM, Enrico Maria Crisostomo < enrico.m.crisostomo@gmail.com> wrote: > Hi, > > I'm trying to fix a Java port (logstash) that's crashing in FreeBSD > because of a bug in a Java class in a JAR that's included as a dependency. > Three different persons, included I, have submitted a PR upstream (you can > see mine here: https://github.com/jnr/jnr-ffi/pull/26) but the activity > in that project is pretty slow and nobody has taken action yet. > > Thanks for doing that. I lot of people in the Java world don't care much about FreeBSD, so this process can be painful. There is another option that you may wish to consider. (1) Take your https://github.com/emcrisostomo/jnr-ffi/ fork on github. (2) Make a release of the jnr package and put it at https://github.com/emcrisostomo/jnr-ffi/releases/ (3) Change the FreeBSD port to use your version of jnr (4) When the upstream version of jnr changes to accept your patch, delete your fork, and change the port back to using the original jnr. Thanks for doing this. It takes some pushing but eventually upstream will take our patches. I did the same thing for https://github.com/jenkinsci/jenkins/pull/1387 and Jenkins. -- Craig