Re: Variant conflicts

2015-11-21 Thread Brandon Allbery
On Sat, Nov 21, 2015 at 3:03 AM, Bachsau  wrote:

> Would be very bad if I had to choose between Nautilus or gtk3 with quartz.


I suggest you go take a close look at the Gnome 3 community, including its
politics.

My understanding is that Gnome 3 targets Wayland; there are shims to make
X11 work, which they'd really prefer to jettison but the Linux community
"for some reason" won't let them, and exactly zero interest in other
graphics systems.

(I say this as someone who helps maintain an X11 window manager, and
constantly has to deal with new instances of " doesn't work any
more" "we decided window managers now have to do " "X11 does
" "Wayland does it this way therefore you must do it this way". I've
also watched various non-Gnome packages drop gtk3 like a hot potato as the
Gnome 3 devs break it for non-Gnome3 in various ways.)

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-21 Thread Bachsau

Eric A. Borisch wrote on 21.11.2015 05:45:


Unfortunately, the portfile states that  "portions of this port are X11
specific so a +quartz build is not possible."

I don't know the specifics, but I'm guessing it's not trivial.


I don't think so. According to my experience with debians package 
system, many such dependencies are just mistakes of the maintainers or 
only cause problems in just one of many usage scenarios ("portions of 
this port"), such like trying to start the whole desktop. This is why 
I'm always somewhat annoyed when a package system tries to impose 
dependencies against the will of an administrator. This is why I just 
asked for an override, so I can try if it is really a problem.


As I understood, the gnome-desktop port is just a bunch of supporting 
libraries, and I wanted to install just nautilus, which depends on 
gnome-desktop, which depends on gtk3+x11. But I don't want to be forced 
to use gtk3 with x11, as it's not capable of displaying hi-res-graphics 
on my retina display, and I'm developing python apps based on gtk3, so I 
want to use it with quartz. Would be very bad if I had to choose between 
Nautilus or gtk3 with quartz.




smime.p7s
Description: S/MIME Cryptographic Signature
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-21 Thread Clemens Lang
Hi,

- On 21 Nov, 2015, at 09:03, Bachsau w...@bachsau.name wrote:

> I don't think so. According to my experience with debians package
> system, many such dependencies are just mistakes of the maintainers or
> only cause problems in just one of many usage scenarios ("portions of
> this port"), such like trying to start the whole desktop. This is why
> I'm always somewhat annoyed when a package system tries to impose
> dependencies against the will of an administrator. This is why I just
> asked for an override, so I can try if it is really a problem.

In most of the cases where we explicitly require +x11 in gtk2 or gtk3
the problem is that the software includes an x11-specific header in gtk
that does not exist on a +quartz installation.

This is a problem that should be fixed by the developers of the software,
MacPorts just represents the current state.

That being said, remove the require_active_variants line from the
Portfile to disable the check.

-- 
Clemens Lang
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-20 Thread Eric A. Borisch
On Friday, November 20, 2015, Bachsau  wrote:

>
> > Am 19.11.2015 um 00:09 schrieb Eric A. Borisch  >:
> >
> > port echo active and variant:quartz and variant:x11 \
> >   | sed -n -e '/\+quartz/d;s/@[^+-]*//;s/\+x11/-x11+quartz/p' \
> >   | xargs -n 2
>
> That worked, thanks. But it resulted in another problem. >:((
>
> > Error: org.macports.archivefetch for port gnome-desktop returned: gtk3
> must be installed with +x11.
> > Error: Failed to install gnome-desktop
>
> How to override?


Unfortunately, the portfile states that  "portions of this port are X11
specific so a +quartz build is not possible."

I don't know the specifics, but I'm guessing it's not trivial.

  - Eric
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-20 Thread Bachsau

> Am 19.11.2015 um 00:09 schrieb Eric A. Borisch :
> 
> port echo active and variant:quartz and variant:x11 \
>   | sed -n -e '/\+quartz/d;s/@[^+-]*//;s/\+x11/-x11+quartz/p' \
>   | xargs -n 2

That worked, thanks. But it resulted in another problem. >:((

> Error: org.macports.archivefetch for port gnome-desktop returned: gtk3 must 
> be installed with +x11.
> Error: Failed to install gnome-desktop

How to override?

smime.p7s
Description: S/MIME cryptographic signature
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-19 Thread Gustavo Seabra
Thanks!

Gustavo Seabra



> Em 19 de nov de 2015, à(s) 17:22, Eric A. Borisch  
> escreveu:
> 
> On Thu, Nov 19, 2015 at 11:07 AM, Gustavo Seabra  
> wrote:
> > I apologize for my ignorance… What rest was just for fun? Will the command 
> > work even in the presence of the ports that don’t have a +quartz? and, in 
> > this case, what would happen to those?
> >
> > The complex command Eric presented earlier is very useful to me as well. I 
> > won’t memorize it either, but I bookmarked the message.
> >
> > All the best,
> > Gustavo Seabra
> 
> The sed / xargs part was "for fun." Because regexes are fun, right?
> 
> To answer your other question, yes; the port echo line will only show 
> installed ports that have (but may or may not be selected) both a quartz and 
> an x11 variant.
> 
> For reference, here is the command again;
> port echo active and variant:quartz and variant:x11 \
>  | sed -n -e '/\+quartz/d;s/@[^+-]*//;s/\+x11/-x11+quartz/p' \
>  | sudo xargs -n 2 port install
> 
> Breaking down the sed/xargs portion, it:
> 
> 1) Checks for +quartz to be present (and thus currently active) and ignores 
> ('/d' for delete and continue) those lines. I do this because some ports 
> (notably cairo) can be both +x11 and +quartz.
> 
> 2) Removes the version information (between the @ and the first + or -; will 
> fail as noted if the version string has a + or -)
> 
> 3) Searches for lines with +x11, and replaces that with -x11+quartz (the 
> desired action originally requested) and then (/p) prints only  those (-n 
> argument) lines.
> 
> xargs -n 2 then takes each set of two arguments ( ) and 
> calls "port install" with those arguments.
> 
> Glad you found it useful; perhaps you'll find it fun. ;)
> 
>  - Eric

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-19 Thread Eric A. Borisch
And there are many +x11 ports that do not have a +quartz, so I would stick
with the port echo command I listed. The rest was for fun.

On Thursday, November 19, 2015, Eric A. Borisch 
wrote:

> He specifically asked for a way to find and reinstall, not just find. I
> provided one. ;)
>
> On Thursday, November 19, 2015, Mojca Miklavec  > wrote:
>
>> 2015-11-19 0:09 GMT+01:00 Eric A. Borisch wrote:
>> > On Wed, Nov 18, 2015 at 3:29 PM, Bachsau wrote:
>> >
>> >> Is there a way to find all ports still installed with +x11 and
>> >> reinstall with quartz instead?
>> >
>> > Try this first:
>> >
>> > port echo active and variant:quartz and variant:x11 \
>> >   | sed -n -e '/\+quartz/d;s/@[^+-]*//;s/\+x11/-x11+quartz/p' \
>> >   | xargs -n 2
>>
>> I would never be able to remember that. I would use a simple
>>port installed | grep x11
>> to get the initial list.
>>
>> Mojca
>>
>
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-19 Thread Gustavo Seabra
I apologize for my ignorance… What rest was just for fun? Will the command work 
even in the presence of the ports that don’t have a +quartz? and, in this case, 
what would happen to those?

The complex command Eric presented earlier is very useful to me as well. I 
won’t memorize it either, but I bookmarked the message. 

All the best,
Gustavo Seabra



> Em 19 de nov de 2015, à(s) 11:55, Eric A. Borisch  
> escreveu:
> 
> And there are many +x11 ports that do not have a +quartz, so I would stick 
> with the port echo command I listed. The rest was for fun.
> 
> On Thursday, November 19, 2015, Eric A. Borisch  wrote:
> He specifically asked for a way to find and reinstall, not just find. I 
> provided one. ;)
> 
> On Thursday, November 19, 2015, Mojca Miklavec  wrote:
> 2015-11-19 0:09 GMT+01:00 Eric A. Borisch wrote:
> > On Wed, Nov 18, 2015 at 3:29 PM, Bachsau wrote:
> >
> >> Is there a way to find all ports still installed with +x11 and
> >> reinstall with quartz instead?
> >
> > Try this first:
> >
> > port echo active and variant:quartz and variant:x11 \
> >   | sed -n -e '/\+quartz/d;s/@[^+-]*//;s/\+x11/-x11+quartz/p' \
> >   | xargs -n 2
> 
> I would never be able to remember that. I would use a simple
>port installed | grep x11
> to get the initial list.
> 
> Mojca
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-19 Thread Mojca Miklavec
2015-11-19 0:09 GMT+01:00 Eric A. Borisch wrote:
> On Wed, Nov 18, 2015 at 3:29 PM, Bachsau wrote:
>
>> Is there a way to find all ports still installed with +x11 and
>> reinstall with quartz instead?
>
> Try this first:
>
> port echo active and variant:quartz and variant:x11 \
>   | sed -n -e '/\+quartz/d;s/@[^+-]*//;s/\+x11/-x11+quartz/p' \
>   | xargs -n 2

I would never be able to remember that. I would use a simple
   port installed | grep x11
to get the initial list.

Mojca
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-19 Thread Eric A. Borisch
He specifically asked for a way to find and reinstall, not just find. I
provided one. ;)

On Thursday, November 19, 2015, Mojca Miklavec  wrote:

> 2015-11-19 0:09 GMT+01:00 Eric A. Borisch wrote:
> > On Wed, Nov 18, 2015 at 3:29 PM, Bachsau wrote:
> >
> >> Is there a way to find all ports still installed with +x11 and
> >> reinstall with quartz instead?
> >
> > Try this first:
> >
> > port echo active and variant:quartz and variant:x11 \
> >   | sed -n -e '/\+quartz/d;s/@[^+-]*//;s/\+x11/-x11+quartz/p' \
> >   | xargs -n 2
>
> I would never be able to remember that. I would use a simple
>port installed | grep x11
> to get the initial list.
>
> Mojca
>
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-18 Thread Russell Jones
Most likely, you have installed a port that doesn't support quartz, but 
that directly or indirectly depends on gtk3.


Russell

On 18/11/15 07:45, Bachsau wrote:

Hi there!
Today I ran a port upgrade outdated and got the following message:


Error: gtk3: Variant quartz conflicts with x11
Error: Unable to open port: Error evaluating variants

But my variants.conf is

-x11 +no_x11 +quartz +bash_completion

So whats going on? There's a minus in front of x11 so it should not try to 
install x11 AND quartz.


___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-18 Thread Eric A. Borisch
You are using upgrade; what does 'port active and gtk3' show? +x11 perhaps?

>From the man page:

By selecting the variants to use in the upgraded build of the
port, any variants specified on the command line take highest
precedence, then the variants active in the latest installed
version of the port, and finally the global variants specified
in variants.conf, if any.

(Try adding -x11 to your upgrade line if the port active command above
shows +x11.)

  - Eric

On Wed, Nov 18, 2015 at 1:45 AM, Bachsau  wrote:
> Hi there!
> Today I ran a port upgrade outdated and got the following message:
>
>> Error: gtk3: Variant quartz conflicts with x11
>> Error: Unable to open port: Error evaluating variants
>
> But my variants.conf is
>> -x11 +no_x11 +quartz +bash_completion
>
> So whats going on? There's a minus in front of x11 so it should not try to 
> install x11 AND quartz.
> ___
> macports-users mailing list
> macports-users@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users
>
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Variant conflicts

2015-11-18 Thread Bachsau

Eric A. Borisch wrote on 18.11.2015 15:43:

You are using upgrade; what does 'port active and gtk3' show? +x11 perhaps?

 From the man page:

By selecting the variants to use in the upgraded build of the
port, any variants specified on the command line take highest
precedence, then the variants active in the latest installed
version of the port, and finally the global variants specified
in variants.conf, if any.

(Try adding -x11 to your upgrade line if the port active command above
shows +x11.)


Yes, it shows +11. I added this my variants.conf after first install of 
gtk3. Is there a way to find all ports still installed with +x11 and 
reinstall with quartz instead?




smime.p7s
Description: S/MIME Cryptographic Signature
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users