From owner-freebsd-ports@freebsd.org Sat Apr 15 22:10:56 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 000C0D3F7F1 for ; Sat, 15 Apr 2017 22:10:55 +0000 (UTC) (envelope-from p.smith@auckland.ac.nz) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D6DED218 for ; Sat, 15 Apr 2017 22:10:55 +0000 (UTC) (envelope-from p.smith@auckland.ac.nz) Received: by mailman.ysv.freebsd.org (Postfix) id D338FD3F7EF; Sat, 15 Apr 2017 22:10:55 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFB41D3F7EE for ; Sat, 15 Apr 2017 22:10:55 +0000 (UTC) (envelope-from p.smith@auckland.ac.nz) Received: from mx4.auckland.ac.nz (mx4.auckland.ac.nz [130.216.125.248]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "mx4.auckland.ac.nz", Issuer "QuoVadis Global SSL ICA G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 27DA2214 for ; Sat, 15 Apr 2017 22:10:54 +0000 (UTC) (envelope-from p.smith@auckland.ac.nz) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1492294255; x=1523830255; h=mime-version:from:date:message-id:subject:to; bh=b21eXfknVFN4QirHj4ZDNSzvQkg2IUsDm6Nq1AsntUk=; b=azngb/09um42luyrGJOZRKRz9xcrsGubjfzynC+VoYwNlgnSdKqGp+P+ 73QjsN1uccuaTK9Kwy9LvenjKgXxouEYo6hgO0MbbuSpRQvvAcjP9d2Ti JsHH+SQh5EkUhiQ5a1C1PIdBm7N5Ipdt64Mzpebj14mLJoCOepF1xQ/Aa EXANofbDgmmUlBGWIbwZLmTxZ3Fa/d3LRAnlT39cMRCjoHzzyAxW7Uo3e FVCYxg6lLt//fAdI7zFuRIpRuobFA87q9q2io7PRg7xeABAbQoQH9H8tF YFqR3QqatZWClIhBKisSuBuT2Dwx20i8FDl7baopsGFXHiMaTcA48jD9Y A==; X-IronPort-AV: E=Sophos;i="5.37,206,1488798000"; d="scan'208,217";a="150159240" X-Ironport-HAT: None - $RELAY-AUTH X-Ironport-Source: 209.85.218.47 - Outgoing - Outgoing-SSL Received: from mail-oi0-f47.google.com ([209.85.218.47]) by mx4-int.auckland.ac.nz with ESMTP; 16 Apr 2017 10:09:40 +1200 Received: by mail-oi0-f47.google.com with SMTP id b187so116218102oif.0 for ; Sat, 15 Apr 2017 15:09:40 -0700 (PDT) X-Gm-Message-State: AN3rC/6Eu7z6qIRUNohAA7Eg7A/8jfcbST3zLEFiO+Is7quT+WeoJy9t KiqXqxJWgFgNQMxMSVeL0RZIIm40opua X-Received: by 10.202.237.132 with SMTP id l126mr674546oih.199.1492294178675; Sat, 15 Apr 2017 15:09:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.112.167 with HTTP; Sat, 15 Apr 2017 15:09:38 -0700 (PDT) From: Peter Smith Date: Sun, 16 Apr 2017 10:09:38 +1200 X-Gmail-Original-Message-ID: Message-ID: Subject: FreeBSD Port: graphics/opencv -- Fails to compile To: ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Apr 2017 22:10:56 -0000 I am running # uname -a > FreeBSD red 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 > 06:12:04 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > amd64 > Having just refreshed my ports tree (portsnap fetch, etc), I'm rebuilding all my installed ports (portmaster -a). Alas, opencv-core won't build. When I go to the port and do a 'make' I get: root@red:/usr/ports/graphics/opencv-core # make ===> NOTICE: The opencv port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port ===> License BSD3CLAUSE accepted by the user ===> opencv-core-2.4.13.1_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by opencv-core-2.4.13.1_1 for building ===> Extracting for opencv-core-2.4.13.1_1 => SHA256 Checksum OK for opencv-opencv-2.4.13.1_GH0.tar.gz. ===> Patching for opencv-core-2.4.13.1_1 ===> Applying FreeBSD patches for opencv-core-2.4.13.1_1 1 out of 1 hunks failed--saving rejects to ./apps/traincascade/imagestorage.h.rej => FreeBSD patch patch-apps__traincascade__imagestorage.h failed to apply cleanly. *** Error code 1 Stop. make[1]: stopped in /usr/ports/graphics/opencv-core *** Error code 1 Stop. make: stopped in /usr/ports/graphics/opencv-core The reject patch file looks like: root@red:/usr/ports/graphics/opencv-core/work/opencv-2.4.13.1/apps/traincascade # cat imagestorage.h.rej @@ -1,6 +1,7 @@ #ifndef _OPENCV_IMAGESTORAGE_H_ #define _OPENCV_IMAGESTORAGE_H_ +#include #include "highgui.h" using namespace cv; But the original file looks like: root@red:/usr/ports/graphics/opencv-core/work/opencv-2.4.13.1/apps/traincascade > # more imagestorage.h.orig > #ifndef _OPENCV_IMAGESTORAGE_H_ #define _OPENCV_IMAGESTORAGE_H_ #include #include #include #include "highgui.h" class CvCascadeImageReader So, I can see why the patch fails. I just can't figure out where the file is that I need to tweak. I wonder if anyone else has seen anything like this before. Kind regards Peter Smith Department of Management and International Business Room 439, Level 4, Owen G. Glenn Building, 12 Grafton Road, AUCKLAND The University of Auckland Business School, Private Bag 92019, AUCKLAND Email: p.smith@auckland.ac.nz, Phone: +64 9 923 7178