From owner-freebsd-ports@FreeBSD.ORG Tue Jul 15 11:39:45 2014 Return-Path: Delivered-To: freebsd-ports@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 ESMTPS id 37507DCB for ; Tue, 15 Jul 2014 11:39:45 +0000 (UTC) Received: from qmta06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:56]) by mx1.freebsd.org (Postfix) with ESMTP id D85AB2C6C for ; Tue, 15 Jul 2014 11:39:44 +0000 (UTC) Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) by qmta06.westchester.pa.mail.comcast.net with comcast id SbDu1o0021YDfWL56bfiwt; Tue, 15 Jul 2014 11:39:42 +0000 Received: from kirby.cyberbotx.com ([107.5.48.95]) by omta20.westchester.pa.mail.comcast.net with comcast id Sbfi1o00123DSHF3gbfi5a; Tue, 15 Jul 2014 11:39:42 +0000 Message-ID: <53C512FD.1080607@cyberbotx.com> Date: Tue, 15 Jul 2014 07:39:41 -0400 From: Naram Qashat User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Help with "port test" References: <53C4F8FE.80909@netfence.it> <53C50418.107@freebsd.org> In-Reply-To: <53C50418.107@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1405424382; bh=XS5qin0KO8BDd1HcEHvPugfAnxSHzYcbmUI3+bYoWRo=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=scL6gAadmrp7uM39ZquLNayNTgrKbAQGwwY5J4K/H9KBIlkd6DkOiJ/Sek4lxK91O m69Z7IJKERXdlGDZ3+ndVYMj+dWmfxqij63Q8RvyzHL2rUafp09jVH6qZ+D3SHNYYt FnmhcM+1VPH9JncRzSqASzziSQVmrK77Tl3/VyabRDONi9yNEvaQ447hQ70C/nJrWE tBtueOvB7wPXZAF32YdVdXWUrlHgyGrVr2Bjtha61yO1Cwrorg/9rcIm3W8NSPhezx sQx0VHYZ9vVh2cGJSPEzd3b0PcedV7g2L6S20MnE1AxqPfpIqpLrs+DkxyvzzarC0n Y3GJNWNdgsb7Q== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jul 2014 11:39:45 -0000 On 07/15/14 06:36, Stefan Esser wrote: > Am 15.07.2014 11:48, schrieb Andrea Venturoli: >> Hello. >> >> I'm trying to create a new port and there are some things I don't >> understand. >> >> Referring to chapter 9 of the Porter's Handbook: >> >> _ "make clean; make package PREFIX=/var/tmp/`make -V PORTNAME`" gives no >> error; >> >> _ "make stage && make check-orphans && make package" also finds no issue; >> >> _ however "port test" gives: >> >>> ===> Checking for directories owned by MTREEs >>> Error: Owned by MTREE: @unexec rmdir "/usr/local" >/dev/null 2>&1 || : >> >> What does this mean? > > You are trying to delete the directory /usr/local, which is part of > the base system. > > Just remove '@unexec rmdir "/usr/local" ...' from pkg-plist ... > > Regards, STefan I actually think there is an error somewhere in the ports system (but I'm not sure where), depending on what the port is trying to do. I found that if a port has a PLIST_SUB that replaces part of the PREFIX, it'll cause both porttools and poudriere to think that PREFIX is being removed incorrectly (I ran into this when testing devel/mingw32-gcc). I also found that if a port has USE_LDCONFIG set, it'll incorrectly think that LOCALBASE is being removed because the ldconfig entry isn't being added to PREFIX but to LOCALBASE instead (I ran into this when testing x11-toolkits/scintilla). I haven't looked too far into why this is happening, but those entries were showing up in work/.staged-files despite that they weren't in my pkg-plist. Hopefully this is enough information to allow someone with more knowledge of the ports infrastructure to correct it. Thanks, Naram Qashat