[zypp-devel] Unable to install ARM packages.

Hi, In MeeGo 1.3 we are having a lot of problems with ARM architecture where are are not able to install packages. Output to the terminal when "zypper install nano" is called: http://pastie.org/2491766 /var/log/zypper.log file: http://pastie.org/2491761 Any suggestions? libzypp has already the linker.patch that adds the "list( REVERSE zypp_lib_SRCS )" line to zypp/CMakeLists.txt. Regards, Marko -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

The root cause is some packages is not installable, such as the following line in logs: 2000-01-01 08:41:52 <1> localhost.localdomain(3969) [zypp] SATResolver.cc(problems):1091 nano-2.2.4-3.139.armv7hl is not installable I have checked the related code, and found the uninstallable flag is set in solver_addrpmrulesforsolvable() as follows: if (!dontfix && s->arch != ARCH_SRC && s->arch != ARCH_NOSRC && !pool_installable(pool, s)) { addrpmrule(solv, -n, 0, SOLVER_RULE_RPM_NOT_INSTALLABLE, 0); } And I think pool_installable(pool, s) return 0, so let's go into it: static inline int pool_installable(const Pool *pool, Solvable *s) { if (!s->arch || s->arch == ARCH_SRC || s->arch == ARCH_NOSRC) return 0; if (s->repo && s->repo->disabled) return 0; if (pool->id2arch && (s->arch > pool->lastarch || !pool->id2arch[s->arch])) return 0; if (pool->considered) { Id id = s - pool->solvables; if (!MAPTST(pool->considered, id)) return 0; } return 1; } I think it's still the arch issue, could you please debug this function and check each conditions? Developers, any other suggestions? Thanks Xiaoqiang -----Original Message----- From: Marko Saukko [mailto:marko.saukko@cybercom.com] Sent: Tuesday, September 06, 2011 10:28 PM To: zypp-devel@opensuse.org Subject: [zypp-devel] Unable to install ARM packages. Hi, In MeeGo 1.3 we are having a lot of problems with ARM architecture where are are not able to install packages. Output to the terminal when "zypper install nano" is called: http://pastie.org/2491766 /var/log/zypper.log file: http://pastie.org/2491761 Any suggestions? libzypp has already the linker.patch that adds the "list( REVERSE zypp_lib_SRCS )" line to zypp/CMakeLists.txt. Regards, Marko -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On Tuesday 06 September 2011 16:27:44 Marko Saukko wrote:
Hi,
In MeeGo 1.3 we are having a lot of problems with ARM architecture where are are not able to install packages.
Q: You are overriding the system architecture in zypp.conf ('armv7l' -> 'armv7hl'). Is this intended, or is libzypps autodetection wrong? Uname seems to report 'armv7l'.
Output to the terminal when "zypper install nano" is called: http://pastie.org/2491766
/var/log/zypper.log file: http://pastie.org/2491761
Any suggestions?
Please redo with 'ZYPP_LIBSAT_FULLLOG=1' to turn on verbose logging when resolving dependencies, and send the zypper.log. The sovler says the package is not installable. maybe we can figure out why. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

Please redo with 'ZYPP_LIBSAT_FULLLOG=1' to turn on verbose logging when resolving dependencies, and send the zypper.log. The sovler says the package is not installable. maybe we can figure out why.
After some debugging, I have found that pool->id2arch[] is empty, which means pool->id2arch[0] = 0, pool->id2arch[1] = 0, .... What's wrong with here? Any suggestion, thanks. Thanks Xiaoqiang -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On 09/07/2011 12:13 PM, Michael Andres wrote:
On Tuesday 06 September 2011 16:27:44 Marko Saukko wrote:
Hi,
In MeeGo 1.3 we are having a lot of problems with ARM architecture where are are not able to install packages.
Q: You are overriding the system architecture in zypp.conf ('armv7l' -> 'armv7hl'). Is this intended, or is libzypps autodetection wrong? Uname seems to report 'armv7l'.
Yes, that is intended as for the hardfloat architectures the uname returns wrong values. Uname reports armv7l with all the following architectures: armv7hl, armv7nhl, armv7thl, armv7tnhl. Se conversation in https://bugs.meego.com/show_bug.cgi?id=11484
Output to the terminal when "zypper install nano" is called: http://pastie.org/2491766
/var/log/zypper.log file: http://pastie.org/2491761
Any suggestions?
Please redo with 'ZYPP_LIBSAT_FULLLOG=1' to turn on verbose logging when resolving dependencies, and send the zypper.log. The sovler says the package is not installable. maybe we can figure out why.
What comes to the original problem I found a bug from one of the meego patches that adds armv7tnhl and armv7thl architectures that probably caused my original problem in the first place. Thanks for the debugging point hints and sry for the fuzz about this. Submitted fixed of the architecture patch to https://gitorious.org/opensuse/sat-solver/merge_requests/3 is this the right upstream? Regards, Marko -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org

On Tuesday 06 September 2011 16:27:44 Marko Saukko wrote:
Hi,
In MeeGo 1.3 we are having a lot of problems with ARM architecture where are are not able to install packages.
Output to the terminal when "zypper install nano" is called: http://pastie.org/2491766
/var/log/zypper.log file: http://pastie.org/2491761
Any suggestions?
[http://build.meego.com/package/view_file?file=0002-Add-armv7tnhl-and-armv7th...' Q: The satsolver version you are using: Is it derived from build.meego.com/devel:packagemanagement/libsatsolver and has 0002-Add-armv7tnhl-and-armv7thl-support.patch applied? "ppc64", "ppc64:ppc", "ppc", "ppc", + "armv7tnhl", "arvm7tnhl:armv7thl:armv7nhl:armv7hl", + "armv7thl", "armv7thl:armv7hl" <================= a ',' is missing here! "armv7nhl", "armv7nhl:armv7hl", "armv7hl", "armv7hl", "armv7l", "armv7l:armv6l:armv5tejl:armv5tel:armv5l:armv4tl:armv4l:armv3l", Messing up the key/value pairs like this would explain why the solver rejects the packages as not installable (due to incomapt. arch). -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres SUSE LINUX Products GmbH, Development, ma@suse.de 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (3)
-
Marko Saukko
-
Michael Andres
-
Zhang, Qiang Z