Hi, Steve, list!

Either I went crazy from the lack of sleep, or LuaRocks 2.0.4.1 is
acting really weird.

$ luarocks --version
luarocks 2.0.4.1
LuaRocks main command-line interface

$ sudo luarocks install
https://github.com/stevedonovan/LuaRocksTools/raw/master/rockspecifier/rockspecifier-0.5-1.rockspec

Missing dependencies for rockspecifier:
penlight

Archive:  
/tmp/luarocks_luarocks-rock-penlight-0.8-1-5974/penlight-0.8-1.all.rock
<...>
Updating manifest for /usr/local/lib/luarocks/rocks

penlight 0.8-1 is now installed in /usr/local/ (license: MIT/X11)
Updating manifest for /usr/local/lib/luarocks/rocks

rockspecifier 0.5-1 is now built and installed in /usr/local/ (license: MIT/X11)


### Now the fun part:

$ rockspecifier
-bash: /usr/local/bin/rockspecifier: Permission denied

$ sudo chmod +x /usr/local/bin/rockspecifier

$ rockspecifier
/usr/local/bin/rockspecifier: line 1: PK: command not found
/usr/local/bin/rockspecifier: line 2: syntax error near unexpected token `('
/usr/local/bin/rockspecifier: line 2: `?Uh<docs/UT      (??K(??Kux
                                                                  ?PK'

$ file `which rockspecifier`
/usr/local/bin/rockspecifier: Zip archive data, at least v1.0 to extract

$ unzip -l `which rockspecifier`
Archive:  /usr/local/bin/rockspecifier
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2010-03-08 16:44   docs/
        0  2010-03-08 16:44   docs/api/
       89  2010-03-08 16:44   docs/api/gen_modules.bat
     6476  2010-03-08 16:44   docs/api/index.html
     5668  2010-03-08 16:44   docs/api/luadoc.css
        0  2010-03-08 16:44   docs/api/modules/
     5273  2010-03-08 16:44   docs/api/modules/pl.app.html
    16669  2010-03-08 16:44   docs/api/modules/pl.array2d.html
    10607  2010-03-08 16:44   docs/api/modules/pl.class.html
     8351  2010-03-08 16:44   docs/api/modules/pl.classx.html
     4439  2010-03-08 16:44   docs/api/modules/pl.config.html
     6421  2010-03-08 16:44   docs/api/modules/pl.data.html
     9432  2010-03-08 16:44   docs/api/modules/pl.dir.html
     6706  2010-03-08 16:44   docs/api/modules/pl.file.html
     8569  2010-03-08 16:44   docs/api/modules/pl.func.html
     6376  2010-03-08 16:44   docs/api/modules/pl.input.html
     9313  2010-03-08 16:44   docs/api/modules/pl.lexer.html
    24877  2010-03-08 16:44   docs/api/modules/pl.list.html
    12659  2010-03-08 16:44   docs/api/modules/pl.operator.html
    12239  2010-03-08 16:44   docs/api/modules/pl.path.html
     4228  2010-03-08 16:44   docs/api/modules/pl.permute.html
     4954  2010-03-08 16:44   docs/api/modules/pl.pretty.html
    16619  2010-03-08 16:44   docs/api/modules/pl.seq.html
     8118  2010-03-08 16:44   docs/api/modules/pl.sip.html
     3981  2010-03-08 16:44   docs/api/modules/pl.stringio.html
    16694  2010-03-08 16:44   docs/api/modules/pl.stringx.html
    32146  2010-03-08 16:44   docs/api/modules/pl.tablex.html
     5063  2010-03-08 16:44   docs/api/modules/pl.test.html
     7527  2010-03-08 16:44   docs/api/modules/pl.text.html
    13688  2010-03-08 16:44   docs/api/modules/pl.utils.html
      258  2010-03-08 16:44   docs/doc.css
     1177  2010-03-08 16:44   docs/docgen.lua
    34753  2010-03-08 16:44   docs/function_index.html
    27837  2010-03-08 16:44   docs/function_index.txt
   127713  2010-03-08 16:44   docs/index.html
     2422  2010-03-08 16:44   docs/index.lua
   115219  2010-03-08 16:44   docs/penlight.md
        0  2010-03-08 16:44   examples/
     1326  2010-03-08 16:44   examples/seesubst.lua
      781  2010-03-08 16:44   examples/sipscan.lua
     6719  2010-03-08 16:44   examples/symbols.lua
      147  2010-03-08 16:44   examples/test-cmp.lua
      327  2010-03-08 16:44   examples/test-listcallbacks.lua
      219  2010-03-08 16:44   examples/test-pretty.lua
     1288  2010-03-08 16:44   examples/test-symbols.lua
      191  2010-03-08 16:44   examples/testapp.lua
      781  2010-03-08 16:44   examples/testclone.lua
      940  2010-03-08 16:44   examples/testconfig.lua
      825  2010-03-08 16:44   examples/testglobal.lua
      322  2010-03-08 16:44   examples/testinputfields.lua
      233  2010-03-08 16:44   examples/testinputfields2.lua
     2206  2010-03-08 16:44   examples/testxml.lua
      778  2010-03-08 16:44   examples/which.lua
     1094  2010-03-08 16:44   LICENCE.txt
        0  2010-03-08 16:44   lua/
     1352  2010-03-08 16:44   lua/init.lua
        0  2010-03-08 16:44   lua/pl/
     3917  2010-03-08 16:44   lua/pl/app.lua
     9617  2010-03-08 16:44   lua/pl/array2d.lua
     9735  2010-03-08 16:44   lua/pl/class.lua
     4283  2010-03-08 16:44   lua/pl/classx.lua
      701  2010-03-08 16:44   lua/pl/compat52.lua
     8673  2010-03-08 16:44   lua/pl/comprehension.lua
     4167  2010-03-08 16:44   lua/pl/config.lua
    13950  2010-03-08 16:44   lua/pl/data.lua
    11391  2010-03-08 16:44   lua/pl/dir.lua
     1573  2010-03-08 16:44   lua/pl/file.lua
     9790  2010-03-08 16:44   lua/pl/func.lua
     1352  2010-03-08 16:44   lua/pl/init.lua
     4738  2010-03-08 16:44   lua/pl/input.lua
     8819  2010-03-08 16:44   lua/pl/lapp.lua
    11954  2010-03-08 16:44   lua/pl/lexer.lua
    13699  2010-03-08 16:44   lua/pl/list.lua
     7840  2010-03-08 16:44   lua/pl/luabalanced.lua
     3491  2010-03-08 16:44   lua/pl/operator.lua
     7293  2010-03-08 16:44   lua/pl/path.lua
     1538  2010-03-08 16:44   lua/pl/permute.lua
     4769  2010-03-08 16:44   lua/pl/pretty.lua
    13302  2010-03-08 16:44   lua/pl/seq.lua
     9288  2010-03-08 16:44   lua/pl/sip.lua
     1585  2010-03-08 16:44   lua/pl/strict.lua
     1253  2010-03-08 16:44   lua/pl/stringio.lua
     8672  2010-03-08 16:44   lua/pl/stringx.lua
    22117  2010-03-08 16:44   lua/pl/tablex.lua
     1980  2010-03-08 16:44   lua/pl/test.lua
     5092  2010-03-08 16:44   lua/pl/text.lua
    10741  2010-03-08 16:44   lua/pl/utils.lua
     1957  2010-03-08 16:44   penlight-0.8-1.rockspec
     6112  2010-03-08 16:44   README.txt
     6426  2010-03-08 16:44   rock_manifest
      511  2010-03-08 16:44   run.lua
        0  2010-03-08 16:44   tests/
      632  2010-03-08 16:44   tests/test-args.lua
      339  2010-03-08 16:44   tests/test-array.lua
      328  2010-03-08 16:44   tests/test-compare-no-order.lua
     2504  2010-03-08 16:44   tests/test-comprehension.lua
     1169  2010-03-08 16:44   tests/test-config.lua
     3707  2010-03-08 16:44   tests/test-data.lua
     1885  2010-03-08 16:44   tests/test-func.lua
      459  2010-03-08 16:44   tests/test-job-query.lua
     1267  2010-03-08 16:44   tests/test-lapp.lua
     1186  2010-03-08 16:44   tests/test-lexer.lua
      359  2010-03-08 16:44   tests/test-map.lua
      272  2010-03-08 16:44   tests/test-move.lua
      400  2010-03-08 16:44   tests/test-path.lua
      647  2010-03-08 16:44   tests/test-pretty.lua
     1582  2010-03-08 16:44   tests/test-pylib.lua
      292  2010-03-08 16:44   tests/test-seq.lua
     1755  2010-03-08 16:44   tests/test-set.lua
     2541  2010-03-08 16:44   tests/test-sip.lua
      160  2010-03-08 16:44   tests/test-strict.lua
      149  2010-03-08 16:44   tests/test-stringio.lua
     2536  2010-03-08 16:44   tests/test-tablex.lua
     1477  2010-03-08 16:44   tests/test-text.lua
      175  2010-03-08 16:44   teststrictmod1.lua
---------                     -------
   854237                     115 files

### Second attempt:

$ sudo luarocks install
https://github.com/stevedonovan/LuaRocksTools/raw/master/rockspecifier/rockspecifier-0.5-1.rockspec
Updating manifest for /usr/local/lib/luarocks/rocks

rockspecifier 0.5-1 is now built and installed in /usr/local/ (license: MIT/X11)

$ sudo chmod +x /usr/local/bin/rockspecifier

$ cat `which rockspecifier`
package = "rockspecifier"
version = "0.5-1"

source = {
  dir = ".",
  url = 
"http://github.com/stevedonovan/LuaRocksTools/raw/master/rockspecifier/rockspecifier";,
}

description = {
  summary = "Command-line tool for generating rockspecs",
  homepage = 
"http://github.com/stevedonovan/LuaRocksTools/blob/master/rockspecifier";,
  license = "MIT/X11",
  maintainer = "[email protected]",
  detailed = [[
Rockspecifier interactively allows a user to create a rockspec for
their Lua modules
and scripts. It simplifies the initial generation and understands
external dependencies for C modules.
]]
}

dependencies = {
  "penlight",
}

build = {
  type = "none",
  install = {
    bin = {
      rockspecifier = "rockspecifier",
    }
  }
}

### o_O

Thanks.
Alexander.

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to