#7161 closed defect (wontfix)
RPM build fails in r6886
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | rpm bdist_rpm |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi,
I just updated my local copy of trunk to r6886 and tried to create the RPM
python setup.py bdist_rpm
... RPM build errors: File listed twice: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6886-py2.4.egg-info/PKG-INFO File listed twice: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6886-py2.4.egg-info/SOURCES.txt File listed twice: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6886-py2.4.egg-info/dependency_links.txt File listed twice: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6886-py2.4.egg-info/entry_points.txt File listed twice: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6886-py2.4.egg-info/not-zip-safe File listed twice: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6886-py2.4.egg-info/requires.txt File listed twice: /usr/lib/python2.4/site-packages/Trac-0.11dev_r6886-py2.4.egg-info/top_level.txt Installed (but unpackaged) file(s) found: /usr/lib/python2.4/site-packages/trac/__init__.pyo /usr/lib/python2.4/site-packages/trac/about.pyo /usr/lib/python2.4/site-packages/trac/admin/__init__.pyo /usr/lib/python2.4/site-packages/trac/admin/api.pyo /usr/lib/python2.4/site-packages/trac/admin/console.pyo /usr/lib/python2.4/site-packages/trac/admin/web_ui.pyo /usr/lib/python2.4/site-packages/trac/attachment.pyo /usr/lib/python2.4/site-packages/trac/config.pyo /usr/lib/python2.4/site-packages/trac/core.pyo /usr/lib/python2.4/site-packages/trac/db/__init__.pyo /usr/lib/python2.4/site-packages/trac/db/api.pyo /usr/lib/python2.4/site-packages/trac/db/mysql_backend.pyo /usr/lib/python2.4/site-packages/trac/db/pool.pyo /usr/lib/python2.4/site-packages/trac/db/postgres_backend.pyo /usr/lib/python2.4/site-packages/trac/db/schema.pyo /usr/lib/python2.4/site-packages/trac/db/sqlite_backend.pyo /usr/lib/python2.4/site-packages/trac/db/util.pyo /usr/lib/python2.4/site-packages/trac/db_default.pyo /usr/lib/python2.4/site-packages/trac/env.pyo /usr/lib/python2.4/site-packages/trac/loader.pyo /usr/lib/python2.4/site-packages/trac/log.pyo /usr/lib/python2.4/site-packages/trac/mimeview/__init__.pyo /usr/lib/python2.4/site-packages/trac/mimeview/api.pyo /usr/lib/python2.4/site-packages/trac/mimeview/enscript.pyo /usr/lib/python2.4/site-packages/trac/mimeview/patch.pyo /usr/lib/python2.4/site-packages/trac/mimeview/php.pyo /usr/lib/python2.4/site-packages/trac/mimeview/pygments.pyo /usr/lib/python2.4/site-packages/trac/mimeview/rst.pyo /usr/lib/python2.4/site-packages/trac/mimeview/silvercity.pyo /usr/lib/python2.4/site-packages/trac/mimeview/txtl.pyo /usr/lib/python2.4/site-packages/trac/notification.pyo /usr/lib/python2.4/site-packages/trac/perm.pyo /usr/lib/python2.4/site-packages/trac/prefs/__init__.pyo /usr/lib/python2.4/site-packages/trac/prefs/api.pyo /usr/lib/python2.4/site-packages/trac/prefs/web_ui.pyo /usr/lib/python2.4/site-packages/trac/resource.pyo /usr/lib/python2.4/site-packages/trac/search/__init__.pyo /usr/lib/python2.4/site-packages/trac/search/api.pyo /usr/lib/python2.4/site-packages/trac/search/web_ui.pyo /usr/lib/python2.4/site-packages/trac/test.pyo /usr/lib/python2.4/site-packages/trac/tests/functional/__init__.pyo /usr/lib/python2.4/site-packages/trac/tests/functional/better_twill.pyo /usr/lib/python2.4/site-packages/trac/tests/functional/compat.pyo /usr/lib/python2.4/site-packages/trac/tests/functional/testcases.pyo /usr/lib/python2.4/site-packages/trac/tests/functional/testenv.pyo /usr/lib/python2.4/site-packages/trac/tests/functional/tester.pyo /usr/lib/python2.4/site-packages/trac/ticket/__init__.pyo /usr/lib/python2.4/site-packages/trac/ticket/admin.pyo /usr/lib/python2.4/site-packages/trac/ticket/api.pyo /usr/lib/python2.4/site-packages/trac/ticket/default_workflow.pyo /usr/lib/python2.4/site-packages/trac/ticket/model.pyo /usr/lib/python2.4/site-packages/trac/ticket/notification.pyo /usr/lib/python2.4/site-packages/trac/ticket/query.pyo /usr/lib/python2.4/site-packages/trac/ticket/report.pyo /usr/lib/python2.4/site-packages/trac/ticket/roadmap.pyo /usr/lib/python2.4/site-packages/trac/ticket/web_ui.pyo /usr/lib/python2.4/site-packages/trac/timeline/__init__.pyo /usr/lib/python2.4/site-packages/trac/timeline/api.pyo /usr/lib/python2.4/site-packages/trac/timeline/web_ui.pyo /usr/lib/python2.4/site-packages/trac/upgrades/__init__.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db10.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db11.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db12.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db13.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db14.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db15.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db16.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db17.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db18.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db19.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db20.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db21.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db3.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db4.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db5.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db6.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db7.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db8.pyo /usr/lib/python2.4/site-packages/trac/upgrades/db9.pyo /usr/lib/python2.4/site-packages/trac/util/__init__.pyo /usr/lib/python2.4/site-packages/trac/util/autoreload.pyo /usr/lib/python2.4/site-packages/trac/util/compat.pyo /usr/lib/python2.4/site-packages/trac/util/daemon.pyo /usr/lib/python2.4/site-packages/trac/util/datefmt.pyo /usr/lib/python2.4/site-packages/trac/util/html.pyo /usr/lib/python2.4/site-packages/trac/util/presentation.pyo /usr/lib/python2.4/site-packages/trac/util/text.pyo /usr/lib/python2.4/site-packages/trac/util/translation.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/__init__.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/api.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/cache.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/diff.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/svn_authz.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/svn_fs.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/__init__.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/browser.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/changeset.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/log.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/main.pyo /usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/util.pyo /usr/lib/python2.4/site-packages/trac/web/__init__.pyo /usr/lib/python2.4/site-packages/trac/web/_fcgi.pyo /usr/lib/python2.4/site-packages/trac/web/api.pyo /usr/lib/python2.4/site-packages/trac/web/auth.pyo /usr/lib/python2.4/site-packages/trac/web/cgi_frontend.pyo /usr/lib/python2.4/site-packages/trac/web/chrome.pyo /usr/lib/python2.4/site-packages/trac/web/clearsilver.pyo /usr/lib/python2.4/site-packages/trac/web/fcgi_frontend.pyo /usr/lib/python2.4/site-packages/trac/web/href.pyo /usr/lib/python2.4/site-packages/trac/web/main.pyo /usr/lib/python2.4/site-packages/trac/web/modpython_frontend.pyo /usr/lib/python2.4/site-packages/trac/web/session.pyo /usr/lib/python2.4/site-packages/trac/web/standalone.pyo /usr/lib/python2.4/site-packages/trac/web/wsgi.pyo /usr/lib/python2.4/site-packages/trac/wiki/__init__.pyo /usr/lib/python2.4/site-packages/trac/wiki/api.pyo /usr/lib/python2.4/site-packages/trac/wiki/formatter.pyo /usr/lib/python2.4/site-packages/trac/wiki/intertrac.pyo /usr/lib/python2.4/site-packages/trac/wiki/interwiki.pyo /usr/lib/python2.4/site-packages/trac/wiki/macros.pyo /usr/lib/python2.4/site-packages/trac/wiki/model.pyo /usr/lib/python2.4/site-packages/trac/wiki/parser.pyo /usr/lib/python2.4/site-packages/trac/wiki/web_ui.pyo error: command 'rpmbuild' failed with exit status 1
Attachments (0)
Change History (6)
comment:1 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
I tried again from a clean checkout of r6886 as user "robin" on 32-bit CentOS5 - same problem.
rpm & rpmbuild report version 4.4.2-47.el5
- There is no system-wide trac installed - I am running this on a "build" machine
- rpmbuild is OK (4.4.2) and the system is up-to-date
I have built trac successfully on this machine in the past (the last time was r6230) so I reverted to r6230 and tried again. Got the same error.
So, it does indeed seem that there is a problem with my build environment. I'll try again in a clean environment.
comment:3 by , 17 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Hmmm, I've tried again on a totally clean CentOS5 install - same issue.
I've also tried on my Fedora 8 workstation - same issue.
I realise this is not a trac bug per se, but it looks like I'm missing something from all my environments. Any idea what it might be?
comment:4 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Ok, I've done some digging and found this link: http://www.rpm.org/hintskinks/unpackaged-files/
The fix described there works, i.e.
echo "%_unpackaged_files_terminate_build 0" >> ~/.rpmmacros
I'm not sure why this might have changed, but I suspect it's an issue for python-setuptools rather than trac.
Closing this ticket, but I suggest this information is added to the wiki.
comment:5 by , 17 years ago
Use the contrib/rpm/makerpm
script; run it from the top of the Trac source tree. Basically, you have to specify an installscript that will expect to find the optimized bytecode files.
comment:6 by , 17 years ago
Additional note: this issue only arises if the redhat-rpm-config package is installed.
I tried this from a Subversion checkout of r6886 (i.e. not installed systemwide) as root on 32-bit Fedora Core 8 and it works for me. rpm and rpmbuild —version both report 4.4.2.2. I get those warnings about files being included twice but that's not the issue. Please followup one of the MailingList or IrcChannel, as it doesn't appear to be a bug in Trac itself.