Discussion:
[users] trac 0.12 for el6
Paul Heinlein
2011-08-12 15:49:30 UTC
Permalink
I get some errors trying to install trac-0.12-2.el6.rf.noarch.rpm on
my CentOS 6 machines:

Error: Package: trac-0.12-2.el6.rf.noarch (rpmforge)
Requires: python-genshi >= 0.6
Available: python-genshi-0.5.1-7.1.el6.x86_64 (base)
python-genshi = 0.5.1-7.1.el6
Error: Package: trac-0.12-2.el6.rf.noarch (rpmforge)
Requires: mod_python
Error: Package: trac-0.12-2.el6.rf.noarch (rpmforge)
Requires: python-sqlite2

I've worked around the problem by

1. Building python-genshi from the published repoforge SRPM:
python-genshi-0.6-1.rf.src.rpm. It seems to build cleanly
on CentOS 6.

2. Changing some dependencies in the trac.spec file included with
the trac-0.12-2.rf.src.rpm:

- BuildRequires and Requires from python >= 2.4 to
python >= 2.6

- BuildRequires and Requires from python-sqlite2 to
python-sqlite >= 2.3

- Requires from mod_python to mod_wsgi

I haven't taken the time to write a decent conf.d/trac.conf file that
works with mod_wsgi instead of mod_python, so I can't give you a
decent patch for the spec file. Please accept my apologies. I still
thought the information might be useful to someone.
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
Yury V. Zaytsev
2011-08-14 21:03:14 UTC
Permalink
Hi!

Thank you for the information...
Post by Paul Heinlein
python-genshi-0.6-1.rf.src.rpm. It seems to build cleanly
on CentOS 6.
I've pushed an update, will take awhile, but once it's built, it will
become available in RFX.
Post by Paul Heinlein
2. Changing some dependencies in the trac.spec file included with
- BuildRequires and Requires from python >= 2.4 to
python >= 2.6
Why so?
Post by Paul Heinlein
- BuildRequires and Requires from python-sqlite2 to
python-sqlite >= 2.3
Yes, here we have a problem.

On RHEL6+ we need to require python-sqlite, which is actually provided
by the python-2.6 package, on RHEL5- we need to provide our own
python-sqlite2.

The latter I have just committed and it's in the rebuild queue, but this
means that the Trac package needs some conditional requires.

I will file a bug, but I don't have time to spare on that as I am not
managing an Trac installations at the moment, although I possibly will.

Also, Trac itself should be updated to the latest version.
Post by Paul Heinlein
- Requires from mod_python to mod_wsgi
Yes, this is another problem. Of course, mod_wsgi is the clear way to
go, but then we probably should provide a backport for at least RHEL5
and...
Post by Paul Heinlein
I haven't taken the time to write a decent conf.d/trac.conf file that
works with mod_wsgi instead of mod_python, so I can't give you a
decent patch for the spec file.
... this is the second big issue which I certainly won't have time to
take care of. *Please* do provide a prototype whenever you'll come up
with it.
Post by Paul Heinlein
Please accept my apologies. I still thought the information might be
useful to someone.
Apologies accepted ;-)

Thanks for the heads up,
--
Sincerely yours,
Yury V. Zaytsev
Paul Heinlein
2011-08-12 15:49:30 UTC
Permalink
I get some errors trying to install trac-0.12-2.el6.rf.noarch.rpm on
my CentOS 6 machines:

Error: Package: trac-0.12-2.el6.rf.noarch (rpmforge)
Requires: python-genshi >= 0.6
Available: python-genshi-0.5.1-7.1.el6.x86_64 (base)
python-genshi = 0.5.1-7.1.el6
Error: Package: trac-0.12-2.el6.rf.noarch (rpmforge)
Requires: mod_python
Error: Package: trac-0.12-2.el6.rf.noarch (rpmforge)
Requires: python-sqlite2

I've worked around the problem by

1. Building python-genshi from the published repoforge SRPM:
python-genshi-0.6-1.rf.src.rpm. It seems to build cleanly
on CentOS 6.

2. Changing some dependencies in the trac.spec file included with
the trac-0.12-2.rf.src.rpm:

- BuildRequires and Requires from python >= 2.4 to
python >= 2.6

- BuildRequires and Requires from python-sqlite2 to
python-sqlite >= 2.3

- Requires from mod_python to mod_wsgi

I haven't taken the time to write a decent conf.d/trac.conf file that
works with mod_wsgi instead of mod_python, so I can't give you a
decent patch for the spec file. Please accept my apologies. I still
thought the information might be useful to someone.
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
Yury V. Zaytsev
2011-08-14 21:03:14 UTC
Permalink
Hi!

Thank you for the information...
Post by Paul Heinlein
python-genshi-0.6-1.rf.src.rpm. It seems to build cleanly
on CentOS 6.
I've pushed an update, will take awhile, but once it's built, it will
become available in RFX.
Post by Paul Heinlein
2. Changing some dependencies in the trac.spec file included with
- BuildRequires and Requires from python >= 2.4 to
python >= 2.6
Why so?
Post by Paul Heinlein
- BuildRequires and Requires from python-sqlite2 to
python-sqlite >= 2.3
Yes, here we have a problem.

On RHEL6+ we need to require python-sqlite, which is actually provided
by the python-2.6 package, on RHEL5- we need to provide our own
python-sqlite2.

The latter I have just committed and it's in the rebuild queue, but this
means that the Trac package needs some conditional requires.

I will file a bug, but I don't have time to spare on that as I am not
managing an Trac installations at the moment, although I possibly will.

Also, Trac itself should be updated to the latest version.
Post by Paul Heinlein
- Requires from mod_python to mod_wsgi
Yes, this is another problem. Of course, mod_wsgi is the clear way to
go, but then we probably should provide a backport for at least RHEL5
and...
Post by Paul Heinlein
I haven't taken the time to write a decent conf.d/trac.conf file that
works with mod_wsgi instead of mod_python, so I can't give you a
decent patch for the spec file.
... this is the second big issue which I certainly won't have time to
take care of. *Please* do provide a prototype whenever you'll come up
with it.
Post by Paul Heinlein
Please accept my apologies. I still thought the information might be
useful to someone.
Apologies accepted ;-)

Thanks for the heads up,
--
Sincerely yours,
Yury V. Zaytsev
Continue reading on narkive:
Loading...