[Bug 402597] New: Zypp cannot read solv file
https://bugzilla.novell.com/show_bug.cgi?id=402597 Summary: Zypp cannot read solv file Product: openSUSE 11.0 Version: Final Platform: x86 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: llunak@novell.com QAContact: qa@suse.de Found By: --- New instalation of 11.0 (with few modifications, but none should be relevant for this). Installation itself went fine, after trying to add community repositories I'm unable to use zypper or 'yast2 -i' for anything. The error is "Error reading solv-file: /var/cache/zypp/solv/openSUSE-11.0-Updates/solv" or similar. I could already reproduce it on another machine before, but there 'zypper clean -m' and 'zypper refresh' avoided the problem. However here, no matter what I try, it appears the system is unable to create the caches. I even tried copying /var/cache/zypp from another machine, that works fine until things need to be refreshed. Even things like removing all repositories, or even wiping out /var/cache/zypp don't help. Attached is /var/log/zypper.log for the following sequence: $ zypper lr No repositories defined. Use the 'zypper addrepo' command to add one or more repositories. $ zypper ar http://download.opensuse.org/distribution/11.0/repo/oss 'OSS' Adding repository 'OSS' [done] Repository 'OSS' successfully added Enabled: Yes Autorefresh: No URI: http://download.opensuse.org/distribution/11.0/repo/oss $ zypper search blahblah Building repository 'OSS' cache [done] Building repository 'OSS' cache [done] Problem loading data from 'OSS' Error reading solv-file: /var/cache/zypp/solv/OSS/solv Try 'zypper refresh', or even 'zypper clean -m' before doing so. Resolvables from 'OSS' not loaded because of error. Reading installed packages... No resolvables found. (Yes, it looks like it tries to build the cache twice, but it doesn't always do that. It doesn't work in either case though.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User llunak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c1 --- Comment #1 from Lubos Lunak <llunak@novell.com> 2008-06-22 14:34:59 MDT --- Created an attachment (id=223627) --> (https://bugzilla.novell.com/attachment.cgi?id=223627) zypper.log.gz -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User llunak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c2 --- Comment #2 from Lubos Lunak <llunak@novell.com> 2008-06-23 08:18:32 MDT --- It is caused by having $CDPATH set (mine is 'CDPATH=.:/media:/mnt:/usr/share:/usr:/home'). The solv file is generated by redirecting output of the repo2solv.sh script and the script apparently does cd somewhere, which gets written at the beginning of the file (specifically, the path is e.g. /var/cache/zypp/raw/repo-oss/suse/setup/descr). I suggest 'unset CDPATH' at the beginning of repo2solv.sh (or beating hard whoever invented this cd+CDPATH misfeature). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User psychonaut@nothingisreal.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c3 Tristan Miller <psychonaut@nothingisreal.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |psychonaut@nothingisreal.com --- Comment #3 from Tristan Miller <psychonaut@nothingisreal.com> 2008-06-23 15:14:34 MDT --- *** Bug 402811 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=402811 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User psychonaut@nothingisreal.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c4 --- Comment #4 from Tristan Miller <psychonaut@nothingisreal.com> 2008-06-23 15:16:10 MDT --- I happen to find Bash's CDPATH function quite useful, Lubos. The bug here lies with repo2solv.sh, not Bash. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c5 --- Comment #5 from Michael Schröder <mls@novell.com> 2008-06-24 06:32:41 MDT --- (Maybe, but the shell shouldn't print the cdpath to stdout if it's not in interactive mode.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c6 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ma@novell.com AssignedTo|zypp-maintainers@forge.provo.novell.com |werner@novell.com --- Comment #6 from Michael Andres <ma@novell.com> 2008-07-09 05:19:14 MDT --- Looks like the 'unset CDPATH' workaround is implemented in satsolver. @Werner: IMO comment #5 is valid. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c7 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@novell.com AssignedTo|werner@novell.com |zypp-maintainers@forge.provo.novell.com --- Comment #7 from Michael Schröder <mls@novell.com> 2008-07-09 06:28:06 MDT --- It's fixed in svn, but we still need to submit a package plus make a maintenance update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmacvicar@novell.com Priority|P5 - None |P2 - High -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User ast@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c9 --- Comment #9 from Anja Stock <ast@novell.com> 2008-08-12 06:26:50 MDT --- released -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User geoff@cs.hmc.edu added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c10 Geoff Kuenning <geoff@cs.hmc.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |geoff@cs.hmc.edu --- Comment #10 from Geoff Kuenning <geoff@cs.hmc.edu> 2008-08-14 18:58:27 MDT --- I'll expand on comment #5: bash shouldn't EVER print the directory to stdout, even in interactive mode. It should go to stderr. (And in non-interactive mode, as Michael points out, it should be silent. Actually, I think that the correct behavior might be to ignore CDPATH in non-interactive mode; doing otherwise is a potential security hole.) I couldn't find a bash bug open on this issue. Perhaps somebody should open one? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c11 --- Comment #11 from Dr. Werner Fink <werner@novell.com> 2008-08-15 03:05:02 MDT --- To be noted: if you think this is a bash bug please report it upstream. I'll not change common behaviour of the bash. There is no point in the current manual page which states that CDPATH is for interactive usage only. Beside this normaly CDPATH is empty. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User geoff@cs.hmc.edu added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c12 --- Comment #12 from Geoff Kuenning <geoff@cs.hmc.edu> 2008-08-15 03:31:39 MDT --- Oh, fine, Werner. Kick me in the butt and make me do what I should have done in the first place. :-D I've reported it as a bash bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c13 --- Comment #13 from Dr. Werner Fink <werner@novell.com> 2008-08-15 03:54:22 MDT --- ;) Maybe there are some more variables which are normaly used in interactive mode but also available in script mode. The question rises how many scripts are out there relying on such variables like CDPATH and others: #!/bin/bash CDPATH=/tmp tmp=$(mktemp -d ${CDPATH}/${0##*/}.XXXXXX) || exit 1 wrk=${tmp##*/} cd $wrk -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User geoff@cs.hmc.edu added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c14 --- Comment #14 from Geoff Kuenning <geoff@cs.hmc.edu> 2008-08-15 04:37:44 MDT --- Good point. I've taken the liberty of filing a second bash bug report with your comments included, and basically saying that the bash developers need to audit bash. My suggestion to them is that bash should null out all such variables at the top, and then let scripts set them if they choose. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User psychonaut@nothingisreal.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c15 --- Comment #15 from Tristan Miller <psychonaut@nothingisreal.com> 2008-08-15 04:58:26 MDT --- Can you please provide links to the bash bug reports? (I'm assuming they use some sort of online bug tracker rather than a mailing list.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User geoff@cs.hmc.edu added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c16 --- Comment #16 from Geoff Kuenning <geoff@cs.hmc.edu> 2008-08-15 16:41:15 MDT --- Bash's bug-reporting system is a script named "bashbug", which sends mail to their list. I suppose they have an online tracker but I don't know where it is. They've responded (by e-mail) to my reports. The first response says, in essence, "That's the way the POSIX standard says CDPATH should behave." The second says, in essence, "all variables are documented and it's the script-writers problem to deal with it." He also pointed out that modifying bash to start unsetting dangerous variables is risky from a backwards-compatibility standpoint (which I think is a fair point). Finally, he mentioned that the CDPATH issue has been reported multiple times. I'd take that letter comment as a sign of a big design error, but that's going to be a hard sell. I'm going to reply, pointing out that the POSIX standard is (a) ambiguous about whether CDPATH needs to be reported for non-interactive shells, and (b) wrong for asking it to be reported to stdout. But I doubt I'll win the argument. So I think we're stuck with it. Something I came across pointed out that you can always write "cd ./foo" instead of "cd foo", but that's hardly more convenient that simply unsetting CDPATH. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c17 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mls@novell.com |werner@novell.com --- Comment #17 from Michael Schröder <mls@novell.com> 2008-08-21 11:12:59 MDT --- (Reassigned to werner as the update is released and this is about bash...) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c18 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|werner@novell.com |mls@novell.com --- Comment #18 from Dr. Werner Fink <werner@novell.com> 2008-09-01 04:45:54 MDT --- As already told (see I comment #11) will not change the common behaviour of the bash. This should happen upstream only. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402597 User mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=402597#c19 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #19 from Michael Schröder <mls@novell.com> 2008-09-01 11:13:54 MDT --- Ok, closing (as a fixed libzypp is already avaiable, see #9) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com