-   Slackware (
-   -   mutt with sidebar in current (

diwljina 07-22-2012 06:23 AM

mutt with sidebar in current

Is anyone using mutt with sidebar? I've never had a problem patching it, but on current it just don't work.

The way I do it:

1. I copy sidebar patch next to mutt.gpgme.diff.gz
2. edit mutt.SlackBuild and add

cat $CWD/sidebar | patch -p1 --verbose || exit 1


zcat $CWD/mutt.gpgme.diff.gz | patch -p1 --verbose || exit 1
but all I get is:


curs_main.o: In function `mutt_index_menu':
curs_main.c:(.text+0x9e6): undefined reference to `draw_sidebar'
curs_main.c:(.text+0xcf1): undefined reference to `set_buffystats'
curs_main.c:(.text+0xf81): undefined reference to `set_curbuffy'
curs_main.c:(.text+0x2619): undefined reference to `scroll_sidebar'
flags.o: In function `_mutt_set_flag':
flags.c:(.text+0xcb): undefined reference to `draw_sidebar'
menu.o: In function `menu_redraw_index':
menu.c:(.text+0x95a): undefined reference to `draw_sidebar'
pager.o: In function `mutt_pager':
pager.c:(.text+0x3629): undefined reference to `draw_sidebar'
pager.c:(.text+0x3dc6): undefined reference to `draw_sidebar'
pager.c:(.text+0x498d): undefined reference to `scroll_sidebar'
collect2: error: ld returned 1 exit status
make[2]: *** [mutt] Error 1
make[2]: Leaving directory `/tmp/mutt-1.5.21'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/mutt-1.5.21'
make: *** [all] Error 2

Any ideas?

jostber 07-23-2012 03:47 AM

What is the output of "mutt -version"? Also see this post to the mutt mailing list:

diwljina 07-23-2012 04:27 AM

This is output of mutt -version:


Mutt 1.5.21 (2010-09-15)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 3.2.23 (x86_64)
ncurses: ncurses 5.9.20110404 (compiled with 5.9)
libidn: 1.25 (compiled with 1.25)
hcache backend: GDBM version 1.8.3. 10/15/2002 (built Sep 29 2008 00:46:22)
Compile options:

I think that is what I already have. Do I have to patch that with How do I do that? If I include it in mutt.Slackbuld the way I did it before I get:

Hmm...  Looks like a unified diff to me...
The text leading up to this was:
|--- mutt-1.5.20/init.c.orig    2009-07-21 17:54:59 +0200
|+++ mutt-1.5.20/init.c 2009-07-21 17:59:47 +0200
Patching file init.c using Plan A...
Hunk #1 succeeded at 38 (offset 1 line).
Hunk #2 succeeded at 51 with fuzz 2 (offset 2 lines).
Hunk #3 succeeded at 3146 (offset -119 lines).
Hmm...  Ignoring the trailing garbage.
Hmm...  Looks like a unified diff to me...
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|+++        2010-11-04 13:51:48.432426391 +0000
File to patch:

All times are GMT -5. The time now is 10:02 AM.