Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Weird behavior installing binary
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
zBrain
Apprentice
Apprentice


Joined: 14 Apr 2006
Posts: 182

PostPosted: Tue Jan 24, 2023 2:49 am    Post subject: [solved] Weird behavior installing binary Reply with quote

I'm failing to understand how this is happening. I have a binary package built on another machine.

Code:

# tar -tf /usr/portage/packages/sys-apps/portage-3.0.43-r1.gpkg.tar
portage-3.0.43-r1/gpkg-1
portage-3.0.43-r1/metadata.tar.bz2
portage-3.0.43-r1/image.tar.bz2
portage-3.0.43-r1/Manifest



When I try to install it I get: (note I rm -rf /var/cache/binpkgs/* first to be safe)

Code:


>>> Running pre-merge checks for sys-apps/portage-3.0.43-r1
receiving incremental file list
portage-3.0.43-r1.gpkg.tar
      2,846,720 100%   45.25MB/s    0:00:00 (xfr#1, to-chk=0/1)

sent 43 bytes  received 2,847,531 bytes  5,695,148.00 bytes/sec
total size is 2,846,720  speedup is 1.00
!!! Invalid binary package: '/var/cache/binpkgs/sys-apps/portage-3.0.43-r1.tbz2.partial'


Why is this happening? Where is /var/cache/binpkgs/sys-apps/portage-3.0.43-r1.tbz2.partial even coming from?


Last edited by zBrain on Thu Jan 26, 2023 2:48 am; edited 1 time in total
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9527
Location: beyond the rim

PostPosted: Tue Jan 24, 2023 9:50 am    Post subject: Reply with quote

.tbz2 is the original binary package format used by portage. This .gpgk.tar seems to be a new format that is more userfriendly due to just being a regular tar archive, but I'm not familiar with that. And it appears that there are still a few issues with this new format.
My guess is that there is some problem with the .gpkg.tar file, which triggers a codepath where portage rebuilds the filename from the package name and simply assumes it to be in .tbz2 format.
You should probably open a bug report about this to get a proper error message.
Back to top
View user's profile Send private message
zBrain
Apprentice
Apprentice


Joined: 14 Apr 2006
Posts: 182

PostPosted: Thu Jan 26, 2023 2:47 am    Post subject: Reply with quote

Just in case someone stumbles on this:

BINPKG_FORMAT="xpak"

in make.conf.

I was trying to use gpkg, it isn't working right now.

You need to rebuild all your packages after changing it:

quickpkg "*/*"


Its also useful to include --include-unmodified-config=y in the above command.
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
Page 1 of 1

 
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