Difference between revisions of "User talk:Invakid404/CLFS"

From Funtoo
Jump to navigation Jump to search
Line 20: Line 20:


As expected, creating a {{c|/bin/sh}} symlink pointing to {{c|/tools/bin/bash}} resolved the bzip2 build issue. I was able to build and install bzip2 to {{f|/usr}} within the fchroot without any required patching. Just a {{c|1=make PREFIX=/usr install}} took care of installation. This is promising.
As expected, creating a {{c|/bin/sh}} symlink pointing to {{c|/tools/bin/bash}} resolved the bzip2 build issue. I was able to build and install bzip2 to {{f|/usr}} within the fchroot without any required patching. Just a {{c|1=make PREFIX=/usr install}} took care of installation. This is promising.
Another note as I think of it -- it would be useful to have the {{c|which}} command active within the fchroot, as it's useful for figuring out what {{c|bzip2}} I am currently using. It could also be useful to have the pre-fchroot environment variables in a script. Let me know if you need additional functionality in fchroot to allow this to work properly.


--[[User:Drobbins|Drobbins]] ([[User talk:Drobbins|talk]]) 04:33, March 1, 2022 (UTC)
--[[User:Drobbins|Drobbins]] ([[User talk:Drobbins|talk]]) 04:33, March 1, 2022 (UTC)

Revision as of 04:35, March 1, 2022

I went through the entire set of instructions and it's amazing. Things worked as expected. I put a couple of {{Note}}s on the page, and changed a rm -r to rm -rf. Then I left a second one as rm -r (I think for gcc) after thinking I should check with you on this before making so many changes. The extra -f is needed to make copy/paste of the instructions work as expected.

I am now messing around inside my build (at /home/drobbins/404beast) and realizing that it would be really useful to have wget inside the fchroot so that we can grab sources and build them inside. Though I have a ton of sources in the fchroot from building that I could use to test some builds of real software, I think.


In testing a build of bzip2 inside the fchroot, I ran into this issue:

rm -f libbz2.a
ar cq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o
make: /bin/sh: No such file or directory
make: *** [Makefile:49: libbz2.a] Error 127
bash-5.1 #

I think this can easily be fixed with a symlink but it would be interesting to start documenting all of the little tweaks needed to get the tools environment as functional as possible for builds of GNU software without complications.

--Drobbins (talk) 04:25, March 1, 2022 (UTC)

As expected, creating a /bin/sh symlink pointing to /tools/bin/bash resolved the bzip2 build issue. I was able to build and install bzip2 to /usr within the fchroot without any required patching. Just a make PREFIX=/usr install took care of installation. This is promising.

Another note as I think of it -- it would be useful to have the which command active within the fchroot, as it's useful for figuring out what bzip2 I am currently using. It could also be useful to have the pre-fchroot environment variables in a script. Let me know if you need additional functionality in fchroot to allow this to work properly.

--Drobbins (talk) 04:33, March 1, 2022 (UTC)