[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Anyone seen this error?



On Mon, 30 Jan 2006, Quentin Spencer wrote:

error: Installed (but unpackaged) file(s) found:
 /usr/share/info/dir

When info installs .info files somewhere it adds them to the pre-existing dir file, which is what info use to keep track of available info pages. If you install into some place where there is not previously a dir file, it is obviously created.

Since this dir file is invalid (actually only listing your package, packaging it would overwrite the global dir file for the target system, no good), you need to remove it, as you do:

rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir

This is also the reason why the .info files have to be manually added to the texinfo database after install:

Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info

%post
/sbin/install-info %{_infodir}/foo.info %{_infodir}/dir || :

%preun
if [ $1 = 0 ]; then
# uninstall the info reference in the dir file
/sbin/install-info --delete %{_infodir}/foo.info %{_infodir}/dir || :
fi

Just including the foo.info file (or foo.info.gz) in:

%{_infodir}/*.info

is not enough, of course.

Linus


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]