-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build system issues #47
Comments
So how serious is this? Does this prevent the package from being accepted into Debian or do you already use workarounds? If you have workarounds, it would be nice if you share them here. :P |
For now, I've ignored problem 1. and 2. This technically violates the Debian policy ("clean (required) This must undo any effects that the build and binary targets may have had", so I'd really like to see this fixed in an upcoming release. I haven't looked at how to actually fix this yet, though. For problem 3, I have just disabled the md5sum check entirely. But if such a check is still meaningful (e.g. for multiplayer compatibility), I'd like to restore it in a future version. If not, maybe it should be removed from the makefile rather than be broken. Problem 4 is just packaging hygiene, solution would be to remove these files. Problem 5 I worked around by using make install instead of make bundle (which is still a little bit of a kludge, because I do not want the version number in the installed directory name). Problem 6 is just extra work done during install and (I expect) easy to fix with the suggested dependency change. Hope this helps :-) |
Hm, looking more closely, it seems that Line 517 in 3061442
This means that my workaround for problem 5 doesn't actually work (but I can patch the Makefile to be like OpenMSX to make it work anyway), and that point 6 is actually moot, since the dependency is correct for the rule here. For extra confusion, I see that in OpenGFX, "make install" actually does another thing, so we have:
Maybe it would be good to unify these and let them all behave the same? For the Debian package, the GFX version would be the easiest, but maybe other packagers need the other options? I guess it would be fairly easy to implement multiple (e.g. |
IIRC OpenGFX and OpenSFX can work from tar, but OpenMSX needs to be fully extracted. |
Ah, good point, OpenTTD can probably read files from tarballs, but (at least with the timidity music driver) music files must be accessible by external programs. However, for the Debian package, shipping tarballs inside a package is discouraged, since it just creates extra layers and makes it harder to inspect and compare packages, so I'd still need the non-tar version. |
This fixes a part of OpenTTD#47.
This fixes a part of OpenTTD#47.
This fixes a part of OpenTTD#47.
While building the Debian package for the latest release, I came across a few issues:
make
generatessrc/opensfx.sfo
, butmake clean
does not clean it.opensfx.obs
file, but runningmake
regenerates this file (becauseopensfx.cat
is not present, which is generated and the obs depends on the cat, so the obs is regenerated). Is this intentional? This is somewhat problematic, since the build now (potentially) modifies a file from the tarball, andmake clean
then removes it, which means thatmake && make clean
leave the build dir in a different state.make check
does no longer work. The Makefile part that handles this seems to usegrfid
and expectopensfx.grf
to exist, which is not the case.Makefile.config
does specifyMD5_SRC_FILENAME
(pointing to the obs file), but that file contains more than just an md5 file, so I'm not exactly sure how this is intended. The old makefile system would ship anopensfx-0.2.3.md5
in the tarball, and then just generate md5sums of the relevant files (only the .cat file I think) and compare those with the shipped file. What is the intention here?scripts/Makefile.{bundles,def,common}
, but these seem unused?make bundle
no longer seems to work to install the bundle into$(DIR_NAME)
as before (and as documented). Weirdly enough it just says "make: Nothing to be done for 'bundle'", but I can't actually find a rule forbundle
(perhaps some wildcard rule or something). This rule was previously used by the Debian package to install individual files into/usr/share/games/openttd/baseset/opensfx
(rather than a tarball), since there is not much point in merging files into a tarball inside a Debian package (though I'm now switching to usingmake install
instead, which also installs separate files).make install
generates a tarball, but does not actually use it (instead, it installs separate files, which is what I'm using now). I think it could just depend on$(DIR_NAME)
rather than$(DIR_NAME).tar
.The text was updated successfully, but these errors were encountered: