Author Topic: F30: update to nightly from Jen's fails on dependency  (Read 9851 times)

Offline AZ

  • Almost regular
  • **
  • Posts: 151
F30: update to nightly from Jen's fails on dependency
« on: November 21, 2019, 10:08:38 am »
Jens,
 a little trouble in the paradise :
Code
Problem: cannot install the best update candidate for package codeblocks-17.12-12.fc30.x86_64
  - nothing provides libwx_baseu-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_baseu-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_baseu-2.8.so.0(WXU_2.8.2)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_baseu_net-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_baseu_net-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_baseu_xml-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_baseu_xml-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_adv-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_aui-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_core-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_core-2.8.so.0(WXU_2.8.5)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_html-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_qa-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_richtext-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_xrc-2.8.so.0()(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
  - nothing provides libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) needed by codeblocks-17.12.svn.11417-1.fc29.x86_64
==================================================================================================================================================
 Package               Architecture      Version                              Repository                                                     Size
==================================================================================================================================================
Skipping packages with broken dependencies:
 codeblocks            x86_64            17.12.svn.11417-1.fc29               copr:copr.fedorainfracloud.org:jenslody:codeblocks            5.0 M

Transaction Summary
==================================================================================================================================================
Skip  1 Package

Nothing to do.

the release version was installed with no problems, but the update to nightly is not happy.
the libwx_baseu is nowhere to be found in the regular Fedora's repos...

looks like i already have GTK 2 and 3 :
Code
gtk2-2.24.32-4.fc30.x86_64
gtk-unico-engine-1.0.3-0.13.20140109bzr152.fc30.x86_64
PackageKit-gtk3-module-1.1.12-6.fc30.x86_64
gtk-update-icon-cache-3.24.11-1.fc30.x86_64
gtk3-3.24.11-1.fc30.x86_64
ibus-gtk3-1.5.20-5.fc30.x86_64
gtk2-engines-2.20.2-18.fc30.x86_64

Please advise.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: F30: update to nightly from Jen's fails on dependency
« Reply #1 on: November 21, 2019, 02:34:32 pm »
What version of wxGTK is installed?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline AZ

  • Almost regular
  • **
  • Posts: 151
Re: F30: update to nightly from Jen's fails on dependency
« Reply #2 on: November 22, 2019, 12:08:15 am »
Tim,
 I have :
Code
wxGTK3-i18n-3.0.4-8.fc30.noarch
compat-wxGTK3-gtk2-3.0.4-8.fc30.x86_64
« Last Edit: November 22, 2019, 03:26:48 am by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: F30: update to nightly from Jen's fails on dependency
« Reply #3 on: November 22, 2019, 09:37:21 am »
You need wx2.8 or a rebuild of codeblocks' rpms.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Almost regular
  • **
  • Posts: 151
Re: F30: update to nightly from Jen's fails on dependency
« Reply #4 on: November 22, 2019, 04:40:10 pm »
WxGTK 3.0.4
Released: March 8th, 2018

i suspect there are some major compability issues, if CB is still on 2.8?
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: F30: update to nightly from Jen's fails on dependency
« Reply #5 on: November 22, 2019, 07:16:27 pm »
Not anymore, at least not on Windows. I'm building CB against some recent wxWidgets master with all compatibility disabled (requires only some small changes to CB) and it's working without any issues (minus the cut off autocompletion popups in Direct2D mode). My Linux build uses some older wxWidgets 3.1, didn't find any CB issues there as well but i did only a quick test on that system.

Offline AZ

  • Almost regular
  • **
  • Posts: 151
Re: F30: update to nightly from Jen's fails on dependency
« Reply #6 on: November 22, 2019, 07:36:32 pm »
Not anymore, at least not on Windows. I'm building CB against some recent wxWidgets master with all compatibility disabled (requires only some small changes to CB) and it's working without any issues (minus the cut off autocompletion popups in Direct2D mode). My Linux build uses some older wxWidgets 3.1, didn't find any CB issues there as well but i did only a quick test on that system.

I'm on Fedora 30. the 2.8 is not available as rpm anymore.  Do you have the rpm you can share, please?
Or, perhaps, your notes on config changes for the compilation.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: F30: update to nightly from Jen's fails on dependency
« Reply #7 on: November 22, 2019, 09:11:00 pm »
My Linux is CentOS 7, that won't help you much plus i didn't build any RPM's. This one does also only ship wx 3.0.4 and its build has all compatibility enabled, CB can be build against this out-of-the-box. I have some weak memory about CB having some issues with that wx version, there was a patch made for wx but i don't know if it was backported to 3.0.4 by the wx folks or the fedora team. Building CB against that system package basically boils down to:

Code
./bootstrap
./configure --with-contrib-plugins=all,-NassiShneiderman

I disable NassiShneiderman because i don't have a system boost library available, you might need to specify the lib directory if the wrong one gets chosen (lib vs. lib64).

Building a more recent wxWidgets version yourself is also not that difficult (at least a local version, don't know how easy it is to make a RPM, never did that, maybe you can download the source RPM and use its SPEC file on a git checkout of wx), the tricky part is to figure out the required packages. Basically i ran ./configure until it didn't complain about missing stuff or disabling elements because of missing stuff.

To build CB against a recent wx with all compatibility disabled you need these two patches: https://sourceforge.net/p/codeblocks/tickets/687, https://sourceforge.net/p/codeblocks/tickets/704

Offline AZ

  • Almost regular
  • **
  • Posts: 151
Re: F30: update to nightly from Jen's fails on dependency
« Reply #8 on: November 25, 2019, 04:25:26 am »
Sodev,
 thank you very much for the information.  building nightly from the source was pleasantly uneventful and only 2 beers long.

with RPM I ran into trouble. Most likely because I haven't done any hands-on work for .. 8 years now. I'll share the results once i complete the work.
Thank you for the help.
« Last Edit: November 25, 2019, 04:54:22 am by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: F30: update to nightly from Jen's fails on dependency
« Reply #9 on: November 25, 2019, 08:19:51 pm »
make dist  and then rpmbuild -ba codeblocks*.tar.bz2 should do the work for creating the rpms. You should have the rpmbuild environment setup before running the last command.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Almost regular
  • **
  • Posts: 151
Re: F30: update to nightly from Jen's fails on dependency
« Reply #10 on: November 30, 2019, 01:58:15 am »
Code
rpmbuild -bs ./codeblocks.spec && mock --short-circuit=install -n -N -r fedora-30-x86_64 --rebuild codeblocks-17.12.svn.11925-1.fc30.src.rpm 
mock --shell
find / -name 16x16
<cut off for sanity>
...
/builddir/build/BUILD/codeblocks-17.12svn/trunk/src/plugins/codecompletion/resources/images/16x16
/builddir/build/BUILD/codeblocks-17.12svn/trunk/src/src/resources/images/infopane/16x16
/builddir/build/BUILD/codeblocks-17.12svn/trunk/src/src/resources/images/16x16
/builddir/build/BUILD/codeblocks-17.12svn/trunk/src/src/resources/images/tree/16x16
/builddir/build/BUILD/codeblocks-17.12svn/trunk/src/sdk/resources/images/16x16
/builddir/build/BUILDROOT/codeblocks-17.12.svn.11925-1.fc30.x86_64/usr/share/codeblocks/SpellChecker/16x16
/usr/share/icons/Adwaita/16x16
/usr/share/icons/hicolor/16x16

whereas :
Code
root@dell5000 result]# repoquery -l codeblocks | grep 16x16
Last metadata expiration check: 0:08:03 ago on Fri 29 Nov 2019 02:38:34 PM EST.
/usr/share/codeblocks/images/16x16
/usr/share/codeblocks/images/16x16/bookmark_add.png
/usr/share/codeblocks/images/16x16/dbginfo.png
/usr/share/codeblocks/images/16x16/dbgnext.png
/usr/share/codeblocks/images/16x16/dbgnexti.png
/usr/share/codeblocks/images/16x16/dbgpause.png
/usr/share/codeblocks/images/16x16/dbgrun.png
<cut here for sanity>

appears the "make install" based off the .spec (codeblocks.spec.fedora.in from svn 11925 )  doesn't handle images directory ?

side question:
in .spec :
Code
global svnrev             @REVISION@
what/how/why @REVISION@ is defined?
« Last Edit: November 30, 2019, 02:03:51 am by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: F30: update to nightly from Jen's fails on dependency
« Reply #11 on: November 30, 2019, 10:38:13 am »
codeblocks.spec.fedora.in is not something you should use directly. It is modified by the configure script and it is turned in to codeblocks.spec.fedora in your build folder. This file could be used for making an rpm. The spec file for rhel/centos works fine, so you could compare it and see if there are important differences.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Almost regular
  • **
  • Posts: 151
Re: F30: update to nightly from Jen's fails on dependency
« Reply #12 on: November 30, 2019, 06:51:28 pm »
>  The spec file for rhel/centos..
where do i find it?

Code
<mock-chroot> sh-5.0# find /builddir/ -name *.spec*
/builddir/build/SPECS/codeblocks.spec
/builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.in
/builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.fedora.in
/builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.fedora
/builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec
<mock-chroot> sh-5.0#
<mock-chroot> sh-5.0# diff /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.in
1c1
< %define _svnrev             0
---
> %define _svnrev             @REVISION@
64c64
< Source:                     %{name}-17.12svn0.tar.bz2
---
> Source:                     %{name}-@VERSION@.tar.bz2
224c224
< %setup -q -n codeblocks-17.12svn0
---
> %setup -q -n codeblocks-@VERSION@

<mock-chroot> sh-5.0# diff /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.fedora.in /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.fedora |more
1c1
< %global svnrev             @REVISION@
---
> %global svnrev             0
9c9
< Source0: %{name}-@VERSION@.tar.bz2
---
> Source0: %{name}-17.12svn0.tar.bz2
93c93
< %setup -q -n %{name}-@VERSION@
---
> %setup -q -n %{name}-17.12svn0
<mock-chroot> sh-5.0# diff /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.fedora | more
1,8c1
< %define _svnrev             0
< %define req_wxgtk           2.8.0
< %define _redhat             %(if [ -f /etc/redhat-release ]; then echo 1; else echo 0; fi)
< %define _mandrake           %(if [ -f /etc/mandrake-release ]; then echo 1; else echo 0; fi)
< %define _version            17.12.svn.%{_svnrev}
< %define _rel                1
< %define _release            %{_rel}
< %define jobs                %(if [ -e /usr/bin/getconf ]; then echo $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 )); else echo 1; fi)
---
> %global svnrev             0
10,16c3,19
< %if 0%{?suse_version}
< %define _release            %{_rel}.suse%{suse_version}
< %endif
< %if 0%{?mandriva_version}
< %define _release            %{_rel}.mdk%{mandrake_version}
< %define _redhat 0
< %endif
---

<removed for sanity>

<mock-chroot> sh-5.0# diff /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec /builddir/build/BUILD/codeblocks-17.12.svn/trunk/codeblocks.spec.fedora | grep 16x16
<nothing found>


the images/16x16 are not in the codeblocks.spec.fedora either.


Nov 30th: added the screenshot of the CB running with 3.0.4. Those icons are rather small. Not sure if there is an option to change the sizes.
« Last Edit: November 30, 2019, 08:03:17 pm by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: F30: update to nightly from Jen's fails on dependency
« Reply #13 on: November 30, 2019, 11:31:25 pm »
What is your DPI are you running any scaling? gtk2 or gtk3?
The spec file without fedora in the name is the generic one which works fine on centos/rhel.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline AZ

  • Almost regular
  • **
  • Posts: 151
Re: F30: update to nightly from Jen's fails on dependency
« Reply #14 on: December 01, 2019, 04:09:24 am »
What is your DPI are you running any scaling? gtk2 or gtk3?
The spec file without fedora in the name is the generic one which works fine on centos/rhel.

1600x900, XFCE. I don't think I have any scaling available or enabled.

wxGTK3-i18n-3.0.4-8.fc30.noarch
compat-wxGTK3-gtk2-3.0.4-8.fc30.x86_64

as far as the "images" goes, there is no difference in the codeblocks.spec and codeblocks.spec.fedora :
Code
<mock-chroot> sh-5.0# grep images  codeblocks.spec
%{pkgdatadir}/images/*.png
%{pkgdatadir}/images/settings/*
%{pkgdatadir}/images/codesnippets/*
%{pkgdatadir}/images/wxsmith/*
<mock-chroot> sh-5.0# grep images  codeblocks.spec.fedora
%dir %{pkgdatadir}/images
%{pkgdatadir}/images/*.png
%{pkgdatadir}/images/settings
%{pkgdatadir}/images/codesnippets
%{pkgdatadir}/images/wxsmith

at the same time the rpmfor svn 11427 has the /usr/share/codeblocks/images/16x16:
Code
repoquery -l codeblocks-0:17.12.svn.11417-1.fc29.x86_64 | grep 16x16
Last metadata expiration check: 0:37:44 ago on Sat 30 Nov 2019 10:22:35 PM EST.
/usr/share/codeblocks/images/16x16
« Last Edit: December 01, 2019, 05:01:59 am by AZ »
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)