Bug 69670

Summary: build srpms in HP-UX:patch file shows only file name not full path
Product: [Retired] Red Hat Linux Reporter: Marko Harjula <marko.harjula>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: parisc11   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-24 11:41:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marko Harjula 2002-07-24 11:41:33 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020722

Description of problem:
Platform:parisc2.2 OS:HP-UX 11.11
build srpms in HP-UX .. 
ie linux patch command when build srpms
patch -options .patchname < /full/path/file.patch
and hp version
patch -options .patchname < file.patch

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


How reproducible:
Always

Steps to Reproduce:
1.build rpm (4.0.4) to hp-ux 11.11 (and used prefix to i.e /opt/rpm )
2.create directories and configure rpm
3.try rpm --rebuild any gnu software
	

Actual Results:  
patch file not found ( missing full path to patch file)
"patch -options .patchname < file.patch"


Expected Results:  
"patch -options .patchname < /full/path/file.patch"

Additional info:

Only used --prefix when build rpm itself (and no errors in build time).
patch command is gnu version ( because hp version not work ).
When removed patchs from spec file, no errors anymore.

Comment 1 Jeff Johnson 2002-07-24 12:58:35 UTC
The sources/patches used in a build must be located
in the directory configured in the %{_sourcedir} macro,
and the full path (i.e. the concatenation of the the
expansion of %{_sourcedir} and the basename from
the Patch: tag) will be used by the %patch macro.