[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-grass-general] Re: Updated grass 5.7 package



On Fri, Dec 03, 2004 at 12:12:51AM +0100, Jochen Friedrich wrote:
> Hi Steve,
> 
> > grass libraries don't have sonames so what the proper package names
> > should be will require some further investigation.
> 
> They should really have sonames. The soname decides, what file is actually
> searched for by the dynamic loader. Without soname, a program would only
> look for "libgrass.so", so you can't install different versions of the
> same library, at all. ldd will tell you what is loaded by a dynamically
> loaded program.
> 
> If you really think the API is not stable, you should set the soname to
> libgrass.so.5.7. This will ensure a grass 5.8 package can coexist later.
> 
> soname and Debian package name MUST match in order to be useful.

In the current GRASS-5.7-CVS (ours) it is implemented like this:

ls -la $GISBASE/lib | grep libgrass_gis
-rwxr-xr-x 1 neteler  ssi 799574 Dec 2 14:19 libgrass_gis.5.7.cvs.so
lrwxrwxrwx 1 neteler  ssi     23 Dec 2 14:19 libgrass_gis.so -> libgrass_gis.5.7.cvs.so

The rule is here:
 include/Make/Shlib.make

$(SHLIB): $(SHLIB_OBJS)
        $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(EXTRA_LIBS) && ln -sf $(notdir $@) $(patsubst %.$(GRASS_VE
RSION_NUMBER)$(SHLIB_SUFFIX),%$(SHLIB_SUFFIX),$@)

Please suggest for changes (or, Hamish may do it in CVS).

Markus



Reply to: