<div dir="ltr">Forgot to cc: list, sorry...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 9:46 AM, John Clements <span dir="ltr"><<a href="mailto:johnbclements@gmail.com" target="_blank">johnbclements@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Oct 16, 2014 at 9:22 AM, Jay McCarthy <span dir="ltr"><<a href="mailto:jay.mccarthy@gmail.com" target="_blank">jay.mccarthy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Thu, Oct 16, 2014 at 12:13 PM, John Clements <<a href="mailto:johnbclements@gmail.com" target="_blank">johnbclements@gmail.com</a>> wrote:<br>
> Wow! I really like the new package system!<br>
><br>
> Okay, now I'm going to complain...<br>
><br>
> I'm having trouble with <a href="http://pkgs.racket-lang.org" target="_blank">pkgs.racket-lang.org</a>, and it's affecting my classes.<br>
><br>
> The issue here is that the catalog doesn't seem to have picked up my last<br>
> change to the rsound package, made some time yesterday. In particular, I had<br>
> to roll back two packages, portaudio and rsound, and portaudio got rolled<br>
> back but not rsound, which means that the pkg-reported current version of<br>
> rsound (16a1959962f) (as opposed to the github-reported current version of<br>
> ((0e28de6c)) now has a dependency on a version of portaudio (1.0.1) that is<br>
> no longer available. (This can also be seen by the build status of rsound,<br>
> which is now shown on <a href="http://pkgs.racket-lang.org" target="_blank">pkgs.racket-lang.org</a> as failing.)<br>
><br>
> I've tried to update using the web page, with not so much success.<br>
> Yesterday, the web page was getting stuck at the "logging in..." phase; I<br>
> waited for ... 10 minutes? No joy. Today, I'm seeing the same thing, though<br>
> 20 minutes ago I saw a successful login, with a thin yellow banner<br>
> indicating that an update was in progress.<br>
><br>
> Perhaps the answer here is to host my own catalog for my students. I spent<br>
> 10 minutes looking into this, but I got stuck when it turned out that<br>
> pkgs/meta/pkg-catalog/ isn't actually part of my installation.<br>
<br>
</span>The catalog protocol [1] is extremely easy to implement by hand. If<br>
you have a public_html setup in your university's Web machine, here's<br>
what you do:<br>
<br>
mkdir public_html/catalog<br>
cd public_html/catalog<br>
cat > rsound <<END<br>
#hash((source . "github:///")(checksum . "deadbeef"))<br>
END<br>
cat > portaudio <<END<br>
#hash((source . "github:///")(checksum . "deadbeef"))<br>
END<br>
<br>
You now have a catalog! Tell your students to add<br>
"<a href="http://xxx/~mcjbc/catalog" target="_blank">http://xxx/~mcjbc/catalog</a>" and you're in business. (When you make a<br>
commit change the checksum string.)<br>
<br>
1. <a href="http://docs.racket-lang.org/pkg/catalog-protocol.html?q=catalog" target="_blank">http://docs.racket-lang.org/pkg/catalog-protocol.html?q=catalog</a><br>
<span><br>
> Another solution would be to manually instruct my students to paste the<br>
> github reference into the "do what I mean" box, but I suspect this would<br>
> lead to confusion and unhappiness in the medium term.<br>
<br>
</span>This is the easiest thing to do in your case, because if they have a<br>
"github" package installed, then when you tell them to "update" the<br>
turn-around time would be instant.<br></blockquote><div><br><br></div></div></div><div>Yes, I see. One caveat, for those reading along at home: entering the GitHub URL directly and clicking "update" results in the following error:<br><br>Resolving "rsound" via <a href="http://download.racket-lang.org/releases/6.1/catalog/" target="_blank">http://download.racket-lang.org/releases/6.1/catalog/</a><br>Resolving "rsound" via <a href="http://pkgs.racket-lang.org" target="_blank">http://pkgs.racket-lang.org</a><br>Updating:<br> rsound<br>Resolving "rsound" via <a href="http://download.racket-lang.org/releases/6.1/catalog/" target="_blank">http://download.racket-lang.org/releases/6.1/catalog/</a><br>Resolving "rsound" via <a href="http://pkgs.racket-lang.org" target="_blank">http://pkgs.racket-lang.org</a><br>Using cached14134772981413477298507 for <a href="https://github.com/jbclements/RSound/tarball/16a1959962f5dd8c29e3ea6bf1bb1d9d3bb569ee" target="_blank">https://github.com/jbclements/RSound/tarball/16a1959962f5dd8c29e3ea6bf1bb1d9d3bb569ee</a><br>DrRacket update: version mismatch for dependency<br> for package: rsound<br> mismatch packages:<br> portaudio (have 0.1, need 1.0.1)<br><br></div><div>This error message did not immediately help me.<br></div><div><br>After
more poking around, I see that (apparently) I need to uninstall the old
version first, which does make some sense. <br><br></div><div>I propose the following change to the interface: when someone enters a different source for a package that's already installed, the default action should not be "upgrade". Instead, the default action should probably be: pop up a message box saying that this package is already installed, and that if you want to use a different source, you should uninstall the existing one first.<br><br>Does that make sense to you?<br></div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>
> So: if there's a good way to poke <a href="http://pkgs.racket-lang.org" target="_blank">pkgs.racket-lang.org</a> to pick up the new<br>
> version of rsound, I'd love to hear it.<br>
><br>
> Thanks again for all the hard work! It keeps getting better!<br>
><br>
> John<br>
><br>
><br>
><br>
</span>> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Jay McCarthy<br>
<a href="http://jeapostrophe.github.io" target="_blank">http://jeapostrophe.github.io</a><br>
<br>
"Wherefore, be not weary in well-doing,<br>
for ye are laying the foundation of a great work.<br>
And out of small things proceedeth that which is great."<br>
- D&C 64:33<br>
</font></span></blockquote></span></div><br></div></div>
</blockquote></div><br></div>