Bug 525213 - -devel multilib conflict: python gdb scripts
Summary: -devel multilib conflict: python gdb scripts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glib2
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 525500 (view as bug list)
Depends On:
Blocks: 890526
TreeView+ depends on / blocked
 
Reported: 2009-09-23 17:03 UTC by Jan Kratochvil
Modified: 2012-12-27 14:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-25 15:16:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2009-09-23 17:03:55 UTC
Description of problem:
`yum update' fails with multilib glib2 installed fails.

Version-Release number of selected component (if applicable):
glib2-devel-2.22.0-1.fc12

How reproducible:
Always.

Steps to Reproduce:
yum update

Actual results:
Transaction Check Error:
  file /usr/share/glib-2.0/gdb/glib.pyc conflicts between attempted installs of glib2-devel-2.22.0-1.fc12.i686 and glib2-devel-2.22.0-1.fc12.x86_64
  file /usr/share/glib-2.0/gdb/glib.pyo conflicts between attempted installs of glib2-devel-2.22.0-1.fc12.i686 and glib2-devel-2.22.0-1.fc12.x86_64
  file /usr/share/glib-2.0/gdb/gobject.pyc conflicts between attempted installs of glib2-devel-2.22.0-1.fc12.i686 and glib2-devel-2.22.0-1.fc12.x86_64
  file /usr/share/glib-2.0/gdb/gobject.pyo conflicts between attempted installs of glib2-devel-2.22.0-1.fc12.i686 and glib2-devel-2.22.0-1.fc12.x86_64

Expected results:
Updated glib2.

Additional info:
This is a bug in gdb as its "auto-load" directory containing python scripts must not be in @datadir@ being defined as:
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]

The proper location needs to be resolved by gdb itself first.

As gdb.rpm is never installed multilib itself and libstdc++ scripts are currently contained in gdb.rpm this upstream (=FSF GDB) python bug was not hit.

Comment 1 Matthias Clasen 2009-09-24 20:01:06 UTC
*** Bug 525500 has been marked as a duplicate of this bug. ***

Comment 2 Mamoru TASAKA 2009-09-25 04:24:13 UTC
Well,

https://www.redhat.com/archives/fedora-extras-commits/2009-September/msg07621.html

But build.log shows
http://kojipkgs.fedoraproject.org/packages/glib2/2.22.0/3.fc12/data/logs/i686/
-------------------------------------------------------------
  2980  + rm -f '/builddir/build/BUILDROOT/glib2-2.22.0-3.fc12.i386/usr/share/glib-2.0/gdb/*.pyc' '/builddir/build/BUILDROOT/glib2-2.22.0-3.fc12.i386/usr/share/glib-2.0/gdb/*.pyo'
......
  3007  + /usr/lib/rpm/brp-python-bytecompile
-------------------------------------------------------------
i.e. no files are removed by 
"rm -f $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb/*.{pyc,pyo}"
like, these pyo,pyc files are created by brp-python-bytecompile.

http://koji.fedoraproject.org/koji/fileinfo?rpmID=1570732&filename=/usr/share/glib-2.0/gdb/glib.pyc
http://koji.fedoraproject.org/koji/fileinfo?rpmID=1570724&filename=/usr/share/glib-2.0/gdb/glib.pyc

--------------------------------------------------------------
[mtasaka@thulsadoom RPMS]$ ls -al *rpm
-rw-rw-r--. 1 mtasaka mtasaka 1029216 2009-09-24 08:37 glib2-2.22.0-3.fc12.i686.rpm
-rw-rw-r--. 1 mtasaka mtasaka 1045812 2009-09-24 08:37 glib2-2.22.0-3.fc12.x86_64.rpm
-rw-rw-r--. 1 mtasaka mtasaka 1055944 2009-09-24 08:37 glib2-devel-2.22.0-3.fc12.i686.rpm
-rw-rw-r--. 1 mtasaka mtasaka 1056848 2009-09-24 08:37 glib2-devel-2.22.0-3.fc12.x86_64.rpm
[mtasaka@thulsadoom RPMS]$ LANG=C rpm -Uvh --test *rpm
Preparing...                ########################################### [100%]
        file /usr/share/glib-2.0/gdb/glib.pyc conflicts between attempted installs of glib2-devel-2.22.0-3.fc12.i686 and glib2-devel-2.22.0-3.fc12.x86_64
        file /usr/share/glib-2.0/gdb/glib.pyo conflicts between attempted installs of glib2-devel-2.22.0-3.fc12.i686 and glib2-devel-2.22.0-3.fc12.x86_64
        file /usr/share/glib-2.0/gdb/gobject.pyc conflicts between attempted installs of glib2-devel-2.22.0-3.fc12.i686 and glib2-devel-2.22.0-3.fc12.x86_64
        file /usr/share/glib-2.0/gdb/gobject.pyo conflicts between attempted installs of glib2-devel-2.22.0-3.fc12.i686 and glib2-devel-2.22.0-3.fc12.x86_64
--------------------------------------------------------------

Comment 3 Matthias Clasen 2009-09-25 15:16:26 UTC
grr, 2.22.0-4 should be better


Note You need to log in before you can comment on or make changes to this bug.