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

Bug#589266: [lintian] runghc interpreter not known



Il 16/07/2010 19:38, Russ Allbery ha scritto:
> Giovanni Mascellani <mascellani@poisson.phc.unipi.it> writes:
> 
>> Lintian apparently doesn't know of runghc, which is used to compile with
>> GHC and directly run a Haskell program. I'm letting you know of this as
>> requested by the warning.
> 
>>> W: happstack: unusual-interpreter ./usr/share/happstack-0.5.0.2/templates/project/Setup.hs #!runghc
>>> N: 
>>> N:    This package contains a script for an interpreter that the Lintian
>>> N:    maintainers have not heard of. It could be a typo for a common
>>> N:    interpreter. If not, please file a wishlist bug on lintian so that the
>>> N:    Lintian maintainers can add this interpreter to their list.
> 
> That's not a valid #! line, though, so if we do add the interpreter,
> you're just going to get a different warning saying that you need to put
> the correct path to the program in that line.  If that's the right thing
> to have happen, we can do that, but sometimes it isn't.

I don't know why lintian is saying only "#!runghc", but the full line is:

#!/usr/bin/env runghc

which appears to be completely valid.

> What's the purpose of that #! line?  Is that file supposed to be
> executable and runnable as a script?

Yes: instead of compiling it and then executing the compiled file,
runghc makes you able to run the source code directly. From the user
perspective, is just like the program gets intepreted (but runghc
compiles it and then executes it).

Anyway, if you prefer not including runghc, I have really no problems. I
just filed this bug because the lintian warning asked me to do so.

Thanks, Giovanni.
-- 
Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Pisa, Italy

Web: http://poisson.phc.unipi.it/~mascellani
Jabber: g.mascellani@jabber.org / giovanni@elabor.homelinux.org

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: