Discussion:
Cairo-quartz
Adam Ciarciński
2014-05-29 19:30:58 UTC
Permalink
Hello,

Your recent change to cairo, which disables quartz backend, makes gtk2 fail when PKG_OPTIONS.gtk2=quartz is enabled.

-----
checking for CAIRO_BACKEND... no
configure: error: Package requirements (cairo-quartz >= 1.6) were not met:

No package 'cairo-quartz' found
----

Please, fix.

Kind regards,
Adam
OBATA Akio
2014-05-30 00:49:11 UTC
Permalink
Post by Adam Ciarciński
Hello,
Your recent change to cairo, which disables quartz backend, makes gtk2 fail when PKG_OPTIONS.gtk2=quartz is enabled.
-----
checking for CAIRO_BACKEND... no
No package 'cairo-quartz' found
----
Please, fix.
Yes, it is because I added/fixed quartz support to cairo/pango, I want to use
GTK2+ without X11.

Could we add "quartz" option to cairo/pango too?
--
OBATA Akio / ***@lins.jp
PHO
2014-05-31 06:08:15 UTC
Permalink
From: "OBATA Akio" <***@lins.jp>
Subject: Re: Cairo-quartz
Date: Fri, 30 May 2014 09:49:11 +0900
Post by OBATA Akio
Post by Adam Ciarciński
Hello,
Your recent change to cairo, which disables quartz backend, makes gtk2
fail when PKG_OPTIONS.gtk2=quartz is enabled.
-----
checking for CAIRO_BACKEND... no
No package 'cairo-quartz' found
----
Please, fix.
Yes, it is because I added/fixed quartz support to cairo/pango, I want to use
GTK2+ without X11.
Ugh... Sorry for that.
Post by OBATA Akio
Could we add "quartz" option to cairo/pango too?
Yes, I think that is appropriate. I'll do that in a few days.

_______________________________________________________
- PHO - http://cielonegro.org/
OpenPGP public key: 1024D/1A86EF72
Fpr: 5F3E 5B5F 535C CE27 8254 4D1A 14E7 9CA7 1A86 EF72
PHO
2014-05-31 14:45:25 UTC
Permalink
From: PHO <***@cielonegro.org>
Subject: Re: Cairo-quartz
Date: Sat, 31 May 2014 15:08:15 +0900 (JST)
Post by PHO
Subject: Re: Cairo-quartz
Date: Fri, 30 May 2014 09:49:11 +0900
Post by OBATA Akio
Post by Adam Ciarciński
Hello,
Your recent change to cairo, which disables quartz backend, makes gtk2
fail when PKG_OPTIONS.gtk2=quartz is enabled.
-----
checking for CAIRO_BACKEND... no
No package 'cairo-quartz' found
----
Please, fix.
Yes, it is because I added/fixed quartz support to cairo/pango, I want to use
GTK2+ without X11.
Ugh... Sorry for that.
Post by OBATA Akio
Could we add "quartz" option to cairo/pango too?
Yes, I think that is appropriate. I'll do that in a few days.
Done. cairo now has a new option "quartz". cairomm and pango changes
their PLISTs based on how cairo was built. I confirmed gtk2 and gtk3
builds fine with them.

But if cairo was not built with PKG_OPTIONS.cairo=quartz, setting
PKG_OPTIONS.gtk2=quartz results in a configuration failure. I guess
the same thing will happen if PKG_OPTIONS.cairo = -x11 and
PKG_OPTIONS.gtk2 = x11. What should we do for these cases?


Thanks,
_______________________________________________________
- PHO - http://cielonegro.org/
OpenPGP public key: 1024D/1A86EF72
Fpr: 5F3E 5B5F 535C CE27 8254 4D1A 14E7 9CA7 1A86 EF72
OBATA Akio
2014-06-01 00:52:40 UTC
Permalink
Post by PHO
Post by PHO
Post by OBATA Akio
Could we add "quartz" option to cairo/pango too?
Yes, I think that is appropriate. I'll do that in a few days.
Done. cairo now has a new option "quartz". cairomm and pango changes
their PLISTs based on how cairo was built. I confirmed gtk2 and gtk3
builds fine with them.
Thanks!
Post by PHO
But if cairo was not built with PKG_OPTIONS.cairo=quartz, setting
PKG_OPTIONS.gtk2=quartz results in a configuration failure. I guess
the same thing will happen if PKG_OPTIONS.cairo = -x11 and
PKG_OPTIONS.gtk2 = x11. What should we do for these cases?
Something like following?

.if !empty(PKG_OPTIONS:Mquartz)
. if !empty(PKG_BUILD_OPTIONS.cairo:Mquartz)
PKG_FAIL_REASON+= quartz option require cairo built with quartz option
....


We can introduce framework handle such dependencies, like
add following notification:

PKG_OPTIONS_DEPENDS.quartz= cairo:quartz

then option framework rise FAIL if quartz option is specified but
cairo is not built with quartz.
(and if cairo is built with quartz, enable quartz option by default?)
--
OBATA Akio / ***@lins.jp
Greg Troxel
2014-06-02 14:12:16 UTC
Permalink
Post by PHO
Done. cairo now has a new option "quartz". cairomm and pango changes
their PLISTs based on how cairo was built. I confirmed gtk2 and gtk3
builds fine with them.
But if cairo was not built with PKG_OPTIONS.cairo=quartz, setting
PKG_OPTIONS.gtk2=quartz results in a configuration failure. I guess
the same thing will happen if PKG_OPTIONS.cairo = -x11 and
PKG_OPTIONS.gtk2 = x11. What should we do for these cases?
Probably we need a way to express option requirements on dependencies.

Arguably quartz and x11 are the kind of options best put in
PKG_DEFAULT_OPTIONS anyway.
David Holland
2014-06-03 08:06:37 UTC
Permalink
Post by Greg Troxel
Post by PHO
Done. cairo now has a new option "quartz". cairomm and pango changes
their PLISTs based on how cairo was built. I confirmed gtk2 and gtk3
builds fine with them.
But if cairo was not built with PKG_OPTIONS.cairo=quartz, setting
PKG_OPTIONS.gtk2=quartz results in a configuration failure. I guess
the same thing will happen if PKG_OPTIONS.cairo = -x11 and
PKG_OPTIONS.gtk2 = x11. What should we do for these cases?
Probably we need a way to express option requirements on dependencies.
We have a way, it's just messy.
--
David A. Holland
***@netbsd.org
Continue reading on narkive:
Loading...