[GRASS5] 5.3-CVS: RPM created - please try

Hi,

with help from Silke Reimer I was able to write a new
grass.spec file to create RPMs of GRASS 5.3 with shared
libraries.

Before polluting the main web site, please give it a try:

http://mpa.itc.it/markus/grass53/rpms/
  grass-5.3.0-2004_05_08.i386.rpm 12M
  grass-5.3.0-2004_05_08.src.rpm 20M

I have already written a cronjob to create these RPMs
from GRASS 5.3-CVS snapshot every Saturday, however,
it is not activated yet.

Maybe some more dependencies have to be listed. I'm not
an spec file expert...

Once working, I'll provide the same RPM cron job
for GRASS 5.7.

Cheers

Markus

Scott,
(cc grass5)

On Thu, May 13, 2004 at 05:35:47PM -0400, Scott Mitchell wrote:

I am VERY far from being an rpm expert, especially since I've just

... as far as me ... :slight_smile:

returned to one machine with rpm after a few years of dpkg-only
machines, but for what it's worth, here's what I get on a relatively
"stock" redhat 8 machine:

[smitch@bouteloua smitch]$ sudo rpm -i grass-5.3.0-2004_05_08.i386.rpm
Password:
error: Failed dependencies:
        gdal >= 1.1.9 is needed by grass-5.3.0-1
        proj >= 4.4.7 is needed by grass-5.3.0-1

This is desired: It suggests to first install GDAL and PROJ
which are requirements.

        libcrypto.so.1 is needed by grass-5.3.0-1

probably due to PostGRESQL support?

        libdfftw.so.2 is needed by grass-5.3.0-1

Seems that I should defined that in the spec file.

        libexpat_ogdi31.so is needed by grass-5.3.0-1

Not desired: I didn't remember that I have built GDAL/OGR with
OGDI support on that machine for VMAP0 support.

        libgdal.so.1 is needed by grass-5.3.0-1

Aha, obviously libgdal needs to be defined separated. Or is it because
Iam using GDAL from CVS on that machine (not an RPM)?

        libgrass5.so.0 is needed by grass-5.3.0-1

Not desired: GDAL was built with GRASS support (for MapServer).

        libogdi31.so is needed by grass-5.3.0-1

Not desired: OGDI see above.

        libpq.so.3 is needed by grass-5.3.0-1

Desired: PostgreSQL support (7.3 on grass.itc.it).

        libproj.so.0 is needed by grass-5.3.0-1

Aha, obviously libproj wants to be defined separately?

        libssl.so.1 is needed by grass-5.3.0-1

I guess due to PostgreSQL support.

        libzlib_ogdi31.so is needed by grass-5.3.0-1

Not desired: OGDI see above.

IFF I understand correctly, this suggests that there are file/library
dependencies that are not covered by the package dependencies, yes?
Postgres, ssl, ... ?

I think so. Seems that
- I should insert more dependencies in the spec file.
- find a way to have two GDAL installations on the machine (suggestions
   welcome!) - one with OGDI/GRASS and one "simple"

Sorry if this is not useful...

Very useful! Thanks for the quick test!

Markus

--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy

Markus Neteler wrote:

> libcrypto.so.1 is needed by grass-5.3.0-1

probably due to PostGRESQL support?

This dependency is almost certainly bogus. The PostgreSQL modules
require libpq. If libpq happens to require libcrypto, then it is up to
the RPM which contains libpq to deal with that. GRASS shouldn't list
it as a dependency.

> libssl.so.1 is needed by grass-5.3.0-1
I guess due to PostgreSQL support.

In which case, this is also bogus.

--
Glynn Clements <glynn.clements@virgin.net>

On Fri, May 14, 2004 at 11:18:12AM +0100, Glynn Clements wrote:

Markus Neteler wrote:

> > libcrypto.so.1 is needed by grass-5.3.0-1
>
> probably due to PostGRESQL support?

This dependency is almost certainly bogus. The PostgreSQL modules
require libpq. If libpq happens to require libcrypto, then it is up to
the RPM which contains libpq to deal with that. GRASS shouldn't list
it as a dependency.

> > libssl.so.1 is needed by grass-5.3.0-1
> I guess due to PostgreSQL support.

In which case, this is also bogus.

Note that 'rpm -ba' has inserted these dependencies.

Anyway, I have defined some more dependencies, now a new
set of RPMs here:
http://mpa.itc.it/markus/grass53/rpms/

Still OGDI is required since I don't know how to manage
two GDAL installations on one machine (my VMAP0/MapServer wants it).

Markus

--
Glynn Clements <glynn.clements@virgin.net>

--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy