OPNsense Forum

English Forums => Development and Code Review => Topic started by: Aadolf on December 07, 2015, 01:44:26 pm

Title: [SOLVED] building ports
Post by: Aadolf on December 07, 2015, 01:44:26 pm
when i build the ports it takes a long time to build and if i try one more time it will be build and takes a long time.
Is it any way to customize ports.sh file  to avoid building ports that is not necessary?
Title: Re: building ports
Post by: franco on December 07, 2015, 04:25:23 pm
Unfortunately, you provide very little information on what fails and what your system setup is.

We are going to need the last pages of the log to see which port does not work. We need to know if you made modifications, which git commits you have, etc...
Title: Re: building ports
Post by: Aadolf on December 08, 2015, 08:13:31 am

freebsd 10.2 release
delete src and ports folder
get last source from git
make ports
I attach error file at this post.
Title: Re: building ports
Post by: franco on December 08, 2015, 09:38:00 am
Your ports build stopped because internet connectivity was lost:

Quote
===>   openvpn-2.3.8 depends on file: /usr/local/sbin/pkg - found
=> openvpn-2.3.8.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://swupdate.openvpn.net/community/releases/openvpn-2.3.8.tar.xz
=> Attempting to fetch http://build.openvpn.net/downloads/releases/openvpn-2.3.8.tar.xz
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/openvpn-2.3.8.tar.xz
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

If you are on a glitchy connection you'll have to continue running "make ports" until it is properly finished. It's slow, but at least all the progress is saved so you don't end up downloading/building anything twice.
Title: Re: building ports
Post by: franco on December 08, 2015, 09:39:59 am
You can also cache the distfiles using "make distfiles", but it'll also fail if you can't connect to the download servers. Sometimes they go down on their own as well. Not much we can do. :)