#66941 closed defect (fixed)

opencv3: Applying patches forever

Reported by: andrewhw (Andrew Wright) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: opencv3

Description

Having run "port upgrade outdated", opencv3 requires an update.

It got as far as "Applying patches to opencv3" and stayed there for more then 24 hours.

I interrupted, cleaned, and tried again -- same deal.

Looking at running processes (using ps) returns nothing using CPU.

Seems to be blocked waiting on some event that never happens (rather than being in an infinite loop, as there is no CPU time being consumed).

Is anyone else seeing this?

Any ideas how to debug this problem?

Change History (6)

comment:1 Changed 15 months ago by andrewhw (Andrew Wright)

I just realized that there is a "verbose mode" that will issue the command lines being run.

The problem is a malformed patch.

Once in directory:

"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_opencv3/opencv3/work/opencv3-3.4.16"

the command

/usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/graphics/opencv3/files/patch-find-openexr.diff'

is being run.

When run at the command line, patch print a prompt "File to patch:" and is waiting (forever) for standard input.

comment:2 Changed 15 months ago by andrewhw (Andrew Wright)

The "opencv3-3.4.16" directory where patch is being run from is empty.

comment:3 Changed 15 months ago by andrewhw (Andrew Wright)

I am guessing that the directory "opencv3-3.4.16" is actually supposed to be a symlink to the companion "opencv-3.4.16" directory?

comment:4 Changed 15 months ago by kencu (Ken)

there was a change in base recently.

a few ports need to have their "worksrcdir" specified, if the extracted distfile doesn't match ${name}-${version}. This one doesn't match, so will need to be fixed.

Something like this in the Portfile will likely fix it

worksrcdir opencv-${version}

comment:5 Changed 15 months ago by jmroot (Joshua Root)

Owner: set to mascguy
Status: newassigned
Summary: Applying patches foreveropencv3: Applying patches forever

Same problem as #66861.

comment:6 Changed 15 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In d967da4c27ad30e0588feaae8a394fc1cc5af814/macports-ports (master):

opencv3: fix worksrcdir

closes: #66941

Note: See TracTickets for help on using tickets.