Opened 6 years ago

Closed 6 years ago

#3896 closed defect (fixed)

Static library included in the "texinfo" package

Reported by: yuksiy Owned by: lfs-book@…
Priority: normal Milestone: 7.9
Component: Book Version: SVN
Severity: normal Keywords:
Cc: yuk@…

Description

No static library existed in LFS 7.8 "6.66. Texinfo-6.0".

However, when I tested the instructions according to 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

Change History (3)

comment:1 by yuksiy, 6 years ago

I correct the instructions mentioned above.
I'm sorry.

OLD: # #skip# make TEXMF=/usr/share/texmf install-tex
NEW: # #skip# make DESTDIR=`pwd`/destdir TEXMF=/usr/share/texmf install-tex

OLD: # make TEXMF=/usr/share/texmf install-tex
NEW: # make DESTDIR=`pwd`/destdir TEXMF=/usr/share/texmf install-tex

(Is there someone knowing how to change the description of the ticket?)

comment:2 by bdubbs@…, 6 years ago

Milestone: 7.107.9

I think we can promote this to milestone 7.9. There is a package freeze, but small instruction corrections like this are OK.

Don't worry about changing the description.

comment:3 by bdubbs@…, 6 years ago

Resolution: fixed
Status: newclosed

Fixed at revision 11032.

Note: See TracTickets for help on using tickets.