|
#parrot Parrot 0.6.4 "St. Vincent Amazon" Released | parrotcode.org/ | 15 new, 648 open, 80 stalled tix | logged in irclog.perlgeek.de/parrot/today Set by moderator on 28 July 2008. |
|||
| tetragon | And for a flashback to the Toronto buildfest, I had problems building for the wrong architecture in #57532 | 00:01 | |
| (And that ticket has the workaround I used for some of the flag nonsense) | 00:03 | ||
|
00:09
AndyA joined
|
|||
| kid51 | I'll apply that. Reconfiguring to test. | 00:10 | |
| tetragon | Hrm... The post-check details printed after applying your diff contain undesired -arch flags | 00:11 | |
| I don't see them elsewhere, but they make it look like the check isn't working | 00:13 | ||
| kid51 | Can you paste? | ||
|
00:13
cjfields joined
|
|||
| dalek | r29959 | jkeenan++ | trunk: | 00:16 | |
| : [configure] Applying patch submitted by Seneca Cunningham in | |||
| : rt.perl.org/rt3/Ticket/Display.html?id=57532 re byteorder on Darwin on | |||
| : i386: fix to accommodate 64-bit as well as 32-bit. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29959 | |||
| nopaste | "tetragon" at 76.10.153.9 pasted "Verbose Configure output with the darwin branch diff applied" (889 lines) at nopaste.snit.ch/13728 | ||
| tetragon | A check on the tree I ran Configure.pl on doesn't show any -arch flags | 00:17 | |
| nopaste | "cjfields" at 76.195.221.197 pasted "Rakudo spectest_regression test failures, r29959" (13 lines) at nopaste.snit.ch/13729 | 00:18 | |
| kid51 explores | |||
| cjfields | couple of Rakudo test failures, can anyone replicate? | ||
| kid51 | tetragon: I see the problem. | 00:19 | |
| dalek | r29960 | Whiteknight++ | gsoc_pdd09: | 00:22 | |
| : [gsoc_pdd09] update to trunk r29958 | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29960 | |||
| tetragon | And I'm getting a warning from perl when I run t/steps/init_hints-02.t | 00:26 | |
| But I was capable of using the command line flags to get a 64-bit build built | 00:32 | ||
| dalek | r29961 | jkeenan++ | darwin_fix_hints: | 00:43 | |
| : Fix _postcheck() and associated tests per failure report from Seneca Cunningham. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29961 | |||
| nopaste | "kid51" at 70.107.14.221 pasted "revised: svn diff between darwin_fix_hints branch and trunk" (490 lines) at nopaste.snit.ch/13730 | 00:45 | |
| kid51 | tetragon: Please try revised patch and paste any warnings, failures. Thanks. | 00:46 | |
|
00:46
idemal joined
|
|||
| tetragon | Better post-check output this time | 00:50 | |
| Only warnings/errors during Configure for 32-bit are the usual set | 00:51 | ||
| (I'll apply my readline patch later) | |||
| I'm still getting the test warning | |||
| nopaste | "tetragon" at 76.10.153.9 pasted "Warning output in t/steps/init_hints-02.t" (33 lines) at nopaste.snit.ch/13731 | 00:52 | |
| tetragon | No unusual warnings during make (32-bit) | 00:54 | |
| Now for 64-bit | |||
| Hrm... I don't see my flags from the command line in the hints output, am I supposed to? | 00:55 | ||
|
00:57
teknomunk_ joined
|
|||
| kid51 | tetragon: No. The point of the patch is that there shouldn't be any reference to command-line options in init::hints. | 00:59 | |
| Can you try this at line 202 of t/steps/init_hints-02.t: | |||
| tetragon | Then it's time for make | ||
| kid51 | local %ENV = %ENV; | ||
| $ENV{'MACOSX_DEPLOYMENT_TARGET'} = undef; | |||
| Command-line options for ccflags are now handled via config/inter/progs.pm -- where they probably should have been all along. | 01:00 | ||
| tetragon | Still getting the warning | 01:01 | |
| MACOSX_DEPLOYMENT_TARGET is not set on my box | 01:02 | ||
| I stop getting the warning if I limit the undef to cases when $ENV{'MACOSX_DEPLOYMENT_TARGET'} exists | |||
| kid51 | What happens with: undef $ENV{'MACOSX_DEPLOYMENT_TARGET'}; | 01:03 | |
| tetragon | Warning | 01:04 | |
| kid51 | Alright, let's RTFM. | ||
| tetragon | It worked when I appended " if exists $ENV{MACOSX_DEPLOYMENT_TARGET}" | 01:05 | |
| kid51 | Try: local %ENV = %ENV; | ||
| delete $ENV{'MACOSX_DEPLOYMENT_TARGET'}; | |||
| tetragon | No warnings or errors | 01:06 | |
| kid51 | That's what we want. It's what's recommended by 'perldoc -f undef', and I saw chromatic fixing some of the steps tests with it earlier today. | 01:07 | |
| dalek | r29962 | jkeenan++ | darwin_fix_hints: | 01:09 | |
| : Localize %ENV for test, then delete the hash element rather than trying to | |||
| : 'undef' it (per 'perldoc -f undef'). | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29962 | |||
| r29963 | jkeenan++ | darwin_fix_hints: | 01:22 | ||
| : Provide test for one previously uncovered condition. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29963 | |||
| nopaste | "kid51" at 70.107.14.221 pasted "'final' diff between trunk and darwin_fix_hints branch; tests get 100% coverage" (518 lines) at nopaste.snit.ch/13732 | 01:27 | |
| cotto_home | allison++ | 01:50 | |
| tetragon | kid51: Haven't noticed any breakage with the 'final' diff applied | 02:01 | |
|
04:26
Andy joined
04:27
rurban_ joined
04:37
tetragon joined
05:43
Psyche^ joined
06:05
alvar joined
06:23
Senaka joined
06:44
alvar joined
|
|||
| rurban | anyone knows the ticket number of the "make install is broken if already installed"? With the recent merge I got it and fixed it. libs belong to the end. | 08:16 | |
|
08:58
masak joined
|
|||
| rurban | got it: 39742 | 09:19 | |
|
10:18
mire joined
11:01
MeGaMiC joined
11:17
Casan joined
11:32
Whiteknight joined
11:51
alvar_ joined
11:52
alvar_ left
12:18
Andy joined
12:20
Lorn joined
12:27
rurban_ joined
12:50
kid51 joined
|
|||
| dalek | r29964 | Whiteknight++ | gsoc_pdd09: | 13:14 | |
| : [gsoc_pdd09] manually fix some problems caused by "make headerizer". Fixes one build problem, exposes another. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29964 | |||
|
13:16
ambs joined
13:21
Andy joined
13:45
MeGaMiC joined
13:46
MeGaMiC joined
|
|||
| dalek | r29965 | petergibbs++ | trunk: | 14:05 | |
| : [jako] Change factorial test to handle more combinations of 32 vs 64 bits | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29965 | |||
|
14:35
tetragon joined
14:47
tetragon joined,
teknomunk joined
14:58
Limbic_Region joined
15:00
tetragon joined
15:23
jhorwitz joined
|
|||
| jonathan | jhorwitz: ping | 15:26 | |
| jhorwitz | jonathan: pong | 15:27 | |
| jonathan | jhorwitz: I want to play with mod_rakudo. Do I require a certain version of Apache? (I have a Linux box I can do this on...) | ||
| And is there some examples of HLL handlers written in Rakudo? | |||
| jhorwitz | a recent apache 2.2.x will do find | ||
| jonathan | That section is todo in www.perlfoundation.org/parrot/index...mod_parrot | ||
| jhorwitz | *fine | ||
| jhorwitz needs to upload his mod_parrot slides... | 15:28 | ||
| jonathan wonders how to find which version of Apache he has | |||
| jhorwitz | /path/to/httpd -v | 15:29 | |
|
15:29
tetragon joined
|
|||
| jhorwitz | jonathan: see mod_parrot/trunk/eg/perl6 for example handlers | 15:30 | |
| jonathan | Awesome, thanks. | ||
| About state. | 15:31 | ||
| If I stick something in a package variable, will it exist between runs of a handler? | |||
| jhorwitz | yes | ||
| jonathan | OK. | ||
| jhorwitz | for that interpreter | ||
| it would be very nice to have a way to clear that out between runs, a la PHP | 15:32 | ||
| jonathan | What does "for that interpreter" that imply? | ||
| oops, s:2nd/that// | |||
| Do we have one interpreter per process pre-forked by Apache? | |||
| jhorwitz | in the forked mpm, you have one parrot interpreter per apache child process. if you have keepalive on, you'll hit the same process (and thus interpreter) until your keepalive timeout expires. | 15:33 | |
| you can see this in action with the example "counter" handler | |||
| jonathan | OK | ||
| I'm giving a talk on Perl 6 OO, and pondering using mod_rakudo to actually run the code but fronted by a web app. | 15:34 | ||
| And rather than stash stuff in a DB, it'll just keep things in a hash etc. | |||
| Or array. | |||
| jhorwitz | that works | ||
| jonathan | Stored in the package. | ||
| OK. | |||
| Are there any security issues with installing this on a public-facing machine? | 15:35 | ||
|
15:35
kid51 joined
|
|||
| jonathan | BTW, I have: Server version: Apache/2.2.0 | 15:35 | |
| jhorwitz | not that i know of, and i'm sure that gives you a warm fuzzy feeling. | ||
| i run it on smashing.org, but using a separate proxied apache install, so i can crash it at will. | 15:36 | ||
| jonathan | Hmmm. | ||
| If it segfaults, it'd bring down my Apache? | |||
| jhorwitz | just the process | ||
| others will live | |||
| jonathan | Ah, OK. | 15:37 | |
| I only have some CGI apps running on there that matter anyway. | |||
| jhorwitz | the only problems i've seen so far are from parrot memory leaks | ||
| jonathan feels like too much of a n00b to try setting up the proxy stuff | 15:38 | ||
| jhorwitz | i'm sure mod_parrot has a few of its own too... | ||
| proxy is easy. i can send you my config | |||
| jonathan | Ah, OK - that may be good to have, thanks. | ||
| jhorwitz | and yes, apache 2.2.0 will work | ||
| jonathan | Great. | ||
|
15:38
davidfetter joined
|
|||
| jhorwitz tests mod_parrot with newly merged pdd25cx branch | 15:39 | ||
| davidfetter | jhorwitz++ :) | ||
|
15:39
Andy joined
|
|||
| jhorwitz | hi davidfetter | 15:39 | |
| davidfetter | how goes otherwise? | ||
| jhorwitz | good. conference season is over, life is calming down. | 15:40 | |
| nopaste? | |||
| purl | i heard nopaste was at nopaste.snit.ch/ (ask TonyC for new channels) or rafb.net/paste or poundperl.pastebin.com/ or paste.scsys.co.uk/ or App::Nopaste or tools/dev/nopaste.pl | ||
| clunker3 | pasta.test-smoke.org/ or paste.husk.org/ or nopaste.snit.ch:8001/ or rafb.net/paste or poundperl.pastebin.com/ or paste.scsys.co.uk/ | ||
| nopaste | "jhorwitz" at 96.245.16.64 pasted "jonathan: apache proxy config" (8 lines) at nopaste.snit.ch/13733 | 15:41 | |
| jonathan | jhorwitz: OK, that's the proxy bit; how does one run a separate instance of Apache? | 15:43 | |
| (And tell me to RTFM if these questions are just too dumb... :-)) | |||
| jhorwitz | LOL | 15:44 | |
| davidfetter | jhorwitz, um, is there a "conference season?" | ||
|
15:44
Ron joined
|
|||
| davidfetter scheduled for one next month, tentative for one each in the following three | 15:44 | ||
| jhorwitz | jonathan: you can either just run with a separate config file, or in this case you probably want a completely new install (compile from source with a different prefix) | ||
| but for starters, i'd just get mod_parrot running and worry about the proxy bit later. ;-) | 15:45 | ||
| davidfetter: for me, it's june & july. though i did frozen perl this year too... | |||
| jonathan is only doing one conference this summer | 15:46 | ||
| Oh. This is....probably not good. | |||
| jhorwitz | sweet, all tests pass in trunk. | ||
| jonathan | [root@jnthn trunk]# locate apxs | ||
| /var/www/manual/programs/apxs.html | |||
| That's...it. | |||
| jhorwitz | you need to install the devel package | ||
| prob called httpd-dev or httpd-devel, depending on your system | 15:47 | ||
| jhorwitz loathes packaged apache installs | 15:48 | ||
| jonathan | Aarrgh. This wants me to update my gcc... | 15:51 | |
|
15:53
tetragon joined
|
|||
| rurban | I want to extend #CONDITIONED_LINE in Parrot::Configure::Compiler to be common lisp like. | 15:57 | |
| #+(win32 cygwin): bla | |||
| which is the same as #+(or win32 cygwin): bla | |||
| jhorwitz | jonathan: just build apache from source | 15:58 | |
| takes less time than dealing with the package nonsense | |||
| rurban | then also #-(win32 cygwin): nobla and #-(and cygwin has_sig_atomic_t): blabla | ||
| jonathan | jhorwitz: It seems so... | 15:59 | |
| rurban | The #conditioned_line logic is very limited | ||
| jonathan | jhorwitz: Not built it from source before, well, hopefully it doesn't destroy my current installation. :-) | ||
| jhorwitz | use a different prefix (/usr/local/apache2 is common, if not already taken by your system) | ||
|
16:02
ambs joined
|
|||
| jonathan | jhorwitz: OK. Configure worked, making... | 16:02 | |
| dalek | r29966 | jkeenan++ | trunk: | 16:10 | |
| : Correct 1 spelling error in POD. Provide some better POD tags. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29966 | 16:11 | ||
| jonathan | jhorwitz: Argh! I build mod_parrot as root! | 16:13 | |
| jhorwitz | LOL | 16:14 | |
| shouldn't matter... | |||
| jonathan | I hoped not, but... | ||
| [ error] You are running the test suite under user 'root'. | |||
| Apache cannot spawn child processes as 'root', therefore | |||
| we attempt to run the test suite with user 'nobody' (99:99). | |||
| The problem is that the path (including all parent directories): /root/mod_parrot/trunk/t | |||
| must be 'rwx' by user 'nobody', so Apache can read and write under that | |||
| path. | |||
| jhorwitz | oh | ||
| kid51 | rurban: I think I see what you're getting at re Parrot::Configure::Compiler::genfile() -- but this should probably be spelled out in an RT. | ||
| jhorwitz | yeah, run as yourself | ||
| forgot about that | 16:15 | ||
| rurban | kid51: I saw docs/configuration.pod. I'm working on the Compiler patch now, and send it then. | ||
| kid51 reads docs/configuration.pod | |||
| rurban | the conf->data->get($1) line will be changed to some cond_eval() line, and this will be enhanced to: | 16:16 | |
| Just checks the logical truth of the hash value (exists and not empty) | |||
| TODO: recursive (), evaluate AND, OR, NOT with multiple keys | |||
| TODO: also check the platform name if the hash key does not exist | |||
| TODO: check for key=value, like #+(ld=gcc) | |||
|
16:17
iblechbot joined
|
|||
| jonathan | jhorwitz: Turns out having built Parrot as root, then means that mod_parrot make can't get at it! | 16:17 | |
| jhorwitz | that makes no sense -- is everything world-readable? | 16:18 | |
| rurban | I just fixed [perl #57476] [pdb] parrot version | 16:19 | |
| jonathan | jhorwitz: It gives a permissions error, on trying to access Parrot's include directory. | 16:20 | |
| ...and people wonder why I use Windows... | |||
| jhorwitz won't touch that discussion with 10 foot pole | |||
| what are the perms on the directory, and on the parrot build directory? | 16:21 | ||
| jonathan | Well, I built it in /root | 16:22 | |
| jhorwitz | ah | ||
| that's not world-writable by default, i know that much | |||
| jonathan | Yup. | ||
| jhorwitz | er, readable | ||
| jonathan | OK, will build a Parrot and mod_parrot in my home directory. | ||
| jhorwitz | you shouldn't be doing things as root, but that's the sysadmin in me talking. :) | ||
| jonathan | I'm a compilers guy with a Windows background. Me doing sysadmin on Linux is EPIC FAIL. :-) | 16:23 | |
| jhorwitz | building your own willl be easiest in the long run. | 16:24 | |
| jhorwitz hides from EPIC FAIL under desk | |||
| jonathan | All tests successful. | 16:30 | |
| purl | jonathan: that's because you wrote only one test, slacker! | ||
| ambs | tsk tsk tsk | 16:31 | |
| :) | |||
| jhorwitz | jonathan++ | ||
| (assuming you're talking about mod_parrot) :) | |||
| jonathan | jhorwitz: Yes, I am. OK, make install seems to have worked out. I see step 7: | 16:32 | |
| # Copy the lib directory to a more desirable location. This will eventually become part of the installation process. | |||
| jhorwitz | you don't *have* to do that | ||
| jonathan | OK | ||
| I'll skip it for now. | 16:33 | ||
| jhorwitz | on my development server at home, i run everything out of my build directory so all my changes go live immediately | ||
| try one of the sample PIR handlers, then move on to perl6 | 16:34 | ||
| jonathan | OK | ||
| jhorwitz | oh -- remember to patch rakudo | ||
| see patches/ | |||
| jonathan | I need to figure out, what port etc this is running on too... | ||
| Or if it's running at all. | |||
| jhorwitz | you'll likely get a conflict when patching the io builtins, since i committed the PERL6LIB change late last week. | 16:35 | |
| jhorwitz makes a new patch... | |||
| jonathan | OK. I had to do a small change to the PERL6LIB code; it caused some issues with make spectest_regression, at least on some platforms. | ||
|
16:36
kid51 joined
|
|||
| jhorwitz | interesting. obviously nothing showed up for me else i would've caught it... | 16:36 | |
| kid51 | rurban: Looked at your patch for 39742. Got some codingstd errors. | 16:38 | |
| nopaste | "kid51" at 71.247.44.3 pasted "Some perlcritic errors in patch for RT 39742" (12 lines) at nopaste.snit.ch/13734 | ||
| jonathan | jhorwitz: Do lines like "ParrotInit /path/to/mod_parrot.pbc" go inside some block? | 16:39 | |
| Or just after the LoadModule line? | |||
| jhorwitz | after LoadModule | ||
| they're server scope | |||
| rurban | kid51: ending spaces? | ||
| I found some. | 16:40 | ||
| and nge is not quite right | |||
| oops, hard tabs. will regenerate and attach a new one. | 16:41 | ||
| kid51 | np | ||
| rurban | I'm finishing my [TODO] enhance #CONDITIONED_LINE by recursive logical expressions as in LISP first | ||
| kid51 | k. I don't have expertise to evaluate all the issues in these patches myself, so I'm just seeing whether they get thru 'make test' | 16:42 | |
| rurban | it's a big one and it clahed with Allisons big exception patch | 16:43 | |
| For me it looks right but I get a GC fault. | |||
| jonathan | jhorwitz: OK, and actually running the Apache I just installed? ./httpd doesn't seem to have done a lot... | 16:44 | |
| jhorwitz | /path/to/apache/bin/apachectl start | ||
| (you may need to kill the httpd you just started...) | |||
| kid51 | But looking at genfile(), I'm inclined to refactor its guts into smaller, individually testable subroutines, much like I did for the config step classes' runstep() methods. | 16:45 | |
| Perhaps I'll put that on *my* TODO list. | 16:46 | ||
| rurban | Well, my enhancement is just for two single lines, if $options{conditioned_lines} is true | 16:47 | |
| nopaste | "rurban" at 212.183.57.140 pasted "[TODO] enhance #CONDITIONED_LINE by recursive logical expressions as in LISP" (67 lines) at nopaste.snit.ch/13735 | 16:48 | |
|
16:49
jan joined
|
|||
| jonathan | jhorwitz: OK, now I get: compiler returned NULL ByteCode '/home/default/jnthn.net/mod_parrot/eg/pir/interpinfo.pir' - No such file or directory | 16:51 | |
| However, it decidedly exists... | |||
| ls -l /home/default/jnthn.net/mod_parrot/eg/pir/interpinfo.pir | |||
| -rw-r--r-- 1 jnthn default 3249 Aug 3 16:34 /home/default/jnthn.net/mod_parrot/eg/pir/interpinfo.pir | |||
| jonathan wonders if it's permissions | |||
| kid51 | rurban: Have saved your paste to disk; will have to look at it more closely later. | ||
| jhorwitz | no, i know what it is | ||
| jonathan | Oh! I didn't do the patch! | ||
| jhorwitz | no | ||
| that's just for perl6 | 16:52 | ||
| you need to set PARROT_RUNTIME | |||
| rurban | kid51: this paste does not work yet, but the attached one to the ticket will pass all tests | ||
| jonathan | Environment variable? | 16:53 | |
| rurban | code and tests for this feature later | ||
| jhorwitz | jonathan: add this to /path/to/apache2/bin/envvars: PARROT_RUNTIME=/path/to/parrot; export PARROT_RUNTIME | ||
| then do apachectl stop; apachectl start | |||
| jhorwitz needs to update the wiki for this... | 16:54 | ||
| jonathan | jhorwitz: Aha! Seems to work. | 16:58 | |
| jhorwitz | jonathan++ | ||
| jonathan | Now I need to set up the proxy or punch a hole through the firewall | ||
| jhorwitz | nice! | ||
| jonathan | jhorwitz++ # being patient with an Apache n00b | ||
| jhorwitz | well, now you need to test mod_perl6. :) | ||
|
17:00
tetragon joined
|
|||
| s1n | kid51: i responded to rt#57522 | 17:01 | |
| jonathan | www.jnthn.net/mod_parrot/parrot-status | ||
| jhorwitz: OK, the Rakudo patch fails to apply cleanly... | 17:03 | ||
| jhorwitz | right, prolly cuz the PERL6LIB diffs are already applied | 17:04 | |
| if it's just io.pir, just revert it and verify there were no other conflicts. | 17:05 | ||
| jonathan | Yeah, was just in io.pir | 17:06 | |
| pmichaud | Aloha | 17:08 | |
| jonathan | hi pmichaud | 17:09 | |
| How's vacation? | |||
| pmichaud | excellent | ||
| jonathan | Nice. :-) | 17:10 | |
| pmichaud | not enough hacking time :-( | ||
| jonathan | It's *vacation*! | ||
| Hacking time is what YAPC::Europe and the surrounding days are for. ;-) | |||
| jhorwitz seconds that | |||
| pmichaud | heh | ||
| well, I'll be hacking then, too. | 17:11 | ||
| rurban | With the current parrot config and make state I'm thinking of applying for a small foundation grant to fix it during my weekends. I rather want to go surfing on weekends. | 17:12 | |
| but the period is over unfortunately. | |||
| ambs | rurban, yup. Will open in October again. | 17:13 | |
| rurban | In october everything is already fixed. It is even fixed now in my huge patch queue. | 17:14 | |
| ambs | ?D | ||
| :D | |||
| rurban | well, 56554-make-install-lang.patch is about 70%, and 57548-CONDITIONED_LINE_enh.patch needs 2-3 more hours. | 17:15 | |
| well, and my planned config.pir rewrite is much more work. | 17:16 | ||
| I'll apply for 10 hours � 100 euro in october then :) | |||
| dalek | r29967 | jkeenan++ | trunk: | 17:18 | |
| : Applying patch submitted by Jason Switzer in | |||
| : rt.perl.org/rt3/Ticket/Display.html?id=57522: Tell the parrot harness | |||
| : to pass a specific verbosity flag down to TAP::Harness. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29967 | |||
| r29968 | pmichaud++ | trunk: | |||
| : [rakudo]: spectest-progress.csv update: 116 files, 2003 passing, 12 failing | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29968 | |||
| jonathan | jhorwitz: OK, I have a patched Rakudo. What now? | 17:19 | |
| jhorwitz | see eg/perl6/README | ||
| jonathan | aha, yes, just found | 17:20 | |
| jonathan had looked in docs/ | |||
| jhorwitz | yeah, keeping that parrot-specific. mod_perl6 is moving out of the mod_parrot source tree soon. | ||
| jonathan | OK | 17:21 | |
| jhorwitz | it's confusing, i know. :) | ||
| now that this stuff actually works, i need to find tuits for documentation | 17:22 | ||
| jonathan | Hmm. | 17:31 | |
| Error: file cannot be read: ModPerl6/Registry.pm | |||
| jhorwitz | can you paste your mod_parrot-specific apache config and the relevant piece of the error log? | 17:32 | |
| and did you set PERL6LIB in envvars? | |||
| jonathan | Yes | ||
| jhorwitz | k | ||
| jonathan | PERL6LIB=/home/default/jnthn.net/mod_parrot/languages/perl6/lib | ||
| export PERL6LIB | |||
| jhorwitz | the fact that it gave a *nice* error is favorable | ||
| that looks good. | 17:33 | ||
| and you did a full stop and start of apache after changing it? | |||
| jonathan | yes | 17:34 | |
| jhorwitz | ok | ||
| then paste the config and logs and i'll take a quick look | |||
|
17:34
Limbic_Region joined
|
|||
| nopaste | "jonathan" at 85.216.151.226 pasted "jhorwitz - config" (17 lines) at nopaste.snit.ch/13737 | 17:35 | |
| jonathan | There entire error is: | ||
| Error: file cannot be read: ModPerl6/Registry.pm | |||
| current instr.: 'parrot;ModParrot;HLL;perl6;handler' pc 233 (EVAL_16:97) | |||
| jhorwitz | this tells me something is wrong with PERL6LIB & require | 17:36 | |
| does rakudo's io.pir look ok? | 17:37 | ||
| nopaste | "jonathan" at 85.216.151.226 pasted "jhorwitz - require" (18 lines) at nopaste.snit.ch/13738 | 17:39 | |
| jonathan | Taht's what's in require | ||
| jhorwitz | hm. | ||
| dalek | r29969 | pmichaud++ | trunk: | ||
| : [rakudo]: Refactor printf to use sprintf builtin. | |||
| : * Remove improper :method flag for printf() function. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29969 | 17:40 | ||
| jhorwitz | jonathan: can you try "use" outside of mod_parrot and see if it works with PERL6LIB? | 17:43 | |
| jonathan | Seems not to work.. | 17:49 | |
| jhorwitz | maybe the patch application went worse than we though. can you paste !find_file_in_path from guts.pir? | 17:50 | |
| *thought | |||
| ah, that has to be it | 17:52 | ||
| cuz the changes to guts.pir would've already been in trunk | |||
| if you revert that file and rebuild rakudo, i bet it starts working | |||
| jonathan | The search_path that gets passed to !find_file_in_path is an empty string | ||
| echo $PERL6LIB | 17:53 | ||
| /home/default/jnthn.net/parrot/languages/perl6/Modules/ | |||
| jhorwitz | i have to ask, just in case. did you export it? | ||
| jonathan | erm | 17:54 | |
| no | |||
| jhorwitz | :) | ||
| jonathan | AH | ||
| OK that works. | |||
| But it is being exported in my envvars, as you saw | |||
| jhorwitz | yes. hrm | ||
| jhorwitz thinks for a second... | 17:55 | ||
| jonathan | ls -l /home/default/jnthn.net/mod_parrot/languages/perl6/lib | 17:57 | |
| total 8 | |||
| drwxr-sr-x 3 jnthn default 4096 Aug 3 16:34 ModPerl6 | |||
| -rw-r--r-- 1 jnthn default 952 Aug 3 16:34 mod_perl6.pm | |||
| Is that "s" in there correct? | |||
| jhorwitz | that's fine | ||
| ok here's what's weird | |||
| oh, never mind | 17:58 | ||
| purl | Okie dokie | ||
| jonathan | jhorwitz: The curious thing to me is that the error is in: | 18:02 | |
| Error: file cannot be read: ModPerl6/Registry.pm | |||
| current instr.: 'parrot;ModParrot;HLL;perl6;handler' pc 233 (EVAL_16:97) | |||
| Not in require | |||
| jhorwitz | you can set ParrotTrace to 1 in httpd.conf and get a trace | 18:03 | |
| it'll be in the error log, and potentially very verbose.... | |||
| something tells me PERL6LIB just isn't being set. | 18:04 | ||
| cuz everything else is right... | |||
| jonathan | 12792 new P4, "Env" P4=PMCNULL | 18:07 | |
| 12795 set S2, P4["PERL6LIB"] S2="(null)" P4=Env=PMC(0x92104e8) | |||
| 12799 set_args PC214 (2), S2, P3 PC214=FixedIntegerArray=PMC(0x910c514) S2="/home/default/jnthn." P3=Object(Str)=PMC(0xb7acbd24) | |||
| Is that S2 value the trace output truncating the string? | |||
| jhorwitz | sorry, was afk for a few. | 18:11 | |
| yes, trace output will truncate | |||
| jonathan | OK | 18:12 | |
| So it's getting something from Evn. | |||
| But it later, stat returns 0. | 18:13 | ||
| jhorwitz | what are the args to !find_file_in_path? | ||
| or is that it above? | 18:14 | ||
| jonathan | Yeah | 18:15 | |
| The first is the value of the environment variable, though shown truncated | |||
| jhorwitz | how insanely odd | ||
| jonathan | And the other one is ModPerl6/Registry.pm | ||
| jhorwitz | can you paste the trace of !find_file_in_path? | 18:16 | |
| jonathan | jhorwitz: Hmm. If I su to another (non-priv'd) user and do ls of the patch to Registry.pm, I get permission defined. | 18:18 | |
| Presumably, stat gets the same. | |||
| (under user nobody) | |||
| jhorwitz | ah, maybe the perms aren't *all* world-readable | 18:19 | |
| what are the perms on /home/default/jnthn.net | |||
| ? | |||
| jonathan | drwxrws--- 15 jnthn default 4096 Aug 3 16:38 jnthn.net | 18:20 | |
| jhorwitz | that's it | 18:22 | |
| chmod o+x jnthn.net | |||
| that'll allow apache to pass through, without being able to list anything | 18:23 | ||
| jonathan | Ah, progress | 18:24 | |
| Now: | |||
| Could not find non-existent sub th | |||
| current instr.: 'parrot;ModParrot;HLL;perl6;handler' pc 233 (EVAL_16:97) | |||
| jhorwitz | what URL are you requesting? | 18:25 | |
| jonathan | www.jnthn.net/mod_parrot/perl6-bin/counter | ||
| jhorwitz | "Could not find non-existent sub th" is the full error message? | 18:26 | |
| jonathan | Could not find non-existent sub th | 18:28 | |
| current instr.: 'parrot;ModParrot;HLL;perl6;handler' pc 233 (EVAL_16:97) | |||
| jhorwitz | that's really strange | ||
|
18:29
Ron joined
|
|||
| jhorwitz | mod_parrot should print a full backtrace on those errors. something for another time.... | 18:29 | |
| jonathan: is Registry.pm world-readable? | 18:30 | ||
| jonathan | jhorwitz: Yup. | 18:33 | |
| jhorwitz | are you still tracing? | ||
| jonathan | No - had to turn it off. | ||
| jhorwitz | can you try it again with tracing on? | ||
| jonathan | Becasue output was huge | 18:34 | |
| Can try | |||
| dalek | r29970 | pmichaud++ | trunk: | ||
| : [rakudo]: Fix 0 argument to substr (RT #57434) | |||
| : * Also refactor substr into builtins/any-str.pir | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29970 | |||
| jhorwitz | want to see where the exception is first being thrown. | ||
| jonathan | trying | 18:35 | |
|
18:39
paco joined
|
|||
| jonathan | 51 find_sub_not_null P21, "th" P21=PMCNULL | 18:42 | |
| jhorwitz | weeeeeeeeeird. can you see where the "th" is coming from? | 18:43 | |
| nopaste | "jonathan" at 85.216.151.226 pasted "jhorwitz - last 100 lines of trace" (101 lines) at nopaste.snit.ch/13739 | 18:44 | |
| jonathan | Well, it's a string constant here, that's the odd thing. | ||
| jhorwitz | OH OH OH | 18:46 | |
| ModPerl6::Registry sanitizes the script path for use as a namespace | 18:47 | ||
| your path has a dot in it, and i'm not checking for that | |||
| jonathan | Oh | ||
| Which patch needs changing? | |||
| *path | 18:48 | ||
| jhorwitz | edit ModPerl/Registry.pm | ||
| *ModPerl6 | |||
| you'll see the substitution kludge in gen_module_name | |||
| jonathan | aha | 18:50 | |
| jhorwitz | progress? | 18:51 | |
| purl | progress is overrated because it means that you'll have to start the next thing soon | ||
| jhorwitz | indeed | ||
| jonathan | Added | 18:53 | |
| + @pieces = split('.', $name); | |||
| + $name = join('_', @pieces); | |||
| Doesn't seem to have made a difference... | |||
| jhorwitz | really. | ||
| jhorwitz thinks there's something really stupidly simple wrong here. | |||
| jonathan | I don't have to copy the changed file anywhere, right? | 18:54 | |
| I did restart (stop then start) Apache... | |||
| jhorwitz | right, no copying, as long as it's in your PERL6LIB | ||
| ambs | purl, forget progress | 18:55 | |
| purl | ambs: I forgot progress | ||
| jonathan | Yup. | ||
| jhorwitz | jonathan: can you just try a regular response handler? | 19:01 | |
| like the one in eg/perl6/ModPerl6/Counter.pm | 19:02 | ||
| *eg/perl6/lib/ModPerl6/Counter.pm | |||
| jhorwitz has to do some yard work. | 19:07 | ||
| afk & | |||
| jonathan | jhorwitz: sorry, was just preparing dinner.. | 19:10 | |
| jhorwitz | np. perfect timing actually. i'll be back in 30 mins or so. | 19:11 | |
|
19:13
contingencyplan joined
|
|||
| jonathan | jhorwitz: Got the Counter one working! | 19:16 | |
| jhorwitz: And with KeepAlive now too... www.jnthn.net:8080/perl6/counter | 19:45 | ||
| So looks like probably is in the Registry. | |||
| dalek | r29971 | fperrad++ | opengl4lua: | 19:46 | |
| : [Lua] OpenGL, more tests | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29971 | |||
| r29972 | fperrad++ | opengl4lua: | 19:47 | ||
| : [Lua] start binding in Lua (only GL) | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29972 | |||
| jhorwitz | jonathan++ :) | 19:49 | |
| jonathan | jhorwitz: If I can write classes and stuff inside one of these handlers (fingers crossed!), then this may let me do what I want. | 19:51 | |
| jhorwitz | what do you want to do? | ||
| jonathan | Write a simple web-frontend to the OO code I'm showing off in my YAPC::EU talk. | 19:52 | |
| jhorwitz | yeah, this should work. :) | 19:55 | |
| i still wonder what's different about your system that registry bombs out. | |||
| jonathan | I'm not sure | ||
|
19:55
ambs joined
|
|||
| jonathan | It may be the . in the path, but patching for that didn't seem to help. | 19:55 | |
| dalek | r29973 | fperrad++ | opengl4lua: | 19:57 | |
| : [Lua] move helper functions | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29973 | |||
| jonathan | jhorwitz: Thanks for help on mod_parrot - I will let you know, how I get on with it. | 20:33 | |
| jhorwitz | np, glad it works | 20:36 | |
| jonathan | rakudo: enum Purpose <BusinessTrip Vacation>; say BusinessTrip; say Vacation; | 20:49 | |
| polyglotbot | OUTPUT[01] | ||
|
20:53
tetragon joined
|
|||
| dalek | r29974 | chromatic++ | gsoc_pdd09: | 20:55 | |
| : [t] Added a file missing from a previous merge. Now the MANIFEST check doesn't | |||
| : end Configure prematurely. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29974 | |||
| jonathan | Strawberry fruit juice. It's SO good. | 20:56 | |
|
20:57
Limbic_Region joined
20:59
kid51 joined
21:19
MeGaMiC joined
22:02
teknomunk joined
|
|||
| Tene | rakudo: say 'infinoid++ # getting automatic rebuild working on feather3' | 22:09 | |
| polyglotbot | OUTPUT[infinoid++ # getting automatic rebuild working on feather3] | ||
|
22:38
Theory joined
22:59
teknomunk_ joined,
kid51 joined
|
|||
| dalek | r29975 | jkeenan++ | trunk: | 23:14 | |
| : Reposition one inline comment; add another. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29975 | |||
| r29976 | jkeenan++ | scriptconfigure: | 23:16 | ||
| : Creating scriptconfigure in svn.perl.org/parrot/branches | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29976 | |||
| r29977 | jkeenan++ | scriptconfigure-29975: | |||
| : Tagging trunk at r29975 so that the scriptconfigure can later be synched to it. | |||
| diff: www.parrotvm.org/svn/parrot/revision?rev=29977 | |||