RHCS Release Manager: Difference between revisions
Line 246: | Line 246: | ||
== Pushing Changes to git == | == Pushing Changes to git == | ||
Setup git | === Initial Setup of git === | ||
Don't have notes, this is from bash's history. Sort this out later. | |||
# Misc commands | |||
man git-send-email | man git-send-email | ||
git clone http://git.fedorahosted.org/git/cluster.git | git clone http://git.fedorahosted.org/git/cluster.git | ||
man git | man git | ||
Line 257: | Line 258: | ||
git show-branch http://git.fedorahosted.org/git/cluster.git | git show-branch http://git.fedorahosted.org/git/cluster.git | ||
git clone http://git.fedorahosted.org/git/cluster.git | git clone http://git.fedorahosted.org/git/cluster.git | ||
git show-branch | git show-branch | ||
git branch | git branch | ||
</source> | </source> | ||
=== Pushing To origin === | |||
Confirming the changes before committing. | |||
<source lang="bash"> | |||
git diff | |||
</source> | |||
<source lang="diff"> | |||
diff --git a/configure b/configure | |||
index 9c7a773..4e9bc2a 100755 | |||
--- a/configure | |||
+++ b/configure | |||
@@ -254,13 +254,14 @@ sub kernel_version { | |||
} | |||
close MAKEFILE; | |||
# Warn and continue if kernel version was not found | |||
- if (!$build_version || !$build_patchlevel || !$build_sublevel) { | |||
+ if (not defined $build_version || not defined $build_patchlevel || not defined $build_sublevel) { | |||
print " WARNING: Could not determine kernel version.\n"; | |||
print " Build might fail!\n"; | |||
return 1; | |||
} | |||
# checking VERSION, PATCHLEVEL and SUBLEVEL for the supplied kernel | |||
- if ($build_version >= $version[0] && | |||
+ if (($build_version > $version[0]) || | |||
+ $build_version == $version[0] && | |||
$build_patchlevel >= $version[1] && | |||
$build_sublevel >= $version[2]) { | |||
print " Current kernel version appears to be OK\n"; | |||
</source> | |||
Pushing changes; | |||
Commit locally with signature. | |||
<source lang="bash"> | |||
git commit -a -s | |||
</source> | |||
(open's editor) | |||
<source lang="text"> | |||
[stable31 9be00f8] Changes the kernel version check to handle 3.x.y kernels. Now if the 'x' version of the running kernel is higher than the 'x' version of the minimum kernel, the test passes. Also changed the method of checking that version numbers were gathered so that a version number of '0' would be seen as valid. | |||
Committer: Digital Mermaid <digimer@lework.alteeve.com> | |||
Your name and email address were configured automatically based | |||
on your username and hostname. Please check that they are accurate. | |||
You can suppress this message by setting them explicitly: | |||
git config --global user.name "Your Name" | |||
git config --global user.email you@example.com | |||
After doing this, you may fix the identity used for this commit with: | |||
git commit --amend --reset-author | |||
1 files changed, 3 insertions(+), 2 deletions(-) | |||
</source> | |||
Check the current branch name. | |||
<source lang="bash"> | |||
git branch | |||
</source> | |||
<source lang="text"> | |||
master | |||
* stable31 | |||
</source> | |||
This shows that <span class="code">stable31</span> is active. | |||
Now push up to the main git repo. | |||
<source lang="bash"> | |||
git push origin stable31:STABLE31 | |||
</source> | |||
<source lang="text"> | |||
Counting objects: 5, done. | |||
Delta compression using up to 2 threads. | |||
Compressing objects: 100% (3/3), done. | |||
Writing objects: 100% (3/3), 543 bytes, done. | |||
Total 3 (delta 2), reused 0 (delta 0) | |||
To ssh://git.fedorahosted.org/git/cluster.git | |||
991bfb0..9be00f8 stable31 -> STABLE31 | |||
</source> | |||
An email should have been automatically sent to the appropriate mailing lists. | |||
{{footer}} | {{footer}} |
Revision as of 18:47, 3 December 2011
Alteeve Wiki :: How To :: RHCS Release Manager |
These are notes, primarily for me, used in my RHCS release manager tasks.
Test Results
These tests are run by copying over the tarball created on the build machine (my laptop), untar'ing it and running ./configure && make.
Testing v3.1.8
Distro | Arch | Date tested | Results | Notes |
---|---|---|---|---|
Fedora Rawhide | x86_64 | Dec. 01, 2011 | Problem | It couldn't determine the kernel version at all. Tried make-ing anyway; Seemed to succeed.
./configure
Configuring Makefiles for your system...
Checking tree: nothing to do
Checking kernel:
WARNING: Could not determine kernel version.
Build might fail!
Completed Makefile configuration
make
...
make[1]: Leaving directory `/root/cluster-3.1.8/doc'
make -C contrib all
make[1]: Entering directory `/root/cluster-3.1.8/contrib'
set -e && \
for i in ; do \
make -C $i all; \
done
make[1]: Leaving directory `/root/cluster-3.1.8/contrib'
|
Fedora Rawhide | i386 | Dec. 01, 2011 | Problem | It couldn't determine the kernel version at all. Tried make-ing anyway; Seemed to succeed.
./configure
Configuring Makefiles for your system...
Checking tree: nothing to do
Checking kernel:
WARNING: Could not determine kernel version.
Build might fail!
Completed Makefile configuration
make
...
make[1]: Leaving directory `/root/cluster-3.1.8/doc'
make -C contrib all
make[1]: Entering directory `/root/cluster-3.1.8/contrib'
set -e && \
for i in ; do \
make -C $i all; \
done
make[1]: Leaving directory `/root/cluster-3.1.8/contrib'
|
Fedora 16 | x86_64 | Dec. 01, 2011 | Failed! | It looks like it's comparing the y number, and ignoring x.
./configure
Configuring Makefiles for your system...
Checking tree: nothing to do
Checking kernel:
Current kernel version: 3.1.2
Minimum kernel version: 2.6.31
FAILED!
|
Fedora 16 | i386 | Dec. 01, 2011 | Failed! | It looks like it's comparing the y number, and ignoring x.
./configure
Configuring Makefiles for your system...
Checking tree: nothing to do
Checking kernel:
Current kernel version: 3.1.2
Minimum kernel version: 2.6.31
FAILED!
|
Fedora 15 | x86-64 | Dec. 01, 2011 | Success | |
Fedora 15 | i386 | Dec. 01, 2011 | Success | |
Debian 6 | amd64 | Dec. 01, 2011 | Incompatible | This will not work on Debian 6 because cpg_ringid isn't in the version of corosync provided by Debian |
Debian 6 | i386 | Dec. 01, 2011 | Incompatible | This will not work on Debian 6 because cpg_ringid isn't in the version of corosync provided by Debian |
Ubuntu 11.10 | amd64 | Dec. 01, 2011 | Problem | Unable to determine kernel version, but seems to build fine.
./configure
Configuring Makefiles for your system...
Checking tree: nothing to do
Checking kernel:
WARNING: Could not determine kernel version.
Build might fail!
Completed Makefile configuration
|
Ubuntu 11.10 | i386 | Dec. 01, 2011 | Problem | Unable to determine kernel version, but seems to build fine.
./configure
Configuring Makefiles for your system...
Checking tree: nothing to do
Checking kernel:
WARNING: Could not determine kernel version.
Build might fail!
Completed Makefile configuration
|
Distro Testing
![]() |
Note: Always update the OS before running tests! |
Fedora 15, 16 and Rawhide
Packages to install;
yum -y groupinstall "Development Libraries" "Development Tools" "Fedora Packager"
yum -y install vim wget corosynclib-devel openaislib-devel
Debian 6
Packages to install;
apt-get update
apt-get -y install rsync bzip2 linux-headers-$(uname -r) make liblogthread-dev gcc libxml2-dev libcorosync-dev libldap-dev \
zlib1g-dev libopenais-dev pkg-config libdbus-1-dev
Ubuntu 11.10
Packages to install;
apt-get update
apt-get -y dist-upgrade
apt-get -y install linux-headers-$(uname -r) libxml2-dev libcorosync-dev libldap2-dev zlib1g-dev libopenais-dev libdbus-1-dev \
libslang2-dev libncurses5-dev
Build Environment
This is how to setup a machine for building and releasing new version of RHCS. This requires a proper FAS account.
yum -y groupinstall "Development Libraries" "Development Tools" "Fedora Packager"
yum -y install vim wget gnupg
Build cluster.
git clone ssh://git.fedorahosted.org/git/cluster.git
cd cluster/
git branch stable31 --track origin/STABLE31
git checkout stable31
Change this to reflect the appropriate versions.
make -f make/release.mk version=3.1.8 oldversion=3.1.7
Pushing Changes to git
Initial Setup of git
Don't have notes, this is from bash's history. Sort this out later.
- Misc commands
man git-send-email git clone http://git.fedorahosted.org/git/cluster.git man git git branch http://git.fedorahosted.org/git/cluster.git man git git show-branch http://git.fedorahosted.org/git/cluster.git git clone http://git.fedorahosted.org/git/cluster.git git show-branch git branch </source>
Pushing To origin
Confirming the changes before committing.
git diff
diff --git a/configure b/configure
index 9c7a773..4e9bc2a 100755
--- a/configure
+++ b/configure
@@ -254,13 +254,14 @@ sub kernel_version {
}
close MAKEFILE;
# Warn and continue if kernel version was not found
- if (!$build_version || !$build_patchlevel || !$build_sublevel) {
+ if (not defined $build_version || not defined $build_patchlevel || not defined $build_sublevel) {
print " WARNING: Could not determine kernel version.\n";
print " Build might fail!\n";
return 1;
}
# checking VERSION, PATCHLEVEL and SUBLEVEL for the supplied kernel
- if ($build_version >= $version[0] &&
+ if (($build_version > $version[0]) ||
+ $build_version == $version[0] &&
$build_patchlevel >= $version[1] &&
$build_sublevel >= $version[2]) {
print " Current kernel version appears to be OK\n";
Pushing changes;
Commit locally with signature.
git commit -a -s
(open's editor)
[stable31 9be00f8] Changes the kernel version check to handle 3.x.y kernels. Now if the 'x' version of the running kernel is higher than the 'x' version of the minimum kernel, the test passes. Also changed the method of checking that version numbers were gathered so that a version number of '0' would be seen as valid.
Committer: Digital Mermaid <digimer@lework.alteeve.com>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 files changed, 3 insertions(+), 2 deletions(-)
Check the current branch name.
git branch
master
* stable31
This shows that stable31 is active.
Now push up to the main git repo.
git push origin stable31:STABLE31
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 543 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/cluster.git
991bfb0..9be00f8 stable31 -> STABLE31
An email should have been automatically sent to the appropriate mailing lists.
Any questions, feedback, advice, complaints or meanderings are welcome. | |||
Alteeve's Niche! | Alteeve Enterprise Support | Community Support | |
© 2025 Alteeve. Intelligent Availability® is a registered trademark of Alteeve's Niche! Inc. 1997-2025 | |||
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions. |