Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Importing bin packages [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
RIA77
Guru
Guru
Posts: 425
Joined: Wed Feb 24, 2016 4:52 am

Importing bin packages [SOLVED]

  • Quote

Post by RIA77 » Tue Jul 30, 2024 8:15 pm

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: Select all

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.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Jul 31, 2024 12:09 am

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.
Top
RIA77
Guru
Guru
Posts: 425
Joined: Wed Feb 24, 2016 4:52 am

  • Quote

Post by RIA77 » Wed Jul 31, 2024 8:27 am

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

Code: Select all

 /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 # 
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Wed Jul 31, 2024 9:39 pm

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: Select all

 /var/cache/binpkgs # ls
gcc-13.3.1_p20240614-3.gpkg.tar
See the problem?
Top
RIA77
Guru
Guru
Posts: 425
Joined: Wed Feb 24, 2016 4:52 am

  • Quote

Post by RIA77 » Wed Jul 31, 2024 10:43 pm

Sorry, but it doesn't help.

Code: Select all

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 # 
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Thu Aug 01, 2024 1:49 am

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_pac ... age_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
Top
miket
Guru
Guru
Posts: 513
Joined: Sat Apr 28, 2007 2:45 am
Location: Gainesville, FL, USA

  • Quote

Post by miket » Thu Aug 01, 2024 2:46 am

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
Top
RIA77
Guru
Guru
Posts: 425
Joined: Wed Feb 24, 2016 4:52 am

  • Quote

Post by RIA77 » Thu Aug 01, 2024 8:13 am

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.
Top
RIA77
Guru
Guru
Posts: 425
Joined: Wed Feb 24, 2016 4:52 am

  • Quote

Post by RIA77 » Thu Aug 01, 2024 8:25 pm

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.
Top
Hu
Administrator
Administrator
Posts: 24385
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Aug 01, 2024 8:40 pm

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.
Top
Post Reply

10 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic