PANIC: unprotected error in call to Lua API (attempt to index a nil value)
PR: 195240
Red Hat bug: https://bugzilla.redhat.com/show_bug.cgi?id=1045632
Patch by: Chris Rankin (Comments 13-16)
Obtained from: celestia-1.6.1-15.fc20.src.rpm
While here add a couple of patches obtain from the fedora project to fix
compilation with modern compilers and allows to build with lua 5.2
Switch lua to lua 5.2 version
Use desktop file provided by upstream instead of the version provided in
the ports (the upstream version is more complete)
Switch to USES=libtool
Now that overlinking is not happening anymore fix the glut version not
linking properly because it lacks an explicit link to libGL.
- Patch things with sed(1) during `post-patch' instead of `pre-patch'
- Fix Lua detection properly (patch corresponding pkg-config(1) calls)
- Offload CONFIGURE_ENV, add work-around for Gentoo bug #316573 (some
messages were misplaced on systems where char is unsigned by default,
e.g. PowerPC)
- Allow add-ons to be placed inside user's home directory
- Drop explicit USE_XORG, improve on comments, do some minor cleanups
- Rephrase IGNORE statement so it reads better
- Make Lua support mandatory, build fails without it
- Include support for Theora video capture
- Minor Makefile cleanups
Submitted by: Olexandr Sydorchuk (parts)
- Do not use OPTIONS for the mutually exclusive UI choices, use
conflicting slave ports (celestia-gnome and celestia-gtk)
- Axe KDE support since I cannot test it (patches welcome)
- Enable Lua support by default
- Always install a desktop entry
- Relayout the Makefile
- Take maintainership