LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-16-2014, 10:09 AM   #1
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Rep: Reputation: Disabled
Question 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.
 
Old 09-16-2014, 08:27 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.

Last edited by ReaperX7; 09-16-2014 at 08:29 PM.
 
Old 09-17-2014, 03:16 AM   #3
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-17-2014, 01:15 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,554
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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.

Last edited by ReaperX7; 09-17-2014 at 06:14 PM.
 
Old 09-18-2014, 11:56 AM   #5
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
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.
 
Old 09-23-2014, 11:30 AM   #6
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
lfs, pacman, svn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why do we need pacman-key if pacman checks md5? Mr. Alex Arch 5 03-09-2012 05:05 PM
[SOLVED] Which version of book to use for BLFS??? (LFS-6.7 used for building LFS) rkmv Linux From Scratch 3 02-21-2012 05:32 PM
Anyone else 'pacman -Sy' instead of simply 'pacman -S'-ing packages? Kenny_Strawn Arch 15 03-23-2011 01:09 PM
Building a Custom repo... pacman -S fails to sync Alexvader Arch 2 05-24-2010 09:21 AM
Error compiling Pacman on LFS 6.1.1 Vampirite Linux From Scratch 13 04-11-2007 10:20 AM

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

All times are GMT -5. The time now is 04:02 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