#3482: util-linux ignores prefix to install bash completions
---------------------+------------------------
Reporter: shibata | Owner: lfs-book@…
Type: defect | Status: new
Priority: high | Milestone: 7.5
Component: Book | Version: SVN
Severity: normal | Keywords:
---------------------+------------------------
When installing util-linux in step 5.33, the prefix is ignored for bash
completion files. Configure outputs the following:
{{{
util-linux 2.24.1
prefix: /tools
exec prefix: ${prefix}
localstatedir: ${prefix}/var
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/sbin
libdir: ${exec_prefix}/lib
includedir: ${prefix}/include
usrbin_execdir: ${exec_prefix}/bin
usrsbin_execdir: ${exec_prefix}/sbin
usrlib_execdir: ${exec_prefix}/lib
compiler: gcc -std=gnu99
cflags: -g -O2
suid cflags:
ldflags:
suid ldflags:
Python:
Python version:
Python libs:
Bash completions: /usr/share/bash-completion/completions
warnings:
-fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations
-Wmissing-parameter-type -Wmissing-prototypes -Wno-missing-field-
initializers -Wredundant-decls -Wsign-compare -Wtype-limits
-Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable
-Wunused-parameter -Wunused-result -Wunused-variable -Wnested-externs
-Wpointer-arith -Wstrict-prototypes
}}}
Notice that the completion files are installed to /usr/share/bash-
completion/completions instead of /tools. "make install" will fail if the
user is lfs. A workaround can be done with a substitution after
configuration:
cp Makefile{,.orig}
sed 's|bashcompletiondir = /usr|bashcompletiondir = /tools|' -i Makefile
PS: I'm not sure if SVN bugs should be posted here, please let me know if
I should post in the mailing lists/somewhere else instead.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3482>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page