Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Error building Custom core package
« previous
next »
Print
Pages: [
1
]
Author
Topic: Error building Custom core package (Read 3106 times)
reply2MK
Newbie
Posts: 12
Karma: 0
Error building Custom core package
«
on:
August 25, 2022, 07:27:21 am »
Dear All,
I am struggling to build the custom core package on 22.7, I tried using "make package CORE_NAME-mk" but it gave me an error. I tried to build as below but the same result.
root@:/usr/core # make package
make: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
make: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PHP set
make: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PYTHON set
make[1]: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
make[1]: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PHP set
make[1]: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PYTHON set
make[2]: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
make[2]: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
pkg: No packages installed
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100% 163 B 0.2kB/s 00:01
Fetching packagesite.pkg: 100% 6 MiB 73.3kB/s 01:30
Processing entries: 100%
FreeBSD repository update completed. 31623 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
ca_root_nss: 3.78
Number of packages to be installed: 1
[1/1] Installing ca_root_nss-3.78...
[1/1] Extracting ca_root_nss-3.78: 100%
=====
Message from ca_root_nss-3.78:
--
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.
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
pkg: No package(s) matching choparp
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
choparp: 20150613
Number of packages to be installed: 1
7 KiB to be downloaded.
[1/1] Fetching choparp-20150613.pkg: 100% 7 KiB 7.6kB/s 00:01
Checking integrity... done (0 conflicting)
[1/1] Installing choparp-20150613...
[1/1] Extracting choparp-20150613: 100%
pkg: No package(s) matching cpustats
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'cpustats' have been found in the repositories
*** Error code 1
Stop.
make: stopped in /usr/core
Is there something I am doing wrong? Please advise..
Thanks a lot
MK
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Error building Custom core package
«
Reply #1 on:
August 25, 2022, 07:39:35 am »
> Updating FreeBSD repository catalogue...
Not sure why it wants to update FreeBSD packages... which we don't have...and the main repository seems to be empty. cpustats is available for OPNsense only.
Cheers,
Franco
Logged
reply2MK
Newbie
Posts: 12
Karma: 0
Re: Error building Custom core package
«
Reply #2 on:
August 25, 2022, 08:01:49 am »
Hi,
When I installed FREEBSD 13.1 the default pkg was 1.18.3, I was getting the same error so I downgraded it to pkg-1.17.5 as I read in one of the post. Yet this still didnt resolve the issue.
Thanks
MK
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Error building Custom core package
«
Reply #3 on:
August 25, 2022, 10:28:59 am »
This doesn't explain why the FreeBSD catalogue is being pulled in. If you make a custom build and don't tell us what you changed we can't give any matching support advice.
Cheers,
Franco
Logged
reply2MK
Newbie
Posts: 12
Karma: 0
Re: Error building Custom core package
«
Reply #4 on:
August 29, 2022, 10:55:45 am »
Hi,
This is what I did
1. New install of Freebsd 13.1
2. Used git clone tools and make update to get the OPNsense sources
3. cd /usr/core
4. vi Makefile
5. change core name CORE_NAME?=mk save and close
6. make package CORE_NAME=mk
Please tell me if you need any more information.
Thanks
MK
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Error building Custom core package
«
Reply #5 on:
August 29, 2022, 11:05:32 am »
You cannot run "make package" in the FreeBSD build host... That's why the build tools exist.
Cheers,
Franco
Logged
reply2MK
Newbie
Posts: 12
Karma: 0
Re: Error building Custom core package
«
Reply #6 on:
August 29, 2022, 11:15:31 am »
Hi,
In that case, can you please advise how can I do so.
Thanks
MK
Logged
franco
Administrator
Hero Member
Posts: 17665
Karma: 1611
Re: Error building Custom core package
«
Reply #7 on:
August 29, 2022, 11:18:00 am »
https://github.com/opnsense/tools#tldr
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Error building Custom core package