Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376225 - =media-video/motion-9999: Since current release is badly outdated, version control snapshot is required
Summary: =media-video/motion-9999: Since current release is badly outdated, version co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 5 votes (vote)
Assignee: William Breathitt Gray
URL:
Whiteboard:
Keywords:
: 463402 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-24 15:09 UTC by Markus
Modified: 2017-12-04 13:51 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
motion-9999.ebuild (motion-9999.ebuild,1.49 KB, text/plain)
2011-08-07 10:17 UTC, Andrew Savchenko
Details
motion-9999.ebuild (motion-9999.ebuild,1.48 KB, text/plain)
2011-10-02 23:33 UTC, Andrew Savchenko
Details
motion-3.2.12-v4l-headers.patch (motion-3.2.12-v4l-headers.patch,1.05 KB, patch)
2011-10-29 16:42 UTC, Krellan
Details | Diff
motion-3.2.12-r1.ebuild (motion-3.2.12-r1.ebuild,1.51 KB, text/plain)
2011-10-29 16:46 UTC, Krellan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2011-07-24 15:09:50 UTC
As noted in bug #361509 motion does not compile correctly with the new linux-headers. A fix is in the svn-tree.
Comment 1 Andrew Savchenko gentoo-dev 2011-08-07 10:17:31 UTC
Created attachment 282395 [details]
motion-9999.ebuild

motion live ebuild, works for me with linux-2.6.39.3 and v4l enabled.
Comment 2 Andrew Savchenko gentoo-dev 2011-10-02 23:33:47 UTC
Created attachment 288617 [details]
motion-9999.ebuild

Updated ebuild in order to use new initd script.
Also in removes stray $hack variable.
Comment 3 Krellan 2011-10-29 16:42:58 UTC
Created attachment 291137 [details, diff]
motion-3.2.12-v4l-headers.patch
Comment 4 Krellan 2011-10-29 16:46:32 UTC
Created attachment 291139 [details]
motion-3.2.12-r1.ebuild

This is a quick patch to enable building the existing Motion 3.2.12 in Portage.  It seems to work fine for me, on a 3.0 kernel.

There's a patch to fix some of the headers in Motion, place this in the "files" directory under Motion's directory in Portage.  Then, overwrite the existing 3.2.12-r1.ebuild file with this changed ebuild file (do a "diff" first, to see what changed).  Then, do "ebuild digest" to digest the changes, then Motion should build just fine.
Comment 5 Ernst Herzberg 2011-11-11 18:44:40 UTC
Works perfect! Thanks :-)
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2011-12-10 12:07:57 UTC
+*motion-3.2.12-r2 (10 Dec 2011)
+
+  10 Dec 2011; Samuli Suominen <ssuominen@gentoo.org> +motion-3.2.12-r2.ebuild,
+  +files/motion-3.2.12-workaround-v4l1_deprecation.patch:
+  Since motion doesn't separate v4l1 and v4l2 support, use the
+  libv4l1-videodev.h include from libv4l to allow succesful compilation of both
+  backends. This should be only temporary workaround since upstream has
+  separated the backends in version control. See bug 376225.

this should do for now and things will only get better once upstream gets new version out.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2013-03-26 22:22:06 UTC
*** Bug 463402 has been marked as a duplicate of this bug. ***
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2013-03-26 22:23:22 UTC
reopening this, since it's been another year+ with no motion release, we should really consider adding snapshot in tree now
Comment 9 A. Person 2013-07-12 14:43:06 UTC
How about adding the motion-9999 ebuild to the tree?
Comment 10 A. Person 2013-11-28 18:34:53 UTC
motion-9999 works great, can it be added to the tree?
Comment 11 Yixun Lan archtester gentoo-dev 2013-12-05 08:04:12 UTC
(In reply to A. Person from comment #10)
> motion-9999 works great, can it be added to the tree?

imho, a snapshot version would be preferred, live version is vulnerable
Comment 12 A. Person 2013-12-05 15:10:23 UTC
It looks like the fix might make it into the main branch:

http://sourceforge.net/mailarchive/message.php?msg_id=31699956
Comment 13 William Breathitt Gray 2017-12-04 13:51:54 UTC
I'm closing this bug since an ebuild of version 4.0.1 of motion was already added to the git repository to address these security issues.

We'll stick to maintaining official project releases rather than a live ebuild. As long as we keep up-to-date with the project releases and patches, legacy bugs shouldn't be much of a concern in the future.