Emerge fails with error message indicating failure to apply patch. Reproducible: Always Steps to Reproduce: 1. emerge -uv media-libs/openjpeg 2. 3. Actual Results: * Applying openjpeg-1.3-Makefile.patch ... [ ok ] * Applying openjpeg-1.3-darwin.patch ... * Failed Patch: openjpeg-1.3-darwin.patch ! * ( /Users/bsondere/gentoo/usr/portage/media-libs/openjpeg/files/openjpeg-1.3-darwin.patch ) * … Expected Results: Update of openjpeg Both openjpeg-1.3-Makefile.patch and openjpeg-1.3-darwin.patch appear to modify the Makefile. DETAILS FOLLOW -------------------------------------------------------------------------------- ***** openjpeg-1.3-darwin.patch ***** ===================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /Users/bsondere/gentoo/usr/portage/media-libs/openjpeg/files/openjpeg-1.3-darwin.patch ===================================== patching file libopenjpeg/opj_malloc.h patching file Makefile Hunk #1 FAILED at 26. 1 out of 2 hunks FAILED -- saving rejects to file Makefile.rej ===================================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < /Users/bsondere/gentoo/usr/portage/media-libs/openjpeg/files/openjpeg-1.3-darwin.patch ===================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- libopenjpeg/opj_malloc.h |+++ libopenjpeg/opj_malloc.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 14 of patch can't find file to patch at input line 14 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile |+++ Makefile -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored ===================================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < /Users/bsondere/gentoo/usr/portage/media-libs/openjpeg/files/openjpeg-1.3-darwin.patch ===================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- libopenjpeg/opj_malloc.h |+++ libopenjpeg/opj_malloc.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 14 of patch can't find file to patch at input line 14 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile |+++ Makefile -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored ===================================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < /Users/bsondere/gentoo/usr/portage/media-libs/openjpeg/files/openjpeg-1.3-darwin.patch ===================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- libopenjpeg/opj_malloc.h |+++ libopenjpeg/opj_malloc.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 14 of patch can't find file to patch at input line 14 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile |+++ Makefile -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored ===================================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < /Users/bsondere/gentoo/usr/portage/media-libs/openjpeg/files/openjpeg-1.3-darwin.patch ===================================== missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- libopenjpeg/opj_malloc.h |+++ libopenjpeg/opj_malloc.h -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored missing header for unified diff at line 14 of patch can't find file to patch at input line 14 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- Makefile |+++ Makefile -------------------------- No file to patch. Skipping patch. 2 out of 2 hunks ignored
(In reply to comment #0) same problem here @Bernhard: you can strip the "gentoo-prefix osx" tag from bug summary because is already on the product and os properties :)
The makefile patch made the darwin patch fail. I fixed up the darwin patch to cope with it now. Thanks!