Comment 21 for bug 311981

Revision history for this message
Gerry Reno (greno-verizon) wrote :

Ok, I think we might have the solution:

In server and client (not sure about client-web):

Edit the file: rpminstall_sh.txt
Change the line:
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
to this:
python setup.py install --optimize 1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

The "--optimize 1" will cause the .pyo files to be generated and included in INSTALLED_FILES. The will get rid of the "Installed (but unpackaged) file(s) found" error for the .pyo files generated by rpmbuild on RedHat-based distros.

The only other problem I saw was on the server where we still had Installed but unpackaged files for all the migration scripts. That still needs fixed as well.

Stephane, if you could double check this fix and make the changes and test as well, I think this bug may be resolved.
-Gerry

P.S.
I checked with the Fedora devs and there is some problem with using any type of rc designation in the version string as the final rpm release (eg: 5.0.0) will not update the release candidate package (eg: 5.0.0_rc3). So I think this should become another bug which I will open and hopefully we can find a resolution for that issue.