LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-22-2012, 06:23 AM   #1
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 105

Rep: Reputation: 8
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?
 
Old 07-23-2012, 03:47 AM   #2
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware 14.0 64-bit
Posts: 228

Rep: Reputation: 41
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
 
Old 07-23-2012, 04:27 AM   #3
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 105

Original Poster
Rep: Reputation: 8
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:

Last edited by diwljina; 07-23-2012 at 04:28 AM. Reason: typo
 
Old 07-06-2014, 04:09 PM   #4
ag33k
LQ Newbie
 
Registered: Mar 2013
Location: Portugal
Distribution: Slackware
Posts: 16

Rep: Reputation: Disabled
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?
 
Old 07-21-2014, 04:08 AM   #5
tc_
LQ Newbie
 
Registered: Sep 2010
Location: Germany
Distribution: Slackware
Posts: 28

Rep: Reputation: 30
I, too, had problems building mutt-1.5.23 with the sidebar patch applied on Slackware64-14.1.

The following modifications to mutt.Slackbuild turned out to work for me:

Code:
*** mutt/mutt.SlackBuild	2014-03-13 02:58:00.000000000 +0100
--- mutt-patched/mutt.SlackBuild	2014-07-21 10:55:46.764365243 +0200
***************
*** 21,27 ****
  
  PKGNAM=mutt
  VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
! BUILD=${BUILD:-1_slack14.1}
  
  # Automatically determine the architecture we're building on:
  if [ -z "$ARCH" ]; then
--- 21,27 ----
  
  PKGNAM=mutt
  VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
! BUILD=${BUILD:-2_slack14.1}
  
  # Automatically determine the architecture we're building on:
  if [ -z "$ARCH" ]; then
***************
*** 56,63 ****
--- 56,72 ----
  rm -rf mutt-$VERSION
  tar xvf $CWD/mutt-$VERSION.tar.?z* || exit 1
  cd mutt-$VERSION || exit 1
+ patch -p1 < $CWD/patch-$VERSION.sidebar.20140412.txt  || exit 1
  chown -R root:root .
  
+ touch configure.ac
+ touch Makefile.in
+ touch Makefile.am
+ touch config.h.in
+ touch configure
+ touch aclocal.m4
+ ./prepare
+ 
  CFLAGS="$SLKCFLAGS" \
  ./configure \
    --prefix=/usr \
Hope this helps.
 
Old 07-21-2014, 07:29 AM   #6
ag33k
LQ Newbie
 
Registered: Mar 2013
Location: Portugal
Distribution: Slackware
Posts: 16

Rep: Reputation: Disabled
Thanks!
It worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mutt does not honour mutt.rc 'use_from' entry when accepting piped input davidchall Linux - Software 0 05-28-2012 02:13 AM
Mutt - Slackware-Current tpreitzel Slackware 10 11-11-2010 08:54 PM
Mutt experts - Mutt won't use the Maildir I specify in .muttrc moistTowelette Debian 2 08-24-2009 08:04 AM
Mutt question: "How can I configure mutt for not automarking as read??" xowl Linux - Software 0 09-25-2007 09:09 AM
Netscape 6.2.1 My Sidebar reed Linux - General 5 03-20-2002 02:38 PM


All times are GMT -5. The time now is 01:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration