Menu

#35 build bin pkg from src conflicts with /usr/share/info/dir

open
nobody
5
2007-05-05
2007-05-05
No

In version 0.7.1-1, if you build a binary package from the source package, the resulting rpm will not install cleanly, because it contains a version of /usr/share/info/dir.

One solution is to apply the following patch to update the .spec file to remove the offending info/dir file.

--- netcat.spec~ 2004-01-11 12:47:23.000000000 -0800
+++ netcat.spec 2007-05-05 13:41:20.000000000 -0700
@@ -29,6 +29,9 @@
rm -rf $RPM_BUILD_ROOT
make install DESTDIR="$RPM_BUILD_ROOT"

+# remove the generated info/dir file: we don't own /usr/share/info/dir, so don't package
+rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
+
# ugly hack in order to include the structured directory in the rpm
rm -f doc/drafts/Makefile*

The available binary package does not have this issue, and I wonder why not.

Discussion


Log in to post a comment.