Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packaging fixes #16

Open
wants to merge 302 commits into
base: master
Choose a base branch
from
Open

packaging fixes #16

wants to merge 302 commits into from

Conversation

infinity0
Copy link

I am updating this package in Debian and along the way have made some vendor-agnostic fixes. Please review and merge.

@bjornfor
Copy link

+1 from a non-developer trying to package Motion for NixOS :-)

PS: I think a variant of that last commit ("fix build for non-x86 platforms [...]") has been merged to master.

infinity0 and others added 27 commits September 25, 2014 19:09
The proper idiom is:

  memset(ptr, val, sizeof(*ptr));

These files were using:

  memset(ptr, val, sizeof(ptr));
The proper idiom for calculating the size for memory allocation is:

  ptr = malloc(sizeof(*ptr));

The sizeof() dereferences the pointer's type, and allocates enough
memory to store an instance of that type. motion.c was using this idiom:

  ptr = malloc(sizeof(ptr));

This is incorrect, but thankfully fairly harmless in practice since the
pointer type is usually quite large. Change this to the proper idiom.
Fix incorrect sizeof() calculations in malloc and memset
This function always returned `ret`, so might as well take a shortcut
and return the pointer directly.
Calling free() on a NULL pointer is a completely harmless. Reduce code
complexity by removing the unnecessary checks.
support -b to force running in background
Tweaks to uses of 'mymalloc'
Patch proposed by Github user aklomp
Link: Motion-Project/motion#49
slokhorst and others added 30 commits September 22, 2016 16:01
… header line, when the

Hostname header was empty or malformed.
As documented in issue 169, the recentlay added MMAL camera support for the
Raspberry Pi does not build on the Wheezy version of Raspbian.
This option disables the autoconf generation of MMAL dependencies.
Revise the log level to warning when the user has specified a pgm mask file that is
different than the size of the image from the camera.

Free the memory associated with mask image to close memory leak.
Change --without-sdl to --with-sdl=[DIR]
Updated extpipe examples with ultrafast H264 (ffmpeg, mencoder and x264)
Fix hostname determination for IPv6 addresses in web server.
Adds --without-mmal option to configure.
Remove Fedora initscript (use the systemd service file instead)
ffmpeg seems to put a \n on the end of messages, and MOTION_LOG also
adds one, so remove the ffmpeg one.
Small fixes for recent changes
man pages are typically for UNIX systems where the line endings are LF not CRLF.
The file currently uses a mix of both, urgh.
Motion already installs motion-dist.conf to @sysconfdir@/motion/, but some
documentation was not updated to reflect this yet.
Certain symbols like - and \ need to be escaped in the man format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.