From owner-freebsd-ports@FreeBSD.ORG Fri Jan 9 02:58:30 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 81C745A9 for ; Fri, 9 Jan 2015 02:58:30 +0000 (UTC) Received: from corpmail01.youmail.com (corpmail01.youmail.com [66.85.99.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5E7ABCF for ; Fri, 9 Jan 2015 02:58:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by corpmail01.youmail.com (Postfix) with ESMTP id 4206FB013E2; Thu, 8 Jan 2015 18:58:29 -0800 (PST) Received: from corpmail01.youmail.com ([127.0.0.1]) by localhost (corpmail01.youmail.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Ac1La7elg5oM; Thu, 8 Jan 2015 18:58:28 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by corpmail01.youmail.com (Postfix) with ESMTP id 298D0B01694; Thu, 8 Jan 2015 18:58:28 -0800 (PST) X-Virus-Scanned: amavisd-new at corpmail01.youmail.com Received: from corpmail01.youmail.com ([127.0.0.1]) by localhost (corpmail01.youmail.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ttuv_DNiO_xh; Thu, 8 Jan 2015 18:58:28 -0800 (PST) Received: from [10.4.1.81] (unknown [10.4.1.81]) by corpmail01.youmail.com (Postfix) with ESMTPSA id E6622B013E2; Thu, 8 Jan 2015 18:58:27 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Subject: Re: do-install fails when files in .PLIST.mktmp are truncated From: Freddy Andersen In-Reply-To: Date: Thu, 8 Jan 2015 18:58:27 -0800 Message-Id: References: <60A51772-9D51-43FC-B0B8-45874C56E3F8@youmail.com> To: Ben Woods X-Mailer: Apple Mail (2.1993) 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 02:58:30 -0000 Thank you ben! you have no idea how helpful the make and makeplist was = for 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=99= m all good now and my updated hadoop2 builds and install =E2=80=A6=20 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: >=20 > 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, = but once you get there it is quite rewarding. >=20 > This resource is priceless, read it and refer back to it often: > https://www.freebsd.org/doc/en/books/porters-handbook/book.html = >=20 > 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 = as copytree_share), by grepping through the files here: > /usr/ports/Mk/ >=20 > Lastly, the mailing lists do not have the formatting features of the = forums, so no need for the [FILE][/FILE] stuff. >=20 > I would say the most obvious thing for your port is the need to update = the 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 >=20 > 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 of the file looks reasonable). I would redirect the = output to a new plist file and compare the difference before overwriting = the main plist file: > # make makeplist > pkg-plist.new > # diff -u pkg-plist pkg-plist.new >=20 > Good luck! >=20 >=20 > --=20 >=20 > -- > From: Benjamin Woods > woodsb02@gmail.com