Modify

Ticket #1087 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Problems with 1.2.0 RPM build from git

Reported by: Jake Davis <jake@…> Owned by: https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
Priority: minor Milestone: Bcfg2 1.2.1 Release (Bugfix)
Component: bcfg2-server Version: 1.0
Keywords: Cc: 686f6c6d@…

Description

While attempting to build rpms from a git checkout of the v1.2.0 tag following these instructions: http://docs.bcfg2.org/installation/packages.html#building-from-an-git-checkout

After "cd redhat; make" I get this error:

 error: File
 /root/VCS/git/bcfg2.davisj/redhat/build/bcfg2-1.2.0.tar.gz: No such
 file or directory
    make: *** [buildrpmdist] Error 1

And this one:

    RPM build errors:
        Installed (but unpackaged) file(s) found:
       /usr/lib/python2.4/site-packages/Bcfg2/Bcfg2Py3k.py
       /usr/lib/python2.4/site-packages/Bcfg2/Bcfg2Py3k.pyc
       /usr/lib/python2.4/site-packages/Bcfg2/Bcfg2Py3k.pyo
       /usr/sbin/bcfg2-test
    make: *** [buildrpmdist] Error 1

The following patch seems to resolve both errors.

index 7533b98..f8f7795 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -22,7 +22,7 @@ VERSION := $(shell cat VERSION)
 RELEASE := $(shell cat RELEASE)
 BASE_VER := ${VERSION}-${RELEASE}
 CURRENT_PACKAGE := $(PACKAGE)-$(BASE_VER)
-TARBALL := $(CURRENT_PACKAGE).tar
+TARBALL := $(PACKAGE)-$(VERSION).tar
 
 DIRNAME := $(shell echo $${PWD})
 DIRBASE := $(shell basename $${PWD})
diff --git a/redhat/bcfg2.spec.in b/redhat/bcfg2.spec.in
index be2375c..92593a5 100644
--- a/redhat/bcfg2.spec.in
+++ b/redhat/bcfg2.spec.in
@@ -205,6 +205,7 @@ fi
 %{python_sitelib}/Bcfg2*.egg-info
 %dir %{python_sitelib}/Bcfg2
 %{python_sitelib}/Bcfg2/__init__.*
+%{python_sitelib}/Bcfg2/Bcfg2Py3k.*
 %{python_sitelib}/Bcfg2/Client
 %{python_sitelib}/Bcfg2/Component.*
 %{python_sitelib}/Bcfg2/Logger.*

Not that in later revisions of HEAD I also had to add "%{_sbindir}/bcfg2-test" to redhat/bcfg2.spec.in.

Attachments

Change History

comment:1 Changed 10 years ago by Jake Davis <jake@…>

Also, the bcfg2-web rpm that is built when using the misc/bcfg2.spec file from a tarball is not created when following the instructions to build from a git checkout.

comment:2 Changed 10 years ago by m4z <686f6c6d@…>

  • Cc 686f6c6d@… added

comment:3 Changed 10 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Owner changed from desai to https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc
  • Status changed from new to assigned

comment:4 Changed 10 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

  • Status changed from assigned to closed
  • Resolution set to fixed

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.