Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blueboxes.rktd.gz files are not added to blueboxes-cache #57

Closed
donm opened this issue Oct 2, 2016 · 5 comments
Closed

blueboxes.rktd.gz files are not added to blueboxes-cache #57

donm opened this issue Oct 2, 2016 · 5 comments

Comments

@donm
Copy link

donm commented Oct 2, 2016

I don't know if this is normal or just a peculiarity of Debian or Ubuntu packaging, but in the /usr/share/doc/racket there are many blueboxes.rktd.gz files. It seems like the compressed files are not being read when running make-bluueboxes-cache.

I tested by copying /usr/share/doc/racket/reference/blueboxes.rktd.gz to my desktop, and running

(define tag (xref-binding->definition-tag (load-collections-xref) #'dict-ref 0)) 
(fetch-blueboxes-strs tag #:blueboxes-cache 
    (make-blueboxes-cache #t #:blueboxes-dirs (list (string->path "/home/don/desktop/"))))

When the blueboxes file is compressed, this results in #f, but when the blueboxes file is uncompressed the result is what you would hope:

'("procedure"
  "(dict-ref dict key [failure-result]) -> any"
  "  dict : dict?"
  "  key : any/c"
  "  failure-result : (failure-result/c any/c)"
  "                 = (lambda () (raise (make-exn:fail ....)))")

I came across this while trying to figure out why the xrepl ,describe command wasn't showing the documentation for many commands.

@rfindler
Copy link
Member

rfindler commented Oct 2, 2016 via email

@donm
Copy link
Author

donm commented Oct 2, 2016

I just double checked to make sure it also occurs in the default repositories because I was using the Racket team's ppa (https://launchpad.net/~plt/+archive/ubuntu/racket). But yes, it seems like the files are compressed in the official repositories as well. This is all on Ubuntu 16.04. Maybe @takikawa would know what's happening during packaging.

@takikawa
Copy link
Contributor

takikawa commented Oct 3, 2016

Thanks for the report. This probably means that the Debian packaging (and Ubuntu) should use DEB_DH_COMPRESS_ARGS or DEB_COMPRESS_EXCLUDE in CDBS to specify that blueboxes should never be compressed. (Actually it may be better to go one step further and say no rkt or rktd files should be compressed)

(I can't look into this immediately, but I'll try to fix it and submit a fix upstream to Debian)

@rfindler
Copy link
Member

rfindler commented Oct 3, 2016 via email

@takikawa
Copy link
Contributor

This bug should now be fixed in the latest version of the PPA (for v6.7) which is now up. I've submitted the patch upstream to the Debian maintainer so it should get fixed there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants