[aur-general] Building polly-b-gone
I'm the maintainer of the polly-b-gone [1] package. Recently I made some changes, and also a comment arrived by demonicmaniac. I'm not much of a gcc and linker guru, so please comment on my hack to symlink libGLEW.so and on demonicmaniac's comment about adding -lGLU to LDFLAGS in the makefile. I searched google about -lGLU and understand that it would be needed for OpenGL usage. But the game builds and runs fine here without that flag, so why should I patch the makefile? Thanks for any info. [1] https://aur.archlinux.org/packages/polly-b-gone/
please comment on my hack to symlink libGLEW.so
Please do not do such thing. If binary version of package depends on outdated version of library, rebuild this package from source. If source version of package is incompatible with newer version of library, patch it or link it statically with older version of library.
and on demonicmaniac's comment about adding -lGLU to LDFLAGS in the makefile. I searched google about -lGLU and understand that it would be needed for OpenGL usage. But the game builds and runs fine here without that flag, so why should I patch the makefile?
If it worked earlier, it should continue to work without additional hacks. If it is linked against GLU, add "glu" to package dependencies. Use ldd to check, which libraries stuff is linked against. -- My AUR packages - https://aur.archlinux.org/packages.php?SeB=m&K=AlexanderR
On Thu, Dec 6, 2012 at 1:30 PM, <alexander.r@gmx.com> wrote:
please comment on my hack to symlink libGLEW.so
Please do not do such thing. If binary version of package depends on outdated version of library, rebuild this package from source. If source version of package is incompatible with newer version of library, patch it or link it statically with older version of library.
and on demonicmaniac's comment about adding -lGLU to LDFLAGS in the makefile. I searched google about -lGLU and understand that it would be needed for OpenGL usage. But the game builds and runs fine here without that flag, so why should I patch the makefile?
If it worked earlier, it should continue to work without additional hacks. If it is linked against GLU, add "glu" to package dependencies.
Well, patching the makefile with -lGLU solved the problem, no need to symlink libGLEW anymore. Can you please explain the reason?
On Mon, Dec 10, 2012 at 10:34:47PM +0100, SanskritFritz wrote:
On Thu, Dec 6, 2012 at 1:30 PM, <alexander.r@gmx.com> wrote:
please comment on my hack to symlink libGLEW.so
Please do not do such thing. If binary version of package depends on outdated version of library, rebuild this package from source. If source version of package is incompatible with newer version of library, patch it or link it statically with older version of library.
and on demonicmaniac's comment about adding -lGLU to LDFLAGS in the makefile. I searched google about -lGLU and understand that it would be needed for OpenGL usage. But the game builds and runs fine here without that flag, so why should I patch the makefile?
If it worked earlier, it should continue to work without additional hacks. If it is linked against GLU, add "glu" to package dependencies.
Well, patching the makefile with -lGLU solved the problem, no need to symlink libGLEW anymore. Can you please explain the reason? ---end quoted text---
I am not sure about exact reason, but this may be related to two events: 1) Introducing --as-needed linker option by default in Arch (see this [1] Fedora article for explanation) - happend long time ago 2) Splitting GLU in separate package from Mesa - recent (compared to previous change) In the past GLU was tightly integrated in Mesa and game developer probably didn't consider it separate dependency from libGL, worth explicitly linking to. [1]: http://fedoraproject.org/wiki/UnderstandingDSOLinkChange [2]: http://www.mail-archive.com/mesa-dev@lists.freedesktop.org/msg26003.html -- My AUR packages - https://aur.archlinux.org/packages.php?SeB=m&K=AlexanderR
On Mon, Dec 10, 2012 at 11:18 PM, <alexander.r@gmx.com> wrote:
On Mon, Dec 10, 2012 at 10:34:47PM +0100, SanskritFritz wrote:
Well, patching the makefile with -lGLU solved the problem, no need to symlink libGLEW anymore. Can you please explain the reason? ---end quoted text---
I am not sure about exact reason, but this may be related to two events:
1) Introducing --as-needed linker option by default in Arch (see this [1] Fedora article for explanation) - happend long time ago
2) Splitting GLU in separate package from Mesa - recent (compared to previous change)
In the past GLU was tightly integrated in Mesa and game developer probably didn't consider it separate dependency from libGL, worth explicitly linking to.
[1]: http://fedoraproject.org/wiki/UnderstandingDSOLinkChange [2]: http://www.mail-archive.com/mesa-dev@lists.freedesktop.org/msg26003.html
Thank you for the links and the explanation, things are starting to make sense for me now.
2) Splitting GLU in separate package from Mesa - recent (compared to
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/10/2012 02:18 PM, alexander.r@gmx.com wrote: previous change) In the past GLU was tightly integrated in Mesa and game developer probably didn't consider it separate dependency from libGL, worth explicitly linking to. It's been decades since I was a programmer, but in my experience, that's just the kind of sloppiness (perhaps too harsh a word) that also often gets replicated by programmers who don't go to the trouble to figure out details when they have a working example at hand. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJQxt61AAoJEBeroBJ3nQWmKUIIALNPIzhmIWk7rGOT7ahIhL00 kJ8mYyqluuSoc7O8BrpzeXArnk4azErnE49IyeBG1sblXTDqPj56psDV34hHej+a oIOur6mOFVz7NGtEN4Hz/x5AbloN0lCjCM9RSd0I9L3kVlDUBt2YfdfE/rCLksTg 8OfleMV3UjPkLLB97YXmOQPhimIuZ/YBz2veKDFjUmFOHWvQYCCKlkT66LXruPHv u9j6+JqCbOweC5HquYlJs5TZDlHBjN3oOfuDnrIgwdn236TcWhgvGAn2m14cxLxp XudJk7mxBQvAW8RsB3ON+lekBB5HHV7lbt5zt7oi7XXe5mEPHAWmBPU42cJslYI= =KFJJ -----END PGP SIGNATURE-----
participants (3)
-
alexander.r@gmx.com
-
David Benfell
-
SanskritFritz