Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 158501 - net-mail/mailutils-1.2 version bump
Summary: net-mail/mailutils-1.2 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major with 1 vote (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 164520
  Show dependency tree
 
Reported: 2006-12-18 14:35 UTC by Timothy Stotts
Modified: 2008-03-20 14:18 UTC (History)
9 users (show)

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


Attachments
mailutils-1.1.ebuild (Version 1) (mailutils-1.1.ebuild,2.59 KB, text/plain)
2007-01-30 17:02 UTC, Martin von Gagern
Details
mailutils-1.2.ebuild (mailutils-1.2.ebuild,2.69 KB, text/plain)
2007-09-08 16:31 UTC, Algardas Pelakauskas
Details
patch for mailutils-1.2 mail.local/Makefile (mailutils-1.2-mail.local-Makefile.patch,790 bytes, patch)
2007-09-08 16:41 UTC, Algardas Pelakauskas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Stotts 2006-12-18 14:35:00 UTC
Hi. It may surprise you to know, but GNU Mailutils (MH alternative) is no longer at version 0.6 from year 2004. Not many months ago GNU release versions 1.0 and 1.1. Please consider adding to portage, even if you leave masked.

If you add it, please keyword ~x86 and ~ppc (even if masked). I use both archs. Thanks.
Comment 1 Martin von Gagern 2007-01-30 17:02:50 UTC
Created attachment 108639 [details]
mailutils-1.1.ebuild (Version 1)

This is my private solution for bug 164520: write ebuild for recent version.

mysql and postgres can now be configured independently as far as I can tell, making the workaround to resolve bug 58162 obsolete.

The summary at the end of configure lists sendmail support together with SMTP in a section called mailers. This makes me think this is support for using sendmail, not an option for providing a sendmail binary. Therefore it should have nothing to do with mailwrapper, but is instead a feature almost anybody would want I guess. Enabling statically, hoping this agrees with bug 44249 as well.

The missing mail.rc file from bug 37302 is probably still an issue. There is a file testsuite/etc/mail.rc in the tarball, but I'm not sure if this is a better solution.

I added many configuration options, most of them controlled by USE flags, to make builds better reproducible and to minimize the amount of guesswork. Of course this makes the thing more flexible as well. Right now I count 16 flags in IUSE, I haven't tested all 65536 combinations of those, but that's what ~arch is for, or some dev system with sensible chroots and binpkgs.

I'm not sure about mh-utils. They seem to have been statically enabled as a consequence of bug 22864, but perhaps a USE flag for them as well would be more appropriate, as they uglify directory layout. I don't even know what they are about, so I would be interested in comments here.

I'm also not sure about SASL support, whether --without-gsasl would enable another SASL implementation or disable SASL support altogether. Looking at some pieces of source I guess it would be the latter, so I associated gsasl support with the sasl USE flag. But I'm not sure about this.

I haven't tested any of the radius alternatives; I could do so before the thing hits the tree, but in case someone with binpackages at hand and a minimal chroot set up can do these faster, I would be glad.

So far everything looks good, compiles under various combinations of USE flags, and even works with latest guile, which was my initial problem.

I have disabled all patches, but many of them seem to be for runtime problems, not compiletime issues, some hunks at least still apply, and some migt even be for security reasons. They should be reviewed before the ebuild hits the portage tree, I guess. Unfortunately there are patches where neither the ChangeLog not the patch header gives a clue what this is about. The people who wrote them are best suited to determine whether they are still needed.
Comment 2 James Rowe 2007-04-07 05:54:00 UTC
> ------- Comment #1 From Martin von Gagern 2007-01-30 17:02:50 0000
> The summary at the end of configure lists sendmail support together with SMTP
> in a section called mailers. This makes me think this is support for using
> sendmail, not an option for providing a sendmail binary. Therefore it should
> have nothing to do with mailwrapper, but is instead a feature almost anybody
> would want I guess. Enabling statically, hoping this agrees with bug 44249 as
> well.

  Sendmail integration aside, I think mailutils should be providing
virtual/mta and already be using mailwrapper.  The mail.remote binary
provides similar functionality to mail-mta/nbsmtp or mail-mta/msmtp and
no doubt many other virtual/mta providers, and it is sendmail command
line compatible.

> I'm not sure about mh-utils. They seem to have been statically enabled as a
> consequence of bug 22864, but perhaps a USE flag for them as well would be more
> appropriate, as they uglify directory layout. I don't even know what they are
> about, so I would be interested in comments here.

  MH is a fantastically integrated way to handle your mail from your
shell session, and a cool way to script mail handling(if you're willing
to cope with the MH format locking issues).  Personally, I'm a heavy MH
user although up until recently with mail-client/nmh.  (If you want to
learn about them there is a free book[1].)  Back to the point...

  As for the directory layout while I can't disagree that it feels ugly,
it is very common and a variant is specifically defined in the FHS.  See
"4.5 /usr/bin : Most user commands"[2].

Thanks,

James

1. http://www.ics.uci.edu/~mh/book/
2. http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS11

Comment 3 Timothy Stotts 2007-07-24 05:42:13 UTC
Mailutils 1.2 is out.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-09-05 18:57:10 UTC
Well, like - ping? This is needed for guile-1.8
Comment 5 Algardas Pelakauskas 2007-09-08 16:29:39 UTC
I'm attaching an updated ebuild for mailutis-1.2.

I played around with mailutils, and decided not to use them, so I am posting this ebuild as-is, with very little testing from my side.

I have disabled the virtual/mta dependency and added inherit mailer for
mailwrapper (/usr/libexec/mail.remote acts as pseudo-sendmail).
The default option for mail.remote is to use sendmail as mailer, so if mailutils is to provide virtual/mta, this ebuild should create or notify the user of /etc/mailutils.rc file, in which one can set
  mail.remote --mailer smtp://smtp.server.com:25

Added some more use flags (debug, maildir and mh).

I do not use MH mailboxes anywhere in my system, so I added a use flag, which
disables mh and mh-utils.

Since there are pop3, imap4d and comsatd daemons in the package, which can run
standalone and through inetd, I think an xinetd use flag would be appropriate.
One just needs to write xinetd.conf entries. Entries for inetd.conf are
already provided in the documentation:
    pop3  stream tcp nowait  root  /usr/local/sbin/pop3d pop3d
    imap4  stream tcp nowait  root  /usr/local/sbin/imap4d imap4d
    comsat dgram  udp wait  root  /usr/sbin/comsatd comsatd -c /etc/comsat.conf

The configure script lets one disable pop, imap, but these do not disable the daemons, only the functionality needed to open pop, imap mailboxes.

Added one patch
+ mailutils-1.2-mail.local-Makefile.patch
as per http://lists.gnu.org/archive/html/bug-mailutils/2007-07/msg00000.html

Regarding all the patches Martin von Gagern commented out since 0.6, I looked at
it and none of them seem to be needed. Investigation details below.

- mailutils-0.6-mh-Makefile.in.patch
Not sure about this one, current Makefile.in seems entirelly different, 
thus patch removed.

- mailutils-getline.diff
mailbox/getline.h file entirelly different, the changed line 
looks like with patch applied

- mailutils-0.6-imap4d-format-string.patch
2005-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
    * imap4d/search.c (imap4d_search): Fix potential vulnerability:
        pass format string as a third argument to util_finish

- mailutils-0.6-imap4d-gcc4.0-ftbfs.patch
2005-05-20  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
    * imap4d/fetch.c (fetch_getcommand): Changed proto to make gcc 4.0
        happy. 

- mailutils-IDEF095[4-7].patch
2005-05-13  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
	* imap4d/util.c (util_finish): Fix potential vulnerability (IDEF0954).
	  (util_msgset): Do not allow values greater than the maximum id
	  number (either message number or UID) in the mailbox. Fixes (IDEF0955).
    * imap4d/fetch.c <...>
      (fetch_io): Check for integer overflow (IDEF0956).
    * mailbox/header.c (header_get_field_name): Fix buffer overflow (IDEF0957).

- mailutils-SQLinjection.patch
2005-05-19  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
    * auth/sql.c (sql_escape_string): Escape backslashes.
Comment 6 Algardas Pelakauskas 2007-09-08 16:31:22 UTC
Created attachment 130351 [details]
mailutils-1.2.ebuild

with mailwrapper, but untested
Comment 7 Algardas Pelakauskas 2007-09-08 16:41:26 UTC
Created attachment 130352 [details, diff]
patch for mailutils-1.2 mail.local/Makefile

+ mailutils-1.2-mail.local-Makefile.patch
as per http://lists.gnu.org/archive/html/bug-mailutils/2007-07/msg00000.html
Comment 8 Andre Hinrichs 2007-10-23 21:04:32 UTC
Is there any progress on this bug?

Since guile-1.8.2 has been marked stable for at least alpha, ppc64, sparc and x86 this has become a major bug.

It would be good to at least have a unstable version in the official CVS.

I agree with Jakub that enough time has passed by to fix this issue. See bug #163921 comment #7
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-03-03 15:50:24 UTC
I have added mailutils-1.2 to the tree, by way of a slightly revised mailutils-0.6-r3.ebuild. Please try it out and comment.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2008-03-20 14:18:35 UTC
*mailutils-1.2 (03 Mar 2008)

  03 Mar 2008; Jeroen Roovers <jer@gentoo.org> mailutils-0.6-r3.ebuild,
  +mailutils-1.2.ebuild:
  Version bump with removed mailwrapper magic (bug #158501). Marked ~hppa.

Closing, as apparently noone has any comments. :)