Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Importing bin packages [SOLVED]
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
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Tue Jul 30, 2024 8:15 pm    Post subject: Importing bin packages [SOLVED] Reply with quote

Hello to all!

I made GCC bin package and compile it on Ryzen, I need to use it on older Intel dual core.

Intel does not recognize bin file.
I put bin file in default dir (var/cache/binpkg).

Made bin package without march=native flag.

Code:
COMMON_FLAGS="-O2"
FEATURES="parallel-fetch parallel-install noman nodoc noinfo"
GRUB_PLATFORMS="pc"
ACCEPT_KEYWORDS="amd64"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="--jobs 2"
EMERGE_DEFAULT_OPTS="--jobs 2 --load-average 1"
VIDEO_CARDS="amdgpu radeon r600"
USE="-cryptsetup -nvme -nls -gcrypt -vulkan -cet -smtp -lzma -zstd -a52 -branding -dedi>
# NOTE: This stage was built with the bindist Use flag enabled
PKGDIR="/var/cache/binpkgs"
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
ACCEPT_LICENSE="* -@EULA"
GENTOO_MIRRORS="http://mirrors.ircam.fr/pub/gentoo-distfiles/ \
    ftp://ftp.fau.de/gentoo \


Target machine make conf,.
What do I need to provide ?
Tried to install package on host machine, machine sees bin package.
I need to install package on target machine.
Checked use flags, they are the same between gcc from host and target.
Thank you.


Last edited by RIA77 on Thu Aug 01, 2024 8:10 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22619

PostPosted: Wed Jul 31, 2024 12:09 am    Post subject: Reply with quote

According to the shown make.conf, you should use /var/cache/binpkgs (plural), but you wrote that you used the singular form. Is that correct? How did you determine that the bin package will not be used? Show us what you did that you think should have sufficed.
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Wed Jul 31, 2024 8:27 am    Post subject: Reply with quote

I used /var/cache/binpkgs, like in make.conf

Code:
 /var/cache/binpkgs # ls
gcc-13.3.1_p20240614-3.gpkg.tar
localhost /var/cache/binpkgs # emerge -K gcc

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!
Dependency resolution took 10.32 s (backtrack: 0/20).


emerge: there are no binary packages to satisfy "gcc".
localhost /var/cache/binpkgs #
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


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

PostPosted: Wed Jul 31, 2024 9:39 pm    Post subject: Reply with quote

man make.conf wrote:

PKGDIR = [path]
Defines the location where created .tbz2 binary packages will be stored when the emerge(1) --buildpkg option is enabled. By default, a given package is stored in a subdirectory corresponding to its category. However, for backward compatibility with the layout used by older versions of portage, if the ${PKGDIR}/All directory exists then all packages will be stored inside of it and symlinks to the packages will be created in the category subdirectories.
Defaults to /var/cache/binpkgs.


RIA77 wrote:
I put bin file in default dir (var/cache/binpkg).


Code:
 /var/cache/binpkgs # ls
gcc-13.3.1_p20240614-3.gpkg.tar



See the problem?
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Wed Jul 31, 2024 10:43 pm    Post subject: Reply with quote

Sorry, but it doesn't help.

Code:
ls
gcc-13.3.1_p20240614-3.gpkg.tar
localhost /var/cache/binpkgs/sys-devel # emerge -K gcc

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!
Dependency resolution took 6.54 s (backtrack: 0/20).


emerge: there are no binary packages to satisfy "gcc".
localhost /var/cache/binpkgs/sys-devel #
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


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

PostPosted: Thu Aug 01, 2024 1:49 am    Post subject: Reply with quote

Well, number of other things that might cause issues there:
- when using FEATURES=binpkg-multi-instance, PKGDIR is using another layout (see https://wiki.gentoo.org/wiki/Binary_package_guide#Understanding_the_binary_package_format )
- .gpkg.tar vs. .tbz2, don't know how well supported the former is as the manpage mentions .tbz2 explicitly (might just be old text when that was the only format, might be on purpose)
- PKGDIR isn't really supposed to be meddled with manually, so there might be other stuff missing or incorrect (e.g. the Packages index file, don't know if this is actually required these days. Check `emaint binhost` for that).
- make sure you didn't explicitly use --binpkg-respect-use=y when calling emerge
Back to top
View user's profile Send private message
miket
Guru
Guru


Joined: 28 Apr 2007
Posts: 496
Location: Gainesville, FL, USA

PostPosted: Thu Aug 01, 2024 2:46 am    Post subject: Reply with quote

Genone wrote:
- PKGDIR isn't really supposed to be meddled with manually, so there might be other stuff missing or incorrect (e.g. the Packages index file, don't know if this is actually required these days. Check `emaint binhost` for that).
- make sure you didn't explicitly use --binpkg-respect-use=y when calling emerge

Yes, it does require the Packages file. Rebuild it using emaint -f binhost

Do pay attention to the settings of FEATURES in make.conf for binpkg-multi-instance. I use it since I use a binary package host. My bet is that you don't have that set, but if you do, it definitely has an effect on the layout of /var/cache/binpkgs.

Another thing that's supposed to work is to name the binary package directly in the emerge command. The time I tried it, though, emerge didn't like it. YMMV
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Thu Aug 01, 2024 8:13 am    Post subject: Reply with quote

Thank you to all.
This is the answer - right location is sys-devel/gcc/
It's obligatory to copy text file Packages. It should be in binpkgs directory.

emerge -K gcc works like charm.
Back to top
View user's profile Send private message
RIA77
Guru
Guru


Joined: 24 Feb 2016
Posts: 391

PostPosted: Thu Aug 01, 2024 8:25 pm    Post subject: Reply with quote

One word of caution!!!

GCC imported without any problem.
But it broke my system.
Nothing is working now.
Emerge ... is giving error.
Xorg is not working.
Reverted to last backup.
Just be careful. It just didn't worked for me.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22619

PostPosted: Thu Aug 01, 2024 8:40 pm    Post subject: Reply with quote

Binary packages of gcc, properly built, should work fine. If you provided specific error messages, we might be able to tell you why this failed.
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