View previous topic :: View next topic |
Author |
Message |
Pythonhead Developer


Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Fri May 23, 2003 6:08 pm Post subject: RESOLVED: Vague portage msg about fixpackages/FEATURES |
|
|
After doing an 'emerge rsync' I got this message:
Quote: |
>>> Updating Portage cache... ...done!
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'
....
** 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.
|
I've got no clue what this means. I found the 'FEATURES' variable in /etc/make.conf, but I don't know if I should set it just for the next 'emerge rsync' or leave it.
What would be the difference between running 'fixpackages' or setting 'fixpackages' in FEATURES? Any idea why this happened?
I'm using Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
Last edited by Pythonhead on Fri May 23, 2003 9:54 pm; edited 1 time in total |
|
Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20606
|
Posted: Fri May 23, 2003 6:21 pm Post subject: |
|
|
Braempje wrote: | I had just synced today, and did an emerge -uDp world, but then portage performed global updates (something I had never seen before), and it complained about a .tbz2. Then it told me to run fixpackages or enable that feature in portage. What is this all about, because there is no fixpackages program??
(It's difficult to give more output because I did an update on a tty, and I can't reproduce the error...) |
_________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20606
|
Posted: Fri May 23, 2003 6:27 pm Post subject: |
|
|
fixpackages is located at /usr/lib/portage/bin/fixpackages
fixpackages updates your binary packages in /usr/portage/packages in case there were package moves. A package move is when a package (ebuild) is moved from one category to another. For example, if a package was in app-misc, then was moved to app-editors.
As for the portage "FEATURE" vs. the program, the FEATURE version will run everytime you sync (I think), keeping things current. The program fixpackages is probably more useful for the first time update so you can schedule it when you want (it might take quite a while to run). _________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
Braempje l33t


Joined: 31 Jan 2003 Posts: 748
|
Posted: Fri May 23, 2003 7:02 pm Post subject: |
|
|
Worked great, thanks! |
|
Back to top |
|
 |
idiotprogrammer Apprentice


Joined: 29 Jul 2002 Posts: 179 Location: Texas
|
Posted: Fri May 23, 2003 7:07 pm Post subject: say what? fixpackages/portage? |
|
|
so what this message means is:
When you get a chance, you need to run fixpackages. It can take a long time (how long is long?)
So this only applies to binary packages? So because most of the ebuilds are from source, this won't really matter except for certain packages (jdk-sun, open-office-bin, realplayer, etc). Right?
Is this a normal or a problem message? |
|
Back to top |
|
 |
avenj Retired Dev


Joined: 11 Oct 2002 Posts: 495 Location: New Hampshire
|
Posted: Fri May 23, 2003 7:24 pm Post subject: Re: say what? fixpackages/portage? |
|
|
idiotprogrammer wrote: | so what this message means is:
When you get a chance, you need to run fixpackages. It can take a long time (how long is long?)
So this only applies to binary packages? So because most of the ebuilds are from source, this won't really matter except for certain packages (jdk-sun, open-office-bin, realplayer, etc). Right?
Is this a normal or a problem message? |
How long it takes will depend on how many binary packages you have.
It doesn't touch the binary-only ebuilds, only tbz2 packages in /usr/portage/packages.
It's normal.
The idea is that you may have a package in /usr/portage/packages that depends on, say, dev-perl/perl. dev-perl/perl moved to dev-lang/perl - without fixpackages, the binary package would be useless since the dependency would be incorrect. |
|
Back to top |
|
 |
Pythonhead Developer


Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Fri May 23, 2003 9:49 pm Post subject: |
|
|
I ran fixpackages and it seemed to go smoothly.
It took a whopping two seconds.
Thanks. |
|
Back to top |
|
 |
To Veteran


Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Sat May 24, 2003 11:32 pm Post subject: |
|
|
Same thing here, no probs and only a few seconds
Code: | root @ gandalf $ > /usr/lib/portage/bin/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/4Q-2002
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
..................................................................................
Done. |
Cya
Tó
Pythonhead wrote: | I ran fixpackages and it seemed to go smoothly.
It took a whopping two seconds.
Thanks. |
Last edited by To on Fri May 30, 2003 1:51 pm; edited 1 time in total |
|
Back to top |
|
 |
Sieg Tux's lil' helper

Joined: 07 Oct 2002 Posts: 87
|
Posted: Mon May 26, 2003 12:46 pm Post subject: |
|
|
Tks for the info. Works well, except I get errors during the process, but then it says "Done"
Code: |
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'
.!!! Invalid binary package: .tbz2
..............................
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'
.!!! Invalid binary package: .tbz2
...
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'
.!!! Invalid binary package: .tbz2
.......................................................................................
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'
.!!! Invalid binary package: .tbz2
.................................................................................
Done.
|
Should I be worried about the invalid packages? Where should I look for it if it's something that's misplaced?
Thanks |
|
Back to top |
|
 |
Peach Advocate


Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Tue May 27, 2003 5:51 pm Post subject: |
|
|
Sieg I have your same identical problem... what's wrong with tbz2 packages ??? |
|
Back to top |
|
 |
ARC2300 Apprentice


Joined: 30 Mar 2003 Posts: 267
|
Posted: Tue May 27, 2003 9:08 pm Post subject: |
|
|
Thanks. . .helped immensely. |
|
Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20606
|
Posted: Tue May 27, 2003 9:39 pm Post subject: |
|
|
fixpackages can be ignored unless you use -b or FEATURES="buildpkg".
users of "-b" and "buildpkg" should only be concerned if you try to install a binary package, and it complains about unfillable dependencies. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
keifir Tux's lil' helper


Joined: 10 Jun 2002 Posts: 119 Location: Canada
|
Posted: Wed May 28, 2003 12:48 am Post subject: |
|
|
thx pjp,
I started building alsa-driver binary package - since i need to reemerge it everytime i compile kernel modules. Now i know what this fixpackage is.
thx for info,
keifir |
|
Back to top |
|
 |
no usernames left n00b


Joined: 09 Feb 2003 Posts: 72
|
Posted: Mon Jun 02, 2003 1:50 pm Post subject: |
|
|
In my opinion the message should only get displayed if there actually are some packages in /usr/portage/packages, simply because it makes no sense to display it / run fixpackages otherwise. But it's a nice feature.  _________________ [img:39112bbc59]http://www.gamers-portal.de/images/yay.gif[/img:39112bbc59] |
|
Back to top |
|
 |
ShadowDemon n00b


Joined: 12 Feb 2003 Posts: 14 Location: Little Rock, AR
|
Posted: Mon Jun 02, 2003 11:28 pm Post subject: Every time? |
|
|
I ran fixpackages the first time I got the message and now every time I rsync or emerge a package it prompts me to run fixpackages again. Is this normal? |
|
Back to top |
|
 |
jukka Apprentice

Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Tue Jun 03, 2003 9:47 pm Post subject: Re: Every time? |
|
|
ShadowDemon wrote: | I ran fixpackages the first time I got the message and now every time I rsync or emerge a package it prompts me to run fixpackages again. Is this normal? |
same here. i ran it a few times, but because i built packages for everything 'fixpackages' takes a long time to run. i suspect the script to check the same packages each time it is running. but it would be stupid IMHO to fix an already fixed package... unfortunately i don't speak python, otherwise i could check. |
|
Back to top |
|
 |
Nahor n00b

Joined: 05 Jun 2003 Posts: 51
|
Posted: Thu Jun 05, 2003 12:48 am Post subject: |
|
|
I was getting an error too most of the time I "synced" with the added message ".!!! Invalid binary package: .tbz2".
Running fixpackages showed that error each time.
Then I looked at what kind of tbz2 I had in /usr/portage and I noticed a file named ".tbz2", no basename, just an extension. The file was 78 bytes
I just deleted the file and now fixpackages doesn't complain about the invalid binary package. I'll see tomorrow if 'emerge sync' still complains. |
|
Back to top |
|
 |
jukka Apprentice

Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Thu Jun 05, 2003 7:31 am Post subject: |
|
|
Code: | # time /usr/lib/portage/bin/fixpackages
[... some colourful messages...]
Done.
real 19m40.211s
user 11m2.060s
sys 7m57.810s |
20 minutes (on a i386 with 650 MHz and 512MB RAM), even though i moved some big packages (xfree, etc.) to /tmp temporarily...
scheduling 20 minutes for a 'emerge sync' is not my problem. but i doubt it to be necessary to fix packages if they were already fixed the last time i ran 'fixpackages'...
btw: anybody using netbsd pkgsrc on a gentoo box?
greetings, jukka |
|
Back to top |
|
 |
Braempje l33t


Joined: 31 Jan 2003 Posts: 748
|
Posted: Fri Jun 06, 2003 5:16 am Post subject: |
|
|
Nahor wrote: | I was getting an error too most of the time I "synced" with the added message ".!!! Invalid binary package: .tbz2".
Running fixpackages showed that error each time.
Then I looked at what kind of tbz2 I had in /usr/portage and I noticed a file named ".tbz2", no basename, just an extension. The file was 78 bytes
I just deleted the file and now fixpackages doesn't complain about the invalid binary package. I'll see tomorrow if 'emerge sync' still complains. |
I have the same problem. Fixpackages keeps on complaining about that .tbz2 file. I suspect it's a bug, but I can't find a file like you did. Anyone else with the same experience?
Edit: I found the file, it's in /usr/portage/packages/All, and it's named .tbz2. Can anyone confirm I can delete this file? _________________ Dictionary of the Flemish Sign Language - Woordenboek Vlaamse Gebarentaal |
|
Back to top |
|
 |
jukka Apprentice

Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Fri Jun 06, 2003 6:28 am Post subject: |
|
|
Braempje wrote: | Edit: I found the file, it's in /usr/portage/packages/All, and it's named .tbz2. Can anyone confirm I can delete this file? |
I'd examine the archive to see what's inside, and then move it to out of the way. Then sync your portage tree and see what happens...
BTW: I have 'buildpkg' in FEATURES, and I don't have a file '.tbz2' in my packages tree.
HTH, Jukka |
|
Back to top |
|
 |
Braempje l33t


Joined: 31 Jan 2003 Posts: 748
|
|
Back to top |
|
 |
klasikahl Retired Dev

Joined: 04 Nov 2002 Posts: 118 Location: Paradise Valley, Arizona
|
Posted: Sat Jun 07, 2003 5:07 pm Post subject: |
|
|
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 |
_________________ http://tehunlose.com
http://dev.gentoo.org/~klasikahl/ |
|
Back to top |
|
 |
tactless l33t


Joined: 14 Jul 2002 Posts: 642 Location: Mitzpe Adi, Israel
|
Posted: Wed Jun 11, 2003 11:56 am Post subject: |
|
|
Is it just me, or is /usr/portage/packages being used instead of /usr/portage/distfiles? In that case, how do we move all of the distfiles (quickly ). _________________ Tactless
"If it wasn't for fog, the world would run at a really crappy framerate."
Jabber: tactless@amessage.info |
|
Back to top |
|
 |
Stalione Guru

Joined: 21 Apr 2002 Posts: 335
|
Posted: Wed Jun 11, 2003 2:11 pm Post subject: |
|
|
You know im just curious if there was even an annoncement made regarding the release and use of fixpackages. I just don't like surprises thats all. Also the lack of documentation (man, help) on this tool is quite frustrating. I have to come to the forums to find out exactly what it was.
Quote: |
rooster net-print # man fixpackages
No manual entry for fixpackages
rooster net-print # fixpackages --help
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/4Q-2002
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
..................................................................................
Done.
rooster net-print # fixpackages -h
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/4Q-2002
(Could take a couple minutes if you have a lot of binary packages.)
.='update pass' *='binary update' @='/var/db move'
..................................................................................
Done.
|
|
|
Back to top |
|
 |
jukka Apprentice

Joined: 06 Jun 2002 Posts: 249 Location: Zurich, Switzerland
|
Posted: Wed Jun 11, 2003 7:16 pm Post subject: |
|
|
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 |
|
Back to top |
|
 |
|