Bug 456672

Summary: freeipa: Cannot create RPMS from tarball
Product: [Retired] freeIPA Reporter: Alessandro Gervaso <alessandro.gervaso>
Component: buildAssignee: Rob Crittenden <rcritten>
Status: CLOSED UPSTREAM QA Contact: Chandrasekar Kannan <ckannan>
Severity: medium Docs Contact:
Priority: low    
Version: 1.1CC: benl, dpal, jgalipea
Target Milestone: v2 releaseFlags: jgalipea: needinfo?
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-16 21:04:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 431022    
Attachments:
Description Flags
Specify --mandir to fix build breakage on CentOS 5.2 none

Description Alessandro Gervaso 2008-07-25 14:03:05 UTC
Description of problem:

After having dowloaded the freeipa 1.1 tarball, the rpm build failed because of
the wrong path of some manpages 

Steps to Reproduce:
1. Download freeipa-1.1.0.tar.gz
2. Uncompress it
3. run "make local-dist"

The following lines are the failure's output.
Let me know if I can help in any way, thanks.

+ /usr/lib/rpm/brp-strip-comment-note
Processing files: ipa-server-1.1.0-2
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man8/ipactl.8.gz
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man8/ipa_kpasswd.8.gz
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man8/ipa_webgui.8.gz
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-replica-install.1.gz
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-replica-manage.1.gz
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-replica-prepare.1.gz
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-server-certinstall.1.gz
error: File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-server-install.1.gz


RPM build errors:
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man8/ipactl.8.gz
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man8/ipa_kpasswd.8.gz
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man8/ipa_webgui.8.gz
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-replica-install.1.gz
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-replica-manage.1.gz
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-replica-prepare.1.gz
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-server-certinstall.1.gz
    File not found:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man/man1/ipa-server-install.1.gz
make: *** [rpm-ipa-server] Error 1

Comment 1 Rob Crittenden 2008-07-25 14:22:46 UTC
What Linux distribution are you using?

Can you see where the man pages were installed?

Comment 2 Alessandro Gervaso 2008-07-25 14:32:53 UTC
Sorry I forgot to add that info.

I'm testing it on Centos 5.2.

The files are installed in:
/var/tmp/ipa-server-1.1.0-2-root-root/usr/man/man1
/var/tmp/ipa-server-1.1.0-2-root-root/usr/man/man8

instead of /var/tmp/ipa-server-1.1.0-2-root-root/usr/share/man as the script
expects.

Comment 3 Rob Crittenden 2008-07-25 15:15:06 UTC
Created attachment 312654 [details]
Specify --mandir to fix build breakage on CentOS 5.2

Comment 4 Alessandro Gervaso 2008-07-25 16:27:01 UTC
I've tested the proposed patch and it solved the problem, thanks.

Comment 5 Rob Crittenden 2008-07-28 14:02:24 UTC
mater: 9f2ee2921890dd246f087dc7338c4ba9fca89acc

Comment 6 Jenny Severance 2008-12-03 18:31:42 UTC
Is this bug relative to Enterprise IPA or only FreeIPA?

Comment 7 Rob Crittenden 2008-12-03 18:46:20 UTC
FreeIPA only