Bug 1992

Summary: RPM build fails using Red Hat spec file
Product: Portable OpenSSH Reporter: crighter
Component: Build systemAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: major CC: dtucker
Priority: P2    
Version: 5.9p1   
Hardware: ix86   
OS: Linux   
Bug Depends on:    
Bug Blocks: 1930    

Description crighter 2012-03-24 07:07:38 AEDT
When attempting to build the Red Hat RPM's the compiler throws the following error:

Processing files: openssh-debuginfo-5.9p1-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files
/var/tmp/openssh-5.9p1-buildroot

RPM build error:
    Bad exit status from /var/tmp/rpm-tmp.98925 (%doc)

----begin rpm-tmp.98925----

#!/bin/sh

RPM_SOURCE_DIR="/home/pkg_builder/rpmbuild/SOURCES"
RPM_BUILD_DIR="/home/pkg_builder/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="openssh"
RPM_PACKAGE_VERSION="5.9p1"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/openssh-5.9p1-buildroot"
export RPM_BUILD_ROOT

PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH

set -x
umask 022
cd /home/pkg_builder/rpmbuild/BUILD

cd 'openssh-5.9p1'
DOCDIR=$RPM_BUILD_ROOT/usr/share/doc/openssh-5.9p1
export DOCDIR
rm -rf $DOCDIR
/bin/mkdir -p $DOCDIR
cp -pr  CREDITS ChangeLog INSTALL LICENCE OVERVIEW README* PROTOCOL* TODO WARNING* $DOCDIR
----end rpm-tmp.98925----

Upon review of file rpm-tmp.98925 and %doc section of spec file, it appears that the WARNING* file(s) referenced in the spec do not exist in the src location.

Removing WARNING* from the spec allows the build to complete.
Comment 1 Darren Tucker 2012-03-30 10:17:27 AEDT
seems right.
Comment 2 Darren Tucker 2012-03-30 10:20:32 AEDT
committed, it will be in the 6.0p1 release.  Thanks.
Comment 3 Damien Miller 2015-08-11 23:05:46 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1