I am trying to Install the current version which is 3.8.5-5 according to
git. commit 15596e26d1204ef4c0b6a0e7e9712520bcf54c4f
I am using a fresh centos 6 install.
Here is what works so far:
# Install dependencies
* yum install python-django MySQL-python python-kerberos python-qpid w3m
python-lxml
* wget
ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates...
* rpm --replacepkgs --nodeps --nosignature -i kobo-0.3.6-1.fc15.noarch.rpm
* cp -ar /usr/lib/python2.7/site-packages/kobo/
/usr/lib/python2.6/site-packages/
* easy_install pip
* pip install django-xmlrpc django-uuslug
# Get nitrate
* yum install git rpmdevtools python-setuptools python-devel
* git clone
git://git.fedorahosted.org/nitrate.git
* cd nitrate; git checkout 3.8.5-release
First bug here is:
# make
Getting latest codes from git
Initialized empty Git repository in /tmp/nitrate-3.8.5/nitrate/.git/
remote: Counting objects: 17180, done.
remote: Compressing objects: 100% (8182/8182), done.
remote: Total 17180 (delta 9297), reused 13961 (delta 7129)
Receiving objects: 100% (17180/17180), 17.02 MiB | 438 KiB/s, done.
Resolving deltas: 100% (9297/9297), done.
# Fixup the version field in the page footer so that it shows the precise
# RPM version-release:
/bin/sh: line 0: cd: /tmp/nitrate-3.8.5/nitrate/trunk/: No such file or
directory
sed: can't read
/tmp/nitrate-3.8.5/nitrate/trunk//nitrate/templates/tcms_base.html: No
such file or directory
make: *** [nitrate-3.8.5.tar.bz2] Error 2
I find the file tcms_base.html in a different location so here is the patch:
--- Makefile 2014-02-18 18:08:21.000000000 +0200
+++ Makefile.orig 2014-02-18 18:00:17.000000000 +0200
@@ -13,7 +13,7 @@
RPMBUILD_OPTIONS=--nodeps --define "_sourcedir $(PWD)" --define
"_srcrpmdir $(PWD)"
WORK_DIR=/tmp/nitrate-$(VERSION)
-SOURCE_DIR = $(WORK_DIR)/nitrate/
+SOURCE_DIR = $(WORK_DIR)/nitrate/trunk/
# Target: build a local RPM
local-rpm: $(SRPM)
@@ -37,7 +37,7 @@
@cd $(WORK_DIR); git clone -b development
git://git.fedorahosted.org/nitrate.git
# Fixup the version field in the page footer so that it shows the precise
# RPM version-release:
- @cd $(SOURCE_DIR); sed --in-place -r 's|NITRATE_VERSION|$(VERSION)|'
$(SOURCE_DIR)/tcms/templates/tcms_base.html
+ @cd $(SOURCE_DIR); sed --in-place -r 's|NITRATE_VERSION|$(VERSION)|'
$(SOURCE_DIR)/nitrate/templates/tcms_base.html
@cd $(SOURCE_DIR); mv nitrate nitrate-${VERSION}
@cd $(SOURCE_DIR); tar --bzip2 --exclude .git -cSpf $(TARBALL)
nitrate-${VERSION}
@cp $(SOURCE_DIR)/$(TARBALL) .
Second bug:
# make
Getting latest codes from git
Initialized empty Git repository in /tmp/nitrate-3.8.5/nitrate/.git/
remote: Counting objects: 17180, done.
remote: Compressing objects: 100% (8182/8182), done.
remote: Total 17180 (delta 9297), reused 13961 (delta 7129)
Receiving objects: 100% (17180/17180), 17.03 MiB | 752 KiB/s, done.
Resolving deltas: 100% (9297/9297), done.
# Fixup the version field in the page footer so that it shows the precise
# RPM version-release:
mv: cannot stat `nitrate': No such file or directory
make: *** [nitrate-3.8.5.tar.bz2] Error 1
Thanks for any help,
Niv