﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
3482	util-linux ignores prefix to install bash completions	Tiago Koji Castro Shibata	lfs-book@…	"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."	defect	closed	high	7.5	Book	SVN	normal	fixed		
