Hi all, I use stunnel from with Vm, an emacs mail reader. It used to work in the "olden days" and stopped working at some point, e.g. http://robert-adesam.blogspot.com/2011/06/issue-with-vm-and-imap-over-sslstunnel.html I just pulled an older working version from my backups and stumbled forward. I'm building up a new machine and am using homebrew to populate my /usr/local. Homebrew made it easy enough to binary search through the stunnel archived tarballs and discover that it stopped working (for my use case...) at version 4.30. That was enough to give the author a clue and he has fixed the problem. He's release version 4.52 which "works for me". It's easy enough to use brew edit to fix the url and md5's, but for the life of me I can't get the patch to behave. I've tried updating the url and md5 and then using brew install -i --git stunnel as described on the wiki to recreate the patch for stunnel.cnf. I can't make the resulting patch work though and am out of ideas. One possibility is that the stunnel.cnf file seems to have DOS line endings. That might be part of the problem. Otherwise I'm clueless. I'd like to submit an update (and would like to become a better brewer) but seem to be stuck. Anyone have any suggestions? Thanks! g.
George Hartzell writes: > [...] > It's easy enough to use brew edit to fix the url and md5's, but for > the life of me I can't get the patch to behave. > > I've tried updating the url and md5 and then using > > brew install -i --git stunnel > > as described on the wiki to recreate the patch for stunnel.cnf. I > can't make the resulting patch work though and am out of ideas. > > One possibility is that the stunnel.cnf file seems to have DOS line > endings. That might be part of the problem. Otherwise I'm clueless. > [...] Someone on the list asked me for the error. Here's what I see: ==> Downloading ftp://ftp.stunnel.org/stunnel/archive/4.x/stunnel-4.52.tar.gz File already downloaded in /Users/hartzell/Library/Caches/Homebrew ==> Patching patching file tools/stunnel.cnf Hunk #1 FAILED at 8. 1 out of 1 hunk FAILED -- saving rejects to file tools/stunnel.cnf.rej Error: Failure while executing: /usr/bin/patch -f -p1 -i 001-homebrew.diff (alto)[09:31:20]local>>brew install -i stunnel I now believe that the issue is that the stunnel.cnf file uses DOS style line endings. I unpacked the original stunnel tarball and tried to apply my patch and get the same failure as above. Then I opened the file in emacs and converted it to unix line endings (http://www.sowbug.org/mt/2004/07/emacs-dos-line-endings.html) and my patch applies cleanly. The index and line numbers in my patch are slightly different, but otherwise my patch seems to be identical to what's in the __END__ section of the current (4.50) stunnel forumla. Any suggestions? g.
The patch is a one liner, so probably just make a new patch. Do this with brew install --interactive --git > > Hi all, > > I use stunnel from with Vm, an emacs mail reader. It used to work in > the "olden days" and stopped working at some point, e.g. > > http://robert-adesam.blogspot.com/2011/06/issue-with-vm-and-imap-over-sslstunnel.html > > I just pulled an older working version from my backups and stumbled > forward. > > I'm building up a new machine and am using homebrew to populate my > /usr/local. Homebrew made it easy enough to binary search through the > stunnel archived tarballs and discover that it stopped working (for my > use case...) at version 4.30. That was enough to give the author a > clue and he has fixed the problem. He's release version 4.52 which > "works for me". > > It's easy enough to use brew edit to fix the url and md5's, but for > the life of me I can't get the patch to behave. > > I've tried updating the url and md5 and then using > > brew install -i --git stunnel > > as described on the wiki to recreate the patch for stunnel.cnf. I > can't make the resulting patch work though and am out of ideas. > > One possibility is that the stunnel.cnf file seems to have DOS line > endings. That might be part of the problem. Otherwise I'm clueless. > > I'd like to submit an update (and would like to become a better > brewer) but seem to be stuck. Anyone have any suggestions? > > Thanks! > > g.
Max Howell writes: > The patch is a one liner, so probably just make a new patch. > > Do this with brew install --interactive --git I did that, as described on the wiki. Did the diff, piped into pbcopy. Cut and pasted it into the formula. No joy. I can't imagine what I'm not doing right, but I'm sure it'll be embarrassing when it comes to light.... g. > > > > > Hi all, > > > > I use stunnel from with Vm, an emacs mail reader. It used to work in > > the "olden days" and stopped working at some point, e.g. > > > > http://robert-adesam.blogspot.com/2011/06/issue-with-vm-and-imap-over-sslstunnel.html > > > > I just pulled an older working version from my backups and stumbled > > forward. > > > > I'm building up a new machine and am using homebrew to populate my > > /usr/local. Homebrew made it easy enough to binary search through the > > stunnel archived tarballs and discover that it stopped working (for my > > use case...) at version 4.30. That was enough to give the author a > > clue and he has fixed the problem. He's release version 4.52 which > > "works for me". > > > > It's easy enough to use brew edit to fix the url and md5's, but for > > the life of me I can't get the patch to behave. > > > > I've tried updating the url and md5 and then using > > > > brew install -i --git stunnel > > > > as described on the wiki to recreate the patch for stunnel.cnf. I > > can't make the resulting patch work though and am out of ideas. > > > > One possibility is that the stunnel.cnf file seems to have DOS line > > endings. That might be part of the problem. Otherwise I'm clueless. > > > > I'd like to submit an update (and would like to become a better > > brewer) but seem to be stuck. Anyone have any suggestions? > > > > Thanks! > > > > g.
The error output may help, if you still have it. >> The patch is a one liner, so probably just make a new patch. >> >> Do this with brew install --interactive --git > > I did that, as described on the wiki. Did the diff, piped into > pbcopy. Cut and pasted it into the formula. No joy. > > I can't imagine what I'm not doing right, but I'm sure it'll be > embarrassing when it comes to light.... > > g.