public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Backport patch for V4L
Date: Fri, 28 Aug 2026 13:29:58 GMT [thread overview]
Message-ID: <178792379810.1.4326373350350880787.rpms-opencv-ae0a180080e3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : ae0a180080e379e2f9f1506c74f72f0267bb31f5
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2011-05-17T14:51:10+02:00
Stats : +28/-25 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/ae0a180080e379e2f9f1506c74f72f0267bb31f5?branch=opencv5
Log:
Backport patch for V4L
---
diff --git a/OpenCV-2.2-backport-v4l.patch b/OpenCV-2.2-backport-v4l.patch
new file mode 100644
index 0000000..339fadd
--- /dev/null
+++ b/OpenCV-2.2-backport-v4l.patch
@@ -0,0 +1,26 @@
+Index: modules/highgui/src/cap.cpp
+===================================================================
+--- modules/highgui/src/cap.cpp (révision 4961)
++++ modules/highgui/src/cap.cpp (révision 4964)
+@@ -173,7 +173,7 @@
+ if (capture)
+ return capture;
+ #endif
+- #if defined (HAVE_CAMV4L) || defined (HAVE_CAMV4L2)
++ #if defined (HAVE_CAMV4L) && defined (HAVE_CAMV4L2)
+ capture = cvCreateCameraCapture_V4L (index);
+ if (capture)
+ return capture;
+Index: modules/highgui/src/cap_v4l.cpp
+===================================================================
+--- modules/highgui/src/cap_v4l.cpp (révision 4961)
++++ modules/highgui/src/cap_v4l.cpp (révision 4964)
+@@ -202,7 +202,7 @@
+
+ #include "precomp.hpp"
+
+-#if !defined WIN32 && (defined HAVE_CAMV4L || defined HAVE_CAMV4L2)
++#if !defined WIN32 && defined HAVE_CAMV4L && defined HAVE_CAMV4L2
+
+ #define CLEAR(x) memset (&(x), 0, sizeof (x))
+
diff --git a/OpenCV-2.2-nov4l1.patch b/OpenCV-2.2-nov4l1.patch
deleted file mode 100644
index cacdd77..0000000
--- a/OpenCV-2.2-nov4l1.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff -up OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp.nov4l1 OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp
---- OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp.nov4l1 2011-02-02 16:55:22.844244001 +0100
-+++ OpenCV-2.2.0/modules/highgui/src/cap_v4l.cpp 2011-02-02 16:53:22.224244002 +0100
-@@ -214,7 +214,9 @@ make & enjoy!
- #include <sys/types.h>
- #include <sys/mman.h>
-
-+#ifdef HAVE_CAMV4L
- #include <linux/videodev.h>
-+#endif
-
- #include <string.h>
- #include <stdlib.h>
-diff -up OpenCV-2.2.0/modules/highgui/src/cap.cpp.nov4l1 OpenCV-2.2.0/modules/highgui/src/cap.cpp
---- OpenCV-2.2.0/modules/highgui/src/cap.cpp.nov4l1 2011-02-04 15:10:51.461243999 +0100
-+++ OpenCV-2.2.0/modules/highgui/src/cap.cpp 2011-02-04 15:11:22.040244001 +0100
-@@ -171,7 +171,7 @@ CV_IMPL CvCapture * cvCreateCameraCaptur
- if (capture)
- return capture;
- #endif
-- #if defined (HAVE_CAMV4L) || defined (HAVE_CAMV4L2)
-+ #if defined (HAVE_CAMV4L)
- capture = cvCreateCameraCapture_V4L (index);
- if (capture)
- return capture;
diff --git a/opencv.spec b/opencv.spec
index ce6a70c..9e00032 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -23,6 +23,7 @@ Patch3: OpenCV-2.2-fixpc.patch
Patch4: opencv-2.1.0-opencvconfig.patch
Patch5: OpenCV-2.2-numpy.patch
Patch6: OpenCV-2.2-gcc46.patch
+Patch7: OpenCV-2.2-backport-v4l.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtool
@@ -104,6 +105,7 @@ This package contains Python bindings for the OpenCV library.
%patch4 -p1 -b .opencvconfig
%patch5 -p1 -b .numpy
%patch6 -p1 -b .gcc46
+%patch7 -p0
#Save some convant headers for now:
cp -p 3rdparty/include/cblas.h 3rdparty
reply other threads:[~2026-08-28 13:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178792379810.1.4326373350350880787.rpms-opencv-ae0a180080e3@fedoraproject.org \
--to=kwizart@gmail.com \
--cc=git-commits@fedoraproject.org \
/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