Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Lee on December 09, 2013, 10:47:15 PM

Title: dosbox.tcz missing a dep
Post by: Lee on December 09, 2013, 10:47:15 PM
I think dosbox.tcz should have sdl-sound.tcz added to its .dep file.
Title: Re: dosbox.tcz missing a dep
Post by: gerald_clark on December 09, 2013, 11:09:41 PM
Why?  DOS does not require sound.
Title: Re: dosbox.tcz missing a dep
Post by: Lee on December 10, 2013, 12:22:11 PM
When I load dosbox.tcz, which nominally depends only on sdl.tcz and libmad.tcz and try to run it from its icon, nothing appears to happen.

When I run dosbox from the command line I get the following message:

Code: [Select]
dosbox: error while loading shared libraries: libSDL_sound-1.0.so.1: cannot open shared object file: No such file or directory

and dosbox exits.

A "provides" search in apps reveals that only sdl-sound.tcz provides the missing file and indeed dosbox works as expected when sdl-sound.tcz is loaded.

All of the above is in Core 4.7.7 and referencing the 4.x repo at tinycorelinux.net.

---

As for DOS not requiring sound, that's the silly part.  I pulled out a nicely organized collection of software that I had packaged up about fifteen years ago (and it was all old even then) and NONE of it uses sound at all (or at least none of it -requires- sound).  Lotus 123, dBASE III Plus, WordPerfect5.1, Clipper development, Turbo C++ development, epsilon, etc.  The whole DOS environment (sans games)... not really what you'd call "sound intensive" stuff.

I remembered running dBASE on a 300 MHz celeron in the late 1990's and thinking how quick it seemed - then I thought hmmm... things are several times faster now -and- I could have the whole mess in RAM.  I had to try it out.
Title: Re: dosbox.tcz missing a dep
Post by: gerald_clark on December 10, 2013, 12:44:13 PM
That makes perfect sense, but is it dosbox or SDL that is missing the dep?
Title: Re: dosbox.tcz missing a dep
Post by: Lee on December 10, 2013, 12:48:54 PM
I'm not sure, but I just did another test, in a vm this time (previously was on real iron) and I had to load libasound, libogg and libvorbis before dosbox would run.

I'll do a base/norestore test in a few minutes and post the results.

Edit:
After rebooting the vm with base and norestore, I had to load X (Xlibs, Xprogs, Xvesa, jwm and wbar) and:
  sdl-sound.tcz
  libasound.tcz
  libogg.tcz
  libvorbis.tcz

I suspect you are right that sdl-sound.tcz, libasound.tcz, libogg.tcz and libvorbis.tcz should be deps od SDL.tcz rather than of dosbox.tcz.
Title: Re: dosbox.tcz missing a dep
Post by: curaga on December 11, 2013, 09:06:02 AM
Easy to check. ldd /path/to/libSDL.so and ldd dosbox.
Title: Re: dosbox.tcz missing a dep
Post by: Rich on December 11, 2013, 12:30:58 PM
Hi Lee
Seems this problem has been identified before:
http://forum.tinycorelinux.net/index.php/topic,10788.msg56882.html#msg56882
And in this instance you were involved:
http://forum.tinycorelinux.net/index.php/topic,12492.msg67676.html#msg67676
Title: Re: dosbox.tcz missing a dep
Post by: Lee on December 11, 2013, 03:53:43 PM
Well, don't I feel sheepish?  Looks like those 2011 and 2012 brain cells were swapped out some time in 2013.   ::)

Shouldn't dosbox.tcz.dep be updated per maro's post?
Title: Re: dosbox.tcz missing a dep
Post by: Rich on December 11, 2013, 03:59:36 PM
Hi Lee
Yeah, well time marches on, memories fade,  .............. what was I talking about again?