Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13757 - cyrus-imap-admin 2.11 doesn't work
Summary: cyrus-imap-admin 2.11 doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-11 22:56 UTC by Alexander Holler
Modified: 2003-02-11 06:39 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 Alexander Holler 2003-01-11 22:56:09 UTC
Hi, 
 
I don't know why, but cyradm 2.11 doesn't work. Because I've updated gcc, perl 
and cyradm in one pass, I can't tell which update causes this. 
 
I will try an old version of -admin and will tell you. 
 
Regards, 
 
Alexander
Comment 1 Alexander Holler 2003-01-12 00:31:58 UTC
Ok, cyradm isn't broken, there just seems to be a missing flush anywhere in  
the source.  
  
E.g. if cyradm is invoked as  
  
cyradm --user cyrus --auth DIGEST-MD5 localhost  
  
the 'Password:' will be printed after the password was readed. So as a quick 
fix, just enter the password after invoking cyradm. 
 
I will have a look at the code if I can find the missing flush(). 
 
Regards, 
 
Alexander 
 
Comment 2 Alexander Holler 2003-01-12 00:50:52 UTC
I've found one missing flush, but this seems not the one thats missing for the 
above invokation. Anywhere here are the 2 lines to fix the misssing one I've 
found. Just insert them in src_unpack after the patch. 
----------- 
sed -e 's/Password: ");/Password: "); fflush(stdout);/' < cyradm/cyradm.c > 
cyradm/cyradm.c.new 
mv cyradm/cyradm.c.new cyradm/cyradm.c 
----------- 
 
Comment 3 Alexander Holler 2003-01-12 00:57:10 UTC
Forget the last patch. It's for the unsupported c-Version which isn't 
installed. ;) 
Comment 4 Alexander Holler 2003-01-12 01:24:09 UTC
Ok, the part of code where the failure is seems to be in perl/imap/IMAP.xs 
function get_password(). But there is a fflush(stdout) after the 
printf("Password: "). So I believe thats a bug in gcc or in glibc. 
 
Comment 5 Nick Hadaway 2003-01-13 02:02:30 UTC
I will be testing the latest cyrus packages this week on a new system.  I'll post here when I get some progress.
Comment 6 Nick Hadaway 2003-01-14 00:14:55 UTC
are there other auth mechanisms which also exhibit the same problem?
Comment 7 Alexander Holler 2003-01-14 08:19:07 UTC
With CRAM-MD5 it's the same, with PLAIN the phrase 'IMAP Password: ' will be 
after typing the password. 
Kinda mysterious because in perl/imap/IMAP.pm there is autoflush before the 
print. 
 
Regards, 
 
Alexander 
 
Comment 8 Nick Hadaway 2003-01-29 18:28:41 UTC
As a note, there is an updated cyrus-sasl-2.1.10-r2 in portage which has a couple of fixes.  Have you gotten any progress on this problem?  I have not been able to recreate your bug :(
Comment 9 Nick Hadaway 2003-01-30 21:10:49 UTC
cyrus-imap-admin-2.1.11-r1 is now in portage with a dependancy on dev-perl/Term-ReadLine-Perl
Please see if this helps.
Comment 10 Nick Hadaway 2003-01-31 13:18:12 UTC
oops... had a bad digest.  updated.
Comment 11 Nick Hadaway 2003-02-06 10:02:40 UTC
cyrus-*-2.1.12 is out... testing... 
Comment 12 Nick Hadaway 2003-02-07 15:27:57 UTC
It will be a little bit before I can complete cyrus-sasl-2.1.12 testing.
I have the entire 2.1.12 series in portage though.
Please test for yourself if you have the time. :)
Comment 13 Nick Hadaway 2003-02-11 01:30:46 UTC
Added another dependancy on dev-perl/TermReadKey
Comment 14 Nick Hadaway 2003-02-11 01:52:41 UTC
I am experiencing the same problem as you are... typing in the password works and the password line doesn't show up until you are in the cyradm shell.
Comment 15 Nick Hadaway 2003-02-11 02:43:04 UTC
http://asg.web.cmu.edu/archive/message.php?mailbox=org.acs.asg.project.mail.commits&msg=1668
See this post for a strange change in cyrus-land
appears they are removing cyradm?
Comment 16 Nick Hadaway 2003-02-11 06:39:11 UTC
As it appears that the future of cyrus is without the tcl interface I am marking this bug as wontfix... 

As cyradm is still usable, and properly supports different AUTH mechanisms, it is not a problem with the gentoo ebuild, and
multiple people on the cyrus mailing lists have reported the same problem on different systems with no solution.