|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Changing directory for fetching of source code
Hello,
I would like sometimes experiment with some options/custom config in kernel. On the other hand that is not supported by OpenBSD. Suppose I need to reproduce problem with original kernel. I think good solution for me would be to have two directories for OpenBSD's code. Instead of /usr/src/sys/ I would have: 1. /usr/src/original/sys/ 2. /usr/src/modified/sys/ 1. Does changing the path to source code directory is supported by OpenBSD? I mean this as the only one change to build process covered by FAQ. No other changes are going to be made. 2. I assume that if I want to replace one build by another I need to have two exactly the same source codes in aforementioned directories. Not going from older to newer and vice versa, even if this is 5 minutes newer/older. How to do this using CVS? Can I replicate/copy code from one local directory to other using CVS command? If not how to manage my goal of having two directories with exactly the same source code (of course in one of them there will be modifications)? |
|
|||
Lets suppose my changes are not limited to config, but also to souce code. And that I am not experienced in using patch utility, and patches are not organized well. It will be time consuming to clean the code from these changes. And I don't want to lose them.
For this it will be much easier for me to just have two separate directories with OpenBSD's code. Does it is supported to build OpenBSD in another directory? For second question I have found " -D date_spec" option for CVS, but I haven't tested it yet. I think it could resolve my second problem. |
|
||||
Quote:
Userland and Xenocara source in non-standard locations is possible (if not supported), through the setting of environment variables. See /usr/share/mk/bsd.README and /usr/xenocara/README for applicable variables. A subset are discussed in FAQ 5.3, 5.4, and release(8). Quote:
Last edited by jggimi; 27th September 2015 at 09:00 PM. Reason: typo |
|
|||
From misc mailing list:
Quote:
Last edited by e1-531g; 3rd October 2015 at 09:17 PM. |
|
||||
I'm sorry I wasn't clear. I'd written:You can put your .../sys structures anywhere you want. Userland builds require setting environment variables, which Ted notes can be placed in /etc/mk.conf. Many variables are noted within its man page -- while definitive requirements are described in the READMEs I pointed you to above.
Last edited by jggimi; 3rd October 2015 at 09:49 PM. Reason: clarity |
|
|||
Thank you jggimi. I just wanted information that building kernel somewhere else is supported or not supported.
I have tested switch -D for cvs. It seems to work. It resolves my problem which had caused second question. Now I have kernel from official snapshot: Code:
sysctl kern.version kern.version=OpenBSD 5.8-current (GENERIC.MP) #1417: Sat Oct 3 23:33:39 MDT 2015 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP Code:
grep 'Build Date' /var/log/Xorg.0.log Code:
#!/bin/sh export CVSROOT=anoncvs@ftp.hostserver.de:/cvs cd /usr/src cvs -d$CVSROOT up -D "2015-10-04 04:20" -Pd cd /usr/originalKernel cvs -d$CVSROOT up -D "2015-10-04 04:20" -Pd sync && sleep 1 Code:
#!/bin/sh cd /usr export CVSROOT=anoncvs@ftp.hostserver.de:/cvs cvs -d$CVSROOT up -D "2015-10-04 06:20" -Pd sync && sleep 1 |
Tags |
cvs, fetching source code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Other Open-source typeface “Hack” brings design to source code | J65nko | News | 1 | 31st August 2015 03:06 PM |
IRC server had backdoor in source code for months | J65nko | News | 2 | 15th June 2010 04:36 PM |
explore source code for installed program | bsdnewbie999 | OpenBSD General | 1 | 23rd February 2009 06:13 AM |
Trying to compile GLUT source code on freebsd. | welkin | Programming | 0 | 11th January 2009 03:15 PM |
Source code for ed? | matt | FreeBSD Ports and Packages | 1 | 21st October 2008 08:18 PM |