From owner-freebsd-ports@FreeBSD.ORG Fri Jan 9 12:33:45 2015 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 2A0084B1 for ; Fri, 9 Jan 2015 12:33:45 +0000 (UTC) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (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 A6FB9EDE for ; Fri, 9 Jan 2015 12:33:44 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id w62so7712161wes.11 for ; Fri, 09 Jan 2015 04:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FRGIXKuxJ6V+TosbQwuhLHwrT7dOMUHpTZjHis9Ty74=; b=Zze17Bf3Gmjmm1BWvyUrm2J/aUzbdxZEyrVZUa5kzQH2msEp213kyDupdHlVrLLZe3 2fa4/eGlJOvLTvK4PKfYssjw4hT6a2k0eS1IODru2Rb2q9QWlXktEs+6CbOspkySs2Rm emBafEGs9rtBDncP35tOmAcSF1zINR/MzKwj7aG501BCQ9DXWXP3v3r8XkiwytBl0l23 JEw0UE4PP6ht4RcwXdC1KiKtaV60Ts4uHkrktnufqkCZyxiFWC6wPCP95FSAeC8I4z3m XEtCE30NpziogZuNpSsWJLRzyer41sUaWujDDIilfw0jGeEXG+fyiVdOGbN3GloqXTdf FVDw== MIME-Version: 1.0 X-Received: by 10.194.193.4 with SMTP id hk4mr31908327wjc.38.1420806822778; Fri, 09 Jan 2015 04:33:42 -0800 (PST) Received: by 10.194.241.132 with HTTP; Fri, 9 Jan 2015 04:33:42 -0800 (PST) In-Reply-To: References: <60A51772-9D51-43FC-B0B8-45874C56E3F8@youmail.com> Date: Fri, 9 Jan 2015 20:33:42 +0800 Message-ID: Subject: Re: do-install fails when files in .PLIST.mktmp are truncated From: Ben Woods To: Freddy Andersen Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-ports@freebsd.org" 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: Fri, 09 Jan 2015 12:33:45 -0000 Submit a bug report here: bugs.freebsd.org/bugzilla/ Include devel/hadoop2 at the start of the bug title. Then you need to attach a patch of the changes to the ports tree that will update the port per your work. The easiest way to generate the patch file to update is to ensure you retrieved your ports tree using svn (Per https://www.freebsd.org/doc/handbook/svn.html). Then change devel/hadoop2 to match your needs, and run: # cd /usr/ports # svn diff devel/hadoop2 > /home/USERNAME/hadoop2.patch Good luck! On Friday, January 9, 2015, Freddy Andersen wrote: > Thank you ben! you have no idea how helpful the make and makeplist was fo= r > me :) the issues was not with my Makefile but rather that I did not > understand what roll the pkg-plist had in the do-install process. I=E2=80= =99m all > good now and my updated hadoop2 builds and install =E2=80=A6 > > Now I just need to figure how I can get this sent to upstream after some > testing on my end. > > > > On Jan 8, 2015, at 3:02 PM, Ben Woods > wrote: > > First off, since this is your first attempt to update a port, welcome! > There may be a slight hurdle to get over to understanding port basics, bu= t > once you get there it is quite rewarding. > > This resource is priceless, read it and refer back to it often: > https://www.freebsd.org/doc/en/books/porters-handbook/book.html > > Also, the great thing about ports is you can read all of the shell > scripts that are doing the work if you don't understand something (such a= s > copytree_share), by grepping through the files here: > /usr/ports/Mk/ > > Lastly, the mailing lists do not have the formatting features of the > forums, so no need for the [FILE][/FILE] stuff. > > I would say the most obvious thing for your port is the need to update th= e > pkg-plist file which lists ever file your port will install on the system= . > Easy way to test this with your updated port is to do the following: > # cd PORTDIR > # make clean > # make > # make makeplist > > That will dump the new plist to the console standard output, but doesn't > actually update the pkg-plist for you (you have to do that by redirecting > the output to the file). But note, you need to follow the instructions of > the first line (delete the first line, and check the output of the rest o= f > the file looks reasonable). I would redirect the output to a new plist fi= le > and compare the difference before overwriting the main plist file: > # make makeplist > pkg-plist.new > # diff -u pkg-plist pkg-plist.new > > Good luck! > > > -- > > -- > From: Benjamin Woods > woodsb02@gmail.com > > > --=20 -- From: Benjamin Woods woodsb02@gmail.com