First time porter seeks guidance on 'make package' (as user)

James E Keenan jkeenan at pobox.com
Tue Jan 9 16:33:14 UTC 2018


On 01/09/2018 09:36 AM, James E Keenan wrote:
> 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.
> 

Is it the case that, if I am on FreeBSD-10.3, 
https://svn.FreeBSD.org/ports/head is unusable for ports development?

> Please advise.
> 
> Thank you very much.
> Jim Keenan
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



More information about the freebsd-ports mailing list