LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Building LFS with pacman (https://www.linuxquestions.org/questions/linux-from-scratch-13/building-lfs-with-pacman-4175519049/)

bstaletic 09-16-2014 10:09 AM

Building LFS with pacman
 
Hello,

I'm trying to build LFS non-systemd and include pacman in it. LFS version is SVN-20140909. I'm having trouble finding any guide for including pacman that's somewhat new thus I do not know which packages are mandatory for pacman to compile properly.

For now I found that default configuration requires openssl which is not a pacman dependancy in Arch linux. Should I skip openssl? I see fakeroot as an optional dependancy, but I want to be able to use regular user (named whatever) for building as Arch recommends it.

Actually I would like to run pacman the same way I do it in Arch linux, but without the public keys as I will be the only one building and using packages. Does that mean to skip gpgme? In Arch I hace both Xfer commands commented out.

I'm currently at chapter 5 just before book mentions stripping. I will do the stripping once pacman is successfully installed.

Please help me with the dependancies.

ReaperX7 09-16-2014 08:27 PM

http://lists.linuxfromscratch.org/pi...ch/003236.html

The packages for this have been updated since, so try to use the versions if listed in the LFS, BLFS, and CLFS books if necessary. It also lists how to draft your own PKGBUILD scripts too.

bstaletic 09-17-2014 03:16 AM

Thank you, I've gone through the hints and have not found anything about pacman.

This could actually be like a walk in the park. Thanks again.

ReaperX7 09-17-2014 01:15 PM

I advise you to carefully consider the usage auto dependency resolution as some packages require dependency loops between packages. I'm not sure how pacman handles optional dependencies. I know some package managers that build from source use an ncurses interface to select optional packages per build.

Things like cairo can have circular rebuilds against other packages, so you may want to use terms like cairo-base, cairo-rebuild, etc. in each sequence.

Also, lastly, before you commit to pacman. Make extremely sure you draft everything pacman needs as far as PKGBUILD scripts go before you start building. The BLFS book will be no different. You'll have to carefully check each package as you go for instructions to craft a full set of scripts.

Lennie 09-18-2014 11:56 AM

You can take a look at my scripts for building lfs with pacman:
http://www.linuxquestions.org/questi...3/#post5020420
It was a year ago, and for lfs-7.4, but I think you can still learn from them. (Read the thread about a few things I forgot in the tarball.)

I couldn't get fakeroot to work when I compiled it for lfs-7.5. When I build packages with it, my user bacame the owner of the files. Finally I gave up, and tried the package I'd compiled in 7.4 and it worked, so I'm using that one. I haven't built 7.6-rc1 yet.

bstaletic 09-23-2014 11:30 AM

Sorry for not answering earlier.

@Reaper

Thanks for the heads up. Pacman has no ncurses menu for such a thing but whn it encounters a dependancy loop it picks one dependancy and installs it before others, thus breaking the loop.

@Lennie

I will take a look when I find more time, thanks anyway.


All times are GMT -5. The time now is 09:53 PM.