LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-25-2020, 04:36 PM   #1
budrz89
LQ Newbie
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 16

Rep: Reputation: Disabled
Unhappy Using pacman as the package manager


Hi,

I was debating on which package manager to use for my LFS build. I used Slackware's package manager successfully but I couldn't get Arch Linux's Pacman to work. I followed this guide for Pacman on LFS 8.1 (modified it for LFS version 9.0) but as it was mentioned in the guide "... many binaries and other files were owned by ben," which is where I also got stuck on. It was fixed by manually changing owner on those files mentioned but I don't want to be doing this every time I build and install a package.

Any suggestions on how to fix this problem of having the incorrect owner on the libraries, binaries, etc.? I tried searching for a reason why pacman was doing this but I couldn't find a good answer (perhaps I'm only a white belt in Google-fu).
 
Old 03-26-2020, 07:46 AM   #2
hendrickxm
Member
 
Registered: Feb 2014
Posts: 241

Rep: Reputation: Disabled
There are quite a few projects on github where pacman has been added to LFS.
A google search gives me at least 7 projects.
For example this one: https://github.com/EastAPOLO/lfs-pacman
And even after you completed LFS you can try this: https://github.com/uditkarode/lfspacman

In my opinion most existing package managers are too tightly intergrated for the specific distro.
Slackware's pkgtools are so simple they can be used anywhere, next one in line is pkgutils from CRUX.

What is your goal exactly?
 
Old 03-26-2020, 06:34 PM   #3
budrz89
LQ Newbie
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
I know that there are several projects out there with pacman on LFS, but some of them are either
automated and/or using systemd.

My goal is to build LFS manually with System V and having pacman as it's package manager. The
closest one to the idea that I had in mind is the project that I've mentioned but there are some
hiccups in the end, as stated in the link that you've provided: https://github.com/EastAPOLO/lfs-pacman

I'm trying to understand why those problems occur towards the end in finishing up LFS using pacman. It
seems that it shouldn't matter which package manager you use but you seem to be saying that each package
manager is somehow closely tied with it's distro. I don't understand how that is the case. I mean, it's
not like a package manager somehow "knows" distribution you're using, is it?

Could you explain why and how they are tightly integrated?
 
Old 03-27-2020, 04:44 AM   #4
hendrickxm
Member
 
Registered: Feb 2014
Posts: 241

Rep: Reputation: Disabled
A few things make pacman not that ideal for LFS.
Pacman does not allow root to build packages without tricks. Pacman assumes a filesystem hierarchy as used by arch linux which differs from lfs.

And if you are going to use pacman and the existing repos from archlinux, you will end up with arch linux.
 
1 members found this post helpful.
Old 03-27-2020, 07:35 AM   #5
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 2,712

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
And if you are going to use pacman and the existing repos from archlinux, you will end up with arch linux.
And you will have to be systemd for the software to work.

https://www.archlinux.org/packages/core/x86_64/pacman/
https://www.archlinux.org/pacman/
https://git.archlinux.org/svntogit/p...ackages/pacman
https://sources.archlinux.org/other/pacman/
 
1 members found this post helpful.
Old 03-27-2020, 10:13 AM   #6
budrz89
LQ Newbie
 
Registered: Apr 2017
Distribution: LFS/Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Pacman does not allow root to build packages without tricks. Pacman assumes a filesystem hierarchy as used by arch linux which differs from lfs.
OK, that makes sense.

Quote:
Quote:
And if you are going to use pacman and the existing repos from archlinux, you will end up with arch linux.
And you will have to be systemd for the software to work.
Seems like Artix Linux is what I'm thinking of or would end up building anyway, even if I could get past those problems. Never used it before but I guess it could be another project.

As for building LFS, I should look into pkgutils from CRUX. I'm curious to see how to integrate that into LFS.

Thanks for your suggestions/info!

Last edited by budrz89; 03-27-2020 at 10:29 AM. Reason: Add in the other quote for context
 
Old Yesterday, 12:22 PM   #7
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 170

Rep: Reputation: 38
Quote:
Originally Posted by budrz89 View Post
It was fixed by manually changing owner on those files mentioned but I don't want to be doing this every time I build and install a package.

Any suggestions on how to fix this problem of having the incorrect owner on the libraries, binaries, etc.? I tried searching for a reason why pacman was doing this but I couldn't find a good answer (perhaps I'm only a white belt in Google-fu).
That was while they're were in chapter 6 and building packages under that user. Presumably once they booted into their LFS system it wasn't an issue. You can't run makepkg as root which is why the user was created in the first place. I've used pacman with my LFS install a bunch of times without the issue that person encountered.
 
  


Reply

Tags
lfs, ownership, package management, pacman


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
LXer: Deb-pacman : A Pacman-style Frontend For APT Package Manager LXer Syndicated Linux News 1 12-09-2019 05:21 PM
Why do we need pacman-key if pacman checks md5? Mr. Alex Arch 5 03-09-2012 05:05 PM
Anyone else 'pacman -Sy' instead of simply 'pacman -S'-ing packages? Kenny_Strawn Arch 15 03-23-2011 01:09 PM
Which package manager do you like more, TXZ or Pacman? Amdx2_x64 Linux - Distributions 9 12-25-2010 01:41 AM
[SOLVED] Strange things happening with pacman package manager MTK358 Linux - General 9 02-11-2010 06:48 AM

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

All times are GMT -5. The time now is 11:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration