Ticket #456 (closed defect: fixed)
Opened 5 years ago
Last modified 7 months ago
tuxpaint has directory issues on Haiku
| Reported by: | scottmc | Owned by: | scottmc |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | media-gfx/tuxpaint | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Need to dig into the directory issues on tuxpaint and figure out how to get it working so that the lockfile and save files etc get put into the correct places on Haiku.
These are in tuxpaint.c around line 12358.
Change History
comment:1 Changed 5 years ago by phoudoin
comment:2 Changed 5 years ago by phoudoin
Due to bad wiki formatting skills, by BEOS one must read __BEOS__ in the previous comment.
comment:3 Changed 4 years ago by scottmc
- Component changed from default to media-gfx/tuxpaint
- Owner set to scottmc
comment:4 follow-up: ↓ 6 Changed 4 years ago by scottmc
with tuxpaint.c revision 1.831 the directory situation is a bit better, just has problems opening the saved files directory. Should be an easy fix, just need to dig into the code a bit more to understand what's going on and then fix it.
http://tuxpaint.cvs.sourceforge.net/viewvc/tuxpaint/tuxpaint/src/tuxpaint.c?r1=1.830&r2=1.831
comment:5 Changed 4 years ago by scottmc
I redisabled the custom cursors in cursor.c version 1.6, so at least it's a bit more usable now.
To see the latest version run:
haikuporter -i tuxpaint-0.9.2x-cvs
Use installoptionalpackage as needed to install the dependency libs that are listed. Installing "SDLibs" will cover most of them.
comment:6 in reply to: ↑ 4 Changed 9 months ago by begasus
Replying to scottmc:
with tuxpaint.c revision 1.831 the directory situation is a bit better, just has problems opening the saved files directory. Should be an easy fix, just need to dig into the code a bit more to understand what's going on and then fix it.
http://tuxpaint.cvs.sourceforge.net/viewvc/tuxpaint/tuxpaint/src/tuxpaint.c?r1=1.830&r2=1.831
recipe is updated and working, the problem on opening saved files is still there though, also TP crashes when exiting
comment:7 Changed 7 months ago by scottmc
- Resolution set to fixed
- Status changed from new to closed
new patch added for 0.9.22 probably fixed this. I still need to upstream it but will do soon. closing this as fixed.

The main issue is that Tuxpaint still use BEOS conditional code, which don't works anymore under Haiku.
As every filename are assembled by calling get_fname() function, the first issue is there.
But the second level issue is in tuxpaint.c:setup() function, which fallback on linux setup, aka $HOME/.tuxpaint.
At this function start, the CWD was forced to the binary location, but this code is not run anymore when built on Haiku...
Funny enough, in that same function, one could see that:
#ifdef BEOS
#endif
No wonder this cursor issue raised only recently under Haiku...
;-)
Also in src/fonts.c:load_user_fonts(), which don't work any since BEOS is not defined under Haiku. And even if it was, the BeOS code there wont work anyway.
PS: I recently becomes interested in tuxpaint eventually running fine under Haiku, thanks to my daughter :-)