Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2018 09:36:29 -0500
From:      James E Keenan <jkeenan@pobox.com>
To:        freebsd-ports@freebsd.org
Cc:        Mathieu Arnold <mat@FreeBSD.org>, Yuri <yuri@rawbw.com>
Subject:   Re: First time porter seeks guidance on 'make package' (as user)
Message-ID:  <4f0d3035-0f0f-ffcc-be05-8c3dc4648dd6@pobox.com>
In-Reply-To: <d76dffae-f6a2-623b-37ac-bb1b84b668e4@FreeBSD.org>
References:  <d7b95861-868f-8287-259d-fca9da6d0431@pobox.com> <538a96d2-c0c7-b67e-36a0-3fcdfa1ebd24@rawbw.com> <d76dffae-f6a2-623b-37ac-bb1b84b668e4@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f0d3035-0f0f-ffcc-be05-8c3dc4648dd6>