no workout preset data for kipina

Bug #295401 reported by Efrain Valles
6
Affects Status Importance Assigned to Milestone
kipina (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: kipina

Kipina does not have any preset data for workouts. Originally Kipina comes with some prebuilt information about generic workout and activities with estimated completion times.

Steps to reproduce:

1) Open Kipina
2) in the calendar:
    - right click on a day for a contextual menu
    - add a workout
      - notice the "Sport: choose a sport" combo box has no relevant data.

also notice if kipina is run in a terminal the message of failure to load the xml file with the data:

evalles@felicia:~$ kipina
cp: no se puede efectuar `stat' sobre «/usr/etc/kipina-presetdata.xml»: No existe el fichero ó directorio
I/O warning : failed to load external entity "/home/evalles/.kipina/presetdata.xml"

** (process:18407): WARNING **: Parse error, couldn't parse file /home/evalles/.kipina/presetdata.xml!

Revision history for this message
Efrain Valles (effie-jayx) wrote :

I have identified the problem and I am currently fixing it. It seems the file is where it is suppoed to be but hte app keeps refering to /usr/etc instead of /etc to find that file. I should test and add a patch that can fix this

Revision history for this message
Daniel Moerner (dmoerner) wrote :

Hi, a simpler fix for this problem is to change the parameters passed to ./configure.

./configure -h explains:

  --sysconfdir=DIR read-only single-machine data [PREFIX/etc]

Since PREFIX is set to /usr, it is installing to /usr/etc. You should pass --sysconfdir=$(DESTDIR)/etc to ./configure in debian/rules and then remove the superfluous "mv" command in the install target.

By the way, I came across this bug while perusing Planet Ubuntu, which has your blog. If you want any more comments on your package I'd be happy to communicate with you by email (for instance, the copyright file is currently incomplete and the package is not Lintian clean)

Revision history for this message
Efrain Valles (effie-jayx) wrote :

I have made the suggested changes and it worked. I was albe to run kipinä with the presetdata on a jaunty box, I attach a debdiff from versions and build log.

Revision history for this message
Efrain Valles (effie-jayx) wrote :
Revision history for this message
Daniel Moerner (dmoerner) wrote : Re: [Bug 295401] Re: no workout preset data for kipina

On 11/9/08, Efrain Valles <email address hidden> wrote:
>
> I have made the suggested changes and it worked. I was albe to run kipinä with the presetdata on a jaunty box, I attach a debdiff from versions and build log.
>

This is one way to fix it, but a more portable fix would be to just
patch debian/rules. In general it's better to use debian/rules for
things like this instead of patching the source. If you do want to
patch the source, you might want to use a patch system like cdbs or
quilt. In the patch below I also spaced out the ./configure call a
bit to make it easier to read.

Daniel

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.