<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>231970</bug_id>
          
          <creation_ts>2008-07-16 14:24 0000</creation_ts>
          <short_desc>dev-lang/R should have a cairo useflag</short_desc>
          <delta_ts>2008-07-18 12:47:06 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>caster@gentoo.org</reporter>
          <assigned_to>sci@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>caster@gentoo.org</who>
            <bug_when>2008-07-16 14:24:22 0000</bug_when>
            <thetext>(as of 2.7.1) configure has this option:
  --with-cairo            use cairo (and pango) if available [yes]

So currently it&apos;s an automagical dependency with is a Bad Thing (TM) :) and should be converted into a USE flag.

And why is it useful? You can plot to for example png files on headless machine, which otherwise requires an X connection. Took me a while to find out why it somewhere works (Fedora, my Gentoo laptop) and somewhere not... and it&apos;s this automagic dependency.
As help(&quot;png&quot;) says:

     R can be compiled without support for each of these devices: this
     will be reported if you attempt to use them on a system where they
     are not supported.  For &apos;type = &quot;Xlib&quot;&apos; they may not be usable
     unless the X11 display is available to the owner of the R process.
       &apos;type = &quot;cairo&quot;&apos; requires cairo 1.2 or later.  &apos;type = &quot;quartz&quot;&apos;
     uses the &apos;quartz&apos; device and so is only available where that is
     (on some Mac OS X) builds.  It is at present experimental.

And when testing this, I also noticed that cairo/pango needs to be built with X use flag, otherwise R configure script says &quot;checking whether cairo including pango is &gt;= 1.0 and works... no&quot;. So there would be a need for build_with_use, sadly. This adds some extra X library deps but still you don&apos;t need an X connection. I tested with latest stable versions of cairo/pango on amd64. I don&apos;t know what&apos;s the difference between having only cairo and both cairo/pango, probably doesn&apos;t need extra pango flag and cairo flag could depend on both.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-17 12:59:20 0000</bug_when>
            <thetext>Thanks much for pointing this out! I&apos;ll have a look.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2008-07-18 12:47:06 0000</bug_when>
            <thetext>I&apos;ve added the cairo use flag and check for X to the ebuild.

Thanks,
Markus</thetext>
          </long_desc>
      
    </bug>

</bugzilla>