Various patches from Debian
Posted: Tue Apr 15, 2014 7:36 pm
Hi,
Firstly, thanks for creating CodeLite! I've been looking to update the official Debian / Ubuntu packages for CodeLite. I have some patches which I've applied to the Debian package and some other suggestions.
Patches
I've added each patch as a separate attachment along with an "everything.patch" file which contains all the patches cated together. All the patches are against the CodeLite master branch - commit e2238d9f118a917cc9527d440d71b76aa9f24fcb.
u1_fix-desktop.patch
Fixes the capitalisation of CodeLite in the desktop file, and adds a "Keywords" entry to the desktop file.
http://lintian.debian.org/tags/desktop- ... entry.html
u2_kill_children_syntax_error.patch
Changes the line endings in the Runtime/codelite_kill_children script from CRLF to LF. Currently running the script causes a syntax error since /bin/sh does not understand CRLF line endings.
u3_extra-library-linking.patch
Fixes the CMakeLists in DatabaseExplorer and Plugin so they link against the necessary libraries.
u4_prevent-cxx-flags-clobbering.patch
Prevents various build scripts from overwriting the contents of CMAKE_CXX_FLAGS (by appending instead). This allows extra flags to be passed to the compiler by setting the CXXFLAGS environment variable.
u5_manual-pages.patch
Added manual pages for codelite, codelite-make, and codelite_fix_files. In the Debian package, I've moved the other executables to /usr/lib/codelite since they don't seem to be designed for execution from the terminal. For this reason, I haven't bothered adding man pages for the other executables.
Suggestions / Questions
License Clarification
In the latest CodeLite release there are 2 license files (COPYING and LICENSE) and they're both (slightly) different. Which license is right?
Duplicate RPATH settings
Currently all of CodeLite's libraries have duplicate RPATH settings. Their set once for all plugins through the LINKER_OPTIONS variable, and CMake sets the RPATH again through the CMAKE_SKIP_BUILD_RPATH variable.
Run "objdump -p <library> | grep RPATH" to see RPATH settings of a library.
Plugin resources in /usr/lib
Plugin resources are stored in /usr/lib/*/codelite/resources. Since these files are architecture-independent, they should be stored in a subdirectory of /usr/share/codelite.
James
Firstly, thanks for creating CodeLite! I've been looking to update the official Debian / Ubuntu packages for CodeLite. I have some patches which I've applied to the Debian package and some other suggestions.
Patches
I've added each patch as a separate attachment along with an "everything.patch" file which contains all the patches cated together. All the patches are against the CodeLite master branch - commit e2238d9f118a917cc9527d440d71b76aa9f24fcb.
u1_fix-desktop.patch
Fixes the capitalisation of CodeLite in the desktop file, and adds a "Keywords" entry to the desktop file.
http://lintian.debian.org/tags/desktop- ... entry.html
u2_kill_children_syntax_error.patch
Changes the line endings in the Runtime/codelite_kill_children script from CRLF to LF. Currently running the script causes a syntax error since /bin/sh does not understand CRLF line endings.
u3_extra-library-linking.patch
Fixes the CMakeLists in DatabaseExplorer and Plugin so they link against the necessary libraries.
u4_prevent-cxx-flags-clobbering.patch
Prevents various build scripts from overwriting the contents of CMAKE_CXX_FLAGS (by appending instead). This allows extra flags to be passed to the compiler by setting the CXXFLAGS environment variable.
u5_manual-pages.patch
Added manual pages for codelite, codelite-make, and codelite_fix_files. In the Debian package, I've moved the other executables to /usr/lib/codelite since they don't seem to be designed for execution from the terminal. For this reason, I haven't bothered adding man pages for the other executables.
Suggestions / Questions
License Clarification
In the latest CodeLite release there are 2 license files (COPYING and LICENSE) and they're both (slightly) different. Which license is right?
Duplicate RPATH settings
Currently all of CodeLite's libraries have duplicate RPATH settings. Their set once for all plugins through the LINKER_OPTIONS variable, and CMake sets the RPATH again through the CMAKE_SKIP_BUILD_RPATH variable.
Run "objdump -p <library> | grep RPATH" to see RPATH settings of a library.
Plugin resources in /usr/lib
Plugin resources are stored in /usr/lib/*/codelite/resources. Since these files are architecture-independent, they should be stored in a subdirectory of /usr/share/codelite.
James