Bruce Dubbs wrote:
DJ Lucas wrote:
Suggestions sent by John Frankish are correct. I'm rebuilding now (without
chapter 5 bison) to confirm and went ahead and did m4 and zlib while I'm
at it. Unfortunately, zlib is on github now. This breaks jhalfs as is. I
was thinking about just grabbing from github an putting on anduin, but the
webpage says that releases are pending, so maybe tarballs will be posted
at some point. Won't hurt to hold for a day or two.
Pierre, any quick thoughts about how to handle github links in jhalfs
should this become more than one package? My first thought was to use
<ulink></ulink> syntax, but I don't know how much trouble that is, and I
don't really like that it renders without the actual URL. Maybe not even a
problem.
The change in zlib is going to cause us a problem. At a minimum, we are
going to need to add cmake to Chapter 5 like we do for check and dejagnu
and tcl. The BLFS version has some recommended dependencies that we may
not need for zlib.
I am a bit uncertain why the currency scripts identified zlib 1.2.9. The
script fails now, perhaps due to a change in the website (changed yesterday).
Hopefully the normal zlib-version package will still end up on zlib.net so
it wouldn't make for a major change for jhalfs. At a minimum, we can host
a copy on anduin if that doe not occur.
This looks like the correct build procedure for zlib:
#!/bin/bash
DEST=/tmp/zlib
PACKAGE=zlib-1.2.9
rm -rf $DEST
rm -rf $PACKAGE
tar -xf $PACKAGE.tar.*
cd $PACKAGE
mkdir -v build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
..
# or
# cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make
make test
make DESTDIR=$DEST install
# For DESTDIR
mkdir -vp $DEST/lib
mv -v $DEST/usr/lib/libz.so.* $DEST/lib
ln -sfv ../../lib/$(readlink $DEST/usr/lib/libz.so) $DEST/usr/lib/libz.so
#####
Build time for me is 6.3 seconds.
lrwxrwxrwx 1 19 Jan 2 17:04 /tmp/zlib/usr/lib/libz.so ->
../../lib/libz.so.1
-rw-r--r-- 1 150266 Jan 2 17:04 /tmp/zlib/usr/lib/libz.a
-rw-r--r-- 1 96097 Jan 1 01:37 /tmp/zlib/usr/include/zlib.h
-rw-r--r-- 1 16344 Jan 2 17:04 /tmp/zlib/usr/include/zconf.h
-rw-r--r-- 1 4476 Jan 1 01:37 /tmp/zlib/usr/share/man/man3/zlib.3
-rw-r--r-- 1 231 Jan 2 17:04 /tmp/zlib/usr/share/pkgconfig/zlib.pc
lrwxrwxrwx 1 13 Jan 2 17:04 /tmp/zlib/lib/libz.so.1 -> libz.so.1.2.9
-rwxr-xr-x 1 122776 Jan 2 17:04 /tmp/zlib/lib/libz.so.1.2.9
It looks like we will need to delete libz.a. I didn't see a way to
suppress the build or install of the static library.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page