install-sh patch for Mac OS X

Started by Kenji Sugitaabout 24 years ago4 messagespatches
Jump to latest
#1Kenji Sugita
sugita@sra.co.jp

This is a small patch for following error.

$ make
cc -fno-common -g -O2 -fno-common -pipe -no-precomp -I/opt/pgsql/7.2.1/include
-I/sw/lib/ruby/1.6/powerpc-darwin5.5 -I. -I/sw/include -DHAVE_SYS_UN_H
-DHAVE_SOCKET -DHAVE_GETHOSTNAME -I/sw/include -c -o postgres.o postgres.c
cc -dynamic -bundle -undefined suppress -flat_namespace -L/sw/lib
-L/opt/pgsql/7.2.1/lib -o postgres.bundle postgres.o -L. -lruby -lpq
/usr/bin/ld: table of contents for archive: /opt/pgsql/7.2.1/lib/libpq.a is
out of date; rerun ranlib(1) (can't load from it)
make: *** [postgres.bundle] Error 1
$

Attachments:

macosx-install-sh.pathtext/plain; charset=us-asciiDownload+1-1
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Kenji Sugita (#1)
Re: install-sh patch for Mac OS X

sugita@sra.co.jp writes:

This is a small patch for following error.

-cpprog="${CPPROG-cp}"
+cpprog="${CPPROG-cp -p}"

This seems a really *bad* idea. Won't it cause the executables to be
installed with the wrong ownership (ie, whatever you built them as,
rather than the user you are doing "make install" as)?

Perhaps we need some different installation technique for OS X
(run ranlib again after install?) but I won't agree to
making the above change for all platforms.

regards, tom lane

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#2)
Re: install-sh patch for Mac OS X

Tom Lane writes:

Perhaps we need some different installation technique for OS X
(run ranlib again after install?)

I think so. That's what libtool appears to do.

--
Peter Eisentraut peter_e@gmx.net

#4Kenji Sugita
sugita@sra.co.jp
In reply to: Tom Lane (#2)
Re: install-sh patch for Mac OS X

From: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: [PATCHES] install-sh patch for Mac OS X
Date: Wed, 10 Jul 2002 09:38:11 -0400

;;; sugita@sra.co.jp writes:
;;; > This is a small patch for following error.
;;;
;;; > -cpprog="${CPPROG-cp}"
;;; > +cpprog="${CPPROG-cp -p}"
;;;
;;; This seems a really *bad* idea.

I mean that timestamp of .a should not be changed.
Or ranlib again only for platforms required.

;;; Won't it cause the executables to be
;;; installed with the wrong ownership (ie, whatever you built them as,
;;; rather than the user you are doing "make install" as)?

Additional modifications for ownership and mode bits will fix it.

Kenji Sugita