View previous topic :: View next topic |
Author |
Message |
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 182
|
Posted: Tue Jan 24, 2023 2:49 am Post subject: [solved] Weird behavior installing binary |
|
|
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 |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9527 Location: beyond the rim
|
Posted: Tue Jan 24, 2023 9:50 am Post subject: |
|
|
.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 |
|
|
zBrain Apprentice
Joined: 14 Apr 2006 Posts: 182
|
Posted: Thu Jan 26, 2023 2:47 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|