Reply
Thread Tools
Posts: 567 | Thanked: 2,965 times | Joined on Oct 2009
#1
I am working on a transit app for my local transit agency and to do what I want I need to get some other packages into the repos so my package can depend on them.

I want to use gtfs2db from https://github.com/simonsouth/gtfs2db, can anyone help me get it packaged for Maemo and into the repos?
gtfs2db needs libcsv from http://sourceforge.net/projects/libcsv/ which also needs to be put into the repos and it needs libzip2 from http://www.nih.at/libzip/ (we have libzip1 in the repos, dont know if gtfs2db will work with libzip1 or if it needs libzip2)

If we can get all of these things into the repos (presumably extras-devel) I will have all the things I need to write my transit app. (debian packaging is the one thing I dont know how to do)
 

The Following User Says Thank You to jonwil For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#2
Doing libcsv for you at the moment. Will upload here so that you can build and test locally before submitting to repo to check it works ok. Modifying the latest Jessie version.
 

The Following 5 Users Say Thank You to Android_808 For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#3
Sorry for the delay, went out for a bit. Then came home to have Firefox keep hanging and segfaulting on laptop.

The initial package is done (attached) but it's not 100% perfect.

I've had to remove the dfsg patches but they don't do anything critical (one removes a pdf, the other corrects some spelling mistakes). It was building OK but the clean stage to rebuild the package if needed wasn't able to correctly remove the patches.

There are a few warnings regarding aclocal and autoconf/automake versions but they should be okay as we aren't modifying any of the files.

Be warned: I haven't tested the output *debs so there may still be some errors.

You will need to remove the .txt from the dsc file when running dpkg-source -x libcsv_3.0.3-1.dsc, I had to add it to get upload working.
Attached Files
File Type: gz libcsv_3.0.3-1.tar.gz (302.3 KB, 75 views)
File Type: txt libcsv_3.0.3-1.dsc.txt (274 Bytes, 72 views)
 

The Following 5 Users Say Thank You to Android_808 For This Useful Post:
Posts: 567 | Thanked: 2,965 times | Joined on Oct 2009
#4
Ok so with that plus the libzip packages already in the repo I am able to get gtfs2db from that git repo to compile and run. Running it on https://gtfsrt.api.translink.com.au/GTFS/SEQ_GTFS.zip generates a sqlite db but with no entries. What I dont know is whether there is something wrong with the data, something wrong with gtfs2db or something wrong with one of the dependencies I am using (libcsv, libzip or sqlite)

Can anyone help me get it working?
 

The Following 2 Users Say Thank You to jonwil For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#5
have you tried it outside of Maemo, ie host Debian/Ubuntu with their own packages etc? At least then you can eliminate the data if they work.

I know the instructions stated libzip2, Debian I think it was had libzip1 2 and 4 when I checked yesterday??

i'm out today but if i get a chance i'll try packaging libzip2. gtfs2db is a bit different as it doesn't use a makefile but should be easy enough. All depends if the laptop decides to play nice with firefox. kept hanging then segfaulting yesterday but think i've fixed it now (damaged ffmpeg install, not sure how related but didn't crash after reinstalling package).
 

The Following 2 Users Say Thank You to Android_808 For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:37.