LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-09-2016, 01:57 AM   #1
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Rep: Reputation: 38
My repo of LFS PKGBUILDs


If anyone else is looking to use pacman for their LFS system, you can find my PKGBUILDs here. They're very bare at the moment and need to have dependency management added into them but even in their current state they've proven to be useful to me at least.

Feel free to contribute if you'd like. There's a tonne of packages left for which I'll need to create PKGBUILDs for (at some point I'll be compiling xorg and xfce) and I'll update the repo to add those as I get to them.
 
Old 10-09-2016, 02:32 AM   #2
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
I currently use the Slackware pkgtools templates for building packages. The base is pretty much the same, but I have my own set of build flags tuned to my machine. I also split the contents of a package into libraries, binaries, configurations files, man & info pages, docs and with various dependencies enabled/disabled, a la Debian's packages. I use the CLFS book to build my system because LFS has almost always caused problems. I'm also on SysV init instead of Slackware's BSD init. Apart from dependency management, what advantages does the PKGBUILD system have over Slackware's? Doesn't the systemd policies that are integral to Arch make it cumbersome for an LFS build, or are you following the LFS systemd version?
 
Old 10-09-2016, 03:31 AM   #3
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Original Poster
Rep: Reputation: 38
I don't really know all too much about pkgtool to compare the pros and cons of it and pacman. I use pacman mostly because as a long time Arch user it's familiar to me and I'm comfortable with it. In saying that, what I do like about it is that PKGBUILDs are relatively simple to create, build flags can be set globally in the /etc/makepkg.conf file and I have the added benefit of being able easily modify and use PKGBUILDs for packages I want without necessarily having to do them all from scratch (though in my current set up that's exactly what I did).

As for my setup, it's pretty much a straight LFS build with a few minor modifications. I use systemd-boot over grub, plus a few over miscellaneous changes that I can't recall off the top of my head. I had been considering doing something with Runit or sinit, but I am also pretty familiar with systemd so I figured it'd be easier to stick with the devil you know and what not.
 
Old 10-09-2016, 03:45 AM   #4
corbis_demon
Member
 
Registered: Jun 2004
Distribution: CLFS
Posts: 523

Rep: Reputation: 38
Have you made changes to the Pacman utility itself to adapt it to LFS?
 
Old 10-09-2016, 04:18 AM   #5
basica
Member
 
Registered: Nov 2011
Location: Australia
Distribution: Arch, LFS
Posts: 171

Original Poster
Rep: Reputation: 38
Nah, I'm just using it as is. I am considering moving my various computers to LFS in which case I might set up a repo and make some customisations for that (but really it's just editing config files) so I only need to compile them once and then install the binaries elsewhere. To be honest, it's probably got a lot more capabilities than I need, but it does work which is all that matters in the end for me
 
Old 10-16-2016, 06:02 AM   #6
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Nice to see this.
I use pkgutils from CRUX and the PkgFiles are very similar to PKGBUILDS.
For pkgtools from slackware, you can add CruxPorts4Slack to your installation and make use of PkgFiles and PKGBUILDS to build a "Slackware" packages.

How/where did you add the package manager to LFS? I found out it can be done in ch5 at the end, you can even add it to a tools/ch5 tarball before starting ch6.
Another way is to use an existing install or livecd, create a small chroot with packages/binaries from slackware/crux/archlinux, ...
So many ways once you have some experience.
 
Old 10-31-2016, 08:52 AM   #7
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
I also use pacman. I have installed the package abs (Arch Build System) from Arch to get easily access to all their PKGBUILDs. So instead of creating PKGBUILDs from scratch I always use theirs and just change everything that should be different on my system.
 
Old 10-31-2016, 10:55 AM   #8
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
I have created some scripts that might be useful for you, or anyone using pacman. And of course for anyone else to study and get some ideas from. I have thought for quite some time now to upload them somewhere, but I haven't had the energy to do so. When I do, I'll start my own thread about it. But here's one to start with, to search for dependencies. http://pastebin.com/MfSp6JQG

Example output:
Code:
$ depfinder bash
glibc ncurses readline


$ depfinder -d bash
(glibc) /lib/libc.so.6
(glibc) /lib/libdl.so.2
(ncurses) /lib/libncursesw.so.6
(readline) /lib/libhistory.so.6
(readline) /lib/libreadline.so.6


$ depfinder -s curl

/usr/bin/curl
    /usr/lib/libcurl.so.4 	curl
    /usr/lib/libcurl.so.4.4.0 	curl
    /usr/lib/libssl.so.1.0.0 	openssl
    /usr/lib/libcrypto.so.1.0.0 openssl
    /lib/libz.so.1 	        zlib
    /lib/libpthread.so.0 	glibc
    /lib/libc.so.6 	        glibc

/usr/lib/libcurl.so.4.4.0
    /usr/lib/libssl.so.1.0.0 	openssl
    /usr/lib/libcrypto.so.1.0.0 openssl
    /lib/libz.so.1 	        zlib
    /lib/libpthread.so.0 	glibc
    /lib/libc.so.6 	        glibc


$ depfinder -r curl
Searching for packages that depend on curl... 
exiv2
cmake
conky
gst-plugins-bad
cower
pacman
spotify
libreoffice
tumbler
transmission
raptor
gimp
git
 
  


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
Distro that provides all need packages from repo's....confused LFS vs BLFs dwmolyneux Linux From Scratch 5 06-02-2012 05:39 AM
[SOLVED] Trying to split a large SVN repo into one git repo. Ian John Locke II Linux - Software 1 01-30-2012 08:19 AM
Best way to automate copying of Git repo to subversion repo? jceipek Linux - Server 0 03-15-2011 02:42 AM
how to use syanptic in fc 5 and how to add repo and which repo to be added.. vikas04522 Fedora 1 08-26-2006 12:41 PM
adding mirror to yum.repo.d/<any-repo> ashwin_cse Fedora 1 03-10-2005 03:49 PM

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

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