English Forums > Development and Code Review
Building OPNsense
(1/1)
fbarco:
Hello,
I try to build the latest stable 21.7 with OPNsense/tools but it fails with missing "cairo" in ports collection.
* First, I clone "https://github.com/opnsense/tools.git" in /usr directory
* On master branch :
** make update : OK
** make dvd : FAILED
* Build system
--- Code: ---root@localhost:/usr/tools # freebsd-version
12.1-RELEASE-p5
--- End code ---
Failed logs :
--- Code: ---===> cairo-1.17.4,3 depends on file: /usr/local/sbin/pkg - found
[20210916163723] => cairo-1.17.4.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
[20210916163723] => Attempting to fetch https://cairographics.org/releases/cairo-1.17.4.tar.xz
[20210916163724] => Attempting to fetch https://cairographics.org/snapshots/cairo-1.17.4.tar.xz
[20210916163738] => ebbaebdec12878836fc84d31c59ee324e67abc05.patch doesn't seem to exist in /usr/ports/distfiles/.
[20210916163738] => Attempting to fetch https://gitlab.freedesktop.org/cairo/cairo/commit/ebbaebdec12878836fc84d31c59ee324e67abc05.patch
[20210916163738] => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/ebbaebdec12878836fc84d31c59ee324e67abc05.patch
[20210916163738] => Couldn't fetch it - please try to retrieve this
[20210916163738] => port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
Stop.
make[6]: stopped in /usr/ports/graphics/cairo
*** Error code 1
Stop.
make[5]: stopped in /usr/ports/devel/tex-web2c
*** Error code 1
Stop.
make[4]: stopped in /usr/ports/print/tex-basic-engines
*** Error code 1
Stop.
make[3]: stopped in /usr/ports/print/tex-formats
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/devel/doxygen
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/devel/protobuf-c
*** Error code 1
Stop.
make: stopped in /usr/ports/dns/bind916
[........]
>>> Creating package mirror set for 21.7.2_128-OpenSSL-amd64... done
>>> Creating 21.7 signature for packages-21.7.2_128-OpenSSL-amd64.tar... done
-rw-r--r-- 1 root wheel 789M 16 sept. 21:52 packages-21.7.2_128-OpenSSL-amd64.tar
-rw-r--r-- 1 root wheel 1,3K 16 sept. 21:52 packages-21.7.2_128-OpenSSL-amd64.tar.sig
>>> ERROR: The build encountered fatal issues!
>>> Aborted version 9.16.20 for dns/bind916
*** Error code 1
Stop.
make: stopped in /usr/tools
--- End code ---
In tools repository, should I create a branch from 21.7 tag (or 21.7.1 or 21.7.2) to make dvd ?
Thanks,
Fabrice Barconnière
mimugmail:
You can try to fetch the file and place it in distfiles. The last weeks there were couple of problems with fetching packages.
sreekupm:
Dear Fbarco,
Please follow https://github.com/opnsense/tools
I have built 2 days back.
try again or manually fetch the same.
fbarco:
Thanks for your answers.
That's what i did.
I built successfully the dvd image but i did it step by step :
--- Code: ---git clone https://github.com/opnsense/tools.git /usr/tools : OK
cd tools/ : OK
make update : OK
openssl genrsa -out config/21.7/repo.key 4096: OK
chmod 0400 config/21.7/repo.key : OK
openssl rsa -in config/21.7/repo.key -out config/21.7/repo.pub -pubout : OK
make prefetch-base : OK
make prefetch-kernel : OK
make prefetch-packages : OK
make distfiles : problem to fetch PHP_CodeSniffer-3.6.0.tgz
mkdir -p /usr/ports/distfiles/PEAR : OK
curl http://distcache.FreeBSD.org/ports-distfiles/PEAR/PHP_CodeSniffer-3.6.0.tgz --output /usr/ports/distfiles/PEAR/PHP_CodeSniffer-3.6.0.tgz : fetch mannually OK
make distfiles : run again OK
make ports : OK
make packages : OK
make dvd : OK
--- End code ---
After I wanted to build a new dvd image with py-salt port installed. I patched opnsense/tools like that :
--- Code: ---commit 41fe9d36a5c52d6f0bbae91d631e78eef3e7c351 (HEAD -> master)
Author: EOLE team <eole-team@ac-dijon.fr>
Date: Tue Sep 21 06:31:59 2021 +0000
Add custom configuration
diff --git a/.gitignore b/.gitignore
index b83ae65..96e5398 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-/config/*/build.conf.local
/config/*/plugins.conf.local
/config/*/repo.key
/config/*/repo.pub
diff --git a/config/21.7/build.conf.local b/config/21.7/build.conf.local
new file mode 100644
index 0000000..8be2fb2
--- /dev/null
+++ b/config/21.7/build.conf.local
@@ -0,0 +1 @@
+ADDITIONS=py38-salt
diff --git a/config/21.7/ports.conf b/config/21.7/ports.conf
index a88fa74..45449a5 100644
--- a/config/21.7/ports.conf
+++ b/config/21.7/ports.conf
@@ -226,6 +226,7 @@ sysutils/node_exporter arm
sysutils/nut arm
sysutils/pftop
sysutils/puppet7 arm
+sysutils/py-salt arm,arm64
sysutils/screen
sysutils/smartmontools arm
sysutils/sysinfo
--- End code ---
The build fails with a dependency problem :
--- Code: --->>> Installing packages in /usr/obj/usr/tools/config/21.7/OpenSSL:amd64: postfix35
Updating database digests format: ... done
Checking integrity... done (0 conflicting)
The following package(s) are locked and may not be removed:
ca_root_nss
curl
cvsps
expat
git
indexinfo
libffi
libnghttp2
mpdecimal
openssl
p5-Error
pcre2
perl5
pkg
python38
readline
Deinstallation has been requested for the following 3 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
fetchmail: 6.4.19
gettext-runtime: 0.21
krb5: 1.19.1
Number of packages to be removed: 3
The operation will free 5 MiB.
[1/3] Deinstalling fetchmail-6.4.19...
[1/3] Deleting files for fetchmail-6.4.19: ........ done
==> You should manually remove the "fetchmail" user.
==> You should manually remove the "fetchmail" group
[2/3] Deinstalling krb5-1.19.1...
[2/3] Deleting files for krb5-1.19.1: .......... done
[3/3] Deinstalling gettext-runtime-0.21...
[3/3] Deleting files for gettext-runtime-0.21: .......... done
Installing pkg-1.16.3...
the most recent version of pkg-1.16.3 is already installed
Installing postfix35-3.5.12_1,1...
pkg: Missing dependency 'krb5'
Failed to install the following 1 package(s): ./.pkg/All/postfix35-3.5.12_1,1.txz
*** Error code 1
Stop.
--- End code ---
Navigation
[0] Message Index
Go to full version