Michael Di Domenico wrote:
Dan,
It turns out there is a strange build order issue. I was able to
build the rpm from source, but only if i make the original tarball
available to the buildpkgs script and i do not run autogen or
configure on the source tree beforehand.
If i let the buildpkgs script assemble the tarball for me it seems to bomb out.
From the logs it looks like rpmbuild is expecting the man pages to be
in /usr/share/man, but if i look in the /var/tmp/rpmbuild install
root, they're in /usr/man
Sorry, i can't easily pull the logs as the systems are on a private
network, but i'll try.
Michael,
Sounds like you're building from a tarball, and doing more work than you
need to. Try starting from scratch, and only running
./packaging/rpm/buildpkg. Distribution tarballs do not require autogen
or ./configure before running buildpkg. The tarball is already
./autogen'd and the rpm build process runs configure for you. Building
from an SVN checkout requires that you run autogen, and that you have
the recent and functioning docbook (xsltproc) prereqs installed. The
docbook framework either works, or is a huge PITA. I would avoid it at
all costs.
-What distro and version are you building?
Depending on exactly what linux distro you're building for, man pages
might be in different default locations. Since the .spec has to account
for picky differences like this, the build tries to bomb if the platform
is unrecognized. It's possible that the unrecognized distro bomb hack
doesn't work on your distro, or the distro is incorrectly recognized.
I don't need the full rpm log. And you already did the detective work
I would have done to track down /usr/share/man vs /usr/man. I would bet
that one of these configure flags is being set or reset in the build
process: --datarootdir= --mandir= However, I wouldn't spend any time
working on this until you've tried building from a fresh tarball extract
using just ./packaing/rpm/buildpkg.
We (you and I, not the royal we) could more clearly document the process
of making your own RPM, and save the next guy some trouble. Can you
remember what docs you looked at?
Dan