OPNsense Forum

English Forums => Development and Code Review => Topic started by: sreekupm on September 19, 2021, 02:53:40 pm

Title: How to add new files to the core
Post by: sreekupm on September 19, 2021, 02:53:40 pm
Hi,

I am trying to add new file to /usr/core/src/opnsense/www


1. I have added a new file inside usr/core/src/opnsense/www/file1.txt
2. I have updated the plist in /usr/core
3. I have added and committed the changes to .git
4. I have run 'make update' from /usr/tools
4. I have run the command 'make core' from /usr/tools
5. I have run the command 'make dvd' from /usr/tools

getting error

 /usr/local/opnsense/www/themes/opnsense/assets/fonts/SourceSansPro-Bold/SourceSansPro-Bold.otf
>>> Package file lists do not match.  Please run 'make plist-fix'.
*** Error code 1

Stop.
make[1]: stopped in /usr/core
*** Error code 1

Please help to solve the issue





Title: Re: How to add new files to the core
Post by: mimugmail on September 19, 2021, 04:01:54 pm
Did you also run the suggested command?
Title: Re: How to add new files to the core
Post by: sreekupm on September 19, 2021, 04:04:16 pm
after running 'make plist-fix' same error :(
Title: Re: How to add new files to the core
Post by: mimugmail on September 19, 2021, 07:11:35 pm
Did you execute this command in /usr/core?
Title: Re: How to add new files to the core
Post by: sreekupm on September 19, 2021, 07:48:28 pm
Yes,
Result is .

root@freebsd:/usr/core # make plist-fix
make: "/usr/core/Mk/defaults.mk" line 47: warning: "Detected 'Base' flavour is not currently supported"
make: "/usr/core/Mk/defaults.mk" line 74: warning: "/usr/local/sbin/pkg query %v syslog-ng" returned non-zero status
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 47: warning: "Detected 'Base' flavour is not currently supported"
make[1]: "/usr/core/Mk/defaults.mk" line 74: warning: "/usr/local/sbin/pkg query %v syslog-ng" returned non-zero status
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 47: warning: "Detected 'Base' flavour is not currently supported"
make[2]: "/usr/core/Mk/defaults.mk" line 74: warning: "/usr/local/sbin/pkg query %v syslog-ng" returned non-zero status
make[2]: "/usr/core/Mk/defaults.mk" line 47: warning: "Detected 'Base' flavour is not currently supported"
make[2]: "/usr/core/Mk/defaults.mk" line 74: warning: "/usr/local/sbin/pkg query %v syslog-ng" returned non-zero status
root@freebsd:/usr/core #