Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131019 - bash-3.1_p16 doesn't report new mail when using the bash default mail path
Summary: bash-3.1_p16 doesn't report new mail when using the bash default mail path
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-23 13:28 UTC by Jason Bucata
Modified: 2006-05-03 20:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Bucata 2006-04-23 13:28:10 UTC
I log in via gdm and use gnome-terminal.  I'm used to having bash within the terminal report when new mail shows up.  When I upgraded to bash-3.1_p16, it stopped doing that.  I had to package.mask it and downgrade to 3.0-r12.

Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aac acl acpi alsa apm audiofile avi berkdb bitmap-fonts bonobo bzip2 bzlib cdr cli crypt cscope cups curl dri eds emboss esd exif expat fam flac foomaticdb fortran gb gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 isdnlog jack java jpeg lcms libg++ libwww mad maildir matrox mbox memlimit mikmod mmx mmx2 mng mozilla mp3 mpeg ncurses nls ofx ogg oggvorbis openal opengl oss pam pcntl pcre pdflib perl pic png posix ppds pppd prelude python quicktime readline recode reflection sdl session speex spell spl sse ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb videos vorbis xine xml xml2 xmms xorg xv xvid zlib video_cards_matrox userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 13:38:15 UTC
man bash
/MAILCHECK
/MAILPATH
Comment 2 Jason Bucata 2006-04-23 13:56:52 UTC
(In reply to comment #1)
> man bash
Done already.

> /MAILCHECK
MAILCHECK=60

> /MAILPATH
Not set.  Per man bash, should default to a "system dependent" location such as /var/mail/$USER (which works in my case).

bash-3.0-r12 works just fine with these environment settings.  bash-3.1_p16 regresses.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-23 14:03:11 UTC
(In reply to comment #2)
> > /MAILPATH
> Not set.  Per man bash, should default to a "system dependent" location such as
> /var/mail/$USER (which works in my case).

Not set - so, set it? Or, what's exactly the bug here?
Comment 4 Jason Bucata 2006-04-23 14:07:33 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > > /MAILPATH
> > Not set.  Per man bash, should default to a "system dependent" location such as
> > /var/mail/$USER (which works in my case).
> 
> Not set - so, set it? Or, what's exactly the bug here?

The bug is that 3.0 notifies me of incoming mail, 3.1 doesn't.  (3.0 works fine with the settings noted above.)

I should note that on my system, /var/mail is a symlink to /var/spool/mail.  Maybe 3.1 stopped liking the symlink that <=3.0 were fine with?

I'll try to take strace to it at some point in the not-too-distant future, but it could be a few weeks before I can devote time to debugging.
Comment 5 SpanKY gentoo-dev 2006-05-03 18:58:54 UTC
works for me:
vapier ~ # export MAIL=/var/spool/mail/root
vapier ~ # export MAILCHECK=1
vapier ~ # mkdir -p /var/spool/mail 
vapier ~ # echo asdf > /var/spool/mail/root
You have mail in /var/spool/mail/root
Comment 6 Jason Bucata 2006-05-03 20:03:58 UTC
(In reply to comment #5)
> works for me:
> vapier ~ # export MAIL=/var/spool/mail/root
> vapier ~ # export MAILCHECK=1
> vapier ~ # mkdir -p /var/spool/mail 
> vapier ~ # echo asdf > /var/spool/mail/root
> You have mail in /var/spool/mail/root

What if you set MAILCHECK but unset MAIL and MAILPATH?  According to man bash, it supplies a "system-dependent" default for the latter.  This worked on bash 3.0, but doesn't on 3.1.
Comment 7 SpanKY gentoo-dev 2006-05-03 20:30:52 UTC
this is done on purpose:

+/* DP: - don't define a default DEFAULT_MAIL_DIRECTORY, because it
+ * DP:   can cause a timeout on NFS mounts.
+ */
+#undef DEFAULT_MAIL_DIRECTORY