Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399111 - net-libs/gtk-vnc-0.5.0: pulseaudio should be an optional dependency
Summary: net-libs/gtk-vnc-0.5.0: pulseaudio should be an optional dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 410611
  Show dependency tree
 
Reported: 2012-01-16 19:38 UTC by Thomas Kear
Modified: 2012-04-06 08:11 UTC (History)
2 users (show)

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


Attachments
gtk-vnc-0.5.0 build log (gtk-vnc-0.5.0:20120115-204941.log,63.24 KB, text/plain)
2012-01-16 19:38 UTC, Thomas Kear
Details
Patch for gtk-vnc-0.5.0.ebuild (gtk-vnc-0.5.0.ebuild.patch,721 bytes, patch)
2012-01-16 19:39 UTC, Thomas Kear
Details | Diff
Automagick patch for gtk-vnc (gtk-vnc-0.5.0-pulseaudio.patch,1.06 KB, text/plain)
2012-04-04 18:45 UTC, Maxim Koltsov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kear 2012-01-16 19:38:41 UTC
Created attachment 299089 [details]
gtk-vnc-0.5.0 build log

gtk-vnc's configure script appears to be capable of detecting libpulse and appropriately disabling its support if not present (see attached build log), a USE flag to remove the dependency would be appreciated.
Comment 1 Thomas Kear 2012-01-16 19:39:13 UTC
Created attachment 299091 [details, diff]
Patch for gtk-vnc-0.5.0.ebuild
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-18 09:15:49 UTC
(In reply to comment #0)
> gtk-vnc's configure script appears to be capable of detecting libpulse and
> appropriately disabling its support if not present

Yes, and that's a problem, see http://www.gentoo.org/proj/en/qa/automagic.xml
To make the dependency controllable by a USE flag, it must be made non-automagic, which in this case requires patching configure.ac and adding an eautoreconf call.
Comment 3 Maxim Koltsov (RETIRED) gentoo-dev 2012-04-04 18:45:49 UTC
Created attachment 307823 [details]
Automagick patch for gtk-vnc
Comment 4 Maxim Koltsov (RETIRED) gentoo-dev 2012-04-04 18:47:50 UTC
I wrote simple patch for build system, working ebuild can be found in my overlay (layman/maksbotan). If you will not commit it in reasonable time, i will do it myself and report upstream.
Comment 5 Pacho Ramos gentoo-dev 2012-04-04 21:48:59 UTC
(In reply to comment #4)
> I wrote simple patch for build system, working ebuild can be found in my
> overlay (layman/maksbotan). If you will not commit it in reasonable time, i
> will do it myself and report upstream.

Report this to upstream just now please -> bugzilla.gnome.org

And post the link here
Comment 6 Pacho Ramos gentoo-dev 2012-04-05 10:01:34 UTC
As talked with tetromino, we usually want to provide also an "auto" option that behaves as automagic as is the default option, that way upstream will probably get the patch. Then, would be nice if you could update your patch for providing that option also and send it to upstream to see the bug fixed by them also as soon as possible ;)

Thanks
Comment 7 Maxim Koltsov (RETIRED) gentoo-dev 2012-04-05 13:34:46 UTC
(In reply to comment #6)
> As talked with tetromino, we usually want to provide also an "auto" option
> that behaves as automagic as is the default option, that way upstream will
> probably get the patch. Then, would be nice if you could update your patch
> for providing that option also and send it to upstream to see the bug fixed
> by them also as soon as possible ;)
> 
> Thanks

If you look closely at my patch, you will see that:

+AC_ARG_WITH(pulseaudio,
+[  --with-pulseaudio       enable audio support via pulseaudio],
+[case "${withval}" in
+   yes|no) ;;
+   *)	   AC_MSG_ERROR([bad value ${withval} for pulseaudio option]) ;;
+ esac],[withval=yes])

Last argument ([withval=yes]) is "action-if-not-given" and provides automagick behavior that you talk about. I will send it upstream today.
Comment 8 Maxim Koltsov (RETIRED) gentoo-dev 2012-04-05 13:46:04 UTC
Here is upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=673570
Comment 9 Pacho Ramos gentoo-dev 2012-04-05 14:02:59 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > As talked with tetromino, we usually want to provide also an "auto" option
> > that behaves as automagic as is the default option, that way upstream will
> > probably get the patch. Then, would be nice if you could update your patch
> > for providing that option also and send it to upstream to see the bug fixed
> > by them also as soon as possible ;)
> > 
> > Thanks
> 
> If you look closely at my patch, you will see that:
> 
> +AC_ARG_WITH(pulseaudio,
> +[  --with-pulseaudio       enable audio support via pulseaudio],
> +[case "${withval}" in
> +   yes|no) ;;
> +   *)	   AC_MSG_ERROR([bad value ${withval} for pulseaudio option]) ;;
> + esac],[withval=yes])
> 
> Last argument ([withval=yes]) is "action-if-not-given" and provides
> automagick behavior that you talk about. I will send it upstream today.

But yes should mean that pulseaudio support is forced and, if not found, it should die. For automagic, "auto" should be used instead
Comment 10 Maxim Koltsov (RETIRED) gentoo-dev 2012-04-05 14:06:01 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > As talked with tetromino, we usually want to provide also an "auto" option
> > > that behaves as automagic as is the default option, that way upstream will
> > > probably get the patch. Then, would be nice if you could update your patch
> > > for providing that option also and send it to upstream to see the bug fixed
> > > by them also as soon as possible ;)
> > > 
> > > Thanks
> > 
> > If you look closely at my patch, you will see that:
> > 
> > +AC_ARG_WITH(pulseaudio,
> > +[  --with-pulseaudio       enable audio support via pulseaudio],
> > +[case "${withval}" in
> > +   yes|no) ;;
> > +   *)	   AC_MSG_ERROR([bad value ${withval} for pulseaudio option]) ;;
> > + esac],[withval=yes])
> > 
> > Last argument ([withval=yes]) is "action-if-not-given" and provides
> > automagick behavior that you talk about. I will send it upstream today.
> 
> But yes should mean that pulseaudio support is forced and, if not found, it
> should die. For automagic, "auto" should be used instead

Where do you see it dying? Here AC_MSG_NOTICE, not ERROR is used:
+    PKG_CHECK_MODULES(PULSEAUDIO, libpulse-simple, WANT_PULSEAUDIO="yes", AC_MSG_NOTICE([Not building against libpulse]))
Comment 11 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-06 08:11:59 UTC
Fixed in 0.5.0-r1.