pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-users] Re: Preview "corrupted"


From: roderick
Subject: [Pan-users] Re: Preview "corrupted"
Date: Wed, 14 Nov 2007 10:30:05 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

walt <address@hidden> writes:

> 
> On Wed, 14 Nov 2007 04:57:40 +0000, roderick wrote:
> 
> > walt <address@hidden> writes:
> >> ...
> >> # patch -p0 < /tmp/load-pixbuf-in-1024-byte-chunks.diff patching file
> >> pan-0.132/pan/gui/body-pane.cc  [Of course, you need to substitute the
> >> actual /path/name of your downloaded patch file.]
> 
> > ...
> > Regarding the (above) 'patch' step...I take it this...
> > 
> > http://bugzilla.gnome.org/attachment.cgi?id=96917&action=view
> > 
> > ...Is the actual .diff patching file, meaning every line as is? 
> 
> Yes, exactly.  Even including news/email headers, signatures and other
> extraneous garbage.  The man page for 'patch' is required reading :o)
> 
> > Never
> > done any 'compiling' myself on my Sabayonlinux box but is willing to
> > give it a try once I understand what I am about to do. I cannot see the
> > distro preventing the user from doing his own ebuild.
> 
> Great!  I have zero knowledge of Sabayonlinux, except that sabayon is the
> French spelling for the Italian dessert zabaglione (which I've enjoyed
> often enough to know that it's a guaranteed heart-attack-on-a-plate ;o)
> 

After I did emerge unmerge pan, I now have:

xuan work # patch -p0 < /home/roderick/load-pixbuf-in-1024-byte-chunks.diff
patching file pan-0.132/pan/gui/body-pane.cc
patch: **** malformed patch at line 13:                      +      {

Line 13 is:

11                      +      size_t left = buffer->len;
12                      +      while (left > 0)
13                      +      {
14                      +        size_t len = left < 1024 ? left : 1024; /*
KLUDGE magic number */
15                      +        gdk_pixbuf_loader_write (l,
((guchar*)buffer->data) + c, len, &err);

I do not think that it matter to unmerge since the -C option will unmerge
anyway, correct? Then I poked around in:

/var/tmp/portage/net-nntp/pan-0.132/work/pan-0.132/pan/gui/body-pane.cc

...And found this:

    if (wrapper)
    {
      GMimeStream * mem_stream (g_mime_stream_mem_new ());
      g_mime_data_wrapper_write_to_stream (wrapper, mem_stream);
      GByteArray * buffer (GMIME_STREAM_MEM(mem_stream)->buffer);
      if (buffer->len)
          gdk_pixbuf_loader_write (l, (guchar*)buffer->data, buffer->len, &err);
      g_object_unref (mem_stream);
      g_object_unref (wrapper);
    }

What am I missing? This is a new and very interesting learning experience for
me. Thnx again for your patience.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]