--- 
author: 
  email: ash@firemirror.com
  keyid: bfc7465ebdca5337
  name: Ash Berlin
categories: []

comments: 
  - 
    author: 
      email: ''
      keyid: 0
      name: Anonymous Coward
    categories: []

    date: 2006-11-28T14:55:11Z
    guid: 73108AC8-7EF0-11DB-8D08-AB53DFF3EDFD
    modified: 2007-09-05T13:13:25Z
    raw: "MANIFEST file misses win32.c file, so .tar.gz misses it too.\r\nCan you repack this distro including win32.c?\r\n\r\n-- STRO@CPAN\n"
    signed: 0
    summary: "MANIFEST file misses win32.c file, so .tar.gz misses it too. …"
    tags: []

    text: "MANIFEST file misses win32.c file, so .tar.gz misses it too. Can you\nrepack this distro including win32.c?\n\n-- STRO@CPAN\n"
    title: "Re: Cache::FastMmap and Win32"
    type: text
    uri: http://perlitist.com/comments/808AE662-7121-11DB-917B-AAE798FA5C02/73108AC8-7EF0-11DB-8D08-AB53DFF3EDFD
    xhtml: <p>MANIFEST file misses win32.c file, so .tar.gz misses it too.</p> <p>Can you repack this distro including win32.c?</p> <p>-- STRO@CPAN</p>
date: 2006-11-11T01:10:18Z
guid: 808AE662-7121-11DB-917B-AAE798FA5C02
modified: 2006-11-11T01:10:18Z
raw: "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\n=pod\n\nA while back I was attempting to produce a Win32 PAR of a Catalyst app I am\ndeveloping so that the \"designer\" could take my half-arsed attempt at HTML styling and make it look all swish and polished. (Well that was the idea anyway.)\n\nThe one major problem with porting a Cat app to Win32 was Cache::FastMmap\n(which is used via Catalyst::Plugin::Session::Store::FastMmap) doesn't support\nnative Win32 (it might work under cygwin, but i was hoping for native/Vanilla\nperl support.) Well, it didn't until last week anyway, when I finally found\nthe time to write native Win32 support using a joyous mis-mash of\nC<CreateFileMapping> and C<MapViewOfFile>. Until Rob Mueller responds and\napplies my L<patch|http://rt.cpan.org/Public/Bug/Display.html?id=16501> I have a dist of it L<here|http://perlitist.com/static/Cache-FastMmap-1.15.tar.gz>.\n\nOn a related note, if anyone can tell me how to make ExtUtils::MakeMaker use\ndifferent .c/.o files depending on the platform, I would appreciate it.\n\nEdit: including different object files is easy. It just helps to remember that \nC<Makefile.PL> is just perl code (sounds silly I know - quite obvious in\nhindsight,) so just do\n\n 'OBJECT'        => 'CImpl.o mmap_cache.o ' . ($^O eq 'MSWin32' ? 'win32.o' : 'unix.o')\n\nThat was simple.\n\nI have repackaged and updated to include C<win32.c> which I missed, and removed\nevilness of including .c files. The above link is still correct\n-----BEGIN PGP SIGNATURE-----\nVersion: GnuPG v1.4.2.2 (GNU/Linux)\n\niD8DBQFFbY7mv8dGXr3KUzcRAq/wAJ0bwSB9lkLS9vn9RC1WCLlXn7QAGQCdHVk0\nyqcrdwHDlmZ5ZQAwHBJO5/M=\n=FSnF\n-----END PGP SIGNATURE-----\n"
signed: 1
summary: " A while back I was attempting to produce a …"
tags: 
  - 
    perl: 0
  - 
    win32: 0
text: "    A while back I was attempting to produce a Win32 PAR of a Catalyst\n    app I am developing so that the \"designer\" could take my half-arsed\n    attempt at HTML styling and make it look all swish and polished.\n    (Well that was the idea anyway.)\n\n    The one major problem with porting a Cat app to Win32 was\n    Cache::FastMmap (which is used via Catalyst::Plugin::Session::S-\n    tore::FastMmap) doesn't support native Win32 (it might work under\n    cygwin, but i was hoping for native/Vanilla perl support.) Well, it\n    didn't until last week anyway, when I finally found the time to\n    write native Win32 support using a joyous mis-mash of CreateFileMap-\n    ping and MapViewOfFile. Until Rob Mueller responds and applies my\n    patch I have a dist of it here.\n\n    On a related note, if anyone can tell me how to make ExtUtil-\n    s::MakeMaker use different .c/.o files depending on the platform, I\n    would appreciate it.\n\n    Edit: including different object files is easy. It just helps to re-\n    member that Makefile.PL is just perl code (sounds silly I know -\n    quite obvious in hindsight,) so just do\n\n     'OBJECT' => 'CImpl.o mmap_cache.o ' . ($^O eq 'MSWin32' ? 'win32.o'\n     : 'unix.o')\n\n    That was simple.\n\n    I have repackaged and updated to include win32.c which I missed,\n    and removed evilness of including .c files. The above link is\n    still correct\n"
title: Cache::FastMmap and Win32
type: pod
uri: http://perlitist.com/articles/cache-fastmmap-and-win32
xhtml: "<div class=\"pod\">\n<p>A while back I was attempting to produce a Win32 PAR of a Catalyst app I am\ndeveloping so that the &quot;designer&quot; could take my half-arsed attempt at HTML styling and make it look all swish and polished. (Well that was the idea anyway.)</p>\n<p>The one major problem with porting a Cat app to Win32 was Cache::FastMmap\n(which is used via Catalyst::Plugin::Session::Store::FastMmap) doesn't support\nnative Win32 (it might work under cygwin, but i was hoping for native/Vanilla\nperl support.) Well, it didn't until last week anyway, when I finally found\nthe time to write native Win32 support using a joyous mis-mash of\n<code>CreateFileMapping</code> and <code>MapViewOfFile</code>. Until Rob Mueller responds and\napplies my <a href=\"http://rt.cpan.org/Public/Bug/Display.html?id=16501\">patch</a> I have a dist of it <a href=\"http://perlitist.com/static/Cache-FastMmap-1.15.tar.gz\">here</a>.</p>\n<p>On a related note, if anyone can tell me how to make ExtUtils::MakeMaker use\ndifferent .c/.o files depending on the platform, I would appreciate it.</p>\n<p>Edit: including different object files is easy. It just helps to remember that \n<code>Makefile.PL</code> is just perl code (sounds silly I know - quite obvious in\nhindsight,) so just do</p>\n<pre>'OBJECT'        =&gt; 'CImpl.o mmap_cache.o ' . ($^O eq 'MSWin32' ? 'win32.o' : 'unix.o')\n</pre>\n<p>That was simple.</p>\n<p>I have repackaged and updated to include <code>win32.c</code> which I missed, and removed\nevilness of including .c files. The above link is still correct</p>\n\n\n</div>"
