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.
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.