From owner-freebsd-ports@freebsd.org Mon Jan 8 20:46:15 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 2B87BE61007 for ; Mon, 8 Jan 2018 20:46:15 +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 F0BEE73986 for ; Mon, 8 Jan 2018 20:46:14 +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 18718D58AD for ; Mon, 8 Jan 2018 15:46:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=to:from :subject:message-id:date:mime-version:content-type; s=sasl; bh=l BIMAzQGgg5Upr1Wd6amDRqOQOA=; b=ogJy7wcM01gJSH/vfkbdc8DkM5A+xhXHW WYBTZ1AIxqeV3fqIjO/93qsaMA55NeA6zWGW03myPppxBN/HMoNUgW14uyQdVw+6 /t9lH6+IG/dI6/f1iQtDn8/wgAvu0B097DYodXSQAOqx9D1AYE4uqcR2JTfW60Pv gKdwnnivsI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=to:from:subject :message-id:date:mime-version:content-type; q=dns; s=sasl; b=UBx K7RMxMdc8Y5vjDDaoj9EnFarPItguFmPAdqTV1tY4sF4wMMiouoWE2HshP9/WxuR QHizFSw4kudarfoQsyYcieniIIDphGG4KGEwb26jsM8eaWEfQDNT3hrkw6dIMLoy wN5xlYaga4jPVFxjqvCTpJdbq8yXxrD03a9Sg8iM= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 0E9B1D58AC for ; Mon, 8 Jan 2018 15:46:13 -0500 (EST) Received: from [192.168.1.44] (unknown [71.246.114.37]) (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 8520CD58AA for ; Mon, 8 Jan 2018 15:46:12 -0500 (EST) To: freebsd-ports@freebsd.org From: James E Keenan Subject: First time porter seeks guidance on 'make package' (as user) Message-ID: Date: Mon, 8 Jan 2018 15:46:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1AF3CBC12AD61C2C42CE943D" Content-Language: en-US X-Pobox-Relay-ID: F6944178-F4B4-11E7-A8F5-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: Mon, 08 Jan 2018 20:46:15 -0000 This is a multi-part message in MIME format. --------------1AF3CBC12AD61C2C42CE943D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable I am making my first attempt at constructing a FreeBSD port. The port=20 in question is for Perl extension Devel-Platform_Info=20 (http://search.cpan.org/dist/Devel-Platform-Info/).=20 Devel-Platform-Info, AFAICT, has not yet been ported and has no=20 prerequisites outside the Perl 5 core distribution. Hence, it should=20 not be difficult to port. I have constructed and submitted a port for=20 this CPAN distribution to OpenBSD; now I would like to do so as well for=20 FreeBSD. I have tried to follow the guidance in the Porters Handbook starting here= : https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.= html ... particularly the discussion in Chapter 3, "Quick Porting": https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/quick-= porting.html I have successfully tested the port with both 'portlint'=20 (https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testi= ng-portlint.html)=20 and 'port test'=20 (https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testi= ng-porttools.html). The one place where I have not gotten the desired results is found at=20 "Procedure 3.1: Recommended Test Ordering"=20 (https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porti= ng-testing.html).=20 Step 6 of that process is to invoke 'make package' as a regular,=20 non-root user. When I attempted to do so, I was told that I lacked=20 permission to create a directory. That didn't surprise me, since the=20 '/usr/ports/' tree has permissions 'drwxr-xr-x' and I, as a member of=20 group 'wheel', lack 'write' permission for that tree. Hence, I'm=20 puzzled by this advice: "Make sure that make package can be run as a normal user (that is, not=20 as root). If that fails, the software may need to be patched. See also=20 Section 17.18, =E2=80=9Cfakeroot=E2=80=9D and Section 17.84, =E2=80=9Cuid= fix=E2=80=9D." I installed the=20 'fakeroot' package but had no better luck when I ran 'fakeroot make=20 package' as a non-root user. 1. Can someone offer guidance as to how to proceed? 2. I found that to create/edit the Makefile and pkg-descr I had to=20 become root. That's a style of work that is contrary to my regular=20 software development practices. With some guidance from an experienced=20 OpenBSD committer I was able to learn how to prepare ports on that=20 platform without becoming root. Is there any way to do that in FreeBSD? Makefile for this port attached for reference. Thank you very much. Jim Keenan --------------1AF3CBC12AD61C2C42CE943D Content-Type: text/plain; charset=UTF-8; name="Makefile" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Makefile" IyBDcmVhdGVkIGJ5OiBKYW1lcyBFIEtlZW5hbiA8amtlZW5hbkBjcGFuLm9yZz4KIyAkRnJl ZUJTRCQKClBPUlROQU1FPQlEZXZlbC1QbGF0Zm9ybS1JbmZvClBPUlRWRVJTSU9OPQkwLjE2 CkNBVEVHT1JJRVM9CWRldmVsIHBlcmw1Ck1BU1RFUl9TSVRFUz0JQ1BBTgpQS0dOQU1FUFJF RklYPQlwNS0KCk1BSU5UQUlORVI9CWprZWVuYW5AY3Bhbi5vcmcKQ09NTUVOVD0JVW5pZmll ZCBmcmFtZXdvcmsgZm9yIG9idGFpbmluZyBjb21tb24gcGxhdGZvcm0gbWV0YWRhdGEKCkxJ Q0VOU0U9CUFSVDIwCgpVU0VTPQkJcGVybDUKVVNFX1BFUkw1PQljb25maWd1cmUKCk9QVElP TlNfREVGSU5FPQlET0NTCgpQT1JURE9DUz0JQ2hhbmdlcyBSRUFETUUKCi5pbmNsdWRlIDxi c2QucG9ydC5vcHRpb25zLm1rPgoKcG9zdC1pbnN0YWxsOgoJJHtNS0RJUn0gJHtTVEFHRURJ Un0ke0RPQ1NESVJ9Cgkke0lOU1RBTExfREFUQX0gJHtQT1JURE9DUzpTfF58JHtXUktTUkN9 L3x9ICR7U1RBR0VESVJ9JHtET0NTRElSfQoKLmluY2x1ZGUgPGJzZC5wb3J0Lm1rPgo= --------------1AF3CBC12AD61C2C42CE943D--