Ticket #34388 (closed defect: fixed)
openjpeg @1.5.0_0 fails to patch on < 10.6
| Reported by: | jmr@… | Owned by: | rmstonecipher@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.4 |
| Keywords: | Cc: | mcalhoun@…, Peter_Dyballa@…, nonstop.server@…, ryandesign@…, jowens@… | |
| Port: | openjpeg |
Description
---> Applying patches to openjpeg ---> Applying /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/graphics/openjpeg/files/patch-libopenjpeg-Makefile.in.diff patching file libopenjpeg/Makefile.in Hunk #1 FAILED at 616. 1 out of 1 hunk FAILED -- saving rejects to file libopenjpeg/Makefile.in.rej
Attachments
Change History
comment:1 in reply to: ↑ description Changed 13 months ago by Peter_Dyballa@…
Changed 13 months ago by Peter_Dyballa@…
main.log with "successful" build
comment:4 follow-up: ↓ 7 Changed 13 months ago by dluke@…
Built fine for me after removing the patch from the Portfile and removing several man files (which didn't belong to any registered port, and were perhaps installed outside of DESTROOT by a previous version of this port?)
comment:7 in reply to: ↑ 4 Changed 13 months ago by nonstop.server@…
Replying to dluke@…:
Port openjpeg was installed as an dependency of ffmpeg on my system and the log shows that 4 manpages are created and installed, but never activated.
/usr/bin/make install-data-hook Installing: image_to_j2k.1 /opt/local/share/man/man1 Installing: j2k_to_image.1 /opt/local/share/man/man1 Installing: j2k_dump.1 /opt/local/share/man/man1 Installing: libopenjpeg.3 /opt/local/share/man/man3
That is probably the reason why MacPorts is not aware of these files.
I have attached the installation output of the openjpeg part from my logfile to this ticket, hopefully it will help troubleshooting issues with this port.
The mentioned manpages are installed:
% ls -hl /opt/local/share/man/man1/*j2k* /opt/local/share/man/man3/libopenjpeg.3.gz -rw-r--r-- 1 root admin 2.7K Oct 5 2011 /opt/local/share/man/man1/image_to_j2k.1.gz -rw-r--r-- 1 root admin 701B Oct 5 2011 /opt/local/share/man/man1/j2k_dump.1.gz -rw-r--r-- 1 root admin 1.4K Oct 5 2011 /opt/local/share/man/man1/j2k_to_image.1.gz -rw-r--r-- 1 root admin 3.4K Oct 5 2011 /opt/local/share/man/man3/libopenjpeg.3.gz
However they do not belong to any port:
% port provides /opt/local/share/man/man1/image_to_j2k.1.gz \ > /opt/local/share/man/man1/j2k_dump.1.gz \ > /opt/local/share/man/man1/j2k_to_image.1.gz \ > /opt/local/share/man/man3/libopenjpeg.3.gz /opt/local/share/man/man1/image_to_j2k.1.gz is not provided by a MacPorts port. /opt/local/share/man/man1/j2k_dump.1.gz is not provided by a MacPorts port. /opt/local/share/man/man1/j2k_to_image.1.gz is not provided by a MacPorts port. /opt/local/share/man/man3/libopenjpeg.3.gz is not provided by a MacPorts port.
Note: See
TracTickets for help on using
tickets.


The same also happens on PPC Leopard 10.5.8. The complete patch file is rejected. The targets in the Makefile are new – as is the version: 1.5 instead of 1.4.x.
Commenting in Portfile the lines to apply the patch leads to a success, except for this: