Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package mjpg-streamer for openSUSE:Factory checked in at 2026-10-14 18:35:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mjpg-streamer (Old) and /work/SRC/openSUSE:Factory/.mjpg-streamer.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mjpg-streamer" Wed Oct 14 18:35:30 2026 rev:7 rq:1384668 version:1.0.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mjpg-streamer/mjpg-streamer.changes 2025-05-08 18:26:23.360005828 +0200 +++ /work/SRC/openSUSE:Factory/.mjpg-streamer.new.3698736/mjpg-streamer.changes 2026-10-14 18:36:22.024014144 +0200 @@ -1,0 +2,21 @@ +Tue Oct 13 12:51:15 UTC 2026 - Tomáš Chvátal <[email protected]> + +- Convert the hand-rolled cmake call in %build to the %cmake and + %cmake_build macros so the package is built with the distro + optflags (-O2, -D_FORTIFY_SOURCE=3, -fstack-protector-strong). + All binaries were previously built without any hardening flags + (missing-fortify and missing-stack-protector on every binary). +- Add fix-missing-return-output_viewer.patch: add the missing + return statement to the empty output_cmd() stub, which the + -Werror=return-type in the optflags turns into a build error. +- Add fix-undefined-symbols-input_uvc.patch: compile utils.c into + the input_uvc plugin. It calls parse_resolution_opt() and + resolutions_help() from utils.c, which used to be resolved from + the main executable at dlopen time; -Wl,--no-undefined makes + that a link error. +- Drop unused BuildRequires: gcc-c++, python3-devel, + python3-numpy-devel, python3-opencv. Nothing in the build uses + a C++ compiler or Python, and the OpenCV input plugin requires + OpenCV 3, so it is never built. + +------------------------------------------------------------------- New: ---- fix-missing-return-output_viewer.patch fix-undefined-symbols-input_uvc.patch ----------(New B)---------- New: (missing-fortify and missing-stack-protector on every binary). - Add fix-missing-return-output_viewer.patch: add the missing return statement to the empty output_cmd() stub, which the New: -Werror=return-type in the optflags turns into a build error. - Add fix-undefined-symbols-input_uvc.patch: compile utils.c into the input_uvc plugin. It calls parse_resolution_opt() and ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mjpg-streamer.spec ++++++ --- /var/tmp/diff_new_pack.M12pwN/_old 2026-10-14 18:36:23.030056502 +0200 +++ /var/tmp/diff_new_pack.M12pwN/_new 2026-10-14 18:36:23.032056586 +0200 @@ -21,20 +21,17 @@ Release: 0 Summary: Program for streaming webcam video to HTTP License: GPL-2.0-only -Group: Productivity/Multimedia/Video/Players +URL: https://github.com/jacksonliam/mjpg-streamer Source0: %{name}-%{version}.tar.xz Patch1: fix-build.patch Patch2: set_group.patch -URL: https://github.com/jacksonliam/mjpg-streamer +Patch3: fix-missing-return-output_viewer.patch +Patch4: fix-undefined-symbols-input_uvc.patch BuildRequires: SDL-devel BuildRequires: cmake -BuildRequires: gcc-c++ BuildRequires: libgphoto2-devel BuildRequires: libjpeg-devel BuildRequires: protobuf-c -BuildRequires: python3-devel -BuildRequires: python3-numpy-devel -BuildRequires: python3-opencv BuildRequires: zeromq-devel %description @@ -52,16 +49,14 @@ The number reflects /dev/videoX and listening port 808X. %prep -%autosetup -p2 -n %{name}-%version/mjpg-streamer-experimental +%autosetup -p2 -n %{name}-%{version}/mjpg-streamer-experimental %build # Remove cmake4 error due to not setting # min cmake version - sflees.de export CMAKE_POLICY_VERSION_MINIMUM=3.5 -mkdir build -cd build -cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=%_libdir -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=%_libdir -DCMAKE_BUILD_TYPE=RelWithDebInfo .. -make %{?_smp_mflags} +%cmake +%cmake_build %install %cmake_install @@ -83,11 +78,10 @@ %service_del_postun [email protected] %files -%defattr(-,root,root,-) %license LICENSE %doc README.md %{_bindir}/mjpg_streamer -/usr/lib/mjpg-streamer -/usr/share/mjpg-streamer +%{_prefix}/lib/mjpg-streamer +%{_datadir}/mjpg-streamer %{_unitdir}/[email protected] ++++++ fix-missing-return-output_viewer.patch ++++++ --- a/mjpg-streamer-experimental/plugins/output_viewer/output_viewer.c +++ b/mjpg-streamer-experimental/plugins/output_viewer/output_viewer.c @@ -428,7 +428,6 @@ int output_cmd() { - - + return 0; } ++++++ fix-undefined-symbols-input_uvc.patch ++++++ --- a/mjpg-streamer-experimental/plugins/input_uvc/CMakeLists.txt +++ b/mjpg-streamer-experimental/plugins/input_uvc/CMakeLists.txt @@ -22,7 +22,8 @@ MJPG_STREAMER_PLUGIN_COMPILE(input_uvc dynctrl.c input_uvc.c jpeg_utils.c - v4l2uvc.c) + v4l2uvc.c + ../../utils.c) if (V4L2_LIB) target_link_libraries(input_uvc ${V4L2_LIB})
