Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RESOLVED: Vague portage msg about fixpackages/FEATURES
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Fri May 23, 2003 6:08 pm    Post subject: RESOLVED: Vague portage msg about fixpackages/FEATURES Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri May 23, 2003 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri May 23, 2003 6:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Braempje
l33t
l33t


Joined: 31 Jan 2003
Posts: 748

PostPosted: Fri May 23, 2003 7:02 pm    Post subject: Reply with quote

Worked great, thanks!
Back to top
View user's profile Send private message
idiotprogrammer
Apprentice
Apprentice


Joined: 29 Jul 2002
Posts: 179
Location: Texas

PostPosted: Fri May 23, 2003 7:07 pm    Post subject: say what? fixpackages/portage? Reply with quote

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
View user's profile Send private message
avenj
Retired Dev
Retired Dev


Joined: 11 Oct 2002
Posts: 495
Location: New Hampshire

PostPosted: Fri May 23, 2003 7:24 pm    Post subject: Re: say what? fixpackages/portage? Reply with quote

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
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Fri May 23, 2003 9:49 pm    Post subject: Reply with quote

I ran fixpackages and it seemed to go smoothly.
It took a whopping two seconds.

Thanks.
Back to top
View user's profile Send private message
To
Veteran
Veteran


Joined: 12 Apr 2003
Posts: 1145
Location: Coimbra, Portugal

PostPosted: Sat May 24, 2003 11:32 pm    Post subject: Reply with quote

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




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
View user's profile Send private message
Sieg
Tux's lil' helper
Tux's lil' helper


Joined: 07 Oct 2002
Posts: 87

PostPosted: Mon May 26, 2003 12:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Tue May 27, 2003 5:51 pm    Post subject: Reply with quote

Sieg I have your same identical problem... what's wrong with tbz2 packages ???
Back to top
View user's profile Send private message
ARC2300
Apprentice
Apprentice


Joined: 30 Mar 2003
Posts: 265

PostPosted: Tue May 27, 2003 9:08 pm    Post subject: Reply with quote

Thanks. . .helped immensely.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue May 27, 2003 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
keifir
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jun 2002
Posts: 119
Location: Canada

PostPosted: Wed May 28, 2003 12:48 am    Post subject: Reply with quote

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. :wink:

thx for info,
keifir
Back to top
View user's profile Send private message
no usernames left
n00b
n00b


Joined: 09 Feb 2003
Posts: 72

PostPosted: Mon Jun 02, 2003 1:50 pm    Post subject: Reply with quote

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. :D
_________________
[img:39112bbc59]http://www.gamers-portal.de/images/yay.gif[/img:39112bbc59]
Back to top
View user's profile Send private message
ShadowDemon
n00b
n00b


Joined: 12 Feb 2003
Posts: 14
Location: Little Rock, AR

PostPosted: Mon Jun 02, 2003 11:28 pm    Post subject: Every time? Reply with quote

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
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Jun 03, 2003 9:47 pm    Post subject: Re: Every time? Reply with quote

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
View user's profile Send private message
Nahor
n00b
n00b


Joined: 05 Jun 2003
Posts: 51

PostPosted: Thu Jun 05, 2003 12:48 am    Post subject: Reply with quote

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
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Thu Jun 05, 2003 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Braempje
l33t
l33t


Joined: 31 Jan 2003
Posts: 748

PostPosted: Fri Jun 06, 2003 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Fri Jun 06, 2003 6:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Braempje
l33t
l33t


Joined: 31 Jan 2003
Posts: 748

PostPosted: Fri Jun 06, 2003 1:15 pm    Post subject: Reply with quote

Moving it away solved the error, but I find it extremely strange that it just got there... The contents didn't seem important...
_________________
Dictionary of the Flemish Sign Language - Woordenboek Vlaamse Gebarentaal
Back to top
View user's profile Send private message
klasikahl
Retired Dev
Retired Dev


Joined: 04 Nov 2002
Posts: 118
Location: Paradise Valley, Arizona

PostPosted: Sat Jun 07, 2003 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Wed Jun 11, 2003 11:56 am    Post subject: Reply with quote

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 :wink:).
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
Stalione
Guru
Guru


Joined: 21 Apr 2002
Posts: 335

PostPosted: Wed Jun 11, 2003 2:11 pm    Post subject: Reply with quote

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. :x

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
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Wed Jun 11, 2003 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum