Perl 6 - the future is here, just unevenly distributed

IRC log for #perl11, 2014-12-21

| Channels | #perl11 index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:14 bulk88 make install is system wide install
00:15 bulk88 if you dont have a public API, there is no point of offering an "install", since its not usable by others for their code
00:17 willthechill again, by "public API", you mean publicly documented?
00:17 bulk88 yes
00:17 bulk88 and also a promise not to break back compat
00:17 willthechill okay well people are going to want to be able to do `make install` then `rperl` and expect that command to run
00:17 bulk88 is "rperl<enter>" supposed to run from any dir on the system?
00:17 willthechill with user-only install, you must be in the rperl directory and run `./script/rperl`
00:18 willthechill with system-wide install, it `rperl` should run anywhere on the system
00:18 willthechill just like `perl` runs anywhere on the system
00:18 bulk88 then remove the disabling of make install
00:18 bulk88 since rperl is an app/script
00:19 willthechill okay, so if I simply remove the empty install() sub in Makefile.PL, then EU::MM will automatically enable `make install`?
00:20 bulk88 remove the install sub, that will make "make install" work again (and install into system /li)
00:20 bulk88 */lib
00:21 bulk88 yes
00:22 willthechill okay sweet, thanks!  :)
00:41 willthechill is there any equivalent to `make uninstall`?
02:08 travis-ci RPerl build passed. Will Braswell says 'CPAN Distribution, $BASE_PATH & $INCLUDE_PATH Broken'
02:08 travis-ci http://travis-ci.org/wbraswell/rperl/builds/44710743 https://github.com/wbraswell/rperl/compare/3683d8c3f862...8539c56ce49c
02:08 willthechill cool beans
02:25 willthechill bulk88: first partially-successful tarball distribution!   https://github.com/wbraswell/rperl/raw/master/backup/RPerl-20141220.tar.gz
02:26 willthechill it seems to install everything correctly using cpanm
02:26 willthechill BUT it has a problem running
02:27 willthechill in this file, you will see $BASE_PATH, $INCLUDE_PATH, and $SCRIPT_PATH:   https://github.com/wbraswell/rperl/blob/master/lib/RPerl/Config.pm
02:27 willthechill $INCLUDE_PATH is set to 'blib/lib' and works on my local machine when I run commands from inside the git directory
02:28 willthechill but once cpanm executes `make install` the $*_PATH variables now need to change
02:29 willthechill instead of 'blib/lib', now I need $INCLUDE_PATH to be '~/perl5/lib/perl5/' which is quite different
02:29 willthechill and that's just using my own local::lib single-user installation
02:30 willthechill the $INCLUDE_PATH will need to be something else even harder to guess for a system-wide install, I would imagine
02:30 willthechill so, the question is, how do I programatically access that path information at runtime?
02:31 willthechill so that it isn't hard-coded into the $*_PATH variables, but is set automatically?
02:32 willthechill I mean, obviously we must continue using the $*_PATH variables, I just need to know where to get the correct path data?
02:35 travis-ci RPerl build passed. Will Braswell says 'CPAN Distribution, First Partially-Successful Tarball'
02:35 travis-ci http://travis-ci.org/wbraswell/rperl/builds/44711567 https://github.com/wbraswell/rperl/compare/8539c56ce49c...77ddae58aaa0
03:49 bulk88 which path? $ENV{PATH}?
03:50 bulk88 you probably should use File:: for portability too, / vs \
03:50 bulk88 C:\ , etc
05:22 willthechill the "correct path data" I seek is to know what is the real current RPerl.pm which is currently loaded into memory
05:22 willthechill if I search through @INC to find 'lib/RPerl.pm' then I might find more than one entry if I have a git copy vs local::lib installed copy, for example
05:23 willthechill so I need to know which RPerl.pm is ACTUALLY being used, so I can use it's path from @INC and pass it along to the other parts of RPerl
05:23 willthechill the issue here is that RPerl needs to know this extra path data because it is looking for C++ files
05:23 willthechill and those C++ *.cpp files are packaged along with the Perl *.pm files
05:24 willthechill so if I can find out what is my valid @INC path entry for RPerl.pm, then I can pass that along to the parts looking for their C++ files
05:29 willthechill oh duh I think I can use %INC instead  :P
06:17 davido__ joined #perl11
07:39 ozzmotik joined #perl11
09:28 rurban joined #perl11
10:10 basiliscos joined #perl11
10:14 travis-ci perl11/potion#829 (assign - 537022b : Reini Urban): The build is still failing. http://travis-ci.org/perl11/potion/builds/44728303
10:15 willthechill uh-oh!
10:52 rurban that's just the structrual assignment branch. like destructuring-bind, or haskell-like match+bind
10:52 willthechill okay then
10:53 travis-ci perl11/potion#830 (assign - 9b761b4 : Reini Urban): The build is still failing. http://travis-ci.org/perl11/potion/builds/44729968
10:53 willthechill I think I almost have a properly-packaged CPAN-compatible distribution tarball
10:53 willthechill (unrelated to the work left to be done on the grammar)
10:54 willthechill running install and tests now
10:54 willthechill in a few mins I will send you a link to the tarball
12:19 willthechill rurban:  here's a link to (what I hope is) the first properly-packaged tarball!   https://github.com/wbraswell/rperl/raw/master/backup/RPerl-20141221.tar.gz
12:20 willthechill please use cpanm to install it on your system and see if it works, thanks!  :)
12:20 willthechill bulk88: same!
12:28 willthechill bulk88: also, thanks for reminding me to use File::* for the new @INC path cruft in https://github.com/wbraswell/rperl/blob/master/lib/RPerl/Config.pm
12:28 travis-ci RPerl build passed. Will Braswell says 'CPAN Distribution, First Properly-Packaged Tarball'
12:28 travis-ci http://travis-ci.org/wbraswell/rperl/builds/44733951 https://github.com/wbraswell/rperl/compare/77ddae58aaa0...3e50adc3fa9b
12:28 willthechill I'm so used to *nix only that I was hard-coding it
12:29 willthechill but now at least that part should be platform independent
12:29 willthechill also, yay that the build passed!
15:48 rurban joined #perl11
15:57 travis-ci perl11/potion#831 (sso - 4130bc5 : Reini Urban): The build failed. http://travis-ci.org/perl11/potion/builds/44745775
16:15 rurban1 joined #perl11
16:15 rurban1 left #perl11
21:06 basiliscos joined #perl11

| Channels | #perl11 index | Today | | Search | Google Search | Plain-Text | summary