Various patches from Debian
-
- CodeLite Curious
- Posts: 5
- Joined: Mon Apr 07, 2014 7:04 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Various patches from Debian
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
You do not have the required permissions to view the files attached to this post.
-
- CodeLite Curious
- Posts: 5
- Joined: Mon Apr 07, 2014 7:04 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Various patches from Debian
More patch files
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Various patches from Debian
Does this means that wx3.0 has finally arrived to Debian?jcowgill wrote: I have some patches which I've applied to the Debian package and some other suggestions.
LICENSEjcowgill wrote:In the latest CodeLite release there are 2 license files (COPYING and LICENSE) and they're both (slightly) different. Which license is right?
Is this really worth fixing? i.e. is this something that would prevent codelite package in official Debianjcowgill wrote: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.
repository?jcowgill wrote: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.
This might involve some code changes, similar to the above, is this really worth fixing?
Thanks,
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Mon Apr 07, 2014 7:04 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Various patches from Debian
It should be in the next Debian release and in Ubuntu 14.04.eranif wrote:Does this means that wx3.0 has finally arrived to Debian?
Debian: http://packages.qa.debian.org/w/wxwidgets3.0.html
Ubuntu: https://launchpad.net/ubuntu/+source/wxwidgets3.0
Neither of these will prevent updating codelite in Debian, but I would consider them bugs. I added some simple fixes for them in the Debian package (I just symlinked the resources directory to usr/share) so they don't need to be fixed here anytime soon.eranif wrote:Is this really worth fixing? i.e. is this something that would prevent codelite package in official Debianjcowgill wrote: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.
repository?jcowgill wrote: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.
This might involve some code changes, similar to the above, is this really worth fixing?
James
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Various patches from Debian
Thanks for the reply.
I will look at the patches as soon as I can.
OT question:
Is Debian or Ubuntu supports liblldb-dev package? (its the next generation debugger from LLVM/CLANG)
Eran
I will look at the patches as soon as I can.
OT question:
Is Debian or Ubuntu supports liblldb-dev package? (its the next generation debugger from LLVM/CLANG)
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 5
- Joined: Mon Apr 07, 2014 7:04 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Various patches from Debian
There's lldb-3.3-dev and lldb-3.4-dev which should be available in the next Debian release like wxWidgets3.eranif wrote: OT question:
Is Debian or Ubuntu supports liblldb-dev package? (its the next generation debugger from LLVM/CLANG)
https://packages.debian.org/unstable/lldb-3.3-dev
James
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Various patches from Debian
Ah, nice. These are very good news.jcowgill wrote:There's lldb-3.3-dev and lldb-3.4-dev which should be available in the next Debian release like wxWidgets3.
codelite 6.0 will have lldb debugger support, so I wondered whether I should bother and package them as well ... or use one of the pre-prepared packages
Thanks,
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Various patches from Debian
Hi,
Thanks for the patches. I've just applied 4 of them.
I'm not sure about u3_extra-library-linking.patch though, the one that adds GTK2_LIBRARIES to the link line. Things seem to build OK at the moment, even without DT_NEEDED (which I presume is the reason for the change). Do you know of a situation where it currently fails?
Also, if it's to go ahead, presumably it'll need GTK3_LIBRARIES for gtk3 builds...
Regards,
David
Thanks for the patches. I've just applied 4 of them.
I'm not sure about u3_extra-library-linking.patch though, the one that adds GTK2_LIBRARIES to the link line. Things seem to build OK at the moment, even without DT_NEEDED (which I presume is the reason for the change). Do you know of a situation where it currently fails?
Also, if it's to go ahead, presumably it'll need GTK3_LIBRARIES for gtk3 builds...
Regards,
David
-
- CodeLite Curious
- Posts: 5
- Joined: Mon Apr 07, 2014 7:04 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Various patches from Debian
It runs because whenever the DatabaseExplorer plugin is loaded, the GTK libraries will have (coincidentally) been previously loaded by codelite itself. So it works but I got warnings from debian packaging tools which don't like this. It also looks a little fishy trying to find GTK earlier on in the file and never using the result.DavidGH wrote: I'm not sure about u3_extra-library-linking.patch though, the one that adds GTK2_LIBRARIES to the link line. Things seem to build OK at the moment, even without DT_NEEDED (which I presume is the reason for the change). Do you know of a situation where it currently fails?
Yes you're right, I must have forgot to update the patch.DavidGH wrote: Also, if it's to go ahead, presumably it'll need GTK3_LIBRARIES for gtk3 builds...
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: Various patches from Debian
Fair enough. I've applied the amended patch.
Thanks again.
Thanks again.