R: R: [Gdal-dev] [ANNOUNCE] gdal debian package at mentors.debia n.ne t

Frank Warmerdam warmerdam at pobox.com
Wed May 21 11:55:54 EDT 2003


Amici Alessandro wrote:
> --- GNUmakefile.orig	2003-05-21 10:15:32.000000000 +0200
> +++ GNUmakefile	2003-05-21 10:57:10.000000000 +0200
> @@ -10,7 +10,7 @@
>  force-lib:	
>  	$(AR) r $(GDAL_LIB) $(GDAL_OBJ)
>  	$(RANLIB) $(GDAL_LIB)
> -	$(LD_SHARED) $(GDAL_OBJ) $(GDAL_LIBS) $(LIBS) -o $(GDAL_SLIB)
> +	$(LD_SHARED) $(GDAL_SLIB_SONAME) $(GDAL_OBJ) $(GDAL_LIBS) $(LIBS) -o
> $(GDAL_SLIB)
>  
>  #	If you really want proper SO files that will work in /usr/lib
>  # 	Try replacing the above command with something like this:
> @@ -23,7 +23,7 @@
>  	$(RANLIB) $(GDAL_LIB)
>  
>  $(GDAL_SLIB):	$(GDAL_LIB) $(GDALA_DEP)
> -	$(LD_SHARED) $(GDAL_OBJ) $(GDAL_LIBS) $(LIBS) -o $(GDAL_SLIB)
> +	$(LD_SHARED) $(GDAL_SLIB_SONAME) $(GDAL_OBJ) $(GDAL_LIBS) $(LIBS) -o
> $(GDAL_SLIB)
...
> this way i can build with:
> 	$(MAKE) GDAL_SLIB_SONAME="-Wl,-soname,libgdal.so.$(sover)" \
> 		GDAL_SLIB=libgdal.so.$(version) \
> 		GDAL_SLIB_LINK="-L$(CURDIR) -lgdal"
> avoiding any side effect.

Alessandro,

I have applied this patch as suggested in CVS.

> i checked the libraries on my debian system and looks like all
> sonames are in the form libfoo.so.N with N being a one-digit 
> soversion. i choosed soversion 1 for gdal.
> if gdal has to follow this convention it is important that the 
> soversion is incremented by one digit every time backward binary 
> compatibility is broken (judging from the name libgdal.1.1.so i 
> guess 1.0 is not compatible with 1.1).
> 
> please apply the will-be-broken-by-outlook-but-i-couldnt-avoid-it
> patch,

Using .1 is fine for now.  Essentially the leading digit in the GDAL
versions is fixed till a major architectural change.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list