Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 628306

Summary: media-plugins/gst-plugins-zbar: ebuild request
Product: Gentoo Linux Reporter: Thomas Schneider <qsx>
Component: Current packagesAssignee: GStreamer package maintainers <gstreamer>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo-bugs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://github.com/gentoo/gentoo/pull/5543
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Schneider 2017-08-19 16:26:33 UTC
zbar support in gst-plugins-bad is needed for https://github.com/GNOME-Keysign/gnome-keysign.
The patch below seems to work, but has not received more testing other than using the camera feature of said software on my system.
If wanted, I’ll be happy to make a git commit + pull request out of this.

--- /usr/portage/media-libs/gst-plugins-bad/gst-plugins-bad-1.10.5.ebuild       2017-07-20 06:39:05.000000000 +0200                                                                                                  
+++ /usr/local/portage/media-libs/gst-plugins-bad/gst-plugins-bad-1.10.5-r1.ebuild      2017-08-19 11:32:19.342919555 +0200                                                                                          
@@ -12,7 +12,7 @@                                    
 LICENSE="LGPL-2"                                    
 KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"                                                                                                  
                                                     
-IUSE="X bzip2 egl gles2 gtk +introspection opengl +orc vcd vnc wayland"                                  
+IUSE="X bzip2 egl gles2 gtk +introspection opengl +orc vcd vnc wayland zbar"                             
 REQUIRED_USE="                                      
        gles2? ( !opengl )                           
        opengl? ( X )                                
@@ -37,6 +37,7 @@                                    
                                                     
        gtk? ( >=x11-libs/gtk+-3.15:3[X?,wayland?,${MULTILIB_USEDEP}] )                                   
        orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] )                                                
+       zbar? ( media-gfx/zbar )                     
 "                                                   
 DEPEND="${RDEPEND}                                  
        >=dev-util/gtk-doc-am-1.12                   
@@ -71,6 +72,7 @@                                    
                $(use_enable vnc librfb) \           
                $(use_enable wayland) \              
                $(use_enable X x11) \                
+               $(use_enable zbar) \                 
                --disable-examples \                 
                --disable-debug \                    
                --disable-cocoa \
Comment 1 Mart Raudsepp gentoo-dev 2017-08-19 16:44:47 UTC
We don't add USE flags for this, we do a new media-plugins/gst-plugins-zbar package. Try that way please.
Comment 2 Mart Raudsepp gentoo-dev 2017-08-19 17:00:25 UTC
You can look at e.g media-plugins/gst-plugins-mpeg2enc as an example.
All external dependencies of any added gstreamer plugins MUST have multilib support, so you'll need to arrange that for media-gfx/zbar. If zbar has multilib support after I'm done with gstreamer 1.12 other version bumps, I'll try to add a 1.12 version of gst-plugins-zbar as well, but if it doesn't support multilib, then I can't.
Comment 3 Larry the Git Cow gentoo-dev 2017-09-07 20:31:46 UTC
Bug has been referenced in the following commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75539e8e845df3d64c0ef32c01cc1d31ab84850a

commit 75539e8e845df3d64c0ef32c01cc1d31ab84850a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2017-08-27 17:14:26 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2017-09-07 20:31:36 +0000

    media-gfx/zbar: Enable multilib support
    
    Bug: https://bugs.gentoo.org/628306
    Closes: https://github.com/gentoo/gentoo/pull/5543

 media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild | 34 ++++++++++++++++------------
 1 file changed, 20 insertions(+), 14 deletions(-)
Comment 4 Larry the Git Cow gentoo-dev 2017-09-27 19:29:34 UTC
The bug has been closed via the following commit(s):

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

commit 87c7d00a1ae8daef8d07ccc314e592d67bd984ca
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2017-09-27 19:28:31 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2017-09-27 19:29:07 +0000

    media-plugins/gst-plugins-zbar: new package for bar codes detection in video streams
    
    Closes: https://bugs.gentoo.org/628306
    Package-Manager: Portage-2.3.8, Repoman-2.3.2

 media-plugins/gst-plugins-zbar/Manifest                    |  1 +
 .../gst-plugins-zbar/gst-plugins-zbar-1.12.3.ebuild        | 14 ++++++++++++++
 media-plugins/gst-plugins-zbar/metadata.xml                |  8 ++++++++
 3 files changed, 23 insertions(+)