| View previous topic :: View next topic |
| Author |
Message |
bus_drivr n00b

Joined: 20 Feb 2003 Posts: 48 Location: Florida
|
Posted: Fri Jun 20, 2003 4:15 am Post subject: |
|
|
Hi
From what I have seen of fixpackages behaviour it complains about invalid packages if a newer version of a package is being used. This was the case once. It complained about another pkg here as well. Not sure why on that one. Dependency that is no longer required?
The categories under /usr/portage are changing and packages are moving. I suspect that fixpackages handles changes in catgories helping to resolve moved dependencies. No proof of that, just a guess.
bus_drivr |
|
| Back to top |
|
 |
StuBear Apprentice


Joined: 26 Feb 2003 Posts: 157 Location: Melbourne,AUSTRALIA
|
Posted: Fri Jun 20, 2003 5:59 am Post subject: |
|
|
| jukka wrote: | Hmm, could someone who really understands what fixpackages does please explain it to me? I can see it applies some updates to /var/db/pkg; unpacks, fixes and repacks packages in /usr/portage/packages; etc.
What I don't understand is why this is done after every 'emerge sync' for all packages (which were already fixed by the last 200 runs of fixpackages...). Yes, I know, I could remove 'fixpackages' from FEATURES, and I don't have to run fixpackages manually, but I don't like to rebuild packages after minor changes like when they are moved to another category...
Greetings, Jukka |
Fixpackages is only run when an ebuild is moved to a new/different catergory or renamed (ie changed to lower case). The error message is a bug that occurs when there are on packages in /usr/portage/package.
According to bug #22373 this will be fixed in portage-2.0.48-r2
Fixpackages only does it's work on the packages that need updating, not all the packages (at least that's what my quick look at the code suggests).
Also you won't need to run it manually unless a bad package format is found , if your packagages are fine then portage will update them automagically. _________________ Since it is the optimal DVD-RAM correspondence for backup of personal computer data, and lighting soft needlessness, it is data preservation by floppy disk feeling. |
|
| Back to top |
|
 |
jukka Apprentice

Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Fri Jun 20, 2003 8:35 am Post subject: |
|
|
| StuBear wrote: | | Fixpackages only does it's work on the packages that need updating, not all the packages (at least that's what my quick look at the code suggests). |
Hmm, i ran fixpackages yesterday, and now all my packages have ctimes and mtimes from yesterday...
| StuBear wrote: | | Also you won't need to run it manually unless a bad package format is found , if your packagages are fine then portage will update them automagically. |
But only if 'fixpackages' is in FEATURES, right? |
|
| Back to top |
|
 |
tecknojunky Veteran


Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Wed Jun 25, 2003 12:27 am Post subject: |
|
|
| Quote: | gentoo site-packages # fixpackages
Performing Global Updates: /usr/portage/profiles/updates/1Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
...............................****************************************************************
Performing Global Updates: /usr/portage/profiles/updates/2Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
...........................................................................******************************************
Performing Global Updates: /usr/portage/profiles/updates/3Q-2002
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
........................................................................................*******************************
Performing Global Updates: /usr/portage/profiles/updates/3Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
**********************************************************************************
Performing Global Updates: /usr/portage/profiles/updates/4Q-2002
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
..................................................................................************************************
Done.
|
Ouch! zzzzzzzz  _________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
| Back to top |
|
 |
Keyed Tux's lil' helper


Joined: 26 Jul 2002 Posts: 135 Location: Tennessee
|
Posted: Tue Jul 15, 2003 5:37 am Post subject: |
|
|
To date I have'nt seen much good in the "fixpackage" script. Almost after every "emerge sync" I get this with one or more file names
| Code: | Performing Global Updates: /usr/portage/profiles/updates/3Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
..!!! Cannot update binary: Destination exists.
!!! x11-libs/gtkmm-1.2.9-r2 -> dev-cpp/gtkmm-1.2.9-r2
...........
** Skipping packages. Run 'fixpackages' or set it in FEATURES to fix the
tbz2's in the packages directory. Note: This can take a very long time. |
What I wnat to know, is what good is "fixpackages" if you run it and still get
| Code: |
Performing Global Updates: /usr/portage/profiles/updates/3Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
..!!! Cannot update binary: Destination exists.
!!! x11-libs/gtkmm-1.2.9-r2 -> dev-cpp/gtkmm-1.2.9-r2
...........****************************************
**********************************************
**********************************************
**********************************************
**********************************************
**********************************************
**********************************************
**********************************************
**********************************************
**********************************************
*******************
Done.
| The filename is unimportant. It changes with each resync. If I delete the package the problem goes away. My question is what good is "fixpackages" if it can't fix packages?
I guess if I delete enough packages, the problem goes away.  _________________ Windows is not a virus: Viruses are well supported by their authors, are running on most systems, their program code is fast, compact and efficient and they tend to become more sophisticated as they mature. |
|
| Back to top |
|
 |
jukka Apprentice

Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jul 15, 2003 6:36 am Post subject: |
|
|
Problem solved!
I replaced Gentoo with NetBSD, and now I don't have to run 'fixpackages' and 'emerge sync' anymore, so the problems are gone.
HTH, Jukka |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 8864 Location: beyond the rim
|
Posted: Fri Sep 19, 2003 4:38 am Post subject: |
|
|
| fixpackages (both FEATURE and script) will hopefully be much friendlier in the next portage release (increased speed, only run when necessary), see bugs 28704 and 28705. |
|
| Back to top |
|
 |
trinladen n00b


Joined: 01 Sep 2003 Posts: 73 Location: Huntsville, AL
|
Posted: Sat Sep 27, 2003 11:19 pm Post subject: fixpackages is a windows program .... |
|
|
Im now certian after reading all the posts here that fixpackages is really a DLL thats suppose to run on XP.
I get those kinda errors and fixpackages doesnt help at all. Does anyone have any better ideas?
...........!!! Cannot update binary: Destination exists.
!!! sys-apps/jfsutils-1.1.2 -> sys-fs/jfsutils-1.1.2
.....!!! Cannot update binary: Destination exists.
!!! sys-apps/raidtools-1.00.3-r1 -> sys-fs/raidtools-1.00.3-r1
.!!! Cannot update binary: Destination exists.
!!! sys-apps/reiserfsprogs-3.6.8 -> sys-fs/reiserfsprogs-3.6.8
...!!! Cannot update binary: Destination exists.
!!! sys-apps/xfsprogs-2.3.9 -> sys-fs/xfsprogs-2.3.9
..!!! Cannot update binary: Destination exists.
!!! app-admin/dosfstools-2.8-r3 -> sys-fs/dosfstools-2.8-r3
.....!!! Cannot update binary: Destination exists.
!!! dev-libs/progsreiserfs-0.3.0.4 -> sys-fs/progsreiserfs-0.3.0.4
etc , etc and etc ......
running "fixpackages" did nada. I Do HOPE this gets fixed. Im running the latest version of the awesome fixpackages. Lemme know if any of you have a fix or a workaround.
Thanks
trinity |
|
| Back to top |
|
 |
jaz9090 Apprentice


Joined: 11 Sep 2003 Posts: 214
|
Posted: Sun Sep 28, 2003 4:42 pm Post subject: |
|
|
| yeah i keep getting the errors above, can anyone help? |
|
| Back to top |
|
 |
cybrjackle Apprentice


Joined: 09 Jan 2003 Posts: 248 Location: USA
|
Posted: Fri Oct 10, 2003 8:12 pm Post subject: |
|
|
| Is there any reason why if you use some binary's during the inital install that you just cant wipe /usr/portage/packages out of the tree? |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 8864 Location: beyond the rim
|
Posted: Fri Oct 10, 2003 8:58 pm Post subject: |
|
|
| If you don't plan to install binaries you can delete /usr/portage/packages. Personally I just keep them as a backup in case a new package breaks. |
|
| Back to top |
|
 |
torque2k3 n00b


Joined: 09 Oct 2003 Posts: 10 Location: Grand Rapids, MI
|
Posted: Sat Oct 11, 2003 1:55 am Post subject: |
|
|
Sorry to flog a dead horse, but mine's come back to life. Has anyone confirmed that removing the .tbz2 file (no name, just extension) makes "fixpackages" go away?! I see that lots of people have yet to "confirm" it works, but this is from June. My system's bugging me again after EVERY emerge sync, and I'm using a GRP install of build 20030911 (i686) over a dialup on a P4... and it takes over 20 minutes to run fixpackages!!!
Thanks,
Dan |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 8864 Location: beyond the rim
|
Posted: Sat Oct 11, 2003 2:04 am Post subject: |
|
|
If there aren't any .tbz2 packages fixpackages doesn't have much to do. The message will stay there. If you don't want to run fixpackages don't do it.
fixpackages only corrects wrong dependencies in .tbz2 packages
(I should know that as I rewrote nearly the complete fixpackages code). |
|
| Back to top |
|
 |
converter Apprentice


Joined: 24 Dec 2002 Posts: 163
|
Posted: Mon Oct 13, 2003 7:11 am Post subject: |
|
|
Why does fixpackages fix the same wrong dependencies in the same packages every time it runs?
I didn't mind fixpackages at first, but there were several package moves recently that drove the run-time through the roof. Can we not write a "fixed" file somewhere so that fixpackages applies each fix only once? I need binaries, but the last time I ran fixpackages it took about five hours to complete (ATA/100, but only a PIII 733). Sorry, but this is just awful.
Also, I noticed a "pure Python" patch for fixpackages in a bugzilla bug (sorry, I don't recall the #) several days ago that the author claims eliminates a handful of forks per package and brings a great speed increase. Has this patch been looked at? _________________ converter |
|
| Back to top |
|
 |
Genone Retired Dev


Joined: 14 Mar 2003 Posts: 8864 Location: beyond the rim
|
Posted: Mon Oct 13, 2003 7:43 am Post subject: |
|
|
Let me start at the end: I wrote the patch, it seems to work, I'll see if it can go in one of the next portage releases.
A "fixed" status file might help a bit, I'll check this option for further improvements (don't know if it helps or hurts). There is also something in fixpackages that I call a bug while the portage maintainer calls it a feature (the fixpackages tool is always using all update files), there are reasons to do that but over time it really hurts. Because of this the FEATURES="fixpackages" method will also be faster than the fixpackages script but might run more often, that's something everyone has to decide for himself. |
|
| Back to top |
|
 |
trinladen n00b


Joined: 01 Sep 2003 Posts: 73 Location: Huntsville, AL
|
Posted: Mon Oct 13, 2003 9:09 am Post subject: actually .. |
|
|
I see your point. I dont run fixpackages on an older system so the speed isnt a problem, however
I run it and I STILL get packages it cant or doesnt know how to "move". Im wondering how to deal with those ??? Any ideas ...
Thanks
Trin |
|
| Back to top |
|
 |
deathbaz n00b

Joined: 02 Oct 2002 Posts: 12 Location: NZ
|
Posted: Fri Nov 28, 2003 1:40 am Post subject: Functions to maintain binary directory |
|
|
| klasikahl wrote: | you guys who report it taking "two seconds" are quite lucky. I have been searching for a script that rm -f's packages that already have a newer version in /usr/portage/packages, but haven't quite found one yet. Thus, my packages dir looks like this...
| Code: | [~]# find /usr/portage/packages/ -type f | wc -l
1580 |
|
I've recently submitted a couple of functions to bugs.gentoo.org that will do what you want. See http://bugs.gentoo.org/show_bug.cgi?id=34384 |
|
| Back to top |
|
 |
ozric100 Tux's lil' helper


Joined: 23 Apr 2002 Posts: 136
|
Posted: Mon Jan 19, 2004 5:29 am Post subject: |
|
|
I like the idea of your fuctions... I always build pkgs for my systems and keep them about just in case. How does one use your code? I read the bug report and I dont see how to use it. _________________ Tyan tiger K8W, Opteron 2x246, 2x512 PC3200 OCZ, FX5900 |
|
| Back to top |
|
 |
tecknojunky Veteran


Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Mon Jan 26, 2004 6:35 am Post subject: |
|
|
I usualy ignore the fixpackages, but I recently started to get emerges failing with (approximatly) "/usr/portage/packages/All/ebuildname.tbz2: already exist. Run fixpackages", so I did.
So I ran fixpackages again: it only took 18 hours (or so). The worst is that I still get the error message.
This has to stop. There must be a better way to do this. _________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
| Back to top |
|
 |
deathbaz n00b

Joined: 02 Oct 2002 Posts: 12 Location: NZ
|
Posted: Sun Feb 01, 2004 10:48 pm Post subject: |
|
|
| ozric100 wrote: |
I like the idea of your fuctions... I always build pkgs for my systems and keep them about just in case. How does one use your code? I read the bug report and I dont see how to use it. |
Its not very user friendly at the moment is it . I've written a wrapper script, binpkgmain to access the module functions and attached it to the original report in bugzilla. Its self documenting, invoke it with --help to get instructions. |
|
| Back to top |
|
 |
alkama n00b

Joined: 18 Mar 2004 Posts: 1
|
Posted: Thu Mar 18, 2004 7:47 pm Post subject: |
|
|
I have those problems with fixpackages.
It claims it cant find a "foobar" thing and also detects existing files in destination... like:
!!! Cannot update binary: Destination exists.
!!! sys-apps/raidtools-1.00.3-r1 -> sys-fs/raidtools-1.00.3-r1
......!!! Cannot update binary: Destination exists.
!!! app-admin/dosfstools-2.8-r3 -> sys-fs/dosfstools-2.8-r3
i also have a lots of binary packages "*********************************" and this makes the fixpackage run a fucking long time....
So here is my question:
can i delete the dir and files in "/usr/portage/packages/" ?
if seems to contain a "All/" directory with a lot of .tbz2 files inside... _________________ lets reinvent the wheel altogether |
|
| Back to top |
|
 |
sjj698 n00b

Joined: 14 Jan 2004 Posts: 8
|
Posted: Mon Mar 21, 2005 6:19 pm Post subject: Fix packages |
|
|
has anyone got any ideas on this 'fixpackages' option. I have a server which i use to build binary packages for a small cluster.
As there are lots of binary packages, it takes about 20-30min! (dual 1ghz PIII)
Are there any options to speed this up?
thanks
Steven |
|
| Back to top |
|
 |
struhs n00b

Joined: 14 Jun 2005 Posts: 44
|
Posted: Wed Oct 26, 2005 6:10 am Post subject: |
|
|
I have no "buildpkg" in my FEATURES and I don't need binary packages, except Sun's Java and OpenOffice, but /usr/portage/packages is full of packages. After each emerge sync I have to run fixpackages which takes a very long time (at least an hour): it starts doing something with "/usr/portage/profiles/updates/3Q-2002" until it reaches "/usr/portage/profiles/updates/4Q-2005" (each time I run it). Is this correct and neccessary?
I am very annoyed of this!
Any ideas?
Can I just delete the packages directory? |
|
| Back to top |
|
 |
sourcebased n00b


Joined: 27 Jan 2005 Posts: 4 Location: Berlin
|
Posted: Fri Jan 13, 2006 10:08 pm Post subject: |
|
|
| struhs wrote: | I am very annoyed of this!
Any ideas?
Can I just delete the packages directory? |
Yes - or even better its content.
I do
| Code: |
rm -rf /usr/portage/packages/*
|
when I dont plan to use the packages any more.
I usualy dont keep them for long, as soon as I see the new stuff working they have become obsolete.
ps: see man quickpkg |
|
| Back to top |
|
 |
|