Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
[Linux] Moving arch-dependent plugins out of /usr/share
TheTuxKeeper:
I'm testing my changes atm. Have installed dpkg on my suse (uhhh, it's a strange feeling using dpkg here :mrgreen: ). Only some undefined DEB_* variable warnings (what shouldn't be serious ?) and of course ignored dependency errors ;)
I don't know if more splitting is needed, but I haven't thought about it yet and I don't know how much arch-independent files there are around. perhaps there are some good reasons to split. but imo e.g. the lib split is too much for just 2 files. but it's my opinion and I don't do this with my rpm packages. :)
EDIT:
had to disable dh_shlibdeps since dpkg hasn't any installed packages to get dependencies from. but the rest seem to be as expected. contens of the packages are fine.
Will upload the patch now and post the link here
EDIT2:
Here is the link to the patch: [ Patch #2529 ] patch to move plugins to /usr/lib/codeblocks/plugins
pasgui:
Moving plugins to /usr/lib/codeblocks/ with your patch 2529 works on Ubuntu 8.04.
Regards, pasgui
[attachment deleted by admin]
TheTuxKeeper:
Thanks for testing :)
The changes in configmanager.cpp shouldn't affect other platforms (I don't see anything harmful). Am I right? I'm not the experienced coder, most is just theoretical knowledge ;)
Jenna:
--- Quote from: daniel2000 on July 26, 2008, 09:28:55 pm ---Thanks for testing :)
The changes in configmanager.cpp shouldn't affect other platforms (I don't see anything harmful). Am I right? I'm not the experienced coder, most is just theoretical knowledge ;)
--- End quote ---
I tested your patch and it works correctly for builds with "./configure ...", but it breaks build with "*.cbp" file on Linux, because it looks for the plugin-libs in "/usr/lib/codeblocks".
The easiest way to avoid this seems to be to I add a define that tells the compiler that it makes an "autoconf"-build.
I also created codeblocks-common, a package that contains the architecture-independent files of the main codeblocks-package.
It's a matter of taste if someone will do it this way, but I think it makes sense, because both packages have a size of 2 MB.
I uploaded the patch (also including some changes to "debian/rules"-file and the other changes I use for my repo) to my server.
You can download and have a look at it:
unpacked patch
patch packed with 7z
I tested the sources on debian sid 64bit-build (with "dpkg-buildpackage" and with .cbp-file) and on w2k (only .cbp).
I will not be reachable for the rest of the week (out for work and no internet).
TheTuxKeeper:
Seems that there are problems on amd64 machines: http://forums.codeblocks.org/index.php/topic,8858.msg64488.html#msg64488
As I replied there, I think it's the wxwidgets function I use in configmanager.cpp (wxStandardPathsBase::Get().GetPluginsDir()) and if i read the docs I don't see any special mentioning of amd64 platforms :|
I don't know when I find the time to look into that, but perhaps someone with wxwidgets experience could solve this :wink:
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version