From owner-freebsd-stable@FreeBSD.ORG Fri Oct 14 22:23:48 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 83BAA16A41F; Fri, 14 Oct 2005 22:23:48 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.4/8.13.1) with ESMTP id j9EMNlCi053060; Fri, 14 Oct 2005 18:23:47 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.4/8.13.1/Submit) id j9EMNgPh053059; Fri, 14 Oct 2005 18:23:42 -0400 (EDT) (envelope-from green) Date: Fri, 14 Oct 2005 18:23:42 -0400 From: Brian Fundakowski Feldman To: Michael Nottebrock Message-ID: <20051014222342.GD1506@green.homeunix.org> References: <82117273F2B3D8076639D8D3@palle.girgensohn.se> <200510141740.05616.lofi@freebsd.org> <200510142136.08029.lofi@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200510142136.08029.lofi@freebsd.org> User-Agent: Mutt/1.5.11 Cc: nectar@freebsd.org, freebsd-stable@freebsd.org, Palle Girgensohn Subject: Re: linking problems with heimdal in base (ports version works) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 22:23:48 -0000 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. \,,,,,,,,,,,,,,,,,,,,,,\