From owner-freebsd-ports@freebsd.org Tue Jan 9 14:36:36 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 009DCE7FE97 for ; Tue, 9 Jan 2018 14:36:36 +0000 (UTC) (envelope-from jkeenan@pobox.com) Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) (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 C72D37F176; Tue, 9 Jan 2018 14:36:35 +0000 (UTC) (envelope-from jkeenan@pobox.com) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 1CC45B9D97; Tue, 9 Jan 2018 09:36:34 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=subject:to :references:cc:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=sasl; bh=ef2tPj+4P0a/ 1wzkwrAPIEA21Qw=; b=Yg89JWVrXzFRWAS0jwBGMJVebdASaIjGkCx8F9IstbVX FYM83xosD4mQvo1I17dVdXPBOAdPuXYUDxbalWOUWnPrGFNDG9Nb7YzxzA84YRVx IU3I4oKHECtfrgQvizNMzOnbOxuYc5CWGqByIWBIo8g/SI/GDPjXQkOxxQciYUI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=subject:to :references:cc:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; q=dns; s=sasl; b=x0oacd o0Vf5LJGJ/UPGQz3ve6tX/YZJGkGm4bU+6L5F95ULVk1+hgEP4cow5Buq0tKcz+f xhtIoT78qiVEBA3Gg6qYqi1Ps4Ezvh7/dBdZM9qe8N019pcgIp4NudWl9Yx4VKib fGe0kwjqPsZwF/86GfkEkIXES7Cezbujv6lqg= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 13A0CB9D96; Tue, 9 Jan 2018 09:36:34 -0500 (EST) Received: from [192.168.1.44] (unknown [71.246.112.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 4740DB9D95; Tue, 9 Jan 2018 09:36:33 -0500 (EST) Subject: Re: First time porter seeks guidance on 'make package' (as user) To: freebsd-ports@freebsd.org References: <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> Cc: Mathieu Arnold , Yuri From: James E Keenan Message-ID: <4f0d3035-0f0f-ffcc-be05-8c3dc4648dd6@pobox.com> Date: Tue, 9 Jan 2018 09:36:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: 7D28BA76-F54A-11E7-97C5-575F0C78B957-57062903!pb-smtp2.pobox.com X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2018 14:36:36 -0000 On 01/09/2018 03:26 AM, Mathieu Arnold wrote: [snip] I elected to follow this approach. > > 1. checkout the ports tree in your home: svn checkout > https://svn.FreeBSD.org/ports/head $HOME/ports > (or where-ever you want it) > Done. > 2. Then, either add PORTSDIR=$HOME/ports to your environment, or as > root, edit /etc/make.conf and add: > Added PORTSDIR to .shrc and exported it. ##### $ echo $PORTSDIR /home/jkeenan/ports ##### I then created a directory under ~/ports/ for my port and copied to that directory the files I had originally developed under /usr/ports. ##### $ pwd /home/jkeenan/ports/devel/p5-Devel-Platform-Info $ ls -l total 16 -rw-r--r-- 1 jkeenan wheel 536 Jan 9 08:58 Makefile -rw-r--r-- 1 jkeenan wheel 178 Jan 9 09:10 distinfo -rw-r--r-- 1 jkeenan wheel 447 Jan 9 08:58 pkg-descr -rw-r--r-- 1 jkeenan wheel 803 Jan 9 08:59 pkg-plist ##### I should note at this point that, when I was trying to develop this as root underneath /usr/ports, I was able to install and deinstall the port and to have it pass both 'portlint' and 'port test'. So I am reasonably sure that the port was valid. The *only* thing I could not do was to run 'make package' as non-root user. Back to what I was doing underneath ~/ports. I was able to call 'make makesum' and have it recalculate 'distinfo'. At that point, again following the instructions at "Testing the Port" (https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-testing.html), I tried: ##### $ make stage ===> p5-Devel-Platform-Info-0.16 Invalid perl5 version 5.20. *** Error code 1 Stop. make: stopped in /usr/home/jkeenan/ports/devel/p5-Devel-Platform-Info ##### I got the same error message when I called 'make fetch'. I don't understand this error message. perl-5.20.3 is the system perl here (FreeBSD-10.3). I did *not* get this error message when developing as root. Please advise. Thank you very much. Jim Keenan