RHCS Release Manager: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
Line 206: Line 206:
</source>
</source>


== Debian ==
== Debian 6 ==


Packages to install;
Packages to install;
Line 214: Line 214:
apt-get -y install rsync bzip2 linux-headers-$(uname -r) make liblogthread-dev gcc libxml2-dev libcorosync-dev libldap-dev \
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
  zlib1g-dev libopenais-dev pkg-config libdbus-1-dev
</source>
== Ubuntu 11.04 ==
Packages to install;
<source lang="bash">
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
</source>
</source>



Revision as of 04:27, 2 December 2011

 AN!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 Problems 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 Problems 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 Failed! Fails in make
make
...
make[3]: Leaving directory `/root/cluster-3.1.8/fence/libfence'
gcc -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/root/cluster-3.1.8/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.1.8\" -D_FILE_OFFSET_BITS=64 -I/root/cluster-3.1.8/config/libs/libccsconfdb -I/root/cluster-3.1.8/cman/lib -I/root/cluster-3.1.8/common/liblogthread -I/usr/include -I/root/cluster-3.1.8/fence/libfence -I/root/cluster-3.1.8/fence/libfenced -I/root/cluster-3.1.8/fence/fenced -I/root/cluster-3.1.8/fence/fenced/../include -I/root/cluster-3.1.8/group/lib -I/usr/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS   -c -o config.o /root/cluster-3.1.8/fence/fenced/config.c
In file included from /root/cluster-3.1.8/fence/fenced/config.c:1:
/root/cluster-3.1.8/fence/fenced/fd.h:182: error: field ‘cpg_ringid’ has incomplete type
make[2]: *** [config.o] Error 1
make[2]: Leaving directory `/root/cluster-3.1.8/fence/fenced'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/cluster-3.1.8/fence'
make: *** [fence] Error 2
Debian 6 i386 Dec. 01, 2011 Failed! Fails in make
make
...
make -C ../libfence
make[3]: Entering directory `/root/cluster-3.1.8/fence/libfence'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/cluster-3.1.8/fence/libfence'
gcc -Wall -Wformat=2 -Wshadow -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Wmissing-declarations -O2 -ggdb3 -MMD -I/root/cluster-3.1.8/make -DDEFAULT_CONFIG_DIR=\"/etc/cluster\" -DDEFAULT_CONFIG_FILE=\"cluster.conf\" -DLOGDIR=\"/var/log/cluster\" -DSYSLOGFACILITY=LOG_LOCAL4 -DSYSLOGLEVEL=LOG_INFO -DRELEASE_VERSION=\"3.1.8\" -D_FILE_OFFSET_BITS=64 -I/root/cluster-3.1.8/config/libs/libccsconfdb -I/root/cluster-3.1.8/cman/lib -I/root/cluster-3.1.8/common/liblogthread -I/usr/include -I/root/cluster-3.1.8/fence/libfence -I/root/cluster-3.1.8/fence/libfenced -I/root/cluster-3.1.8/fence/fenced -I/root/cluster-3.1.8/fence/fenced/../include -I/root/cluster-3.1.8/group/lib -I/usr/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include   -DDBUS   -c -o config.o /root/cluster-3.1.8/fence/fenced/config.c
In file included from /root/cluster-3.1.8/fence/fenced/config.c:1:
/root/cluster-3.1.8/fence/fenced/fd.h:182: error: field ‘cpg_ringid’ has incomplete type
make[2]: *** [config.o] Error 1
make[2]: Leaving directory `/root/cluster-3.1.8/fence/fenced'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/cluster-3.1.8/fence'
make: *** [fence] Error 2
Ubuntu 11.04 amd64 Dec. 01, 2011
Ubuntu 11.04 i386 Dec. 01, 2011

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.04

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

Add cluster GPG key (saved on disk as 'cluster.gpg');

gpg2 --import ~/path/to/cluster.gpg

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

 

Any questions, feedback, advice, complaints or meanderings are welcome.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
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.