Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Martin <s.martin49@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/opencv: update sysctl patch
Date: Tue,  1 Nov 2016 09:56:53 +0100	[thread overview]
Message-ID: <20161101085654.3571-1-s.martin49@gmail.com> (raw)

Fixes:
  http://autobuild.buildroot.net/results/845/845f5e906fda3e87a2fc439a62baede44842283b/

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
 package/opencv/0002-avoid-sysctl_h.patch | 48 ++++++++++++++++++++++++++------
 1 file changed, 39 insertions(+), 9 deletions(-)

diff --git a/package/opencv/0002-avoid-sysctl_h.patch b/package/opencv/0002-avoid-sysctl_h.patch
index 6032205..b63ba55 100644
--- a/package/opencv/0002-avoid-sysctl_h.patch
+++ b/package/opencv/0002-avoid-sysctl_h.patch
@@ -1,13 +1,24 @@
-From upstream master branch:
-https://github.com/Itseez/opencv/blob/master/modules/core/src/
+From e5e71c31d54562f9c67a8226f0bfc08ad24b81cf Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Tue, 1 Nov 2016 09:30:23 +0100
+Subject: [PATCH 2/4] From upstream master branch:
+ https://github.com/Itseez/opencv/blob/master/modules/core/src/
 
 Do not include sysctl.h targeting Linux systems.
 
 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+[Samuel Martin: convert patch to git diff, add cap_ffmpeg_impl.hpp fix]
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+---
+ modules/core/src/parallel.cpp           | 2 +-
+ modules/core/src/system.cpp             | 2 +-
+ modules/highgui/src/cap_ffmpeg_impl.hpp | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
 
-diff -Nur opencv-2.4.12.3.orig/modules/core/src/parallel.cpp opencv-2.4.12.3/modules/core/src/parallel.cpp
---- opencv-2.4.12.3.orig/modules/core/src/parallel.cpp	2015-10-26 08:56:34.000000000 +0100
-+++ opencv-2.4.12.3/modules/core/src/parallel.cpp	2016-04-05 12:59:37.750143762 +0200
+diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp
+index 4459a24..0374876 100644
+--- a/modules/core/src/parallel.cpp
++++ b/modules/core/src/parallel.cpp
 @@ -56,7 +56,7 @@
      #include <sys/types.h>
      #if defined ANDROID
@@ -17,10 +28,11 @@ diff -Nur opencv-2.4.12.3.orig/modules/core/src/parallel.cpp opencv-2.4.12.3/mod
          #include <sys/sysctl.h>
      #endif
  #endif
-diff -Nur opencv-2.4.12.3.orig/modules/core/src/system.cpp opencv-2.4.12.3/modules/core/src/system.cpp
---- opencv-2.4.12.3.orig/modules/core/src/system.cpp	2015-10-26 08:56:34.000000000 +0100
-+++ opencv-2.4.12.3/modules/core/src/system.cpp	2016-04-05 13:05:22.468323717 +0200
-@@ -163,7 +163,7 @@
+diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp
+index 9a7b262..731f090 100644
+--- a/modules/core/src/system.cpp
++++ b/modules/core/src/system.cpp
+@@ -163,7 +163,7 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix)
  #include <sys/types.h>
  #if defined ANDROID
  #include <sys/sysconf.h>
@@ -29,3 +41,21 @@ diff -Nur opencv-2.4.12.3.orig/modules/core/src/system.cpp opencv-2.4.12.3/modul
  #include <sys/sysctl.h>
  #endif
  #endif
+diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp
+index dc3e10d..23674ff 100644
+--- a/modules/highgui/src/cap_ffmpeg_impl.hpp
++++ b/modules/highgui/src/cap_ffmpeg_impl.hpp
+@@ -126,9 +126,9 @@ extern "C" {
+     #include <unistd.h>
+     #include <stdio.h>
+     #include <sys/types.h>
+-    #include <sys/sysctl.h>
+     #include <sys/time.h>
+ #if defined __APPLE__
++    #include <sys/sysctl.h>
+     #include <mach/clock.h>
+     #include <mach/mach.h>
+ #endif
+-- 
+2.10.2
+
-- 
2.10.2

             reply	other threads:[~2016-11-01  8:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-01  8:56 Samuel Martin [this message]
2016-11-01  8:56 ` [Buildroot] [PATCH 2/2] package/opencv: convert diff patch to git patch Samuel Martin
2016-11-01 13:57 ` [Buildroot] [PATCH 1/2] package/opencv: update sysctl patch Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161101085654.3571-1-s.martin49@gmail.com \
    --to=s.martin49@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox