LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   mutt with sidebar in current (http://www.linuxquestions.org/questions/slackware-14/mutt-with-sidebar-in-current-4175418069/)

diwljina 07-22-2012 06:23 AM

mutt with sidebar in current
 
Hi!

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
Code:

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

Code:

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

Code:

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:

http://www.mail-archive.com/mutt-use.../msg42531.html

diwljina 07-23-2012 04:27 AM

This is output of mutt -version:

Code:

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:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE  +USE_FCNTL  -USE_FLOCK 
+USE_POP  +USE_IMAP  +USE_SMTP 
+USE_SSL_OPENSSL  -USE_SSL_GNUTLS  +USE_SASL  -USE_GSS  +HAVE_GETADDRINFO 
+HAVE_REGCOMP  -USE_GNU_REGEX 
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET 
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM 
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  +CRYPT_BACKEND_GPGME 
-EXACT_ADDRESS  -SUN_ATTACHMENT 
+ENABLE_NLS  +LOCALES_HACK  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR 
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE 
ISPELL="/usr/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc/mutt"
EXECSHELL="/bin/sh"
-MIXMASTER

I think that http://wahoo.no-ip.org/~pat/patch-1....-aa6aa.txt.bz2 is what I already have. Do I have to patch that with http://wahoo.no-ip.org/~pat/mutt-1.5...debar-fix.dif? How do I do that? If I include it in mutt.Slackbuld the way I did it before I get:
Code:

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.
done
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:
--------------------------
|--- Makefile.am
|+++ Makefile.am        2010-11-04 13:51:48.432426391 +0000
--------------------------
File to patch:


ag33k 07-06-2014 04:09 PM

I am also trying to apply the sidebar patch to mutt

I am on slackware 64 14.1

My mutt -v is

Code:

mutt -v
Mutt 1.5.23 (2014-03-12)
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.10.17 (x86_64)
ncurses: ncurses 5.9.20130504 (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)

Compiler:
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/4.8.2/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/4.8.2/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-4.8.2/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib64/python2.7/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib64/jvm/jre --with-jvm-root-dir=/usr/lib64/jvm --with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-directory=amd64 --with-antlr-jar=/tmp/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 4.8.2 (GCC)

Configure options: '--prefix=/usr' '--mandir=/usr/man' '--docdir=/usr/doc/mutt-1.5.23' '--with-docdir=/usr/doc/mutt-1.5.23' '--sysconfdir=/etc/mutt' '--with-mailpath=/var/spool/mail' '--enable-pop' '--enable-imap' '--with-ssl' '--with-sasl' '--enable-smtp' '--enable-gpgme' '--enable-hcache' '--build=x86_64-slackware-linux' 'build_alias=x86_64-slackware-linux' 'CFLAGS=-O2 -fPIC'

Compilation CFLAGS: -Wall -pedantic -Wno-long-long -O2 -fPIC

Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE  +USE_FCNTL  -USE_FLOCK 
+USE_POP  +USE_IMAP  +USE_SMTP 
+USE_SSL_OPENSSL  -USE_SSL_GNUTLS  +USE_SASL  -USE_GSS  +HAVE_GETADDRINFO 
+HAVE_REGCOMP  -USE_GNU_REGEX 
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET 
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM 
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  +CRYPT_BACKEND_GPGME 
-EXACT_ADDRESS  -SUN_ATTACHMENT 
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR 
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE 
ISPELL="/usr/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/spool/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc/mutt"
EXECSHELL="/bin/sh"
-MIXMASTER

I get the patch at

http://www.lunar-linux.org/mutt-sidebar/

and following the instructions

Code:

$ wget -q -O - ftp://ftp.mutt.org/mutt/devel/mutt-1.5.23.tar.gz | tar xvfz -
$ cd ./mutt-1.5.23
$ wget -q -O - http://lunar-linux.org/~tchan/mutt/patch-1.5.23.sidebar.20140412.txt | patch -p1
$ ./configure
$ make
$ ./mutt
$ make install (optional, you need to be root for this)

I get this on make command

Code:

CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I m4
/bin/sh: aclocal-1.13: command not found
make: *** [aclocal.m4] Error 127

I tested a patch for 1.5.21 version on mutt 1.5.21 and it worked fine.
I think it must be a problem with the patch itself.

Anyone is using sidebar on mutt?


All times are GMT -5. The time now is 12:26 PM.