[postgis-devel] Fedora postgis build problems revisited

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Tue Jun 26 23:25:18 PDT 2007


On Tue, 2007-06-26 at 22:06 +0300, Devrim GÜNDÜZ wrote:
> Hello,
> 
> On Fri, 2007-06-22 at 09:35 +0100, Mark Cave-Ayland wrote:
> > Does the Makefile from SVN solve your problem -
> > http://svn.refractions.net/postgis/trunk/java/jdbc/Makefile ?
> 
> Great! It seems to fix the build problem. Thanks.
> 
> However, we have another problem now:
> 
> ===============================================================
> 
> RPM build errors:
>     Symlink points to BuildRoot: /usr/bin/createdb.postgis
> -> /var/tmp/postgis-1.2.1-1.fc7-root-root/usr/bin/createdb.postgis
>     Symlink points to BuildRoot: /usr/bin/mktemplate_gis
> -> /var/tmp/postgis-1.2.1-1.fc7-root-root/usr/bin/mktemplate_gis
>     Symlink points to BuildRoot: /usr/bin/rmtemplate_gis
> -> /var/tmp/postgis-1.2.1-1.fc7-root-root/usr/bin/rmtemplate_gis
> 
> ===============================================================
> 
> This is not a packaging problem, AFAICS. 
> 
> SCRIPT_DOLINK=rm -f $(SCRIPT_LINK); \
>               $(LN_S) $(SCRIPT_TARGET) $(SCRIPT_LINKDIR)
> 
> Any suggestions for that?

Unfortunately the template_gis stuff in the 1.2.1 release was
horrendously broken (and I would like to totally re-write it before the
next release). For a start, it has Debian-specific dpkg commands
embedded in it :(

I would suggest totally removing template_gis from the main GNUMakefile
and not including it in the build, e.g. do the equivalent of:

  
-all: Makefile.config liblwgeom loaderdumper utils templategis
+all: Makefile.config liblwgeom loaderdumper utils
 
-install: all liblwgeom-install loaderdumper-install templategis-install
+install: all liblwgeom-install loaderdumper-install 
 
-uninstall: liblwgeom-uninstall loaderdumper-uninstall docs-uninstall templategis-uninstall
+uninstall: liblwgeom-uninstall loaderdumper-uninstall docs-uninstall
 
-clean: Makefile.config liblwgeom-clean loaderdumper-clean docs-clean test-clean templategis-clean
+clean: Makefile.config liblwgeom-clean loaderdumper-clean docs-clean test-clean 


This should then work without any problems.


Kind regards,

Mark.

-- 
ILande - Open Source Consultancy
http://www.ilande.co.uk





More information about the postgis-devel mailing list