Re: [HACKERS] BSD gettext

2001-05-22 Thread Rick Robino

Peter Eisentraut wrote:
> 
> http://www.postgresql.org/~petere/gettext.html
> 
> This is a compilation of the BSD-licensed gettext tools from NetBSD plus
> some of my own code, put into a (hopefully) portable package, intended to
> be evaluated for possible use in PostgreSQL.  Give it a try if you're
> interested.  I've already tried it on FreeBSD, Linux, and Unixware, so
> don't bother with those.

# uname -a
SunOS mage 5.8 Generic_108528-06 sun4u sparc SUNW,Ultra-5_10
# pwd
/usr/local/src/3/bsd-gettext-0.0
# gmake install >/dev/null 2>&1 
# echo $?   
0
# LANGUAGE=sv /usr/local/bin/gettext
/usr/local/bin/gettext: argument saknas
# 



-- 

Rick Robino v. (503) 891-9283
Wave Division Consulting@. wavedivision.com

---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster



Re: Solaris 7 SPARC passes tests (was Re: [HACKERS] Re: [BUGS] Tests randomly failed)

2001-03-30 Thread Rick Robino

> On Tue, Mar 27, 2001 at 08:08:47PM -0500, Tom Lane wrote:
> Mathijs Brands <[EMAIL PROTECTED]> writes:
> > No luck :( Tests still randomly crash. (This is an Ultra 10 machine.)
> 
> How about if you change the pg_regress script to use TCP connections?
> (Look for the bit that forces unix_sockets=no for certain OSes, and
> add solaris)
> 
>   regards, tom lane

Someone ran into this again yesterday with Solaris x86. The unix
socket problem is probably the same for both architectures, so why
not change pg_regress.sh to include *solaris* as part of the same
case statement that excludes QNX and BeOS for unix sockets? It is
safe to say that Solaris does have this problem.

The postmaster startup test could say something a bit more useful
this way too, as a standard "make check" does not report which type
of sockets are being used (but it does when --temp-install="").
Some folks may want that to be recorded in the output consistently.

A very small patch to do both of those things is attached.

Cheers,

-Rick



*** pg_regress.sh   Wed Mar 28 02:46:50 2001
--- pg_regress.sh~  Wed Mar 28 02:46:38 2001
***
*** 156,166 
  
  
  # --
! # When on QNX or BeOS, don't use Unix sockets.
  # --
  
  case $host_platform in
! *-*-qnx* | *beos*)
  unix_sockets=no;;
  *)
  unix_sockets=yes;;
--- 156,166 
  
  
  # --
! # When on QNX, BeOS, or Solaris, don't use Unix sockets.
  # --
  
  case $host_platform in
! *-*-qnx* | *beos* | *solaris* )
  unix_sockets=no;;
  *)
  unix_sockets=yes;;
***
*** 354,359 
--- 354,364 
  if kill -0 $postmaster_pid >/dev/null 2>&1
  then
  echo "running on port $PGPORT with pid $postmaster_pid"
+ if [ -n "$PGHOST" ]; then
+ echo "(using postmaster on Inet socket)"
+ else
+ echo "(using postmaster on Unix socket)"
+ fi
  else
  echo
  echo "$me: postmaster did not start"



---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]