Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-25 Thread Oliver Kiddle
Ken Hornstein wrote:
 Oliver, what does SHELL get set to in the nmh Makefile?  It might be as

It gets set to /bin/bash.
I suppose you have to consider that autoconf is a FSF thing so it
will try to find GNU stuff first, much as it will default to GCC over
Solaris Studio, gawk over nawk etc.

The stuff in /usr/xpg4/bin would be POSIX compliant but frankly, it is
easier to adjust scripts to work with Solaris' /bin/sh (as David has now
done) than to have it dig around trying to find the POSIX stuff.

Oliver

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread norm
Ken Hornstein k...@pobox.com writes:

There are a large number of changes in this release; the release notes
(see the NEWS file in the distribution)

I got tired just reading the NEW FEATURES section.

Norman Shapiro

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread norm
Ken Hornstein k...@pobox.com writes:
Greetings all,

I am pleased to announce the first release candidate (RC1) of nmh 1.5 is now
available.  You can find it for download here:

INSTLLL says:

  For routine installation on popular platforms, the shell script in
  docs/contrib/build_nmh can be used to guide you through configuration.
  It will then build and optionally (with -i) install in the configured
  location.

 I can't find a file named  build_nmh anywhwere in the distribution.  
./configure; make; make install
 seemed to work find.

Norman Shapiro

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread Ken Hornstein
  For routine installation on popular platforms, the shell script in
  docs/contrib/build_nmh can be used to guide you through configuration.
  It will then build and optionally (with -i) install in the configured
  location.

 I can't find a file named  build_nmh anywhwere in the distribution.  
 ./configure; make; make install
 seemed to work find.

Whoops, that script got sneaked in there but the Makefile.am wasn't
updated to include that in the distribution.  I'll fix that for the
next release candidate.

--Ken

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread Ken Hornstein
I am pleased to announce the first release candidate (RC1) of nmh 1.5 is now
available.

Are requests for new feature, sans code. in order yet?

Sure, go for it.  Obviously no new features will be in 1.5, but I can't
think of a reason to not talk about what comes next.

--Ken

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread David Levine
Oliver wrote:

 I tried compiling and installing on Solaris. It all builds fine but I
 get the following message repeated a number of times:
 ./man/mh-chart-gen.sh: !: not found

 ! is not available in pure Bourne shell and should be avoided.
 There are several options, we could use:
   echo $i | grep 'mh-chart.man' /dev/null  continue
 or:
   expr $i : .*/mh-chart.man /dev/null  continue
 I think continue works in any reasonable /bin/sh.
 Or we could avoid any forks by using a case statement:
   case $i in
 */mh-chart.man) break;
 *)
  ...
 ;;
   esac

I'll change it to the case statement (without the break).

 The script then goes on to complain about the -E option to grep (only
 /usr/xpg4/bin/grep or egrep handle that on Solaris).

 I think the easiest solution here to the roll the grep -E into the awk:
 awk '/.SH SYNOPSIS/,/^(\.ad|typical usage:)/ { if ( $0 !~ /^(\.SH
 SYNOPSIS|\.na|\.ad|typical usage:)/ ) print }'

Thanks.  I'll change it to that.

David

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread Ken Hornstein
! is not available in pure Bourne shell and should be avoided.

Minor nit: ! is in POSIX; the problem here is Solaris has an ancient sh
implementation (isn't there a POSIX one in something like /usr/xpg4/bin ?).
Same with -E for grep.

I'm fine with workarounds for Solaris, but I'm wondering if we want
to tackle this in a different way.  Example: we could use AC_PROG_EGREP
for the grep issue (although Oliver's suggestion to combine it into
awk seems reasonable as well).  I'm neutral on solutions for the
problem with POSIX shell constructs; we could either get rid of
them or have autoconf pick a better shell.

--Ken

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread David Levine
Ken wrote:

 Minor nit: ! is in POSIX; the problem here is Solaris has an ancient
 sh implementation (isn't there a POSIX one in something like
 /usr/xpg4/bin?).  Same with -E for grep.

 I'm fine with workarounds for Solaris, but I'm wondering if we want
 to tackle this in a different way.  Example: we could use AC_PROG_EGREP
 for the grep issue (although Oliver's suggestion to combine it into
 awk seems reasonable as well).  I'm neutral on solutions for the
 problem with POSIX shell constructs; we could either get rid of
 them or have autoconf pick a better shell.

Oliver's fix with awk works, and saves some cycles, so I'm
happy with that.  I'll wrestle with the shell accomodations
here and in the test suite for now.  If it gets to be too
much, we can revisit.

David


___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread Lyndon Nerenberg

On 2012-04-24, at 9:21 AM, Ken Hornstein wrote:

 Minor nit: ! is in POSIX; the problem here is Solaris has an ancient sh
 implementation (isn't there a POSIX one in something like /usr/xpg4/bin ?).
 Same with -E for grep.

You cannot sanely use a Solaris system without putting /usr/xpg4/bin at the 
front of your $PATH.  If the auto* tools can arrange for this to happen in the 
appropriate places, they should.
___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers


Re: [Nmh-workers] First release candidate for 1.5 now available

2012-04-24 Thread Ken Hornstein
You cannot sanely use a Solaris system without putting /usr/xpg4/bin at
the front of your $PATH.  If the auto* tools can arrange for this to
happen in the appropriate places, they should.

There is some stuff to do that already in Autotools.  I know it
will search /usr/xpg4/bin for the right grep (that might require
us to add a macro).

Okay, I found a Solaris system at work ... what I've found is that:

- It automatically found grep in /usr/xpg4/bin, so if we use GREP everywhere
  the Right Thing should happen
- It set SHELL to /bin/bash, but I don't know if bash is installed on Solaris
  by default.  It's also not clear that it will search the xpg4 path for it.

Oliver, what does SHELL get set to in the nmh Makefile?  It might be as
simple as using $(SHELL) appropriately.  I tried that on the tests (I set
TESTS_ENVIRONMENT to end in $(SHELL)) and that helped ... but there are
plenty of other problems in the nmh tests on Solaris.  Not sure it's worth
fixing all of those.

--Ken

___
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers