Go Back   maemo.org - Talk > OS / Platform > Maemo 5 / Fremantle
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2016-11-05, 00:32
jonwil jonwil is offline
 
Join Date: Oct 2009
Posts: 567
Thanks!: 0
Thanked 2,964 Times in 448 Posts
Default Looking for some help to get some packages into the repo

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)
Reply With Quote
The Following User Says Thank You to jonwil For This Useful Post:
  #2  
Old 2016-11-05, 10:37
Android_808 Android_808 is offline
 
Join Date: Dec 2010
Posts: 1,203
Thanks!: 640
Thanked 3,027 Times in 901 Posts
Default Re: Looking for some help to get some packages into the repo

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.
Reply With Quote
The Following 5 Users Say Thank You to Android_808 For This Useful Post:
  #3  
Old 2016-11-05, 17:58
Android_808 Android_808 is offline
 
Join Date: Dec 2010
Posts: 1,203
Thanks!: 640
Thanked 3,027 Times in 901 Posts
Default Re: Looking for some help to get some packages into the repo

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, 67 views)
File Type: txt libcsv_3.0.3-1.dsc.txt (274 Bytes, 65 views)
Reply With Quote
The Following 5 Users Say Thank You to Android_808 For This Useful Post:
  #4  
Old 2016-11-06, 08:14
jonwil jonwil is offline
 
Join Date: Oct 2009
Posts: 567
Thanks!: 0
Thanked 2,964 Times in 448 Posts
Default Re: Looking for some help to get some packages into the repo

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?
Reply With Quote
The Following 2 Users Say Thank You to jonwil For This Useful Post:
  #5  
Old 2016-11-06, 09:26
Android_808 Android_808 is offline
 
Join Date: Dec 2010
Posts: 1,203
Thanks!: 640
Thanked 3,027 Times in 901 Posts
Default Re: Looking for some help to get some packages into the repo

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).
Reply With Quote
The Following 2 Users Say Thank You to Android_808 For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:06.