Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 54081 - Cannot build man-1.5i2-0.6x.5 RPM from SRPM
Cannot build man-1.5i2-0.6x.5 RPM from SRPM
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
alpha Linux
medium Severity high
: ---
: ---
Assigned To: Jeff Johnson
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2001-09-26 23:55 EDT by Craig Prescott
Modified: 2007-04-18 12:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-09-28 01:15:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Craig Prescott 2001-09-26 23:55:51 EDT
Description of Problem:
When building a binary rpm from man-1.5i2-0.6x.5.src.rpm
[RHSA-2001:072-14], rpm dies when trying to gzip the man pages because it
is looking in the wrong place.

The following patch fixes the problem.

--- man.spec~   Fri Aug 24 12:55:13 2001
+++ man.spec    Wed Sep 26 23:17:32 2001
@@ -41,6 +41,7 @@
 Requires: less, groff, findutils, mktemp >= 1.5-2.1.5x
 %if %{legacypaths}
 %define cache /var/catman
+%define _mandir /usr/man
 %define cache /var/cache/man

Version-Release number of selected component (if applicable):

How Reproducible:

Steps to Reproduce:
1. rpm --rebuild man-1.5i2-0.6x.5.src.rpm

Actual Results:
install -m 644 man2html.1 /var/tmp/man-root/usr/man/man1/man2html.1
+ strip -R .comment /var/tmp/man-root/usr/bin/man2html
+ gzip -9f /var/tmp/man-root/usr/share/man/*/*
/var/tmp/man-root/usr/share/man/*/*: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.11587 (%install)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.11587 (%install)

Expected Results:
install -m 644 man2html.1 /var/tmp/man-root/usr/man/man1/man2html.1
+ strip -R .comment /var/tmp/man-root/usr/bin/man2html
+ gzip -9f /var/tmp/man-root/usr/man/man1/apropos.1
+ cd /var/tmp/man-root
+ exit 0

Additional Information:
I am using rpm-4.0.2-6x.
Comment 1 Bernhard Rosenkraenzer 2001-09-27 08:20:06 EDT
Looks like the current rpm for 6.x doesn't set _mandir correctly. Not sure 
whether this is a problem in the actual rpm errata package or a local config 
issue, reassigning for now.
Comment 2 Craig Prescott 2001-09-28 01:15:09 EDT
In my initial report, I did not choose the correct platform - please accept my
apologies for this mistake...
Comment 3 Jeff Johnson 2001-10-04 08:21:25 EDT
Internalizing %_mandir, particularly for the man package,
is the best solution, as detecting the correct value of
mandir during a transition from /usr/man to /usr/share/man
is difficult to get right in rpm, particularly since build
configuartion preferences are involved.

Note You need to log in before you can comment on or make changes to this bug.