Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 929139 - dev-util/codeblocks: port to wxGTK 3.2
Summary: dev-util/codeblocks: port to wxGTK 3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-04-11 14:25 UTC by Pacho Ramos
Modified: 2024-06-08 12:30 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2024-04-11 14:25:29 UTC
Hello,

It seems codeblocks SVN was ported months ago to wxGTK 3.2. Sadly, it seems that upstream doesn't release an updated version with those fixes. I noticed that other distributions are either:
- Applying multiple patches to fix this (and other bugs):
https://gitlab.archlinux.org/archlinux/packaging/packages/codeblocks/-/blob/main/PKGBUILD?ref_type=heads
- Using the SVN snapshot from 20230124
https://src.fedoraproject.org/rpms/codeblocks/blob/rawhide/f/codeblocks.spec
https://packages.debian.org/sid/source/codeblocks

I am not sure if we could opt for one of these options :/

Thanks a lot
Comment 1 Sergey Torokhov 2024-04-11 14:41:34 UTC
I thought about it and also saw patched codeblocks 20.03 compatible with wxgtk-3.2 in Alt Linux.

The more recent "nightly builds" are available but sourceforge svn snapshots are generated on requesrt and url is cached temporary. So it must be cached by gentoo mirrors in several days, I don't know exact time limit. I want to ask upstream to provide  "nightly" build snapshots as releade snapshots too. Unfortunately new release is still unavailable while it now contains clangd language server support - so recent snapshot will be more usefull  then just porting 20.03 to wxgtk-3.2.
Comment 2 Jason Lethbridge 2024-04-26 03:13:37 UTC
In addition to what Sergey said: Code::Blocks 20.03 will fail to build for ~riscv. Debians unstable repository has a RV64 build that reports itself as version svn 13046 built with wx3.2.1 and GCC 12.2.0
Comment 3 Sergey Torokhov 2024-04-27 16:45:30 UTC
I created the pull request for new ebuild and updated it today for r13513. The problem is that URL to generated *.zip files from Sourceforge lives lesser than 24 hour. New generated archives have differ checksum.

Actually the any revision could be build with the aid of helper ESVN_REVISION user variable via command (where 13513 is requested revision):
> ESVN_REVISION=13513 emerge -1av =dev-util/codeblocks-9999
Comment 4 Sergey Torokhov 2024-05-10 23:22:27 UTC
Update the ubuild for revision 13518 and provide source tarballs via my own github gentoo-overlay repo like tarballs for `app-doc/cantera-doc` package.
Comment 5 Pacho Ramos gentoo-dev 2024-06-07 14:00:57 UTC
Isn't there any snapshot "stable" enough that could be keyworded? Otherwise, most people will keep using the old version forever :/ 

Snapshot from 20230124 looks to be stable enough for other distributions, but if you find a newer suitable one, even better :)

Thanks
Comment 6 Larry the Git Cow gentoo-dev 2024-06-08 12:30:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acbf41fcc5b33c5d25524204631ee292e35a690e

commit acbf41fcc5b33c5d25524204631ee292e35a690e
Author:     Sergey Torokhov <torokhov-s-a@yandex.ru>
AuthorDate: 2024-04-26 22:11:25 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-06-08 12:30:41 +0000

    dev-util/codeblocks: dev preview 20.03_p13518 (2024-05-05) bump
    
    Add unkeyworded "Nightly build" dev preview at revision 13518 [1].
    
    The upstream "nightly" revisions are notable for using wxGTK:3.2
    and addition of new optfeatured LSP Clangd_client plugin
    that could replace enabled by default Code competion plugin.
    
    [1] https://forums.codeblocks.org/index.php/topic,25791.0.html
    
    Closes: https://bugs.gentoo.org/929139
    
    Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-util/codeblocks/Manifest                       |   2 +
 dev-util/codeblocks/codeblocks-20.03_p13518.ebuild | 125 ++++++++
 ...13518_FortranProject-r378-autotools-build.patch | 340 +++++++++++++++++++++
 3 files changed, 467 insertions(+)