Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python setup.py bdist_rpm fails #249

Closed
jpellerin opened this issue Dec 14, 2011 · 1 comment
Closed

python setup.py bdist_rpm fails #249

jpellerin opened this issue Dec 14, 2011 · 1 comment
Assignees

Comments

@jpellerin
Copy link
Member

What steps will reproduce the problem?

  1. tar -zxvf nose-0.10.1.tar.gz
  2. cd nose-0.10.1
  3. python setup.py bdist_rpm

What is the expected output? What do you see instead?

Expected: rpm built successfully.
Observed:

< ... >
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.68927

  • umask 022
  • cd /root/packages/BUILD/nose-0.10.1/build/bdist.linux-x86_64/rpm/BUILD
  • cd nose-0.10.1
  • DOCDIR=/var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
  • export DOCDIR
  • rm -rf /var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
  • /bin/mkdir -p /var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
  • cp -pr man/man1/nosetests.1 README.txt
    /var/tmp/nose-0.10.1-1-buildroot/usr/share/doc/nose-0.10.1
    cp: cannot stat `man/man1/nosetests.1': No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.68927 (%doc)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.68927 (%doc)
error: command 'rpmbuild' failed with exit status 1

What version of the product are you using? On what operating system?
nose-0.10.1, CentOS 5.0 64-bit

Please provide any additional information below.

The following patch fixes it for me:

*** setup.cfg.bak 2008-01-14 17:34:12.000000000 -0800
--- setup.cfg 2008-01-14 17:34:35.000000000 -0800


*** 1,5 ****
[bdist_rpm]
! doc_files = man/man1/nosetests.1

[egg_info]
tag_build =
--- 1,5 ----
[bdist_rpm]
! doc_files = README.txt

[egg_info]
tag_build =

Google Code Info:
Issue #: 149
Author: khomenko...@gtempaccount.com
Created On: 2008-01-15T01:43:40.000Z
Closed On: 2008-01-15T15:10:54.000Z

@ghost ghost assigned jpellerin Dec 14, 2011
@jpellerin
Copy link
Member Author

There doesn't seem to be any way to get this to work correctly. The error you've
reported is a duplicate of #127, which itself is due to a fix to an earlier bdist_rpm
build error, #96. It seems that some rpm-using systems expect the man file to be
gzipped and some don't, and I don't know of any way to figure out on a given system
what it expects.

Closing as a duplicate of #127.

Google Code Info:
Author: jpelle...@gmail.com
Created On: 2008-01-15T15:10:54.000Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant