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

Re: Osmium packages



On Mon, Mar 16, 2015 at 10:40:02PM +0100, Sebastiaan Couwenberg wrote:
> On 03/16/2015 10:11 PM, Jochen Topf wrote:
> > Looking more closely at the packages I noticed the following issue with
> > libosmium: /usr/share/doc/libosmium2-dev/examples/ contains the *.cpp example
> > files, but without the CMake build scripts they are basically useless.
> > Unfortunately the CMakeLists.txt from the example dir is not enough, it needs
> > its parent CMakeLists.txt which in turn needs other files.
> 
> That's why I excluded the build system, and only installed the example
> code. To serve the a similar purpose as osmium-contrib, showing how to
> use libosmium.
> 
> If users want to build the code they should apt-get the source package.
> 
> Including an build system examples for the source may be a good idea to
> help developers get started by building and modifying (copies of) the
> examples.

Another reason why it might make sense to move the examples into their own
package.

> libosmium should probably also install FindOsmium.cmake since that's
> recommended in the "Using Libosmium in your own projects" documentation.
> 
> https://github.com/osmcode/libosmium/wiki/Using-Libosmium-in-your-own-projects

We'll also need FindOSMPBF.cmake in most cases. On the other hand this should
maybe live in the libosmpbf-dev package and be installed from there. Not sure
whats right here.

> > I can build the libosmium package now, but not the others as they all depend on
> > libosmium2-dev which isn't yet available to cowbuilder. Can I somehow give
> > cowbuilder this extra package?
> 
> You can configure pbuilder to use local dependencies via the othermirror
> option, either local files or via an APT repo.
> 
> https://wiki.debian.org/PbuilderTricks#How_to_include_local_packages_in_the_build

Thanks. Took me forever to get right, but I got it to work now.

Jochen
-- 
Jochen Topf  jochen@remote.org  http://www.jochentopf.com/  +49-173-7019282


Reply to: