Opened 11 years ago

Closed 11 years ago

#39228 closed defect (fixed)

R +cairo requires +x11 variant unnecessarily in some cases

Reported by: mamoll (Mark Moll) Owned by: kjellpk (Kjell Konis)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), cooljeanius (Eric Gallager)
Port: R

Description

If the cairo port is installed with the +quartz variant, then R compiles and runs just fine with only the +cairo variant and no +x11 variant. Is there a way to detect how cairo is installed and enable +x11 as necessary? Maybe check whether ${prefix}/lib/pkgconfig/cairo-quartz.pc exists?

Attachments (1)

Screen Shot 2013-05-24 at 6.48.27 PM.png (55.0 KB) - added by mamoll (Mark Moll) 11 years ago.
R +quartz -x11

Download all attachments as: .zip

Change History (12)

comment:1 Changed 11 years ago by mamoll (Mark Moll)

Summary: R +cairo require +x11 variant unnecessarily in some casesR +cairo requires +x11 variant unnecessarily in some cases

comment:2 Changed 11 years ago by kjellpk (Kjell Konis)

Can you elaborate on what "runs just fine" means? Also, I think the only way to use cairo in R is through the x11 function. If x11 is not installed what are you expecting to happen?

Changed 11 years ago by mamoll (Mark Moll)

R +quartz -x11

comment:3 Changed 11 years ago by mamoll (Mark Moll)

Quartz is used for graphical windows. See attached screenshot.

comment:4 in reply to:  description Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to mmoll@…:

Is there a way to detect how cairo is installed and enable +x11 as necessary?

There's the active_variants 1.1 portgroup...

This issue was brought up again in #40042.

comment:5 Changed 11 years ago by kjellpk (Kjell Konis)

Just FYI, #40304 contains a patch related to this bug. I updated the description of the cairo variant to make it clear that cairo is only used by R's x11 graphics device.

comment:6 Changed 11 years ago by mamoll (Mark Moll)

Maybe I don't understand how R works, but it seems to me that R doesn't have an X11 graphics device, but a cairo graphics device. Cairo can be installed without x11. My screenshot shows that R runs just fine without X11.

comment:7 in reply to:  6 Changed 11 years ago by kjellpk (Kjell Konis)

Replying to mmoll@…:

Maybe I don't understand how R works, but it seems to me that R doesn't have an X11 graphics device, but a cairo graphics device. Cairo can be installed without x11. My screenshot shows that R runs just fine without X11.

Your screenshot shows a quartz graphics device. That's why it says "Quartz ..." in the title bar. The only way to use cairo in R on OS X is to open an x11 graphics device using the optional 'type = "cairo"' argument. See ?x11. R does run just fine without x11, it just doesn't use cairo.

comment:8 in reply to:  5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to kjell.konis@…:

Just FYI, #40304 contains a patch related to this bug.

#40304 was resolved. Is there anything left to do to close this ticket?

comment:9 Changed 11 years ago by kjellpk (Kjell Konis)

Nope. Go ahead and close it. Thanks.

comment:10 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:11 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.