Ups. Patch attached


Zdenek Kotala napsal(a):
Tom Lane napsal(a):
Zdenek Kotala <[EMAIL PROTECTED]> writes:
I attached patch which replaces any "--..." occurrence with "-c..." on command line.

Please see whether forcibly using src/port/getopt.c fixes this,
instead.  A saner patch would probably add something like this

if test "$PORTNAME" = "solaris"; then

Yeah, this is the best solution. I attach a patch. Is possible to backport it back to 8.3, 8.2?

Just for completeness Solaris getopt function has a extension which processes long option argument. This extension is called CLIP. This implementation collides with unusual getopt usage for long option processing in PostgreSQL.

More info are there:

By the way old solaris getopt version is similary with postgres implementation. :-)

        Thanks for help

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

RCS file: /zfs_data/cvs_pgsql/cvsroot/pgsql/,v
retrieving revision 1.551
diff -c -r1.551
***	19 Feb 2008 01:05:28 -0000	1.551
---	22 Feb 2008 20:16:05 -0000
*** 1102,1107 ****
--- 1102,1115 ----
+ # Solaris has getopt implementation which is not compatible with unusual
+ # parsing for long options used in PostgreSQL. Replace it by own implementation
+ # is best solution how to avoid complication.
+ if test "$PORTNAME" = "solaris"; then
+   AC_LIBOBJ(getopt)
+   AC_LIBOBJ(getopt_long)
+ fi
  # Win32 support
  if test "$PORTNAME" = "win32"; then
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to