Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368753 - media-plugins/gst-plugins-{x,xvideo} missing dependency on libSM/libICE
Summary: media-plugins/gst-plugins-{x,xvideo} missing dependency on libSM/libICE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
: 370177 375657 384907 389535 390047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-26 01:12 UTC by Benjamin Lee
Modified: 2012-12-09 04:46 UTC (History)
5 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 Benjamin Lee 2011-05-26 01:12:53 UTC
Currently media-plugins/gst-plugins-x does not list gstreamer as a dependency.  All gst-plugins should list gstreamer as a dependency.

Reproducible: Always
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2011-05-26 20:22:20 UTC
why ?
Comment 2 Benjamin Lee 2011-05-26 21:05:12 UTC
There are some indirect dependencies of gstreamer that it requires, e.g. libSM.  Also, the gst-plugins upstream package lists gstreamer as a dependency.

Building gst-plugins-x on a fresh system will fail to build.  Unfortunately I don't have an environment handy right now to reproduce the build failure.
Comment 3 Rutger van Bergen 2011-05-27 16:42:52 UTC
Until a few minutes ago I did have a clean environment, on which the build did fail because of a dependency on libSM. 
I didn't keep the build log, but the actual error (tagged "compile error" by emerge) occurred straight after the configure, and the message was that ld "cannot find -lSM".
I resolved the issue by emerging libSM, which had indeed not been emerged yet, after which the emerge of gst-plugins-x did succeed.

Hope this helps?
Comment 4 Wormo (RETIRED) gentoo-dev 2011-05-31 04:24:57 UTC
(In reply to comment #3)
> I resolved the issue by emerging libSM, which had indeed not been emerged yet,
> after which the emerge of gst-plugins-x did succeed.
> 
> Hope this helps?

Yes, thanks. Sounds like libSM is the missing compile-time dependency.
Comment 5 Mart Raudsepp gentoo-dev 2011-05-31 11:22:39 UTC
Looks like it gets these extra lines from some X m4 macros, there's also a comment that it gives us much more than needed. In reality it doesn't use libSM of course, but it gets a -lSM -lICE from AC_PATH_XTRA or such.
Comment 6 Mart Raudsepp gentoo-dev 2011-05-31 11:23:37 UTC
This is relevant to gst-plugins-xvideo and perhaps more too. Would be good to solve this upstream, will follow-up later on.
Comment 7 Pacho Ramos gentoo-dev 2011-07-22 12:13:32 UTC
*** Bug 375657 has been marked as a duplicate of this bug. ***
Comment 8 Pacho Ramos gentoo-dev 2011-07-22 12:14:16 UTC
*** Bug 370177 has been marked as a duplicate of this bug. ***
Comment 9 Mart Raudsepp gentoo-dev 2011-10-01 18:34:06 UTC
*** Bug 384907 has been marked as a duplicate of this bug. ***
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2011-11-04 20:35:45 UTC
*** Bug 389535 has been marked as a duplicate of this bug. ***
Comment 11 Richard Freeman gentoo-dev 2012-09-23 10:59:13 UTC
I just ran into this on a fresh build.  It seems a bit odd for a missing dependency to be open for a year.  

All I did was install a stage3, set the desktop/kde profile, and emerge kde-meta.  For that to not work seems like a significant issue.

Is there any reason somebody can't just add it to the DEPEND line?
Comment 12 Colin DuPée 2012-10-19 04:41:47 UTC
Same as comment above.  I realize you may want to fix this some "better way", but please just add libSM as a dependency so people dabbling in Gentoo at least get to an X-window before they give up in frustration.
Comment 13 Arun Raghavan (RETIRED) gentoo-dev 2012-10-19 13:25:21 UTC
Fixed via an -r1 bump. Keeping this open so that we can use it to fast-track stabilising the two ebuilds.
Comment 14 Arun Raghavan (RETIRED) gentoo-dev 2012-10-19 14:11:45 UTC
For those looking at the change, a little more in the way of details:

The basic problem is that the AC_PATH_XTRA macro is used for figuring out X11 CFLAGS and LIBS. This thing gratuitously (well, I'm sure there's an obscure reason) pulls in a -lICE and -lSM unconditionally. The Debian folks were bitten by this as well: http://lists.debian.org/debian-mentors/2008/04/msg00006.html

The correct fix that should go upstream is to replace AC_PATH_XTRA with PKG_CONFIG_* checks in the AG_GST_CHECK_X macro (common/m4/gst-x11.m4), which is more intrusive than I'd want to introduce for something I'm hoping can be fast-tracked to stable.
Comment 15 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-12-02 19:15:00 UTC
*** Bug 390047 has been marked as a duplicate of this bug. ***
Comment 16 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-12-05 23:15:06 UTC
With gstreamer 0.10.36 and 1.0.3 I think this issue is resolved. Could someone 
double check ?
Comment 17 Richard Freeman gentoo-dev 2012-12-09 02:42:29 UTC
(In reply to comment #16)
> With gstreamer 0.10.36 and 1.0.3 I think this issue is resolved. Could
> someone 
> double check ?

Yes, I removed my workaround from my scripts and everything builds fine now.
Comment 18 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-12-09 04:46:30 UTC
Thanks, marking as fixed then.