[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#410851: marked as done (wrong shebang in ConTeXt script (#!/usr/env))



Your message dated Wed, 14 Feb 2007 01:38:30 +0100
with message-id <20070214003830.GC8534@gamma.logic.tuwien.ac.at>
and subject line Bug#410851: wrong shebang in ConTeXt script (#!/usr/env)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: context
Version: 2007.01.23-2
Severity: normal

--- Begin Message --- Hi all,

I was bitten by a bug in ConTeXt while packaging the TeXLive 2007 texmf
tree. RPM's find-requires script added a bogus dependency to /usr/env
which prevented me to actually install the packages. I tracked it down
to the ConTeXt package ruby scripts, where incorrect shebang is present
in the wwwserver.rb. The cause might be that the ctxtools.rb script,
which contains the add_shebang function, which is used to write a
shebang to newly created scripts, contains a typo, when it refers
to /usr/env, but should refer to /usr/bin/env as usual.

Attaching patch that fixes it.

Jindrich

--- texmf-dist/scripts/context/ruby/wwwserver.rb.badenv	2006-11-18 02:37:52.000000000 +0100
+++ texmf-dist/scripts/context/ruby/wwwserver.rb	2007-02-12 16:54:09.000000000 +0100
@@ -1,4 +1,4 @@
-#!/usr/env ruby
+#!/usr/bin/env ruby
 
 banner = ['WWWServer', 'version 1.0.0', '2003-2006', 'PRAGMA ADE/POD']
 
--- texmf-dist/scripts/context/ruby/ctxtools.rb.badenv	2007-01-12 12:44:15.000000000 +0100
+++ texmf-dist/scripts/context/ruby/ctxtools.rb	2007-02-12 16:55:04.000000000 +0100
@@ -1737,7 +1737,7 @@ class Array
 
     def add_shebang(filename,program)
         unless self[0] =~ /^\#/ then
-            self.insert(0,"\#!/usr/env #{program}")
+            self.insert(0,"\#!/usr/bin/env #{program}")
         end
         unless self[2] =~ /^\#.*?copyright\=/ then
             self.insert(1,"\#")

--- End Message ---

-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

--- End Message ---
--- Begin Message ---
Hi Frank!

On Die, 13 Feb 2007, Frank Küster wrote:
> Package: context
> Version: 2007.01.23-2
> Severity: normal
> 

> I was bitten by a bug in ConTeXt while packaging the TeXLive 2007 texmf
> tree. RPM's find-requires script added a bogus dependency to /usr/env
> which prevented me to actually install the packages. I tracked it down

Fixed in current upload ... forget to add a Closes line ... so closing
it this way.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining@logic.at>                    Università di Siena
Debian Developer <preining@debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
JURBY (n.)
A loose woollen garment reaching to the knees and with three or more
armholes, knitted by the wearer's well- meaning but incompetent aunt.
			--- Douglas Adams, The Meaning of Liff

--- End Message ---

Reply to: