info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: upgrading cvs version


From: Mark D. Baushke
Subject: Re: upgrading cvs version
Date: Tue, 10 Aug 2004 16:16:39 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Scot" <address@hidden> is not a valid e-mail address... do NOT
do this if you really want an answer.

        -- Mark

Scot <address@hidden> writes:

> Have an old RH 7.3 cvs server.  I use the latest yum updated version of cvs 
> on it.  However, I want to go to the latest version of cvs from source. 
> What is the reccommended practice.  Should I do some sort of yum uninstall 
> of the version currently on the server, then build the source version.  Or 
> should I just build and install the source version over what is there?
> 
> Thanks. 

cd /to/some/empty/directory
mkdir -p rpmbuild/BUILD rpmbuild/SOURCES rpmbuild/SPECS rpmbuild/SRPMS
mkdir -p rpmbuild/RPMS rpmbuild/RPMS/i386
echo %_topdir `pwd`/rpmbuild" > .rpmmacros
wget https://ccvs.cvshome.org/files/documents/19/191/cvs-1.11.17.tar.bz2
tar jxf cvs-1.11.17.tar.bz2 cvs-1.11.17/cvs.spec
mv cvs-1.11.17.tar.bz2 rpmbuild/SOURCES
PATH=/usr/bin:/bin; export PATH  # for csh users use set path=(/usr/bin /bin)
rpm --macros=.rpmmacros -ba cvs-1.11.17/cvs.spec
sudo rpm -Fvh rpmbuild/RPMS/i386/cvs-1.11.17-1.i386.rpm

(optionally also install rpmbuild/RPMS/i386/cvs-krb51.11.17-1.i386.rpm)

Note that alternatively you could rebuild the fedora distribution...

wget ftp://rpmfind.net/linux/fedora/core/updates/2/SRPMS/cvs-1.11.17-2.src.rpm
rpm --rebuild cvs-1.11.17-2.src.rpm

which would get you the various 'patches' that Redhat believes are
mandatory for cvs:

cvs-1.11.17-cvspass.patch   -- create a .cvspass file if one does not exist
cvs-1.11.17-extzlib2.patch  -- fun with automake/autoconf
cvs-1.11.1p1-bs.patch       -- add an exit 0 to sanity.sh (a bad idea IMHO)
cvs-1.11.2-abortabort.patch -- deregister SIGABRT handler
cvs-1.11.2-netbsd-tag.patch -- add a 't' for tag switch to logmsg.c:title_proc
cvs-1.11.5-extzlib.patch    -- whack the Makefile.am to force external zlib

If so, something like the commands:

rpm --define=nokerberos=yes --macros=.rpmmacros --rebuild cvs-1.11.17-2.src.rpm
sudo rpm -Fvh rpmbuild/RPMS/i386/cvs-1.11.17-2.i386.rpm

will likely do what you want.

It is up to you to determine as to which version of cvs you choose...

        Enjoy!
        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQFBGVdX3x41pRYZE/gRAv/MAKC5x7I0jG4VWth/qWGp6B7pammO+ACcDhtv
ikOniZz75uU2aWXsl4ghGPU=
=oktM
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]