Code Monkey home page Code Monkey logo

Comments (15)

fichtner avatar fichtner commented on July 25, 2024

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.

oparoz avatar oparoz commented on July 25, 2024

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.

fichtner avatar fichtner commented on July 25, 2024

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.

oparoz avatar oparoz commented on July 25, 2024

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.

fichtner avatar fichtner commented on July 25, 2024

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.

oparoz avatar oparoz commented on July 25, 2024

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.

fichtner avatar fichtner commented on July 25, 2024

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.

fichtner avatar fichtner commented on July 25, 2024

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.

oparoz avatar oparoz commented on July 25, 2024

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.

fichtner avatar fichtner commented on July 25, 2024

You're right, I've tightened the dependency chain in the referenced commit. Can you recheck?

from tools.

fichtner avatar fichtner commented on July 25, 2024

BUT: prefetching will always remain a manual operation

from tools.

oparoz avatar oparoz commented on July 25, 2024

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.

fichtner avatar fichtner commented on July 25, 2024

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.

oparoz avatar oparoz commented on July 25, 2024

Of course it works better if I actually fetch the commit.

All good now, thanks.

from tools.

fichtner avatar fichtner commented on July 25, 2024

Thanks for double-checking :)

from tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.