Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 820383 - media-video/motion-4.4.0 version bump
Summary: media-video/motion-4.4.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Johannes Willem (Hans) Fernhout
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-10-26 17:22 UTC by Johannes Willem (Hans) Fernhout
Modified: 2023-02-09 16:10 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Willem (Hans) Fernhout 2021-10-26 17:22:04 UTC
New version available at https://github.com/Motion-Project/motion/releases/tag/release-4.4.0
Comment 1 Jonas Stein gentoo-dev 2021-10-27 19:39:53 UTC
Please prepare a PR and link it here. See https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers for useful links. Ask on IRC, if you got stuck.
Comment 2 John L. Poole 2022-03-31 13:31:28 UTC
I'm interested in motion running on AMD64 and arm64.  I am not familiar with the Gentoo package maintenance scheme (thought I've been with Gentoo since 2005).  I noticed motion has an option of Libjpeg-turbo which claims a 2-6x speed enhancement.  Though, I do not yet know how JPEG fits into motion unless all of motion's output is in JPEG format.  (I'm also going to investigate other AI alternatives to processing surveillance videos.)

I'm interested in this project, I was about to just build motion on my own development server, but then realize it would help me to have a Gentoo ready package of the current release.

I see Comment #1 requests a Pull Request (PR).  Is there a fork of the project that the maintainer, Hans Fernhout, has that I might monitor?  If so, would I be able to fork from his?  

If I am going to spend time on leveraging motion, I'd like to see my efforts incorporated into Gentoo, e.g. support Libjpeg-turbo if it really does make a difference.
Comment 3 John L. Poole 2022-03-31 13:55:51 UTC
Further research suggests the de facto standard for JPEG is media-libs/libjpeg-turbo.  https://forums.gentoo.org/viewtopic-t-1126591-start-0.html I see that libjpeg-turbo is already installed on my development server and has been since 2/21.
I'll try creating an ebuild with version 4.4.0 and test.
Comment 4 John L. Poole 2022-03-31 14:44:10 UTC
Installed fine.  Now to try it out.  I do not have much experience with motion, I tried it once only to note I should come back to it when I'm ready.  Now, I'm ready.

ares /var/db/repos/localrepo/media-video/motion # eix -I motion
[I] acct-group/motion
     Available versions:  0-r1
     Installed versions:  0-r1(07:38:11 03/31/22)
     Description:         System group: motion

[I] acct-user/motion
     Available versions:  0-r1
     Installed versions:  0-r1(07:38:22 03/31/22)
     Description:         added by portage for motion, a software motion detector

[I] media-video/motion
     Available versions:  4.3.2-r1^t 4.3.2-r1^t[1] 4.4.0^t[1] {ffmpeg mariadb mmal mysql postgres sqlite v4l webp}
     Installed versions:  4.4.0^t[1](07:40:42 03/31/22)(ffmpeg mysql postgres sqlite v4l -mariadb -mmal -webp)
     Homepage:            https://motion-project.github.io
     Description:         A software motion detector

[1] "localrepo" /var/db/repos/localrepo

Found 3 matches
ares /var/db/repos/localrepo/media-video/motion #
Comment 5 Joonas Niilola gentoo-dev 2022-04-24 09:26:12 UTC
(In reply to John L. Poole from comment #2)
> 
> I'm interested in this project, I was about to just build motion on my own
> development server, but then realize it would help me to have a Gentoo ready
> package of the current release.
> 
> I see Comment #1 requests a Pull Request (PR).  Is there a fork of the
> project that the maintainer, Hans Fernhout, has that I might monitor?  If
> so, would I be able to fork from his?  
> 
> If I am going to spend time on leveraging motion, I'd like to see my efforts
> incorporated into Gentoo, e.g. support Libjpeg-turbo if it really does make
> a difference.

Hey, 

we prefer getting Github PRs. This is the repo you fork, sync and send your pull request into: 
https://github.com/gentoo/gentoo

Please see https://wiki.gentoo.org/wiki/GitHub_Pull_Requests for a more complete guide. 

If you're not too familiar with writing ebuilds, start by copying the previous ebuild and work from there. 
https://devmanual.gentoo.org is a great resource albeit quite "heavy" for a first-timer. But let us know if you need help with anything!
https://wiki.gentoo.org/wiki/Basic_guide_to_write_Gentoo_Ebuilds
Comment 6 John L. Poole 2022-04-28 05:06:34 UTC
Done.  I created a Pull Request for the mootion-4.4.0.  

https://github.com/gentoo/gentoo/pull/25233

This is my first time, so I'll probably trip up... just got an email about non-conformity of certificate of origin and not complying with Bug reference standards.  Will attempt to remedy these two issues.
Comment 7 Joonas Niilola gentoo-dev 2022-04-28 05:13:45 UTC
(In reply to John L. Poole from comment #6)
> Done.  I created a Pull Request for the mootion-4.4.0.  
> 
> https://github.com/gentoo/gentoo/pull/25233
> 
> This is my first time, so I'll probably trip up... just got an email about
> non-conformity of certificate of origin and not complying with Bug reference
> standards.  Will attempt to remedy these two issues.

We all have to start somewhere, don't worry about it. We will review your PR and let you know what you got right or wrong. Thanks!
Comment 8 Larry the Git Cow gentoo-dev 2023-02-09 16:10:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b391fc2e4239913f527bdee802f5aeec5a63efad

commit b391fc2e4239913f527bdee802f5aeec5a63efad
Author:     Johannes Willem Fernhout <hfern@fernhout.info>
AuthorDate: 2023-01-29 09:26:27 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-02-09 16:07:08 +0000

    media-video/motion: add 4.5.1
    
    Closes: https://bugs.gentoo.org/727056
    Closes: https://bugs.gentoo.org/820383
    Closes: https://bugs.gentoo.org/834407
    Signed-off-by: Johannes Willem Fernhout <hfern@fernhout.info>
    Closes: https://github.com/gentoo/gentoo/pull/29330
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 media-video/motion/Manifest            |  1 +
 media-video/motion/motion-4.5.1.ebuild | 86 ++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)