Comments (15)
Not sure what your tools.git commit is, but you'll need to run:
# make ports
# make packages
before core will build. Recent commits will get the drift.
Also note this tweak for better reporting:
# make core VERBOSE=please
There is no unstaged out of band build for core at the moment, meaning the build system wants to build all the parts including kernel, base, ports and plugins.
from tools.
There is no unstaged out of band build for core at the moment, meaning the build system wants to build all the parts including kernel, base, ports and plugins.
Ah, that's what I wanted to avoid. base has never been compiled.
Does that mean that it's unsafe to only update core and that base+kernel have to be updated at the same time?
from tools.
Try the latest commits on tools:
# make prefetch-kernel,base,packages VERSION=16.1
# make core-master
Pew pew :) Only problem is that core package will be pushed into the /tmp/sets/packages-* archive. Please look at the tools README for details. Everything is documented.
I have ideas about inline packaging, but I was still pondering whether the tools.git should or should not be required in this case.
from tools.
OK so the required packages were downloaded to /tmp/sets/
-rw-r--r-- 1 root wheel 3.5K Jan 28 12:32 base-16.1-amd64.obsolete
-rw-r--r-- 1 root wheel 44M Jan 28 12:33 base-16.1-amd64.txz
-rw-r--r-- 1 root wheel 23M Jan 28 12:34 kernel-16.1-amd64.txz
drwxr-xr-x 2 root wheel 512B Feb 2 15:13 .
-rw-r--r-- 1 root wheel 167M Feb 2 15:13 packages-16.1.1_6-OpenSSL-amd64.tar
and I have a core package at /usr/obj/stage/.pkg-new/All/opnsense-16.1.txz
But this seems to be the old version, not the newer 16.1.1. So how do we get the latest core package?
from tools.
The sets are there to set up the build jail, the latest core package is built by what I wrote:
# make core-master
("master" is the branch or tag name or commit hash, e.g.
# make core-16.1.1
)
from tools.
Thanks.
The thing that I missed was that the new packages were in /tmp/sets/packages-16.1.1_6-OpenSSL-amd64.tar
. That's because a package with a very similar name was downloaded as part of the prefetch command, but those were the previous packages.
So that process works to update the GUI without touching anything else 👍
Maybe the Readme should be altered to indicate that make core
can't be run on it's own?
from tools.
It can. The build system supports progress markers and automatic skipping plus dependency tracking since 16.1-ish.
If you type "make core" after prefetching everything, it'll tell you it has nothing to do.
from tools.
Also see the actual target dependency that glues e.g. "make everything" together...
https://github.com/opnsense/tools/blob/master/Makefile#L36-L39
from tools.
It can. The build system supports progress markers and automatic skipping plus dependency tracking since 16.1-ish.
If you type "make core" after prefetching everything, it'll tell you it has nothing to do.
That's what I mean. There are pre-requirements. Those won't be automatically resolved when doing make core
. I had to prefetch base, kernel and packages
from tools.
You're right, I've tightened the dependency chain in the referenced commit. Can you recheck?
from tools.
BUT: prefetching will always remain a manual operation
from tools.
BUT: prefetching will always remain a manual operation
That's what I think should be added to the Readme, because without doing a prefetch, I still get tar: Option -f requires an argument
. The packages need to be there, but it's not obvious that base and kernel have to be made available to build core.
from tools.
With the last commit and no prefetch "make core" starts to build the base system.
After prefetch or "make packages" I get an instant ">>> Packages (core) are up to date" with "make core".
prefetch, like distfiles, is a convenience tool and will not be part of the actual build description.
from tools.
Of course it works better if I actually fetch the commit.
All good now, thanks.
from tools.
Thanks for double-checking :)
from tools.
Related Issues (20)
- Block Control C on booting HOT 1
- Ads security/xray-core to ports and pkgs. HOT 3
- Add sysutils/podman-suite HOT 2
- Add emulators/qemu-devel or emulators/qemu HOT 7
- build: providing plugins and packages as files on images to bootstrap e.g. realtek 2.5G cards
- opnsense "cloud" images possible now? HOT 1
- OpenSSL 3 ports migration HOT 8
- sslscan Fast SSL port scanner
- Add HAProxy 2.8 [only for 24.1]
- Feature request: add freeswitch into the repo
- Captive Portal Customize Vouchers System HOT 1
- Add sysutils/bastille HOT 1
- base: generating obsolete file for file to directory transition HOT 1
- Installed pkg version '1.20' does not match required version '1.19' HOT 20
- No plug-ins while building R4S HOT 3
- Creating NANO image for ARM fails HOT 3
- OFED disabled in src.conf HOT 4
- WITH_OFED_EXTRA also disabled HOT 8
- OFED kernel modules - whether to enable or revert all OFED-related HOT 6
- Add tools for updating intel network cards firmware
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tools.