Perl 6 - the future is here, just unevenly distributed

IRC log for #native, 2016-04-05

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

All times shown according to UTC.

Time Nick Message
01:48 ilbot2 joined #native
01:48 Topic for #native is now Discussing native interfaces: Alien, Alien::Base, FFI, NativeCall | http://irclog.perlgeek.de/native/today
15:00 genio joined #native
15:02 genio https://gist.github.com/genio/70ca8dbf97013ea207802d1afa17449b
15:03 genio Any ideas how to resolve that?  It builds fine on my Mac, yet when testing on RHEL this happens.
15:04 genio https://github.com/genio/alien-ghttp
15:30 plicease I would say the autoconf for that needs to be updated.
15:34 plicease one of the linux vendors may have patches that will fix that.
15:42 plicease but I am not seeing a package for modern Debian or RedHat
15:47 genio config.guess is just hideous
15:47 plicease autoconf in general is hideous
15:47 plicease so i can get it to build by lying about the CPU:
15:48 plicease ./configure i686-linux-gnu
15:48 plicease on my 64bit linux
15:49 plicease but the actual files built seem okay.
15:49 plicease pwd
15:50 genio :/
15:55 plicease https://gist.github.com/plicease/3910e05f2a599587de9206115c69705e
15:55 plicease You can use this with Alien::patch
15:57 plicease example here
15:57 genio plicease++  # thanks
15:57 plicease https://metacpan.org/source/PLICEASE/Alien-Hunspell-0.07/Build.PL#L17
15:57 plicease np.  glad I could help.
18:31 genio Really odd.  If I patch from a patch file in a relative path, failure.
18:31 genio patch < foo.patch   YAY      patch < ../../foo.patch    BOO
18:42 genio diff --unified=25 seems to have things working.
18:43 genio Thanks again!  it now appears to function as expected in RHEL and OS X
18:52 plicease genio: this is because the commands actually run in _alien/libghttp-1.0.9/ or something like that.
18:53 plicease but the patch is in your dist's root.
18:53 plicease or maybe I misunderstood what you are saying.
18:54 plicease patch -p1 ?
18:54 genio plicease: Sorry.  I'm being confusing.  https://metacpan.org/source/CAPOEIRAB/Alien-GHTTP-0.001/Build.PL#L14   appears to be functioning
18:54 plicease ah okay that works too
18:54 plicease I think it should also work with %{patch} -p1
18:55 plicease I would also bump this up to 0.06:
18:55 plicease https://metacpan.org/source/CAPOEIRAB/Alien-GHTTP-0.001/Build.PL#L11
18:55 genio It probably does and it's one of those cases where I was trying so many things that I confused the hell out of myself
18:55 plicease I think that is when Alien::patch started providing a the helper.
18:58 genio Looks like the bin_requires for the Dist::Zilla plugin is doing that.  My actual requirements in the META.json should be requesting 0.08 right now.
18:59 plicease The downside to this is that you don't actually need Alien::patch if the system provides libghttp
18:59 plicease not that it seems very common now a days.
19:00 plicease bin_requires adds Alien::patch as a dynamic prereq iff you are doing a build from source
19:01 genio I doubt any system these days would have libghttp.  it's been deprecated for ~7 years.  libsoup I think is what they chose in favor of that.
19:01 plicease you can specify "bin_requires = Alien::patch = 0.08"
19:01 plicease i see your point :)
19:01 plicease but for next time maybe.
19:01 genio ah!  I didn't know I could do that!
19:01 plicease (that was in dist.ini if it wasn't obvious)
19:01 genio you're full of good help

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