Menu

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.

Show posts Menu

Messages - fbarco

#1
I tried on OPNsense 21.1, it's the same
#2
Hello, thank you very much for this post.
I tried to build "sysutils/py-salt" port on OPNsense 21.7 but it fails on "ports-mgmt/pkg" build

[.....]
install  -m 0644 /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.16.3/NEWS /wrkdirs/usr/ports/ports-mgmt/pkg/work/stage/usr/local/share/doc/pkg/NEWS
====> Compressing man pages (compress-man)
===>   Installing ldconfig configuration file
===========================================================================
=======================<phase: package        >============================
===>  Building package for pkg-1.16.3
cp: /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg/pkg-1.16.3.pkg: No such file or directory
*** Error code 1

I built it successfully on FreeBSD 13.
With the "-w" command option, it saves the working directory and "pkg-1.16.3.txz" package exists in "/usr/local/poudriere/data/wrkdirs/opnsense217-opnports-customsense/opnports/pkg-1.16.3.tbz" archive.
Perhaps somebody knows if i forgot to do something

thanks
#3
Development and Code Review / Re: Building OPNsense
September 21, 2021, 09:46:47 AM
Thanks for your answers.
That's what i did.
I built successfully the dvd image but i did it step by step :

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


After I wanted to build a new dvd image with py-salt port installed. I patched opnsense/tools like that :

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


The build fails with a dependency problem :

>>> 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.
#4
Development and Code Review / Building OPNsense
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

root@localhost:/usr/tools # freebsd-version
12.1-RELEASE-p5


Failed logs :

===>   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
#5
OK, thanks Franco.

I'll try to make a ports package.

regards,
Fabrice
#6
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 :

~/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

~/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

~/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

Could not find package: amon
*** Error code 1

Stop.
make: stopped in /usr/tools


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