Bug 135452 - mail/getmail prints a deprecation warning after python upgrade
Summary: mail/getmail prints a deprecation warning after python upgrade
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-10 21:50 UTC by Michal Petrucha
Modified: 2009-06-12 13:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Petrucha 2009-06-10 21:50:03 UTC
After upgrading Python to 2.6, mail/getmail prints the following warning
on each invocation:
/usr/local/lib/python2.6/site-packages/getmailcore/baseclasses.py:27: DeprecationWarning: the sets module is deprecated
  import sets
This is especially annoying when getmail is run periodically by cron.

Fix: 

Temporary workaround is to redirect getmail stdout and stderr to
/dev/null thus losing any other messages which might be of greater
importance
According to upstream changelog
http://pyropus.ca/software/getmail/CHANGELOG starting from version 4.9.0
the problem is fixed, which means upgrading the port would resolve the
problem.
How-To-Repeat: portupgrade -o lang/python26 lang/python25
and then invoke getmail
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-10 21:50:14 UTC
Maintainer of mail/getmail,

Please note that PR ports/135452 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/135452

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-10 21:50:16 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Wesley Shields freebsd_committer freebsd_triage 2009-06-10 21:59:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

I'll take it.
Comment 4 Wesley Shields freebsd_committer freebsd_triage 2009-06-12 13:40:33 UTC
State Changed
From-To: feedback->closed

New version should fix this problem.