Opened 16 years ago
Closed 14 years ago
#4 closed bogue (wontfix)
application de la patch en production sur le pkg cswtrac sous Solaris.
Reported by: | ecantin | Owned by: | ecantin |
---|---|---|---|
Priority: | bloquant | Milestone: | TracEnFrancais-0.10.4 |
Component: | TracEnFrancais | Version: | 0.10.4 |
Keywords: | Cc: |
Description
voici ce que j'ai fait.
# mkdir trac # cd trac # wget ftp://ftp.edgewall.com/pub/trac/trac-0.10.4.tar.gz # wget http://source.pkg.fr/browser/TracEnFrancais/trac-0.10.4-PKG.patch?format=raw # gunzip trac-0.10.4.tar.gz # tar xvf trac-0.10.4.tar # mv trac-0.10.4-PKG.patch?format=raw trac-0.10.4-PKG.patch ne pas faire cet étape # vi trac-0.10.4-PKG.patch modifier la ligne 7742 car la fonction self.log.debug ne prend pas les accents. self.log.debug('Compilation de l\'expression reguliere "%s"' % to_compile) # patch -p0 < trac-0.10.4-PKG.patch
- Prendre une copie de sauvegarde au cas ou l'on veut revenir en anglais.
# cd /export/home1/adm/conf # mkdir trac # cd trac # tar cvf trac-0.10.4-csw-en.tar /opt/csw/share/trac # tar cvf site-packages-trac-0.10.4-csw-en.tar /opt/csw/lib/python/site-packages/trac
- Copier les fichiers.
cp trac-0.10.4/cgi-bin/trac.cgi /opt/csw/share/trac/cgi-bin/trac.cgi cp trac-0.10.4/cgi-bin/trac.fcgi /opt/csw/share/trac/cgi-bin/trac.fcgi cp trac-0.10.4/htdocs/css/trac.css /opt/csw/share/trac/htdocs/css/trac.css cp trac-0.10.4/htdocs/js/query.js /opt/csw/share/trac/htdocs/js/query.js cp trac-0.10.4/htdocs/js/wikitoolbar.js /opt/csw/share/trac/htdocs/js/wikitoolbar.js cp trac-0.10.4/templates/about.cs /opt/csw/share/trac/templates/about.cs cp trac-0.10.4/templates/anydiff.cs /opt/csw/share/trac/templates/anydiff.cs cp trac-0.10.4/templates/attachment.cs /opt/csw/share/trac/templates/attachment.cs cp trac-0.10.4/templates/browser.cs /opt/csw/share/trac/templates/browser.cs cp trac-0.10.4/templates/changeset.cs /opt/csw/share/trac/templates/changeset.cs cp trac-0.10.4/templates/error.cs /opt/csw/share/trac/templates/error.cs cp trac-0.10.4/templates/footer.cs /opt/csw/share/trac/templates/footer.cs cp trac-0.10.4/templates/header.cs /opt/csw/share/trac/templates/header.cs cp trac-0.10.4/templates/index.cs /opt/csw/share/trac/templates/index.cs cp trac-0.10.4/templates/log_changelog.cs /opt/csw/share/trac/templates/log_changelog.cs cp trac-0.10.4/templates/log.cs /opt/csw/share/trac/templates/log.cs cp trac-0.10.4/templates/log_rss.cs /opt/csw/share/trac/templates/log_rss.cs cp trac-0.10.4/templates/macros.cs /opt/csw/share/trac/templates/macros.cs cp trac-0.10.4/templates/milestone.cs /opt/csw/share/trac/templates/milestone.cs cp trac-0.10.4/templates/newticket.cs /opt/csw/share/trac/templates/newticket.cs cp trac-0.10.4/templates/query.cs /opt/csw/share/trac/templates/query.cs cp trac-0.10.4/templates/query_rss.cs /opt/csw/share/trac/templates/query_rss.cs cp trac-0.10.4/templates/report.cs /opt/csw/share/trac/templates/report.cs cp trac-0.10.4/templates/report_rss.cs /opt/csw/share/trac/templates/report_rss.cs cp trac-0.10.4/templates/roadmap.cs /opt/csw/share/trac/templates/roadmap.cs cp trac-0.10.4/templates/search.cs /opt/csw/share/trac/templates/search.cs cp trac-0.10.4/templates/settings.cs /opt/csw/share/trac/templates/settings.cs cp trac-0.10.4/templates/ticket.cs /opt/csw/share/trac/templates/ticket.cs cp trac-0.10.4/templates/ticket_notify_email.cs /opt/csw/share/trac/templates/ticket_notify_email.cs cp trac-0.10.4/templates/ticket_rss.cs /opt/csw/share/trac/templates/ticket_rss.cs cp trac-0.10.4/templates/ticket_rss.cs /opt/csw/share/trac/templates/ticket_rss.cs cp trac-0.10.4/templates/timeline_rss.cs /opt/csw/share/trac/templates/timeline_rss.cs cp trac-0.10.4/templates/wiki.cs /opt/csw/share/trac/templates/wiki.cs cp trac-0.10.4/trac/About.py /opt/csw/lib/python/site-packages/trac/About.py cp trac-0.10.4/trac/attachment.py /opt/csw/lib/python/site-packages/trac/attachment.py cp trac-0.10.4/trac/config.py /opt/csw/lib/python/site-packages/trac/config.py cp trac-0.10.4/trac/core.py /opt/csw/lib/python/site-packages/trac/core.py cp trac-0.10.4/trac/db/api.py /opt/csw/lib/python/site-packages/trac/db/api.py cp trac-0.10.4/trac/db/mysql_backend.py /opt/csw/lib/python/site-packages/trac/db/mysql_backend.py cp trac-0.10.4/trac/db/pool.py /opt/csw/lib/python/site-packages/trac/db/pool.py cp trac-0.10.4/trac/db/sqlite_backend.py /opt/csw/lib/python/site-packages/trac/db/sqlite_backend.py cp trac-0.10.4/trac/db_default.py /opt/csw/lib/python/site-packages/trac/db_default.py cp trac-0.10.4/trac/env.py /opt/csw/lib/python/site-packages/trac/env.py cp trac-0.10.4/trac/log.py /opt/csw/lib/python/site-packages/trac/log.py cp trac-0.10.4/trac/mimeview/api.py /opt/csw/lib/python/site-packages/trac/mimeview/api.py cp trac-0.10.4/trac/mimeview/enscript.py /opt/csw/lib/python/site-packages/trac/mimeview/enscript.py cp trac-0.10.4/trac/mimeview/patch.py /opt/csw/lib/python/site-packages/trac/mimeview/patch.py cp trac-0.10.4/trac/mimeview/php.py /opt/csw/lib/python/site-packages/trac/mimeview/php.py cp trac-0.10.4/trac/mimeview/rst.py /opt/csw/lib/python/site-packages/trac/mimeview/rst.py cp trac-0.10.4/trac/notification.py /opt/csw/lib/python/site-packages/trac/notification.py cp trac-0.10.4/trac/perm.py /opt/csw/lib/python/site-packages/trac/perm.py cp trac-0.10.4/trac/scripts/admin.py /opt/csw/lib/python/site-packages/trac/scripts/admin.py cp trac-0.10.4/trac/Search.py /opt/csw/lib/python/site-packages/trac/Search.py cp trac-0.10.4/trac/Settings.py /opt/csw/lib/python/site-packages/trac/Settings.py cp trac-0.10.4/trac/ticket/api.py /opt/csw/lib/python/site-packages/trac/ticket/api.py cp trac-0.10.4/trac/ticket/model.py /opt/csw/lib/python/site-packages/trac/ticket/model.py cp trac-0.10.4/trac/ticket/query.py /opt/csw/lib/python/site-packages/trac/ticket/query.py cp trac-0.10.4/trac/ticket/report.py /opt/csw/lib/python/site-packages/trac/ticket/report.py cp trac-0.10.4/trac/ticket/roadmap.py /opt/csw/lib/python/site-packages/trac/ticket/roadmap.py cp trac-0.10.4/trac/ticket/web_ui.py /opt/csw/lib/python/site-packages/trac/ticket/web_ui.py cp trac-0.10.4/trac/Timeline.py /opt/csw/lib/python/site-packages/trac/Timeline.py cp trac-0.10.4/trac/util/datefmt.py /opt/csw/lib/python/site-packages/trac/util/datefmt.py cp trac-0.10.4/trac/util/__init__.py /opt/csw/lib/python/site-packages/trac/util/__init__.py cp trac-0.10.4/trac/util/text.py /opt/csw/lib/python/site-packages/trac/util/text.py cp trac-0.10.4/trac/versioncontrol/api.py /opt/csw/lib/python/site-packages/trac/versioncontrol/api.py cp trac-0.10.4/trac/versioncontrol/cache.py /opt/csw/lib/python/site-packages/trac/versioncontrol/cache.py cp trac-0.10.4/trac/versioncontrol/svn_fs.py /opt/csw/lib/python/site-packages/trac/versioncontrol/svn_fs.py cp trac-0.10.4/trac/versioncontrol/web_ui/browser.py /opt/csw/lib/python/site-packages/trac/versioncontrol/web_ui/browser.py cp trac-0.10.4/trac/versioncontrol/web_ui/changeset.py /opt/csw/lib/python/site-packages/trac/versioncontrol/web_ui/changeset.py cp trac-0.10.4/trac/versioncontrol/web_ui/log.py /opt/csw/lib/python/site-packages/trac/versioncontrol/web_ui/log.py cp trac-0.10.4/trac/versioncontrol/web_ui/util.py /opt/csw/lib/python/site-packages/trac/versioncontrol/web_ui/util.py
Lorsque je copie ce change sur ma machine je ne peux plus faire de login/logout.
REM cette ligne présente un problème. REM cp trac-0.10.4/trac/web/api.py /opt/csw/lib/python/site-packages/trac/web/api.py
cp trac-0.10.4/trac/web/auth.py /opt/csw/lib/python/site-packages/trac/web/auth.py cp trac-0.10.4/trac/web/chrome.py /opt/csw/lib/python/site-packages/trac/web/chrome.py cp trac-0.10.4/trac/web/clearsilver.py /opt/csw/lib/python/site-packages/trac/web/clearsilver.py cp trac-0.10.4/trac/web/_fcgi.py /opt/csw/lib/python/site-packages/trac/web/_fcgi.py cp trac-0.10.4/trac/web/href.py /opt/csw/lib/python/site-packages/trac/web/href.py cp trac-0.10.4/trac/web/main.py /opt/csw/lib/python/site-packages/trac/web/main.py cp trac-0.10.4/trac/web/session.py /opt/csw/lib/python/site-packages/trac/web/session.py cp trac-0.10.4/trac/web/standalone.py /opt/csw/lib/python/site-packages/trac/web/standalone.py cp trac-0.10.4/trac/wiki/api.py /opt/csw/lib/python/site-packages/trac/wiki/api.py cp trac-0.10.4/trac/wiki/formatter.py /opt/csw/lib/python/site-packages/trac/wiki/formatter.py cp trac-0.10.4/trac/wiki/intertrac.py /opt/csw/lib/python/site-packages/trac/wiki/intertrac.py cp trac-0.10.4/trac/wiki/interwiki.py /opt/csw/lib/python/site-packages/trac/wiki/interwiki.py cp trac-0.10.4/trac/wiki/macros.py /opt/csw/lib/python/site-packages/trac/wiki/macros.py cp trac-0.10.4/trac/wiki/model.py /opt/csw/lib/python/site-packages/trac/wiki/model.py cp trac-0.10.4/trac/wiki/web_ui.py /opt/csw/lib/python/site-packages/trac/wiki/web_ui.py cp trac-0.10.4/wiki-macros/FootNote.py /opt/csw/share/trac/wiki-macros/FootNote.py cp trac-0.10.4/wiki-macros/HelloWorld.py /opt/csw/share/trac/wiki-macros/HelloWorld.py cp trac-0.10.4/wiki-macros/Timestamp.py /opt/csw/share/trac/wiki-macros/Timestamp.py cp trac-0.10.4/wiki-macros/TracGuideToc.py /opt/csw/share/trac/wiki-macros/TracGuideToc.py
Le trac-0.10.4/trac/web/api.py patché fait en sorte que je ne peux plus faire de login/logout. Et voici ce j'obtiens sur la page web du trac logged in as ecantin Logout au lieu de Connecté sous ecantin Déconnexion
J'ai comme l'impression que le api.py a un problème.
si vous avez des idées, je suis partant
Change History (1)
comment:1 Changed 14 years ago by guillaume
- Resolution set to wontfix
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Patch obsolète