Opened 13 years ago

Closed 13 years ago

#34388 closed defect (fixed)

openjpeg @1.5.0_0 fails to patch on < 10.6

Reported by: jmroot (Joshua Root) Owned by: rmstonecipher@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), ballapete (Peter "Pete" Dyballa), nonstop.server@…, ryandesign (Ryan Carsten Schmidt), 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 (2)

main.log (2.2 KB) - added by ballapete (Peter "Pete" Dyballa) 13 years ago.
main.log with "successful" build
macports_openjpeg.log (86.9 KB) - added by nonstop.server@… 13 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 in reply to:  description Changed 13 years ago by ballapete (Peter "Pete" 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 years ago by ballapete (Peter "Pete" Dyballa)

Cc: Peter_Dyballa@… added

Cc Me!

Changed 13 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log with "successful" build

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

Cc: nonstop.server@… added

Cc Me!

comment:4 Changed 13 years ago by danielluke (Daniel J. Luke)

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 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:6 Changed 13 years ago by jowens@…

Cc: jowens@… added

Cc Me!

comment:7 in reply to:  4 Changed 13 years 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 years ago by nonstop.server@…

Attachment: macports_openjpeg.log added

comment:8 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.