[1:] [ERR] [NET] netcam_connect: connect() failed (22): Invalid argument Fix already in upstream: https://github.com/Motion-Project/motion/pull/287 Would be excellent if we could get a patch release to help with this :)
Created attachment 179009 [details] Patch which implements upstream Github issue #287
I've attached a patch which implements upstream Github issue #287 against the 4.0.1 release of motion ports currently uses. Patching carried out in a checkout of https://svn.freebsd.org/ports/head/multimedia/motion@431775. This is my first time submitting a FreeBSD patch, so feel free to correct me on any mistakes I've inevitably made :). Thanks, Anthony
Should have added -- package using this patch built using poudriere, we are now using the patched version of motion in production.
Looks good. I'll merge this in with changes from bug #216466. I would appreciate feedback on the other changes if you would mind taking a look.
A commit references this bug: Author: jhale Date: Mon Jan 30 00:09:54 UTC 2017 New revision: 432815 URL: https://svnweb.freebsd.org/changeset/ports/432815 Log: - Fix an issue where netcams were not connecting [1] - When motion was updated to 4.x, it was overlooked that the default search path for the configuration files was changed. This was causing existing configurations to not be read. Fix the port to install default configuration in correct location and add an UPDATING message giving users the proper instructions on where to place their existing conf files. [2] - Create an empty ${ETCDIR}/conf.d directory that can optionally be used to dump camera configs in instead of creating separate lines for each one in motion.conf - Add some missing PORTDOCS and install with the correct mode - Make the VIDEO options OPTIONS_RADIO instead of OPTIONS_SINGLE to allow for netcam only support (suggested in [2]) - Fix bad logic in configure.ac that was causing V4L to not be dectected when the PWCBSD option was enabled PR: 216189 [1] Reported by: Charles P <charlespigott@googlemail.com> Patched by: <anthony@ury.org.uk> Obtained from: upstream PR: 216466 [2] Reported by: <bakhur@inbox.ru>, tdb@ Pointy hat to: jhale MFH: 2017Q1 (blanket) Changes: head/UPDATING head/multimedia/motion/Makefile head/multimedia/motion/files/motion.in head/multimedia/motion/files/patch-configure.ac head/multimedia/motion/files/patch-netcam.c head/multimedia/motion/files/pkg-message.in
No further feedback received after r432815. Closing.