Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - acik

#1
Thanks again franco. Now I need to learn advanced shell scripting and Makefile structure. :)

Regards.
#2
I achieved! Thanks for your assist  :)

I went back to my snapshot where I built kernel last night, made my modifications and run make ports make core make cdrom again. It is done.

And I could use this options to clear cache. Right?
Quote
A couple of build machine cleanup helpers are available via the clean script:

# make clean-<option>[,...]

Available clean options are:

    base: remove base set
    distfiles: remove distfiles set
    cdrom: remove cdrom image
    core: remove core from packages set
    images: remove all images
    kernel: remove kernel set
    nano: remove nano image
    obj: remove all object directories
    packages: remove packages set
    plugins: remove plugins from packages set
    ports: alias for "packages" option
    release: remove release set
    serial: remove serial image
    sets: remove all sets
    src: reset kernel/base build directory
    stage: reset main staging area
    vga: remove vga image
    vm: remove vm image
    xtools: remove xtools set


Regards.
#3
Quote
QuoteIn your case you modified ports.conf, so *make ports* needs to be rerun.
I already dit it and said here

I wasn't clear, sorry: it needs to be rerun, but that means forcing a rerun, because "make ports" is a cached operation and will try to skip if it can. :)

QuoteWhat I understand is I edit and commit core/Makefile, but when I run make core, it checkouts to https://github.com/opnsense/core/blob/stable/16.7/Makefile state. Am I wrong?

The "make core" without arguments will copy the checked out version including manual adjustments. Nothing is reset or changed. That's why there is a difference for the argument version we use for the official repositories. You are good with "make core" here.

Not everything needs to be rerun, just do:

# make ports-mysql56-server cdrom-again

It should produce a new image with all your modifications.


Cheers,
Franco
#4
Development and Code Review / Building tools architecture
December 16, 2016, 02:24:59 PM
Hi
I achieved to build a cdrom image today. But I'm a little bit confused about building steps.
These are my steps.

1. I cloned the following repos and checkout to proper branches or tags. (stable/16.7, 16.7.11)

2. Run make base and builded base binaries successfully.

3. Run make kernel and got ctfconvert errors for all objects. I made a little research and added nomakeoptions WITH_CTF to kernel's config file SMP. And it is builded successfully.

4. Run make ports, got ERROR 1 somewhere and run it again. After hours, it is builded successfully.

5. Run make core with no problem.

5. Finally run make cdrom and got the cdrom image seamlessly. I installed and played it and didn't see any problem.

Now, my questions,
1. I wanted to add a custom port to my cdrom image. (mysql56-server)
I added a "databases/mysql56-server" entry to the ports.conf file and run make ports and make cdrom again. I see it is builded and packaged in /tmp/sets/package* file but doesn't seem in the image. I see the variable "CORE_DEPENDS" that has a package list in the core repo's Makefile and added mysql56-server to there. Committed with git and run make core and make cdrom again but the result is the same. I didn't appear.
Are my inferences and order of steps right? What should I do to add a port?

2. I didn't see any log file after builds. For instance, when It is broken while building ports, I wanted to see the error clearly. At which port? Which reason etc.  Should I define it in the configuration files or use script tool or something?

Thanks in advance.
Regards.