v5.0.0 rc1: bdist_rpm fails due to can't copy 'bin/import_xml.rng'

Bug #306039 reported by Gerry Reno
2
Affects Status Importance Assigned to Milestone
OpenERP
Fix Released
Undecided
Stephane Wirtel (OpenERP)

Bug Description

$ python setup.py bdist_rpm
...
running build_scripts
creating build/scripts-2.5
copying openerp-server -> build/scripts-2.5
changing mode of build/scripts-2.5/openerp-server from 644 to 755
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.25605
+ umask 022
+ cd /home/greno/build/python-dist/openerp-server-5.0.0-rc1.1/build/bdist.linux-i686/rpm/BUILD
+ cd openerp-server-5.0.0_rc1
+ LANG=C
+ export LANG
+ unset DISPLAY
+ python setup.py install --root=/var/tmp/openerp-server-5.0.0_rc1-1-buildroot --record=INSTALLED_FILES
/usr/lib/python2.5/distutils/dist.py:263: UserWarning: Unknown distribution option: 'console'
  warnings.warn(msg)
running install
running build
running build_py
running build_scripts
copying openerp-server -> build/scripts-2.5
changing mode of build/scripts-2.5/openerp-server from 644 to 755
running install_lib
running install_scripts
copying build/scripts-2.5/openerp-server -> /var/tmp/openerp-server-5.0.0_rc1-1-buildroot/usr/bin
changing mode of /var/tmp/openerp-server-5.0.0_rc1-1-buildroot/usr/bin/openerp-server to 755
running install_data
error: can't copy 'bin/import_xml.rng': doesn't exist or not a regular file
error: Bad exit status from /var/tmp/rpm-tmp.25605 (%install)

I checked this file and it's there and readable. I see this in setup.py in data_files():
Code:
files.append(('.', [(opj('bin', 'import_xml.rng'))]))
...
files.append((openerp_site_packages, [('bin/import_xml.rng')]))

But it does not find the file for some reason.

This occurs on a RedHat Linux system.

When I print out 'files' list it shows:
[('share/man/man1', ['man/openerp-server.1']), ('share/man/man5', ['man/openerp_serverrc.5']), ('share/doc/openerp-server-5.0.0_rc1', ['doc/COPYING', 'doc/INSTALL', 'doc/License.rtf', 'doc/README.txt', 'doc/Changelog', 'doc/README.pychart']), ('share/doc/openerp-server-5.0.0_rc1/migrate/3.3.0-3.4.0', ['doc/migrate/3.3.0-3.4.0/pre.py', 'doc/migrate/3.3.0-3.4.0/post.py', 'doc/migrate/3.3.0-3.4.0/README']), ('share/doc/openerp-server-5.0.0_rc1/migrate/3.4.0-4.0.0', ['doc/migrate/3.4.0-4.0.0/pre-tiny.py', 'doc/migrate/3.4.0-4.0.0/post-tiny.py', 'doc/migrate/3.4.0-4.0.0/pre.py', 'doc/migrate/3.4.0-4.0.0/post.py', 'doc/migrate/3.4.0-4.0.0/README']), ('lib/python2.5/site-packages/openerp-server', ['bin/import_xml.rng'])]

description: updated
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

I have the same error for the debian packaging

I will fix this problem

Changed in openerp:
status: New → Confirmed
Revision history for this message
Gabriel C. Stabel (gstabel) wrote :

I also had seen this bug and forgot to report.
This fix will be great!
RPM and DEB packages are much better deal than Python instalations.

Tkx,
Gabriel

Changed in openerp:
assignee: nobody → matrixise
Changed in openerp:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.