FS#6316 - Pacman 3 release bugcatcher
Attached to Project:
Pacman
Opened by Dan McGee (toofishes) - Thursday, 01 February 2007, 00:28 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 17 May 2007, 07:02 GMT
Opened by Dan McGee (toofishes) - Thursday, 01 February 2007, 00:28 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 17 May 2007, 07:02 GMT
|
Details
Bug collector for Pacman 3 release.
Non-bug issues to hopefully resolve: DONE - Clean up documentation - make sure man pages are updated DONE - Add translation guide DONE - Clean up NEWS file DONE - Add repo-remove script DONE - Clean up README file DONE - Fix gensync/updatesync DONE - Fix up translations DONE - Review documentation PENDING - devtools and gerolde repo scripts (can hold for a bit) DEFERRED - libalpm Doxygen man pages - todo, may have to wait until 3.1... |
This task depends upon
FS#1105 - pacman 2.8-1 No colored Messages
FS#2982 - makepkg & recursive depends (or makedepends)
FS#3180 - pacman and ldconfig
FS#3266 - makeworld support more makepkg flags
FS#3569 - Pacman proxy error
FS#4060 - pacman: "something has gone horribly wrong"
FS#4514 - makepkg: undocumented options
FS#4706 - new option for the options() array
FS#4744 - loading package data... load_pkg: missing package
name in /var/c
FS#5120 - pacman: silently installs partially downloaded
packages
FS#5388 - pacman -Su and -S different version check
FS#5641 - Pacman (makepkg): Support for -I (--install with
sudo)
FS#5775 - pacman does not install all dependencies
FS#5887 - Pacman: Error checking when removing packages
FS#6281 - File conflict libgtop 2.14.6-1 and gnucash
2.0.4-3
FS#6378 - pacman 3: output issues
FS#6421 - Pacman Segfault on `pacman3 -Rcs`
FS#6422 - pacman-rc output spacing
FS#6427 - pacman -Si repo/package doesn't work
FS#6446 - makepkg shouldn't allow '=' in dependencies
FS#6465 - makepkg wants findutils
FS#6553 - makepkg3 rm -rf $HOME
FS#6583 - repo-add does add a wrong %FILENAME%
FS#6588 - Pacman fills terminal with '#' upon resize while
downloading
Closed by Aaron Griffin (phrakture)
Thursday, 17 May 2007, 07:02 GMT
Reason for closing: None
Additional comments about closing: Just closing this, as it was a pre-release bugcatcher and we've already released
Thursday, 17 May 2007, 07:02 GMT
Reason for closing: None
Additional comments about closing: Just closing this, as it was a pre-release bugcatcher and we've already released
Will get it back form the service tomorrow, so i can send mails again (writing from work).
I lately had problems with the cvs version at downloading packages. I compiled the version in cvs of last sunday, and pacman calculated everything, but did not download any package.
What i think is annoying in pacman, if i hit STRG+C to cancel a installation, pacman tries all mirrors for all packages while i hold STRG+C pressed.
Is there no way to get pacman exiting? I mean, usually wget should return some exit code telling it hasn't been a download error.
Just to clarify what was said above: You mean that when using wget, C-c cancels wget but not pacman, correct?
WGET RETURN: 256
WGET SHIFT: 1 (8 bit)
CTRL + C
WGET RETURN: 2
WGET SHIFT: 0 (8 bit)
WGET SUCCESS
WGET RETURN: 0
WGET SHIFT: 0 (8 bit)
In spite of the 128 offset, this test actually confirms your output.
Tested: perlscript
Files: acl for success, OpenOffice for abort-tests
#!/usr/bin/perl
use strict;
use warnings;
my $x = system ("wget ftp://ftp.archlinux.org/0.8/os/x86_64/acl-2.2.39-1.pkg.tar.gz");
printf ("\n\n\nWGET RETURN: %d\n", $x);
printf ("WGET SHIFT: %d\n", $x >> 8);
my $x = system ("wget http://openoffice-chi.osuosl.org/stable/2.1.0/OOo_2.1.0_LinuxIntel_install_en-US.tar.gz");
printf ("\n\n\nWGET RETURN: %d\n", $x);
printf ("WGET SHIFT: %d\n", $x >> 8);
1;
__END__
Too bad i can't checkout the CVS here, i now used a C program to check this, and wget also returned the same values due to the system command.
C-Code:
#include <stdio.h>
#include <stdlib.h>
int main() {
int x;
x = system ("wget ftp://ftp.archlinux.org/0.8/os/x86_64/acl-2.2.39-1.pkg.tar.gz");
printf ("\nWGET %d\n", x);
printf ("\nSHIFT %d\n", x >> 8);
x = system ("wget http://openoffice-chi.osuosl.org/stable/2.1.0/OOo_2.1.0_LinuxIntel_install_en-US.tar.gz");
printf ("\nWGET %d\n", x);
printf ("\nSHIFT %d\n", x >> 8);
}
Before adding something like this, I think we need a unified scheme for this detection.
Does it sound plausible to use XferCommand's return code, if 0, success, if 1, try another mirror, else, abort?
It sounds plausible, indeed. I'll try tomorrow by specifying other downloaders in the programs than wget, to find out if it actually matches.
I've no idea how many there are, but a good start would be snarf and curl. I have always been looking for a downloader supressing the proxy connect messages, maybe that's my way to go :).
Overall, snarf, curl and wget seem to have the same exit code if strg+c was pressed. This might be due to strg+c rather being an interrupt than an exit handled by the program, that's why they don't have an exit code > 1 if the 8 bits are shifted.
They don't differ in downloaded successfully.
The only difference is the exit code handled by the program if no connection was available. Maybe it should be tested with more downloaders, but i think it's a good start overall.
Note:
The first output value always is the unshifted value, the 2nd the shifted one.
# pacman3 -Su
:: Starting full system upgrade...
warning: psi: local (0.11beta4-1) is newer than extra (0.10-2)
resolving dependencies... done.
error: failed to prepare transaction (could not satisfy dependencies)
:: firefox-i18n requires firefox=2.0.0.2
# pacman3 -Ss firefox
current/firefox 2.0.0.2-1
Standalone web browser from mozilla.org
extra/firefox-i18n 2.0.0.2-1
Language packs for Firefox
The old pacman doesn't have this problem.
if I execute -Syu and there are some updates available, when I press [y] after few minutes (not instantly) it just quits to the prompt, leaving pacman.lck in /tmp.
is this double notation:
warning: grub-0.97-2: ignoring package upgrade (0.97-7)
warning: grub-0.97-2: ignoring package upgrade (0.97-2 => 0.97-7)
needed?
The error is related to a fail in dependencies check when using -Rc option in removing packages.
Here follow the story:
Today I was doing a bit of room on my hd so I decided to uninstall gnome.
I was doing that step by step each time using -Rc option, at a certain point I removed control-center package and went on without error.
After that I tried to remove some other package, here follow the line but I think is trivial to know the package
pacman -Rc gnome-python gnome-vfs gnomesu gtksourceview gucharmap icon-naming-utils gnome-keyring gnome-mime-data
And I've got the following error message in loop (I had to press ctrl-c to sto it):
errore: impossibile trovare control-center nel database, sarà ignorato
Basically it say that was not possible to find control-center in the database and it will be ignored.
I guess pacman wanted to remove control-center because it depends on one of the above package.
Beside the loop problem, pacman continuously print out the message but does not goes on, I think that it is superfluous to print out this message.
Let me know if you need more info or test.
I think this issue is simply reproducible adding an echo() line on any .install file, recompiling such package , upgrade it and try to remove it.
If you want more information, I'm freely contactable on IRC or via e-mail.
Thanks
Pacman pkg version check fails (1.8b < 1.8)
http://bugs.archlinux.org/task/6834