Motion - Bug Report 2008x 07x 20x 094957
You are here: Foswiki>Motion Web>BugReports>BugReport2008x07x20x094957 (10 Aug 2009, AngelCarpintero)Edit Attach

BUG: Ubuntu (bug-fix) packages available from Ubuntu PPA repository

I've created an improved Ubuntu package in my Personal Package Archive which uses CDBS and fixes:
  • daemon-starts-during-install issue (continuation of "BUG: Deb packages for ubuntu try to run daemon when installing it")
  • int-from-pointer conversion bug with 64-bit builds.
Add my PPA repository to apt and the motion package can be installed/removed as a regular Ubuntu package using Synaptic, aptitude, apt-get, etc.:
$ sudo sh -c "echo 'deb hardy main' >/etc/apt/sources.list.d/intuitivenipple.list"
$ sudo apt-get update
$ sudo apt-get install motion

I'll upload a package for Gutsy as well.


Motion version:
ffmpeg version: 3:0.cvs20070307-5ubuntu7+medibuntu1.1
Shared libraries: ffmpeg, mysql, postgresql
Server OS: Ubuntu Hardy Gutsy

-- IntuitiveNipple - 20 Jul 2008

Follow up

Thanks you did a nice work, but it should be fixed in debian / ubuntu repositories too.

I fixed some time ago that issue of start motion on install, debian skel is on this topic :

Are you sure about "int-from-pointer conversion bug with 64-bit builds" ... did you get any proof that make motion

not work on x86_64 ?

Although i'm agree that motion need some work on 64bits doing a formal use of LP64.

-- AngelCarpintero - 20 Jul 2008

Follow up

I downloaded the 'latest' Ubuntu Hardy package earlier today and motion was started during the installation process and when I checked the postinst file in the package it shows:

# Automatically added by dh_installinit
if [ -x "/etc/init.d/motion" ]; then
update-rc.d motion start 60 2 3 4 5 . stop 60 0 1 6 . >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d motion start || exit $?
/etc/init.d/motion start || exit $?
# End automatically added section

The 64-bit pointer issue is a definite problem. The compiler correctly warns about it and the code was explictly expecting a 32-bit pointer. Through luck the values are unlikely to exceed the 32-bit range but that doesn't alter the fact that is was a real bug.

Since I posted this report I've done some more changes that fix another issue with the init script not starting motion as a daemon, ensuring the PIDFILE used is the one specified in the init script, and the init script uses standard logging functions. I've also built packages for Ubuntu Feisty, Gutsy, Hardy and Intrepid in my PPA.

Nice fixes , maybe maintainers of debian / ubuntu packages should take care as long as

packages in official repositories are pretty out of date ( broken ? ) ...

Would you like to add your repository to motion download page so people can use your packages ?

btw ppa is a neat way to get ubuntu packages , looks greats !!! Congrats ! smile

-- AngelCarpintero - 20 Jul 2008

Fix record

Fixes added to svn .

Will be release in future versions.

-- AngelCarpintero - 17 Jul 2009

BugReportForm edit

TopicTitle Ubuntu (bug-fix) packages available from Ubuntu PPA repository
BugStatus Released
SubmittedBy IntuitiveNipple
Topic revision: r6 - 10 Aug 2009, AngelCarpintero
Copyright © 1999-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.