trac CGI templates have incorrect #! line

Bug #351580 reported by Malcolm Scott
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
trac (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Jaunty by Malcolm Scott

Bug Description

Binary package hint: trac

14:11:52 1011 mas90@callisto:~$ head -n1 /usr/share/pyshared/trac/admin/templates/*.{cgi,fcgi,wsgi}
==> /usr/share/pyshared/trac/admin/templates/deploy_trac.cgi <==
#!${executable}

==> /usr/share/pyshared/trac/admin/templates/deploy_trac.fcgi <==
#!${executable}

==> /usr/share/pyshared/trac/admin/templates/deploy_trac.wsgi <==
#!${executable}

These should read #!/usr/bin/python or similar.

14:12:02 1012 mas90@callisto:~$ apt-cache policy trac
trac:
  Installed: 0.11.1-2.1
  Candidate: 0.11.1-2.1
  Version table:
 *** 0.11.1-2.1 0
        500 file: jaunty/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Joel Shprentz (jshprentz) wrote :

These shebang lines appear correct:

    #!${executable}

They appear in files in Trac's admin/templates directory. The command

    trac-admin /path/to/trac/instance deploy /path/to/deployment

will copy the templates to /path/to/deployment/cgi-bin and edit them to reference your Trac instance. Among the edits,

    #!${executable}

will be replaced by something appropriate for your system, such as

    #!/usr/bin/python

The real bug, in my opinion, is that "trac-admin deploy" is poorly documented by Trac. See Trac ticket 6827 for their discussion of this topic: http://trac.edgewall.org/ticket/6827

Revision history for this message
Malcolm Scott (malcscott) wrote :

Ah, right, I wasn't aware of trac-admin deploy; I assumed one was supposed to copy/symlink the template.

Changed in trac (Ubuntu):
status: New → Invalid
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.