From fea803df3de147ea1d31f016a6bc9e29667bc788 Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Thu, 27 Oct 2011 09:05:07 +0000 Subject: [PATCH] Add a how-to on creating a new branch with the new codebase. While here, add some notes about how to delete out-of-support branches. --- .../articles/portbuild/article.sgml | 80 +++++++++++++++++-- 1 file changed, 74 insertions(+), 6 deletions(-) diff --git a/en_US.ISO8859-1/articles/portbuild/article.sgml b/en_US.ISO8859-1/articles/portbuild/article.sgml index ff8333df98..30764f0907 100644 --- a/en_US.ISO8859-1/articles/portbuild/article.sgml +++ b/en_US.ISO8859-1/articles/portbuild/article.sgml @@ -2088,30 +2088,64 @@ ssh_cmd="/usr/local/bin/ssh" - Create a new zfs filesystem + (new codebase) Edit /var/portbuild/conf/server.conf + with the following changes: + + + + Add new-branch to + SRC_BRANCHES. + + + + For what was previously head, change + SRC_BRANCH_branch_TAG to + RELENG_branch_0. + + + + Add + SRC_BRANCH_new-branch_TAG + =.. + + + + + + (new codebase) Run +/var/portbuild/updatesnap manually. + + + + (Only for old codebase) + Create a new zfs filesystem for sources: zfs create a/snap/src-branch - Checkout a src tree in the new filesystem: + (Only necessary for old codebase): + Checkout a src tree in the new filesystem: cvs -Rq -d /r/ncvs co -d src-branch-r RELENG_branch - Edit the master copy of + (Only necessary for old codebase): + Edit the master copy of Tools/portbuild/portbuild.conf. - For each arch, edit its copy of the above in + (Only necessary for old codebase): + For each arch, edit its copy of the above in /var/portbuild/arch/portbuild.conf. - Edit /var/portbuild/scripts/buildenv. + (Only necessary for old codebase): + Edit /var/portbuild/scripts/buildenv. @@ -2122,7 +2156,8 @@ ssh_cmd="/usr/local/bin/ssh" - Modify HEAD_BRANCH and + (Only necessary for old codebase): + Modify HEAD_BRANCH and NON_HEAD_BRANCHES in /var/portbuild/scripts/updatesnap. @@ -2159,6 +2194,39 @@ ln -s ../arch/branch/build + + How to delete an unsupported &os; branch + + When an old branch goes out of support, there are some + things to garbage-collect. + + + + (new codebase) Edit /var/portbuild/conf/server.conf + with the following changes: + + + Delete new-branch from + SRC_BRANCHES. + + + + Delete + SRC_BRANCH_old-branch_TAG + =whatever + + + + + + (both): +umount a/snap/src-old-branch/src; +umount a/snap/src-old-branch; +zfs destroy -r a/snap/src-old-branch + + + + How to configure a new architecture