OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of fbarco »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - fbarco

Pages: [1]
1
Development and Code Review / Building OPNsense
« on: September 17, 2021, 08:56:16 am »
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: [Select]
root@localhost:/usr/tools # freebsd-version
12.1-RELEASE-p5

Failed logs :
Code: [Select]
===>   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

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

2
Development and Code Review / Build dvd image with opnsense/tools
« on: February 04, 2020, 10:11:28 am »
Hello,
I've built a dvd image /usr/local/opnsense/build/20.1/amd64/images/OPNsense-3.0-OpenSSL-dvd-amd64.iso with opnsense/tools
Here is my configuration :
Code: [Select]
~/git/opnsense/eole/tools (amon3)$ git diff upstream/master amon3 config/20.1
/build.conf
diff --git a/config/20.1/build.conf b/config/20.1/build.conf
index fd801cc2..c44b4c49 100644
--- a/config/20.1/build.conf
+++ b/config/20.1/build.conf
@@ -7,3 +7,11 @@ RUBY?=         26
 COREBRANCH?=   stable/20.1
 PLUGINSBRANCH?=        stable/20.1
 SRCBRANCH?=    stable/20.1
+TOOLSBRANCH=amon3
+
+ADDITIONS="py37-salt"
+VERSION=3.0
+SERVER=barco@barco.eole.lan
+UPLOADDIR=/home/barco/tmp/eole/opnsense/prefetch
+PRODUCT_PUBKEY=/usr/tools/config/20.1/repo.pub
+PRODUCT_PRIVKEY=/usr/tools/config/20.1/repo.key
Code: [Select]
~/git/opnsense/eole/tools (amon3=)$ git diff upstream/master amon3 config/20.1/ports.conf
diff --git a/config/20.1/ports.conf b/config/20.1/ports.conf
index f2af921..75548a3 100644
--- a/config/20.1/ports.conf
+++ b/config/20.1/ports.conf
@@ -197,6 +197,7 @@ sysutils/munin-node                         arm,arm64,i386
 sysutils/node_exporter                         arm,arm64
 sysutils/nut                                   arm,arm64
 sysutils/pftop
+sysutils/py-salt                                arm,arm64
 sysutils/screen
 sysutils/smartmontools                         arm,arm64
 sysutils/sysinfo
Code: [Select]
~/git/opnsense/eole/tools (amon3=)$ git diff upstream/master amon3 config/20.1/extras.conf
diff --git a/config/20.1/extras.conf b/config/20.1/extras.conf
index 11e35cc..5c97968 100644
--- a/config/20.1/extras.conf
+++ b/config/20.1/extras.conf
@@ -4,6 +4,7 @@ loader_conf_fixup()
         if [ -f ${1}/usr/local/etc/rc.loader ]; then
                chroot ${1} /usr/local/etc/rc.loader
        fi
+ echo 'salt_minion_enable="YES"' > ${1}/etc/rc.conf.d/salt_minion
 
        cat >> ${1}/boot/loader.conf << EOF
 kern.cam.boot_delay="10000"

Now i want to customize the NAME option with "Amon" value, but when i run make dvd, it stops with error 1
Code: [Select]
Could not find package: amon
*** Error code 1

Stop.
make: stopped in /usr/tools

What is this package amon ?
How can it be built ?

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2