Skip to content

Just a quick update idea to this guide if you care to for future interest. #5

@weirdbeardgame

Description

@weirdbeardgame

So, I don't know if you care enough to update this guide or not in any sense but I've sorta taken on this challenge with the more modern LFS build system and pacman package. The first biggest change. pacman has switched from configure / make to meson. This still works because meson has a Dest Dir option so you can set DESDIR=$LFS to install in the temporary toolchain. Pacman has several other depends like Doxygen now that aren't listed.

The biggest thing I've found in doing this with the updated pacman and LFS. You CANNOT build pacman in the LFS Chroot environment. Or at least I don't seem to be able to. While I was able to get it's depends installed like libxml2. Everytime you run the meson build script it'll reference a tool that get's installed with libxml2 that will always err out in the chroot environment even though it built and installed properly with the $LFS destdir.

It seems the best approach is to run with LFS up to the chroot ensuring you can actually enter and exit the functioning chroot but don't close or remove the original temp environment lfs user. Instead once the chroot is active and working and you've confirmed that. Use the host system's package depends to compile and install pacman with the DESTDIR=$LFS meson install -C build command from there. Then switch to the chroot environment and you'll hopefully have a working pacman you can continue with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions