﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
3896	"Static library included in the ""texinfo"" package"	yuksiy	lfs-book@…	"No static library existed 
in [http://www.linuxfromscratch.org/lfs/view/7.8/chapter06/texinfo.html LFS 7.8 ""6.66. Texinfo-6.0""].

However, when I tested the instructions 
according to [http://www.linuxfromscratch.org/lfs/view/development/chapter06/texinfo.html LFS SVN-20160226 ""6.66. Texinfo-6.1""], 
A static library was added.
{{{
# ./configure --prefix=/usr
# make
# #skip# make check
# make DESTDIR=`pwd`/destdir install
# #skip# make TEXMF=/usr/share/texmf install-tex
# find ./destdir -name '*.a' | sort | xargs -r ls -ald
-rw-r--r-- 1 root root 138234 Feb 28 16:04 ./destdir/usr/lib/texinfo/XSParagraph.a
}}}
But the shared library corresponding to it seemed to exist, too.
{{{
# ls -Al ./destdir/usr/lib/texinfo
total 228
-rw-r--r-- 1 root root 138234 Feb 28 16:04 XSParagraph.a
-rwxr-xr-x 1 root root    986 Feb 28 16:04 XSParagraph.la
-rwxr-xr-x 1 root root  86024 Feb 28 16:04 XSParagraph.so
}}}

So I thought about a method to prevent the installation of this static library.

configure does not have --disable-static option.
{{{
# ./configure --help | grep static
(no output)
# cat ./configure | grep static | grep -e enable -e disable
(no output)
}}}
But configure in the ""tp/Texinfo/Convert/XSParagraph"" directory has --enable-static option.
{{{
# ./tp/Texinfo/Convert/XSParagraph/configure --help | grep static                                                   
  --enable-static[=PKGS]  build static libraries [default=yes]
}}}
Thus, if we give --disable-static to configure in the top directory, 
I thought that it might propagate to configure in the subdirectory.

And I was able to prevent the installation of this static library when I tested the following instructions.
{{{
# ./configure --prefix=/usr --disable-static
# make
# make check
# echo $?
0
# make DESTDIR=`pwd`/destdir install
# make TEXMF=/usr/share/texmf install-tex
# find ./destdir -name '*.a' | sort | xargs -r ls -ald
(no output)
# ls -Al ./destdir/usr/lib/texinfo
total 92
-rwxr-xr-x 1 root root   973 Feb 28 16:12 XSParagraph.la
-rwxr-xr-x 1 root root 86024 Feb 28 16:12 XSParagraph.so
}}}

Therefore, I suggest the following change in the book.

In ""chapter06/texinfo.html"":
{{{
-./configure --prefix=/usr
+./configure --prefix=/usr --disable-static
}}}

{{{
+ Installed libraries: XSParagraph.so
}}}
"	defect	closed	normal	7.9	Book	SVN	normal	fixed		yuk@…
