Bug 249692

Summary: graphics/facedetect: depends on python 2.x
Product: Ports & Packages Reporter: Steve Wills <swills>
Component: Individual Port(s)Assignee: Emanuel Haupt <ehaupt>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (ehaupt)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 249337    

Description Steve Wills freebsd_committer freebsd_triage 2020-09-24 16:28:08 UTC
This port will be removed on 2020-12-31 if not fixed
Comment 1 Emanuel Haupt freebsd_committer freebsd_triage 2020-09-24 17:33:57 UTC
According to https://gitlab.com/wavexx/facedetect it should work with python 3.x. I am looking into it.
Comment 2 Emanuel Haupt freebsd_committer freebsd_triage 2020-09-24 18:21:54 UTC
Test case:

fetch https://image.shutterstock.com/z/stock-photo-group-picture-of-young-successful-team-of-designers-701723263.jpg
facedetect -o faces.jpg stock-photo-group-picture-of-young-successful-team-of-designers-701723263.jpg

Expected output:

1108 307 120 120
1263 220 124 124
71 167 151 151
270 255 146 146
547 248 152 152
802 172 177 177

faces.jpg should have faces framed.
Comment 3 Emanuel Haupt freebsd_committer freebsd_triage 2020-09-24 18:43:25 UTC
Got a working patch. Will commit shortly.
Comment 4 commit-hook freebsd_committer freebsd_triage 2020-09-25 09:04:22 UTC
A commit references this bug:

Author: ehaupt
Date: Fri Sep 25 09:04:12 UTC 2020
New revision: 550003
URL: https://svnweb.freebsd.org/changeset/ports/550003

Log:
  - Provide a patch to work with python 3.6+
  - Drop python 2.x support
  - Pacify portlint/portclippy

  PR:		249692 (based on)
  Submitted by:	swills

Changes:
  head/graphics/facedetect/Makefile
  head/graphics/facedetect/files/patch-facedetect