From owner-freebsd-ports@FreeBSD.ORG Thu Jan 8 23:02:40 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 3DF0A866 for ; Thu, 8 Jan 2015 23:02:40 +0000 (UTC) Received: from mail-we0-x230.google.com (mail-we0-x230.google.com [IPv6:2a00:1450:400c:c03::230]) (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 CC3C08DE for ; Thu, 8 Jan 2015 23:02:39 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id w61so5101352wes.7 for ; Thu, 08 Jan 2015 15:02:38 -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=cpUIX5D6yrXw0zg5lgyy6UT34Lg9kH4ALx6pe4fYUsE=; b=c2eQR4TbK6om6WtH+AohovZY9R37ZmgeA1zMH+pDkLqgV/JmxU+W7FeDK2L4Uwu6kR ehuj8tJpisnkBgqFgVYbXJFgWH6KwmBKiAu9hgnL3lzEJMfIeVZpnbN7dw7CeY6lBKrd PoPs3v3gSBFQoXpkoj0+hIwaAdZZ8of0SDcwKfOpqKxi2gUZneN81sBcvRIf07tPC6An Yj9BLlwxK2wNo1cKEhlVFkOnSaoUhbXVY0g5UDJVg0W0UxXk/LdZ3qqWLDUHPLHws2OF 1dWE1QuTIYJuwx/rAqXjO88g9/t+kyc297IrEhdVmzTYgpBDdx62cj1HLd0uz/POT/OD HyZw== MIME-Version: 1.0 X-Received: by 10.180.9.111 with SMTP id y15mr64394893wia.33.1420758158149; Thu, 08 Jan 2015 15:02:38 -0800 (PST) Received: by 10.194.241.132 with HTTP; Thu, 8 Jan 2015 15:02:38 -0800 (PST) In-Reply-To: <60A51772-9D51-43FC-B0B8-45874C56E3F8@youmail.com> References: <60A51772-9D51-43FC-B0B8-45874C56E3F8@youmail.com> Date: Fri, 9 Jan 2015 07:02:38 +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 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: Thu, 08 Jan 2015 23:02:40 -0000 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. 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 as 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 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 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 Good luck! -- -- From: Benjamin Woods woodsb02@gmail.com