Date: Fri, 14 Oct 2005 18:23:42 -0400 From: Brian Fundakowski Feldman <green@freebsd.org> To: Michael Nottebrock <lofi@freebsd.org> Cc: nectar@freebsd.org, freebsd-stable@freebsd.org, Palle Girgensohn <girgen@pingpong.net> Subject: Re: linking problems with heimdal in base (ports version works) Message-ID: <20051014222342.GD1506@green.homeunix.org> In-Reply-To: <200510142136.08029.lofi@freebsd.org> References: <82117273F2B3D8076639D8D3@palle.girgensohn.se> <200510141740.05616.lofi@freebsd.org> <C8E0B370A3966FDBD9D34952@palle.girgensohn.se> <200510142136.08029.lofi@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 14, 2005 at 09:36:01PM +0200, Michael Nottebrock wrote: > On Friday, 14. October 2005 19:08, Palle Girgensohn wrote: > > > I'm actually doing that already, but postgresql build process bugs out > > somehow. I'll have to dedicate some time to this, I guess. > > > > Still, isn't it strange that the kerberos libs don't have any dependencies > > registered? > > I don't think so - after all, the main purpose of the krb5-config utility is > to record the dependencies. It doesn't do it with our build infrastructure now. Here's what I had to do for the postgres-ruby port: cvs diff: Diffing . Index: Makefile =================================================================== RCS file: /export/ncvs/ports/databases/ruby-postgres/Makefile,v retrieving revision 1.28 diff -r1.28 Makefile 24c24 < CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/include" --- > CONFIGURE_ARGS= --with-pgsql-include-dir="${LOCALBASE}/include" --with-pg_config="${LOCALBASE}/bin/pg_config" --- extconf.rb.orig Mon Dec 9 22:55:35 2002 +++ extconf.rb Thu Oct 13 15:33:23 2005 @@ -36,6 +36,20 @@ $LDFLAGS += "-L#{libdir}" puts "Using PostgreSQL lib directory: #{libdir}" end + pg_config = ENV["POSTGRES_CONFIG"] + pg_config ||= with_config("pg_config") + if pg_config + pldflags = nil + `#{pg_config} --configure`.scan(/'([^'=]*)(?:=?([^']*))'/) {|lhs, rhs| + if lhs == "LDFLAGS" + pldflags = rhs + end + } + if pldflags + $LDFLAGS += " " + pldflags + puts "Using PostgreSQL build flags: #{pldflags}" + end + end if have_library("pq", "PQsetdbLogin") have_func("PQsetClientEncoding") have_func("pg_encoding_to_char") It is certainly not as simple as made out to be. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051014222342.GD1506>