New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34388 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

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

main.log (2.2 KB) - added by Peter_Dyballa@… 13 months ago.
main.log with "successful" build
macports_openjpeg.log (86.9 KB) - added by nonstop.server@… 13 months ago.

Change History

comment:1 in reply to: ↑ description Changed 13 months ago by Peter_Dyballa@…

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:

Error: Target org.macports.activate returned: Image error: /opt/local/share/man/man1/image_to_j2k.1.gz already exists and does not belong to a registered port.  Unable to activate port openjpeg. Use 'port -f activate openjpeg' to force the activation.

comment:2 Changed 13 months ago by Peter_Dyballa@…

  • Cc Peter_Dyballa@… added

Cc Me!

Changed 13 months ago by Peter_Dyballa@…

main.log with "successful" build

comment:3 Changed 13 months ago by nonstop.server@…

  • Cc nonstop.server@… added

Cc Me!

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:5 Changed 13 months ago by ryandesign@…

  • Cc ryandesign@… added

Cc Me!

comment:6 Changed 13 months ago by jowens@…

  • Cc jowens@… added

Cc Me!

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.

Changed 13 months ago by nonstop.server@…

comment:8 Changed 13 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.