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

Re: Packaging of osm2pgsql-replication?



Hi!

On Wed, Jan 19, 2022 at 11:15:36AM +0100, Sebastiaan Couwenberg wrote:
> On 1/19/22 10:30, Jochen Topf wrote:
> > For about a year now osm2pgsql comes with "scripts/osm2pgsql-replication",
> > a Python script which is the easiest way to keep an osm2pgsql database
> > up-to-date with changes from OSM. So far this is not packaged in the
> > Debian osm2pgsql package, which was good, for the script was new and
> > needed some seasoning. But some people are using it now and some bugs
> > have been fixed, so maybe it is time to package this? Currently it is
> > not installed with "make install", but we are thinking about adding that
> > in the next version. A man page is already available.
> 
> Once this is done upstream, it makes sense to also include it in the Debian
> package.
> 
> > Problem is the script needs python, pyosmium and psycopg2. I am not sure
> > whether its worth it to have so many more dependencies? Or would this
> > have to go into a different package anyway, because it is architecture
> > independent?
> 
> python is deal breaker due to the python2 removal, if you meant python3,
> that's not a problem.

We are using Python3, so no problem there.

> osm2pgsql is the only binary package currently built and contains everything
> being installed.
> 
> Adding the dependencies for osm2pgsql-replication is not a big deal in my
> opinion. There may be some vocal opposition from users who don't use the
> replication script and don't already have those python3 packages installed,
> which seems unlikely.
> 
> A separate osm2pgsql-replication binary package can also be built to provide
> the script and install its dependencies, but that will require a trip
> through NEW causing a delay before it lands in unstable.
> 
> I personally don't think adding the script and its dependencies to the
> osm2pgsql binary package is an issue, so unless there is strong demand from
> actual osm2pgsql users to have it in a separate package we'll take that
> route.

Sounds good.

The next version released soon will install the osm2pgsql-replication
script and the associated man page on "make install".

Jochen
-- 
Jochen Topf  jochen@remote.org  https://www.jochentopf.com/  +49-351-31778688


Reply to: