First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 80073
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Net-Mail Packages <net-mail@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Marien Zwart (RETIRED) <marienz@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
getmail-4.2.5-python-2.4.patch patch to getmail to avoid DeprecationWarning patch Marien Zwart (RETIRED) 2005-01-30 07:50 0000 3.05 KB Details | Diff
ebuild.patch patch to getmail-4.2.5.ebuild to apply the previous patch patch Marien Zwart (RETIRED) 2005-01-30 07:52 0000 705 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 80073 depends on: Show dependency tree
Show dependency graph
Bug 80073 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-01-30 07:49 0000
Whenever getmail actually receives mail it prints a deprecation warning when
using python 2.4 because of changes to python's email package. According to
http://marc.theaimsgroup.com/?l=getmail&m=109995431002051&w=2 there is no
"nice" way to avoid this, so I patched getmail to behave differently when
python 2.4 or newer is used. This is imho ugly, but it should be safe and
remove the deprecation message.

I've only patched getmail-4.2.5 (x86 stable) but the same thing applies to
4.3.1 with some line numbers changed.

Reproducible: Always
Steps to Reproduce:
1. install python-2.4 (currently in package.mask)
2. emerge getmail
3. use it to fetch mail

Actual Results:  
received the following warning:

/usr/lib/python2.4/email/__init__.py:43: DeprecationWarning: 'strict' argument
is deprecated (and ignored)
  return Parser(*args, **kws).parsestr(s)


Expected Results:  
fetched mail without complaining

Portage 2.0.51-r15 (selinux/2004.1/x86, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-hardened-r3-m1 i686)
=================================================================
System uname: 2.6.10-hardened-r3-m1 i686 
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.4 [2.4 (#1, Jan 26 2005, 15:18:28)]
dev-lang/python:     2.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks loadpolicy sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.easynet.nl/mirror/gentoo/ http://www.gigaload.org/gentoo.org/"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="crypt hardened jabber maildir minimal msn ncurses no-old-linux nopop3d
nptl
nptlonly pam pic pie python readline selinux sftplogging ssl unicode
userlocales
x86 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS

------- Comment #1 From Marien Zwart (RETIRED) 2005-01-30 07:50:14 0000 -------
Created an attachment (id=49937) [edit]
patch to getmail to avoid DeprecationWarning

------- Comment #2 From Marien Zwart (RETIRED) 2005-01-30 07:52:12 0000 -------
Created an attachment (id=49939) [edit]
patch to getmail-4.2.5.ebuild to apply the previous patch

------- Comment #3 From Andrej Kacian (RETIRED) 2005-02-09 00:26:27 0000 -------
The patch now gets applied to 4.2.5-r1, 4.3.1-r1 and new 4.3.2. All are
unstable, but I'll mark first two stable ASAP. Thanks for the patch!

First Last Prev Next    No search results available      Search page      Enter new bug