[racket] raco pkg create

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Mon Dec 1 06:37:57 EST 2014

Am I doing something wrong?  `raco pkg create --binary` is including 
source files (and other non-`compiled` files), which seems inconsistent 
with its documentation.  This is in Racket 6.1.1.

Side question: Is `raco pkg create` supposed to use the `MANIFEST` 
file?  (It didn't look like it was documented to, but I double-checked, 
and it isn't, though that would be helpful.)


[/tmp/mypackage] ls
info.rkt  main.rkt  MANIFEST  mypackage.rkt  thisfileisnotused

[/tmp/mypackage] cat MANIFEST
info.rkt
main.rkt
mypackage.rkt

[/tmp/mypackage] raco pkg create --format tgz --source $(pwd)
packing into /tmp/mypackage/mypackage.tgz
writing package checksum to /tmp/mypackage/mypackage.tgz.CHECKSUM
[/tmp/mypackage] tar tvfz mypackage.tgz
-rw-r--r-- root/root        32 2014-12-01 02:37 MANIFEST
-rw-r--r-- root/root        93 2014-11-30 09:53 info.rkt
-rw-r--r-- root/root        85 2014-11-30 09:22 main.rkt
-rw-r--r-- root/root        84 2014-12-01 02:37 mypackage.rkt
-rw-r--r-- root/root        75 2014-12-01 02:37 thisfileisnotused
[/tmp/mypackage] rm -rf mypackage.tgz mypackage.tgz.CHECKSUM compiled

[/tmp/mypackage] raco pkg create --format tgz --binary $(pwd)
packing into /tmp/mypackage/mypackage.tgz
writing package checksum to /tmp/mypackage/mypackage.tgz.CHECKSUM
[/tmp/mypackage] tar tvfz mypackage.tgz
-rw-r--r-- root/root        32 2014-12-01 06:18 MANIFEST
drwxr-xr-x root/root         0 2014-12-01 06:18 compiled
-rw-r--r-- root/root       135 2014-12-01 06:18 compiled/info_rkt.dep
-rw-r--r-- root/root       872 2014-12-01 06:18 compiled/info_rkt.zo
-rw-r--r-- root/root       217 2014-12-01 06:18 info.rkt
-rw-r--r-- root/root        85 2014-11-30 09:22 main.rkt
-rw-r--r-- root/root        84 2014-12-01 02:37 mypackage.rkt
-rw-r--r-- root/root        75 2014-12-01 06:18 thisfileisnotused
[/tmp/mypackage] rm -rf mypackage.tgz mypackage.tgz.CHECKSUM compiled

[/tmp/mypackage] raco pkg create --format tgz --built $(pwd)
packing into /tmp/mypackage/mypackage.tgz
writing package checksum to /tmp/mypackage/mypackage.tgz.CHECKSUM
[/tmp/mypackage] tar tvfz mypackage.tgz
-rw-r--r-- root/root        32 2014-12-01 06:19 MANIFEST
drwxr-xr-x root/root         0 2014-12-01 06:19 compiled
-rw-r--r-- root/root       135 2014-12-01 06:19 compiled/info_rkt.dep
-rw-r--r-- root/root       803 2014-12-01 06:19 compiled/info_rkt.zo
-rw-r--r-- root/root       181 2014-12-01 06:19 info.rkt
-rw-r--r-- root/root        85 2014-11-30 09:22 main.rkt
-rw-r--r-- root/root        84 2014-12-01 02:37 mypackage.rkt
-rw-r--r-- root/root        75 2014-12-01 06:19 thisfileisnotused
[/tmp/mypackage] rm -rf mypackage.tgz mypackage.tgz.CHECKSUM compiled

[/tmp/mypackage] rm MANIFEST
[/tmp/mypackage] ls
info.rkt  main.rkt  mypackage.rkt  thisfileisnotused

[/tmp/mypackage] raco pkg create --format tgz --source $(pwd)
packing into /tmp/mypackage/mypackage.tgz
writing package checksum to /tmp/mypackage/mypackage.tgz.CHECKSUM
[/tmp/mypackage] tar tvfz mypackage.tgz
-rw-r--r-- root/root        93 2014-11-30 09:53 info.rkt
-rw-r--r-- root/root        85 2014-11-30 09:22 main.rkt
-rw-r--r-- root/root        84 2014-12-01 02:37 mypackage.rkt
-rw-r--r-- root/root        75 2014-12-01 02:37 thisfileisnotused
[/tmp/mypackage] rm -rf mypackage.tgz mypackage.tgz.CHECKSUM compiled

[/tmp/mypackage] raco pkg create --format tgz --binary $(pwd)
packing into /tmp/mypackage/mypackage.tgz
writing package checksum to /tmp/mypackage/mypackage.tgz.CHECKSUM
[/tmp/mypackage] tar tvfz mypackage.tgz
drwxr-xr-x root/root         0 2014-12-01 06:21 compiled
-rw-r--r-- root/root       135 2014-12-01 06:21 compiled/info_rkt.dep
-rw-r--r-- root/root       872 2014-12-01 06:21 compiled/info_rkt.zo
-rw-r--r-- root/root       217 2014-12-01 06:21 info.rkt
-rw-r--r-- root/root        85 2014-11-30 09:22 main.rkt
-rw-r--r-- root/root        84 2014-12-01 02:37 mypackage.rkt
-rw-r--r-- root/root        75 2014-12-01 06:21 thisfileisnotused
[/tmp/mypackage] rm -rf mypackage.tgz mypackage.tgz.CHECKSUM compiled

[/tmp/mypackage] raco pkg create --format tgz --built $(pwd)
packing into /tmp/mypackage/mypackage.tgz
writing package checksum to /tmp/mypackage/mypackage.tgz.CHECKSUM
[/tmp/mypackage] tar tvfz mypackage.tgz
drwxr-xr-x root/root         0 2014-12-01 06:21 compiled
-rw-r--r-- root/root       135 2014-12-01 06:21 compiled/info_rkt.dep
-rw-r--r-- root/root       803 2014-12-01 06:21 compiled/info_rkt.zo
-rw-r--r-- root/root       181 2014-12-01 06:21 info.rkt
-rw-r--r-- root/root        85 2014-11-30 09:22 main.rkt
-rw-r--r-- root/root        84 2014-12-01 02:37 mypackage.rkt
-rw-r--r-- root/root        75 2014-12-01 06:21 thisfileisnotused

[/tmp/mypackage] which raco
/usr/local/racket-6.1.1/bin/raco

Neil V.


Posted on the users mailing list.