Mailinglist Archive: zypp-devel (12 mails)

< Previous Next >
RE: [zypp-devel] architecture not detected correctly after glibc/gcc upgrade
I have got more findings. In Arch.cc the IdString class seems don’t works.

The asSting() method of archs always return empty string, which result in the
size of _compatSet is always 1.

Attach is my patch for debug.

With anas’s test case, I have got the follow results:

[root@localhost libzypp]# ./a.out
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
_compatSet.size() is:1
In defCompatibleWith:
_compatSet.size() is:1
i686
0
0
0
0
1


Thanks
Xiaoqiang



From: Nashif, Anas [mailto:anas.nashif@xxxxxxxxx]
Sent: 2011年7月5日 0:59
To: Michael Andres
Cc: zypp-devel@xxxxxxxxxxxx
Subject: Re: [zypp-devel] architecture not detected correctly after glibc/gcc
upgrade

I just ran this small test:




#include <iostream>

#include <list>

#include <string>

//

#include "zypp/base/Logger.h"

#include "zypp/Arch.h"



using namespace std;

using namespace zypp;



int main() {

cout << Arch("i686") << "\n";

cout << Arch_noarch.compatibleWith( Arch_i686 ) << "\n";

cout << Arch_i386.compatibleWith( Arch_i686 ) << "\n";

cout << Arch_i486.compatibleWith( Arch_i686 ) << "\n";

cout << Arch_i586.compatibleWith( Arch_i686 ) << "\n";

cout << Arch_i686.compatibleWith( Arch_i686 ) << "\n";

}







and the results are:





bash-3.2# ./arch

i686

0

0

0

0

1

So there is something really bad happening here, not sure what it could be...

Running the same on opensuse 11.4 gives only "1", and no zeros.





Anas

On Mon, Jul 4, 2011 at 12:49 PM, Anas Nashif
<anas.nashif@xxxxxxxxx<mailto:anas.nashif@xxxxxxxxx>> wrote:

On 28 Jun 2011, at 08:34, Michael Andres wrote:

On Friday 24 June 2011 14:07:30 Anas Nashif wrote:
Hi,
We just updated to glibc 2.13 and gcc 4.6 and zypper is refusing to install
anything below i686, changing the config file with

arch = i586

seems to resolve the issue and allows package installations. Not sure why
that is happening, any hints?

Hard to tell without log.


Here is a log:

http://pastebin.com/sE9mFfe8

System architecture was detected correctly?
grep 'ZConfig.cc.*SystemArchitecture:' /var/log/zypper.log




[root@localhost ~]# grep 'ZConfig.cc.*SystemArchitecture:' /var/log/zypper.log
2011-07-04 05:27:07 <1> localhost(946) [zconfig] ZConfig.cc(ZConfig):569
SystemArchitecture: 'i686' (i686)
2011-07-04 05:28:38 <1> localhost(961) [zconfig] ZConfig.cc(ZConfig):569
SystemArchitecture: 'i686' (i686)


anas





--


cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres SUSE LINUX Products GmbH, Development,
ma@xxxxxxx<mailto:ma@xxxxxxx>
GF:Jeff Hawn,Jennifer Guild,Felix Imendörffer, HRB16746(AG Nürnberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

--
To unsubscribe, e-mail:
zypp-devel+unsubscribe@xxxxxxxxxxxx<mailto:zypp-devel%2Bunsubscribe@xxxxxxxxxxxx>
For additional commands, e-mail:
zypp-devel+help@xxxxxxxxxxxx<mailto:zypp-devel%2Bhelp@xxxxxxxxxxxx>


< Previous Next >
List Navigation
Follow Ups