Closed katajakasa closed 3 months ago
I am fine with this, although we should ideally make this configurable, or maintain it as a relative path to the binary, because the Debian way is not the only way.
Yeah, let's keep it relative. So "../share/games/openomf/..." etc. We could also add a commandline argument for overriding it I guess, so that distros could make a wrapper shell script if necessary.
I like the idea of overriding the path on the commandline.
So after taking a look at our path management code, I think we don't absolutely need a separate path for new and old resources. It would just be a pile of work and I don't feel like doing it. However, commits/patches welcome, if somebody WANTS to take care of it :D
Should we notify the debian people?
Would you be open to a pull request making the paths configurable during build? The Debian-way is not the only way and wrapper scripts sound a bit overkill for such a simple thing.
Yes, please.
@Rondom PR's welcome. Btw, I took a look at the debian ITP's. It's probably not a good idea to separately package libshadowdive (please see libShadowDive readme: https://github.com/omf2097/libShadowDive/blob/master/README.md).
I read the Readme and I have actually created test-packages using both static linking and dynamic linking. Both is possible, but static linking is frowned upon in Debian, so I plan to ask others for feedback.
Well, just note then that the library will be broken and API will change pretty much all the time. Afaik that isn't very well received in debian either :P
Oh, and. Current debian libdumb package will not work with openomf; it's too old. So you either need to update the debian package or statically link the kode54 library. libxmp may work, but the playback quality isn't as good.
Yeah, the only reason we have libsd as a seperate lib is because we also use it for our command line tools. We could just merge everything into one big repo, but we definitely prefer static linking because we need very specific versions for specific openomf builds.
And yes, please consider a better libdumb in debian, we've contributed a lot of fixes (as has kode54) that make things a lot better.
We ended up merging everything.
Instead of using /usr/share/openomf, we should move resources to /usr/share/games/openomf.
We should also use subdirectories, so that distros can linkfarm if they need to. Eg.