[Glibc-bsd-devel] GNU/kFreeBSD and package report
Robert Millan
zeratul2@wanadoo.es
Sat, 3 Jul 2004 05:10:57 +0200
On Fri, Jul 02, 2004 at 07:26:52PM +0200, Robert Millan wrote:
> >
> > The postgresql build system uses autotools to select some template that
> > it then uses for building somehow. There is no template for
> > i386-unknown-kfreebsd5.2.1-gnu or i386-pc-kfreebsd-gnu.
>
> I'll have a look.
Since postgresql is a normal userland app, there's really nothing in its
configuration that depends on Linux. Rather, there must be something that
depends on gnu userland and is assigned to "linux*" triplets by the template
configuration.
Try this patch. This is what we generaly do for this kind of porting issue
(which is very common). "linux*-gnu|k*bsd*-gnu|gnu*" catches all known
Glibc-based systems so far (GNU/Linux, GNU/k*BSD and GNU/Hurd).
--- postgresql-7.4.3/configure.in~ 2004-06-08 17:36:35.000000000 +0200
+++ postgresql-7.4.3/configure.in 2004-07-03 05:05:04.000000000 +0200
@@ -64,7 +64,7 @@
freebsd*) template=freebsd ;;
hpux*) template=hpux ;;
irix*) template=irix5 ;;
- linux*) template=linux ;;
+ linux*-gnu|k*bsd*-gnu|gnu*) template=linux ;;
mingw*) template=win32 ;;
netbsd*) template=netbsd ;;
nextstep*) template=nextstep ;;
--
Robert Millan
"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."
-- J.R.R.T., Ainulindale (Silmarillion)