OPNsense Forum

English Forums => Development and Code Review => Topic started by: tejas.designer07 on July 21, 2019, 07:46:37 pm

Title: Unable to build 19.1 version as all the repositories have been updated to 19.7
Post by: tejas.designer07 on July 21, 2019, 07:46:37 pm
Hi,

I am trying to build OPNsense 19.1 from source code on FreeBSD 11.2. As all the repositories are updated to 19.7, I tried checking out tags 19.1 from all repositories but I am getting different errors while building ports.

Am I missing any steps?

Thanks for your help.
Title: Re: Unable to build 19.1 version as all the repositories have been updated to 19.7
Post by: franco on July 22, 2019, 01:33:37 pm
# make info

You can't build 19.7 tags with 19.1 repositories. That's especially true if you build tools.git any further than tag 19.1.10 which was the last 19.1 release.


Cheers,
Franco
Title: Re: Unable to build 19.1 version as all the repositories have been updated to 19.7
Post by: tejas.designer07 on July 23, 2019, 02:09:48 am
Hi,

Thanks for your reply. These are the steps I followed to build 19.1.

1) #git clone https://github.com/opnsense/tools
2) #git checkout tags/19.1

I did the above steps for all repositories individually, so that all my local branches are on 19.1 i.e. "HEAD detached at 19.1"

3) #cd /usr/tools: make vga

Code: [Select]
>>> Running build step: vga                                                                                                                                                                                                                   
>>> Running build step: clean                                                                                                                                                                                                                 
>>> Removing vga image                                                                                                                                                                                                                       
>>> Setting up stage in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64                                                                                                                                                                         
>>> Setting up world in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work                                                                                                                                                                     
>>> Setting up kernel in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work                                                                                                                                                                   
>>> Extracting packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work                                                                                                                                                                 
>>> Installing packages in /usr/obj/usr/tools/config/19.1/OpenSSL:amd64/work: os-dyndns opnsense                                                                                                                                             
pkg: No packages installed.  Nothing to do!                                                                                                                                                                                                   
Installing pkg-1.10.5_5...                                                                                                                                                                                                                   
Extracting pkg-1.10.5_5: 100%                                                                                                                                                                                                                 
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
Installing os-dyndns-1.13...                                                                                                                                                                                                                 
Extracting os-dyndns-1.13: 100%                                                                                                                                                                                                               
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
Installing opnsense-19.1.4...                                                                                                                                                                                                                 
`-- Installing beep-1.0_1...                                                                                                                                                                                                                 
`-- Extracting beep-1.0_1: 100%                                                                                                                                                                                                               
`-- Installing bsdinstaller-19.1_1...                                                                                                                                                                                                         
|   `-- Installing cpdup-1.20...                                                                                                                                                                                                             
|   `-- Extracting cpdup-1.20: 100%                                                                                                                                                                                                           
`-- Extracting bsdinstaller-19.1_1: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Installing ca_root_nss-3.42.1...                                                                                                                                                                                                         
`-- Extracting ca_root_nss-3.42.1: 100%                                                                                                                                                                                                       
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Installing choparp-20150613...                                                                                                                                                                                                           
`-- Extracting choparp-20150613: 100%                                                                                                                                                                                                         
`-- Installing cpustats-0.1...                                                                                                                                                                                                               
`-- Extracting cpustats-0.1: 100%                                                                                                                                                                                                             
`-- Installing dhcp6c-20190128...                                                                                                                                                                                                             
`-- Extracting dhcp6c-20190128: 100%                                                                                                                                                                                                         
`-- Installing dhcpleases-0.2...                                                                                                                                                                                                             
`-- Extracting dhcpleases-0.2: 100%                                                                                                                                                                                                           
`-- Installing dnsmasq-2.80_2,1...                                                                                                                                                                                                           
|   `-- Installing nettle-3.4.1_1...                                                                                                                                                                                                         
|   | `-- Installing indexinfo-0.3.1...                                                                                                                                                                                                       
|   | `-- Extracting indexinfo-0.3.1: 100%                                                                                                                                                                                                   
|   | `-- Installing gmp-6.1.2_1...                                                                                                                                                                                                           
|   | `-- Extracting gmp-6.1.2_1: 100%                                                                                                                                                                                                       
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   `-- Extracting nettle-3.4.1_1: 100%                                                                                                                                                                                                       
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Extracting dnsmasq-2.80_2,1: 100%                                                                                                                                                                                                         
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
`-- Installing dpinger-3.0...                                                                                                                                                                                                                 
`-- Extracting dpinger-3.0: 100%                                                                                                                                                                                                             
`-- Installing expiretable-0.6_1...                                                                                                                                                                                                           
`-- Extracting expiretable-0.6_1: 100%                                                                                                                                                                                                       
`-- Installing filterlog-0.2...                                                                                                                                                                                                               
`-- Extracting filterlog-0.2: 100%                                                                                                                                                                                                           
`-- Installing ifinfo-10.1...                                                                                                                                                                                                                 
`-- Extracting ifinfo-10.1: 100%                                                                                                                                                                                                             
`-- Installing flock-2.30.1...                                                                                                                                                                                                               
`-- Extracting flock-2.30.1: 100%                                                                                                                                                                                                             
`-- Installing flowd-0.9.1_3...                                                                                                                                                                                                               
|   `-- Installing python27-2.7.15...                                                                                                                                                                                                         
|   | `-- Installing openssl-1.0.2r,1...                                                                                                                                                                                                     
|   | `-- Extracting openssl-1.0.2r,1: 100%                                                                                                                                                                                                   
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   | `-- Installing readline-7.0.5...                                                                                                                                                                                                       
|   | `-- Extracting readline-7.0.5: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   | `-- Installing libffi-3.2.1_3...                                                                                                                                                                                                       
|   | `-- Extracting libffi-3.2.1_3: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                         
|   `-- Extracting python27-2.7.15: 100%                                                                                                                                                                                                     
pkg: Cannot open /dev/null:No such file or directory 
pkg: Cannot open /dev/null:No such file or directory                                                                                                                                                                                 [26/1960]

Failed to install the following 1 package(s): ./.pkg/All/opnsense-19.1.4.txz
Message from beep-1.0_1:                                   

Speaker sound support:                                     
======================                                     

For PC speaker sound to work you need to be in the operator group
and need r/w permissions to /dev/speaker device.

Load kernel module:                                       

# kldload speaker                                         

Add a user to operator group:

% pw groupmod operator -m jerry

Uncomment the following lines in /etc/devfs.rules file (create it
if it doesn't exist):                                     

# Allow members of group operator to cat things to the speaker

[speaker=10]                                               
add path 'speaker' mode 0660 group operator

To load these new rules add the following to /etc/rc.conf:

devfs_speaker_ruleset="speaker"

Then restart devfs to load the new rules:

% /etc/rc.d/devfs restart                                 
Message from ca_root_nss-3.42.1:

********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.                                     

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.                                             

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem                                     
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem

***************************************************************************
Message from dnsmasq-2.80_2,1:

*** To enable dnsmasq, edit /usr/local/etc/dnsmasq.conf and
*** set dnsmasq_enable="YES" in /etc/rc.conf[.local]
***                                                       
*** Further options and actions are documented inside
*** /usr/local/etc/rc.d/dnsmasq

*** SECURITY RECOMMENDATION                               
*** ~~~~~~~~~~~~~~~~~~~~~~~                               
*** It is recommended to enable the wpad-related options
*** at the end of the configuration file (you may need to
*** copy them from the example file to yours) to fix
*** CERT Vulnerability VU#598349.
Message from openssl-1.0.2r,1:

Edit /usr/local/openssl/openssl.cnf to fit your needs.
Message from python27-2.7.15:

===========================================================================

Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

bsddb           databases/py-bsddb
gdbm            databases/py-gdbm
sqlite3         databases/py-sqlite3
tkinter         x11-toolkits/py-tkinter

===========================================================================
*** Error code 70                                         

Stop.                                                     
make: stopped in /usr/tools               

#make info
Code: [Select]
tools /usr/tools 19.1
src /usr/src 19.1
ports /usr/ports 19.1
plugins /usr/plugins 19.1
core /usr/core 19.1

Thanks.
Title: Re: Unable to build 19.1 version as all the repositories have been updated to 19.7
Post by: franco on July 23, 2019, 07:53:49 am
Thanks for providing the actual error... you have a pkg version issue here...

http://freebsd.1045724.x6.nabble.com/pkg-Cannot-open-dev-null-No-such-file-or-directory-td6333184.html

# pkg query %v pkg

It will say 1.11.xx, but we only use 1.10.xx yet. I have to fix this and migrate, but not before 19.7.1 is out.


Cheers,
Franco
Title: Re: Unable to build 19.1 version as all the repositories have been updated to 19.7
Post by: tejas.designer07 on July 23, 2019, 10:46:39 am
That was the issue. Thanks for all the help ;D
Title: Re: Unable to build 19.1 version as all the repositories have been updated to 19.7
Post by: franco on July 25, 2019, 08:17:24 pm
I'm ready to work on this early next week. Just to let you know.


Cheers,
Franco