On 07/23/2013 12:23 PM, Niels Terp wrote:
Hi,
I have now got this script to work, and it works great ! I do have a
few questions though.
First of all I get a md5sum error on the lfs-bootscripts and
tzdata2013c, and the nss-3.14.3-standalone-1.patch has been moved.
Those things I have just corrected / ignored.
But then the script fails in the compilation of Lua. In file lua.sh,
line 21: The script try to make a sed on ../../SOURCES/lua.pc --which
can't be found. If I change this line to
../../TOOLS_RPM/lua-5.2.2/lua.pc the script finish compiling lua,
apparently succesfull. but then during compilation of RPM the script
fails whith "can't find lua ..."
I have temporary solved this by adding --without-lua to the
configuration of RPM. The funny thing was, that I had the same problem
when I compiled RPM first. No matter what I did, I could not compile
it with lua. What is the consequences of this (if any), and can you
advise a solution ?
Aside from that, I love the script, instead of 2 -- 3 days of work I
can now build a fresh system in just four hours, with virtually no
work at the computer, and on top of that I get RPM ! I am updating the
kernel and the book version now, I am also adding a script which can
update the RPM database by generating an installable RPM whith all the
packages you have compiled from source. And if you are not going to
maintain your script on github, I can make mine available for anyone
who would like to try this.
We can maintain this build system together if you wish, you can contact
me off list if you want to.
The reason I gave up on this is it is a bit too much work for just me.
If I can get some help I can continue with it, BLFS is going to be alot
of work.
Niels
The md5sum error on lfs-bootscripts is common as LFS builds it every
night if I recall that makes the md5sum not match, in fact it will most
likely never match so you can ignore it.
The tzdata check sum might be the same as I have had that not match
before as well.
The sed for lua.sh is to change the pkg-config file and all it does is
to set the version and release so pkg-config points to the right
version. I got that sed from arch linux. I use to fix that manually so
I used the sed so it would be automatically done.
Looking at the lua.pc file for chapter 6 lua.spec file the lua.pc file
should be installed into /usr/lib/pkgconfig
The two important lines in the lua.pc file are
Libs: -L${libdir} -llua -lm
Cflags: -I${includedir}
This says that the library should be in /usr/lib and the lua header
include files should be in /usr/include
Then rpm.spec build should pick it up.
Pointing to the lua.pc installed in /tools is the wrong thing to do
because it will be looking for the libs in /tools/lib.
We just need to figure out why it is not finding the *.h file in
/usr/include and also not finding the libs in /usr/lib.
If it if failing at the configure part it is not finding the include
files other wise it would be failing when it links the lua libs and
would spew erros saying it can't find "some object" My guess is it is
not finding the headers.
The consequences of compiling rpm without lua is that some of the
"tools" it uses to find dependencies won't be run although I have not
had any issues when I compiled rpm without lua.
We should be able to fix this. If I have to I can setup my lapdog and
run the system fresh if I need to.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page