English Forums > Tutorials and FAQs

Making OPNsense more useful with custom-built packages

<< < (2/2)

fbarco:
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

--- Code: ---[.....]
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

--- End code ---
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

fbarco:
I tried on OPNsense 21.1, it's the same

Balogh:
Tried on 21.7.3_3, building pkg gives an error:

--- Code: ---[00:00:02] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.16.3
[00:01:38] [01] [00:01:36] Finished ports-mgmt/pkg | pkg-1.16.3: Failed: package

--- End code ---

Log shows that failure occurs after pkg is successfully compiled:

--- Code: ---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

Stop.
make[1]: stopped in /usr/ports/ports-mgmt/pkg
*** Error code 1

Stop.
make: stopped in /usr/ports/ports-mgmt/pkg
=>> Cleaning up wrkdir
===>  Cleaning for pkg-1.16.3
build of ports-mgmt/pkg | pkg-1.16.3 ended at Wed Oct 20 09:23:26 EEST 2021
build time: 00:01:36
!!! build failure encountered !!!

--- End code ---

mimugmail:
poudriere currently doesn't work with pkg 1.16, it only works with the build tools from OPNsens itself right now.

franco:
Changes in pkg 1.17 are a bit destructive and not much care was taken in the ports tree for the situation. We will be migrating to 1.17 eventually on our way to 22.1, but there is no pressing need for it for the moment.

Situations like these are why we do not use poudriere if anyone was wondering. ;)


Cheers,
Franco

Navigation

[0] Message Index

[*] Previous page

Go to full version