LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-10-2019, 04:16 PM   #1
PepperLegs
LQ Newbie
 
Registered: Oct 2019
Posts: 15

Rep: Reputation: Disabled
Question Portage on LFS?


Hey again folks! I have another question for you, has anyone here installed Portage on their LFS system?

I currently have a temporary system I can chroot into, and I decided to try and install Portage. I do realize that it will, sooner or later, turn my LFS into Gentoo, but I'd like to do it anyway. On Gentoo, running setup.py of Portage should be more than enough to set it up (not counting the configuring part).

That's what I did on my LFS, but it doesn't really want to work. There are circular dependencies everywhere, and even if I use the --nodeps option, Emerging gets stuck at configuring the downloaded package (if I even get to that point).

I'm more used to the Pacman of Arch Linux, but I think it would be cool to mess around with another package manager. Does anyone have any ideas? Thank you in advance!
 
Old 10-10-2019, 05:39 PM   #2
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 63

Rep: Reputation: 0
Those setup scripts are typically setup to detect the most popular distros, then use their package manager to install the dependencies. Since you are neither on a popular distro, and do not have a package manager installed with a package repo set up, you are going to have to manually install all the dependencies yourself.

Last edited by GeekBoy; 10-10-2019 at 05:42 PM.
 
Old 10-11-2019, 04:32 AM   #3
PepperLegs
LQ Newbie
 
Registered: Oct 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
You mean the setup script of Portage, yes? From what I see, Bash and Python 2 are the only hard dependencies. I installed Bash as part of temp system creation process of LFS, and the latest Python just to be sure.

I managed to install Portage but, as I mentioned, the Emerging process of any package gets stuck at configuring the downloaded source tarball. The only package I successfully Emerged so far, was elt-patches. It's probably a matter of configuring everything correctly, but I'm not sure.
 
Old 10-11-2019, 10:58 AM   #4
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 63

Rep: Reputation: 0
Then why not manually enter the commands in from the script where it is getting stuck so you can see what is going on?
 
Old 10-11-2019, 12:26 PM   #5
PepperLegs
LQ Newbie
 
Registered: Oct 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
Welp, as a desperate attempt at trying to figure it out, I fetched the Gentoo Stage 3 tarball, and extracted it to the root of my LFS. And lo and behold, Emerge works now (I mean, I would be surprised if it didn't - I essentially downloaded an entire system). So now I "just" need to figure out what exactly makes it tick. Thank you for trying to help me out GeekBoy, if you or anyone else out there have any ideas as to how to make Portage work without actually downloading the Stage 3 tarball, I would gladly appreciate it!

EDIT: I think I've done it! I noticed that both Portage and Eselect are available on the AUR, so I booted up a live session of Manjaro and built them.
After the installation, the Emerging process seems to work, it no longer gets stuck at ">>> Configuring source...". Now it actually does that step, with logging and all.
I'll have to clean up my current LFS system and start all over again, and then I'll know for sure. The PKGBUILDs of Arch Linux are pretty easy to understand, so you should be able to simply copy the commands from them (perhaps with some minor tweaks), but I'll be more than glad to share some more info, should anyone need it.

EDIT 2: I got too excited far too early, as it still gets stuck at configuring step. It's definitely missing something, but I have no idea what it is. It doesn't log any errors, unfortunately.

EDIT 3 (most likely final): Jesus, it was missing something alright... The entire /bin folder! Portage was looking for stuff inside /bin! Not /tools/bin, simply /bin. After I made /bin point at /tools/bin it's finally configuring and installing stuff straight into /usr! I can't believe just how dumb I can be sometimes... That was a lesson I'll never forget. I'll think of a way to unlink these two folders some time in the future. I'll be sure to write here, should I need some more assistance, but for now the case is solved. I'll finally be able to sleep peacefully.

Last edited by PepperLegs; 10-13-2019 at 08:34 AM. Reason: I think it's finally solved.
 
1 members found this post helpful.
Old 02-18-2020, 08:14 AM   #6
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Rep: Reputation: Disabled
And how does Portage behave in LFS? Does it work like in Gentoo without any problem?
Does it show previously (before installation of Portage) packages as installed?
 
Old 02-18-2020, 11:42 AM   #7
PepperLegs
LQ Newbie
 
Registered: Oct 2019
Posts: 15

Original Poster
Rep: Reputation: Disabled
Oh dear, I'm afraid I can only guess... I wanted to start my LFS all over again, but, as embarassed as I am to say this, I didn't really do so.

As far as I know, Portage shouldn't complain about not being on Gentoo. It seems to be distro-agnostic. If you decide to use it on your LFS, it will connect to the Gentoo servers and download its ebuilds from there. Unless you make your own repository with ebuilds and tell Portage to use that instead.

As for the packages not installed with Portage, I don't think they will show as such. I assume you mean the packages installed with the good old "./configure, make, make install", am I correct? If so, I don't think any package manager registers such packages as installed. You would have to download a ready ebuild, or write one yourself, and use this to install your desired package.

I hope this helps!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with installing portage on LFS system. wiired24 Linux - Software 1 08-03-2016 07:31 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
Gentoo Portage acjt Linux - Distributions 1 04-02-2003 10:07 AM
Portage 2.1 to adopt RPM format for LSB compliance KungFuHamster General 9 04-02-2003 09:33 AM
curious about gentoo portage(?) prophet621 Linux - Distributions 9 03-26-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration