1
Development and Code Review / Building tools architecture
« on: 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.
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.

