Re: Anyone seen this error?

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

 



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

--
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux