Perl 6 - the future is here, just unevenly distributed

IRC log for #perl6-toolchain, 2017-09-30

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:32 P6Bot joined #perl6-toolchain
01:01 P6Bot joined #perl6-toolchain
01:29 P6Bot joined #perl6-toolchain
01:55 ilbot3 joined #perl6-toolchain
01:55 Topic for #perl6-toolchain is now Fire is step THREE! | https://github.com/perl6/toolchain-bikeshed | Channel logs: http://irclog.perlgeek.de/perl6-toolchain/today | useful prior art: https://metacpan.org/pod/CPAN::Meta::Spec
01:56 synopsebot joined #perl6-toolchain
02:04 synopsebot joined #perl6-toolchain
03:48 synopsebot joined #perl6-toolchain
03:52 synopsebot joined #perl6-toolchain
04:04 lizmat joined #perl6-toolchain
05:43 nine Oh, I've just learned about dnf whatprovides (on Fedora I presume) which finds out what package you need to provide a missing command, library, or cross-compiler.
05:45 nine apt-file find on Debian
06:21 llfourn joined #perl6-toolchain
06:26 domidumont joined #perl6-toolchain
06:30 domidumont joined #perl6-toolchain
09:10 leont joined #perl6-toolchain
10:01 timotimo what's the difference between "whatprovides" and "provides"?
11:19 synopsebot joined #perl6-toolchain
11:29 leont joined #perl6-toolchain
13:50 llfourn joined #perl6-toolchain
15:03 leont joined #perl6-toolchain
15:07 ugexe one is a question
15:08 ugexe we could do the same thing, too, if bin/ scripts were declared in meta data
15:08 ugexe but from the other direction that also makes it easier for zef to use those avenues as alternative installers
15:23 sjn o/
15:23 * sjn somehow managed to break zef by intalling it
15:23 sjn Failed to open file /home/sjn/.rakudo/install/share/perl6/site/dist/2D978098B8202D9A108354C1DA9A36FDC65AF019: No such file or directory
15:24 sjn seems CompUnit::RepositoryRegistry.run-script is looking for a zef that isn't there
15:25 ugexe do you update your rakudo, or install new versions from a clean slate?
15:25 sjn I updated rakudo
15:26 sjn isn't is safe to update rakudo now and then?
15:27 ugexe yeah. i'm trying to think *if* when we made the change to .run-script if this situation could somehow happen
15:28 ugexe i assume `which zef` points at install/share/perl6/site/bin ?
15:28 sjn .../install/share/perl6/site/bin/zef, yes
15:29 sjn reinstalling zef from scratch fixed it of course.
15:30 ugexe i think the wrapper rakudo installs getting changed somehow caused this then
15:31 sjn the wrapper? it's super-simple. it only defers to CompUnit::RepositoryRegistry.run-script
15:31 sjn calls it
15:32 synopsebot joined #perl6-toolchain
15:33 sjn there's no indication in the wrapper about which compunitrepo is the right one
15:42 ugexe i wonder if its possible that it could be finding a precomp'd zef that points to files that no longer exists while also missing some check on .e
15:45 ugexe probably somewhere in here https://github.com/rakudo/rakudo/blob/nom/src/core/CompUnit/Repository/Installation.pm#L374
15:49 sjn why does that last for loop call return?
15:49 ugexe because it only returns the newest
15:50 sjn no need to do a for loop for that, is there?
15:50 ugexe i imagine there are other checks that could also take place there, in which case a for loop starts to make more sense
15:51 ugexe but yeah, no need for it as it stands
15:53 ugexe i got rid of .scripts to go back to .files in https://github.com/rakudo/rakudo/pull/1125 fwiw
15:55 sjn anyhoo, I can imagine that the error I pasted earlier can show up if some index isn't updated/recreated when rakudo is updated/rebuilt
15:56 * sjn is getting wary about all these rabbit holes
16:00 ugexe has any group mastered upgrading a language install and having all modules still just-work?
16:02 sjn ugexe: nah, don't worry, I'm just venting a little frustration. I'll keep it to myself now :)
16:02 * sjn approves about the level of ambition in #perl6-toolchain
16:03 ugexe i was hoping you knew where we could borrow some inspiration
16:04 sjn nope. no inspiration to find out there, except in how not to do things. :)
16:04 mst ugexe: plenv has a command for "take everything from the old install and reinstall it against the new one" but I'm not sure if that counts
16:06 * sjn approves of the ambition to handle detailed (micro-level?) upgrades
16:06 nine I'd guess that there's a mismatch between some short name lookup file and the installed dists
16:07 nine Maybe some leftover from an uinstall?
16:07 nine uninstall even
16:07 nine Could be that we don't uninstall the lookup files for scripts
16:09 nine No, we remove all files pointing at the dist, regardless of where they come from
16:11 sjn ugexe: question: would it be ok with you to change the zef usage statement to have the main keyword (e.g. "install", "upgrade", etc.) to be the second word on each line, instead of burying it somewhere at the end?
16:12 ugexe mst: i've considered that too, but can't help but think the installation order inconsistency would eventually cause problems
16:12 domidumont joined #perl6-toolchain
16:14 ugexe sjn: sure. i dont even remember what the usage statement looks like anymore :P
16:14 sjn oh, zef's using the generated usage
16:14 ugexe nah
16:15 timo joined #perl6-toolchain
16:15 ugexe well it does if you use a bad command
16:15 mst ugexe: could always log each installation somewhere and replay them in order
16:15 sjn ugexe: that's the one I'm thinking of, actually
16:18 ugexe $*USAGE.subst(/foo/, "bar", :g) works, but only inside a MAIN sub (so won't work for bad commands)
16:22 ugexe nine: what points at a dist (other than the bin wrapper) that isn't hash'd with the compiler version?
16:25 ugexe could probably do something like a catch-all sub MAIN(|) { $*USAGE ~~ s/// }
17:06 nine What would reinstalling accomplish? That's only necessary in Perl 5 because XS modules are compiled and linked against a certain perl version
17:06 nine ugexe: can't think of anything
17:30 timo joined #perl6-toolchain
19:53 synopsebot joined #perl6-toolchain

| Channels | #perl6-toolchain index | Today | | Search | Google Search | Plain-Text | summary