malek | 2 Mar 2008 16:27

small pb

Hi,

While playing with libev's ev_stat I had some seriously weird result  
in the ev_statdata members, after a little bit of investigation it  
boils down to the fact that python (i'm using libev with python) has  
been compiled with support for large files while libev hasn't.

The small fix below allows libev to compile with large file support if  
the system supports it.

small fix:

--- configure.ac	2008-01-25 16:49:11.000000000 +0100
+++ configure.ac.new	2008-03-02 09:29:43.000000000 +0100
 <at>  <at>  -8,6 +8,8  <at>  <at> 
  AC_PROG_INSTALL
  AC_PROG_LIBTOOL

+AC_SYS_LARGEFILE
+
  if test "x$GCC" = xyes ; then
    CFLAGS="$CFLAGS -O3"
  fi

hope it helps

malek
Malek Hadj-Ali | 7 Mar 2008 11:43

Announce: pyev-0.1.0


Hi,

I'm kinda pleased to announce pyev-0.1.0, a python extension module for
libev. Downloads and install instructions are
at: http://pyev.googlecode.com.

Please consider this first release as a design proposal, I will welcome
any suggestion or help to improve it.
I'm learning libev and the Python/C API, by doing this, so expect bugs
and/or errors on how it should work.

I'm also a bit ashamed to admit that I didn't implement ev_async
watchers because I didn't understand how they work, so if someone is
willing to provide a basic working example of how you can wake up a
loop from another one with ev_async watchers (no need for something
fancy with threads and so on), I'd love to have another go at it.

I couldn't test ev_embed watchers because none of the supported
backends on my linux box are embeddable.

Todo (if there is no major design change requests):
- implement ev_async (help!)
- implement simple watchers following observer pattern, as
suggested by Tony Arcieri.
- anything you guys might think of.

hope it helps

malek
(Continue reading)

Marc Lehmann | 15 Mar 2008 00:01
Picon
Favicon

Re: small pb

On Sun, Mar 02, 2008 at 04:27:31PM +0100, malek <at> lcde.net wrote:
> The small fix below allows libev to compile with large file support if  
> the system supports it.

The problem is that it breaks the ABI for all other programs. I do not
think there is a solution for that short of recompiling the way one wants
it (otherwise this forces extra compilation flags that are non-default on
every libev user).

Thanks for bringing this to my attention, however, I will likely document
the issue or maybe even enforce lfs support in the standard package.

Or maybe I will bite the bullet and do my own struct stat with onlys the
documented members. That would simplify introduction of subsecond file
stamp support, too.

--

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg <at> goof.com
      -=====/_/_//_/\_,_/ /_/\_\
Marc Lehmann | 28 Mar 2008 07:21
Picon
Favicon

test, please ignore

This is basically just a test wether the mailinglist works again (due to
bugs in mailman it failed to do so reliably over the last weeks).

libev-3.2 is still pending with the bugfix for select on 64 bit machines.

--

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      pcg <at> goof.com
      -=====/_/_//_/\_,_/ /_/\_\

Gmane