Author Topic: gtk+2-2.24.10  (Read 735 times)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
gtk+2-2.24.10
« on: May 22, 2012, 04:13:55 AM »
Hey all,

I've been trying to build GIMP 2.8, and it requires several of our packages getting updated. Among them is gtk+2. Our repo version is 2.24.5 (for 32-bit) and 2.24.7 (for 64-bit). I managed to get it packaged but there is a problem. When testing it on my test install, it wanted to remove a whole lot of files.

I may have missed something but for the hazy colored clouds hovering over my head, I cannot see where I got it wrong. Let me repeat, it built successfully on 64-bit and only in getting our installed version updated is ... is ... can I swear here?  ;)

I've been at it for over two weeks and I am not closer to finding out where it has gone wrong.

Any assistance is immensely appreciated.

Peace and much respect,
Archie.

P.S. The SRPM is here
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: gtk+2-2.24.10
« Reply #1 on: May 22, 2012, 04:36:26 AM »
Hey all,

I've been trying to build GIMP 2.8, and it requires several of our packages getting updated. Among them is gtk+2. Our repo version is 2.24.5 (for 32-bit) and 2.24.7 (for 64-bit). I managed to get it packaged but there is a problem. When testing it on my test install, it wanted to remove a whole lot of files.

I may have missed something but for the hazy colored clouds hovering over my head, I cannot see where I got it wrong. Let me repeat, it built successfully on 64-bit and only in getting our installed version updated is ... is ... can I swear here?  ;)

I've been at it for over two weeks and I am not closer to finding out where it has gone wrong.

Any assistance is immensely appreciated.

Peace and much respect,
Archie.

P.S. The SRPM is here


compare the "provides" of both the old and the new version (if not already done ...):

Code: [Select]
rpm -q   <package>   --provides
among the differences you should find your issue.

AS

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: gtk+2-2.24.10
« Reply #2 on: May 22, 2012, 04:47:02 AM »
I suppose I could go over the SPECFILE again ...

AS, shouldn't the packages be installed to use --provides?
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: gtk+2-2.24.10
« Reply #3 on: May 22, 2012, 04:49:43 AM »
I suppose I could go over the SPECFILE again ...

AS, shouldn't the packages be installed to use --provides?

Yes, AFAIK.

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: gtk+2-2.24.10
« Reply #4 on: May 22, 2012, 05:45:22 AM »
I suppose I could go over the SPECFILE again ...

AS, shouldn't the packages be installed to use --provides?

Yes, AFAIK.


The problem is I can't install gtk+2-2.24.10 without removing critical packages.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: gtk+2-2.24.10
« Reply #5 on: May 22, 2012, 05:52:12 AM »
I suppose I could go over the SPECFILE again ...

AS, shouldn't the packages be installed to use --provides?

Yes, AFAIK.


The problem is I can't install gtk+2-2.24.10 without removing critical packages.

I will look into ... as soon as I finish the current task ...

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: gtk+2-2.24.10
« Reply #6 on: May 22, 2012, 06:45:31 AM »
I suppose I could go over the SPECFILE again ...

AS, shouldn't the packages be installed to use --provides?

Yes, AFAIK.


The problem is I can't install gtk+2-2.24.10 without removing critical packages.

I will look into ... as soon as I finish the current task ...



extract from build log
Quote
...
Finding  Requires: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/home/as/src/rpm/BUILDROOT/gtk+2.0-2.24.10-1_as_2012.x86_64' /usr/lib/rpm/mandriva/find-requires /home/as/src/rpm/BUILDROOT/gtk+2.0-2.24.10-1_as_2012.x86_64 x86_64
Provides: gtk+2 = 2.24.10-1_as_2012 gail = 2.24.10-1_as_2012
Requires(interp): /bin/sh
...

Quote
$ rpm -q gtk+2.0-2.24.7 --provides
gtk+2 = 2.24.7-2pclos2011
gail = 2.24.7-2pclos2011
gtk+2.0 = 2.24.7-2pclos2011
gtk+2.0(x86-64) = 2.24.7-2pclos2011


BTW, while rebuilding your package got this errors:
Quote
RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/lib64/girepository-1.0/Gdk-2.0.typelib
   /usr/lib64/girepository-1.0/GdkX11-2.0.typelib
   /usr/lib64/girepository-1.0/Gtk-2.0.typelib
   /usr/share/gir-1.0/Gdk-2.0.gir
   /usr/share/gir-1.0/GdkX11-2.0.gir
   /usr/share/gir-1.0/Gtk-2.0.gir

Am I doing something wrong ?

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: gtk+2-2.24.10
« Reply #7 on: May 22, 2012, 06:57:04 AM »
[extract from build log
Quote
...
Finding  Requires: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/home/as/src/rpm/BUILDROOT/gtk+2.0-2.24.10-1_as_2012.x86_64' /usr/lib/rpm/mandriva/find-requires /home/as/src/rpm/BUILDROOT/gtk+2.0-2.24.10-1_as_2012.x86_64 x86_64
Provides: gtk+2 = 2.24.10-1_as_2012 gail = 2.24.10-1_as_2012
Requires(interp): /bin/sh
...

Quote
$ rpm -q gtk+2.0-2.24.7 --provides
gtk+2 = 2.24.7-2pclos2011
gail = 2.24.7-2pclos2011
gtk+2.0 = 2.24.7-2pclos2011
gtk+2.0(x86-64) = 2.24.7-2pclos2011

Shouldn't that be the case since the upgrade is 2.24.10 so the provides should also be the same %version?

Quote
BTW, while rebuilding your package got this errors:
Quote
RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/lib64/girepository-1.0/Gdk-2.0.typelib
   /usr/lib64/girepository-1.0/GdkX11-2.0.typelib
   /usr/lib64/girepository-1.0/Gtk-2.0.typelib
   /usr/share/gir-1.0/Gdk-2.0.gir
   /usr/share/gir-1.0/GdkX11-2.0.gir
   /usr/share/gir-1.0/Gtk-2.0.gir

Am I doing something wrong ?


More installed but unpackaged files ... if somewhere on the %file section those items were commented out then they might have been Files not found on my system.

If, however, the above files were not on the SPECFILE then it's something new to me.

Peace and much respect ... and thanks for taking the time for this.
Archie
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: gtk+2-2.24.10
« Reply #8 on: May 22, 2012, 07:16:33 AM »
[extract from build log
Quote
...
Finding  Requires: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/home/as/src/rpm/BUILDROOT/gtk+2.0-2.24.10-1_as_2012.x86_64' /usr/lib/rpm/mandriva/find-requires /home/as/src/rpm/BUILDROOT/gtk+2.0-2.24.10-1_as_2012.x86_64 x86_64
Provides: gtk+2 = 2.24.10-1_as_2012 gail = 2.24.10-1_as_2012
Requires(interp): /bin/sh
...

Quote
$ rpm -q gtk+2.0-2.24.7 --provides
gtk+2 = 2.24.7-2pclos2011
gail = 2.24.7-2pclos2011
gtk+2.0 = 2.24.7-2pclos2011
gtk+2.0(x86-64) = 2.24.7-2pclos2011

Shouldn't that be the case since the upgrade is 2.24.10 so the provides should also be the same %version?

The point is that if a package "require" gtk+2.0, your lib doesn't provide it with that name, therefore it is going to satisfy packages that require "gtk+2", but not packages that require "gtk+2.0" which therefore would be removed ...


Quote
Quote
BTW, while rebuilding your package got this errors:
Quote
RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/lib64/girepository-1.0/Gdk-2.0.typelib
   /usr/lib64/girepository-1.0/GdkX11-2.0.typelib
   /usr/lib64/girepository-1.0/Gtk-2.0.typelib
   /usr/share/gir-1.0/Gdk-2.0.gir
   /usr/share/gir-1.0/GdkX11-2.0.gir
   /usr/share/gir-1.0/Gtk-2.0.gir

Am I doing something wrong ?


More installed but unpackaged files ... if somewhere on the %file section those items were commented out then they might have been Files not found on my system.

If, however, the above files were not on the SPECFILE then it's something new to me.

Peace and much respect ... and thanks for taking the time for this.
Archie

I found the commented lines, reenabled, and added a dependency to lib(64)girepository ...
rebuilding right now ...

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: gtk+2-2.24.10
« Reply #9 on: May 22, 2012, 07:50:28 AM »
Hot dang! I understood that! Thanks for the enlightenment, AS ... and I don't mean the 17. ;)
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: gtk+2-2.24.10
« Reply #10 on: May 22, 2012, 07:55:03 AM »
Modified the specfile,by adding the lines in bold:

Quote
BuildRequires:  fam-devel
BuildRequires:  %{_lib}girepository1.0_1
%if %enable_gtkdoc
BuildRequires: gtk-doc >= 0.9
BuildRequires: sgml-tools
BuildRequires: texinfo
%endif
BuildRequires: fonts-ttf-dejavu
Requires: %{libname} = %{version}
Provides:       %{pkgname}2.0 = %{version}-%{release}
Obsoletes:      %{pkgname}2.0 < %{version}-%{release}

Provides:       %{pkgname}2 = %{version}-%{release}
Obsoletes:      %{pkgname}2 < %{version}-%{release}
Provides:       gail = %version-%release
Conflicts:      gail < %version-%release

a tentative install issues minor dependencies, due to my 64 bit machine state ...

Quote
# apt-get install *2.24.10*
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting gtk+2.0 for 'gtk+2.0-2.24.10-1_as_2012.x86_64.rpm'
Selecting lib64gail18 for 'lib64gail18-2.24.10-1_as_2012.x86_64.rpm'
Selecting lib64gail-devel for 'lib64gail-devel-2.24.10-1_as_2012.x86_64.rpm'
Selecting lib64gtk+2.0_0 for 'lib64gtk+2.0_0-2.24.10-1_as_2012.x86_64.rpm'
Selecting lib64gtk+2.0_0-devel for 'lib64gtk+2.0_0-devel-2.24.10-1_as_2012.x86_64.rpm'
Selecting lib64gtk+-x11-2.0_0 for 'lib64gtk+-x11-2.0_0-2.24.10-1_as_2012.x86_64.rpm'
Some packages could not be installed. This may mean that you have
requested an impossible situation or that some of the repositories
in use are in an inconsistent state at the moment.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  lib64gtk+-x11-2.0_0: Depends: lib64atk1.0 (>= %{req_atk_version}) but it is not installable
  lib64gtk+2.0_0: Depends: lib64pango1.0 (>= %{req_pango_version}) but it is not installable
  lib64gtk+2.0_0-devel: Depends: lib64gdk_pixbuf2.0-devel (>= 2.21.0) but it is not installable
E: Broken packages

EDIT: cross posting ...  ;)

AS
« Last Edit: May 22, 2012, 08:02:33 AM by AS »

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: gtk+2-2.24.10
« Reply #11 on: May 22, 2012, 08:05:09 AM »
Thanks for the missing BuildRequires:.
....

Also, I used %{pkgname}%{api_version} = %{version}-%{release}.

....

More stuff to look at!
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42