Date: Sat, 15 Apr 2017 15:29:47 -0700 From: Kevin Oberman <rkoberman@gmail.com> To: Peter Smith <p.smith@auckland.ac.nz> Cc: "ports@FreeBSD.org" <ports@freebsd.org> Subject: Re: FreeBSD Port: graphics/opencv -- Fails to compile Message-ID: <CAN6yY1vE1tzXOrPeyaLT9MiSq=v4TagJy_6tojViqoDzqAmhmw@mail.gmail.com> In-Reply-To: <CAMzGwyFg5GyqqpsbcjZ=vwzFKB9z6p0FrT_4G9_A78U9LXkFug@mail.gmail.com> References: <CAMzGwyFg5GyqqpsbcjZ=vwzFKB9z6p0FrT_4G9_A78U9LXkFug@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 15, 2017 at 3:09 PM, Peter Smith <p.smith@auckland.ac.nz> wrote: > 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 <cstdio> > #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 <stdio.h> > #include <string> > #include <vector> > #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 > Somehow you seem to have an old patch file sitting in the ports tree. patch-apps__traincascade__imagestorage.h no longer exists in the port. Do you SVN your ports tree? If so, you can confirm the issue with "svn status /usr/ports/graphics/opencv". Asssuming it is marked as unknown (?), I suggest that you "rm /usr/ports/graphics/opencv/files/*" and then "svn up /usr/ports/graphics/opencv". (Note: opencv-core is a slave port of opencv and all patches are in the opencv directory.) Then it should patch correctly. If you don't use svn to update your ports tree, I'm a bit baffled as portsnap should remove unknown files. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vE1tzXOrPeyaLT9MiSq=v4TagJy_6tojViqoDzqAmhmw>