Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install built packages to create new systems #8

Open
dslm4515 opened this issue Jun 15, 2021 · 1 comment
Open

Unable to install built packages to create new systems #8

dslm4515 opened this issue Jun 15, 2021 · 1 comment
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@dslm4515
Copy link
Owner

Building MLFS with pkgtools works fine. Packages can be compiled and installed to build up a working system.

Unfortunately, prebuilt packages (from a successful build) won't install smoothly to build a new system. An example is when installing bash. Afterwards, chroot environment breaks, unable to load dynamic libraries for installed binaries.

@dslm4515 dslm4515 added bug Something isn't working invalid This doesn't seem right labels Jun 15, 2021
@dslm4515 dslm4515 self-assigned this Jun 15, 2021
@dslm4515 dslm4515 changed the title Unable to install built packages for to create new systems Unable to install built packages to create new systems Jun 15, 2021
@dslm4515
Copy link
Owner Author

Looks like after entering chroot, PATH should be set:

export PATH=/tools/bin:/bin:/usr/bin

Then when its time to install bash, run:

LD_LIBRARY_PATH=/lib:/usr/lib installpkg bash-$VER-$(uname -m)-mlfs.txz

# Then execute newly installed bash shell:
LD_LIBRARY_PATH=/lib:/usr/lib exec /bin/bash --login +h

The rest of the packages should be installed like this:

PATH=/tools/bin:/bin:/usr/bin \
LD_LIBRARY_PATH=/lib:/usr/lib installpkg ${package_name}-${VER}-$(uname -m)-mlfs.txz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant