Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259327 - GENTOO-PREFIX (OS X): ebuild for media-libs/openjpeg-1.3-r2 fails to apply patches
Summary: GENTOO-PREFIX (OS X): ebuild for media-libs/openjpeg-1.3-r2 fails to apply pa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 08:21 UTC by Bernhard
Modified: 2009-02-17 14:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard 2009-02-17 08:21:28 UTC
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
Comment 1 Carmine Paolino 2009-02-17 09:32:22 UTC
(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 :)
Comment 2 Fabian Groffen gentoo-dev 2009-02-17 14:53:12 UTC
The makefile patch made the darwin patch fail.  I fixed up the darwin patch to cope with it now.  Thanks!