Re: [gentoo-user] How do you emerge emacs 25 with xwidgets support?

2017-04-20 Thread Danny YUE

On 2017-04-20 20:09, Neil Bothwick  wrote:
> On Thu, 20 Apr 2017 18:09:48 +0200, Raffaele Belardi wrote:
>
>> Calculating dependencies... done!
>> [ebuild  N ] app-editors/emacs-25.2_rc2:25::gentoo  USE="X alsa
>> dbus gif gpm gtk gtk3 inotify jpeg png ssl svg tiff xpm zlib -Xaw3d
>> -acl (-aqua) -athena (-cairo) -dynamic-loading -games -gconf -gfile
>> -gsettings -gzip-el -hesiod -imagemagick -kerberos -libxml2 -livecd
>> -m17n-lib -motif -pax_kernel (-selinux) -sound -source
>> -toolkit-scroll-bars -wide-int -xft (-xwidgets)" 0 KiB
>> 
>> The parentheses indicate that the flag is 'forced, masked, or
>> removed' (from man emerge) so it is ignored on purpose. I have no idea
>> why.
>
> It is masked in the profile
>
> % grep -r xwidgets /var/portage/profiles
> ...
> /var/portage/profiles/base/package.use.mask:app-editors/emacs:25 xwidgets

Well, this is really surprising...I never thought of this. You made my day!

I checked the file "/usr/portage/profiles/base/package.use.mask", it tells:
# Ulrich Müller  (4 Feb 2017)
# Uses old and vulnerable net-libs/webkit-gtk:3, bug #584156.
app-editors/emacs:25 xwidgets
app-editors/emacs-vcs:25 xwidgets

For those who don't care about it and just want to use xwidgets:
Edit your use.mask file, mine is:
"/etc/portage/profile/package.use.mask".

Add line below:
app-editors/emacs -xwidgets

Danny



Re: [gentoo-user] How do you emerge emacs 25 with xwidgets support?

2017-04-20 Thread Neil Bothwick
On Thu, 20 Apr 2017 18:09:48 +0200, Raffaele Belardi wrote:

> Calculating dependencies... done!
> [ebuild  N ] app-editors/emacs-25.2_rc2:25::gentoo  USE="X alsa
> dbus gif gpm gtk gtk3 inotify jpeg png ssl svg tiff xpm zlib -Xaw3d
> -acl (-aqua) -athena (-cairo) -dynamic-loading -games -gconf -gfile
> -gsettings -gzip-el -hesiod -imagemagick -kerberos -libxml2 -livecd
> -m17n-lib -motif -pax_kernel (-selinux) -sound -source
> -toolkit-scroll-bars -wide-int -xft (-xwidgets)" 0 KiB
> 
> The parentheses indicate that the flag is 'forced, masked, or
> removed' (from man emerge) so it is ignored on purpose. I have no idea
> why.

It is masked in the profile

% grep -r xwidgets /var/portage/profiles
...
/var/portage/profiles/base/package.use.mask:app-editors/emacs:25 xwidgets


-- 
Neil Bothwick

WinErr 014: Keyboard locked - Try anything you can think of.


pgpqNKFumlDxo.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How do you emerge emacs 25 with xwidgets support?

2017-04-20 Thread David M. Fellows
>
>
>On 2017-04-20 14:48, Raffaele Belardi  wrote:
>> Danny YUE wrote:
>Still not working.
>
>BTW I got:
>~ $ euse -i -l xwidgets
>local use flags (searching: xwidgets)
>
>[-  ] xwidgets
>app-editors/emacs: Enable use of GTK widgets in Emacs buffers 
>(requires GTK3)
>  (18) 18.59-r11 [gentoo]
>  (23) 23.4-r14 [gentoo]
>  (23) 23.4-r15 [gentoo]
>  (24) 24.4-r4 [gentoo]
>  (24) 24.5-r3 [gentoo]
>[+P ] (25) 25.1 [gentoo]
>[+P ] (25) 25.2_rc1 [gentoo]
>[+P ] (25) 25.2_rc2 [gentoo]
>
>[-  ] xwidgets
>app-editors/emacs-vcs: Enable use of GTK widgets in Emacs buffers 
>(requires GTK3)
>[-  ] (25) 25.1.91 [gentoo]
>[-  ] (25) 25.2. [gentoo]
>[-  ] (26) 26.0. [gentoo]
>
>It seems strange...euse tells me there is a xwidgets USE for emacs, but
>equery says something different.
>
>Weird...

app-editors/emacs and app-editors/emacs-vcs are different packages
(with different use flags).

DaveF

>
>Danny
>



Re: [gentoo-user] How do you emerge emacs 25 with xwidgets support?

2017-04-20 Thread Raffaele Belardi

Danny YUE wrote:

Hi guys,

Maybe I am too stupid, but how can you emerge emacs-25 with xwidgets?


# USE=xwidgets emerge -v emacs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N ] app-editors/emacs-25.2_rc2:25::gentoo  USE="X alsa dbus gif gpm gtk gtk3 
inotify jpeg png ssl svg tiff xpm zlib -Xaw3d -acl (-aqua) -athena (-cairo) 
-dynamic-loading -games -gconf -gfile -gsettings -gzip-el -hesiod -imagemagick -kerberos 
-libxml2 -livecd -m17n-lib -motif -pax_kernel (-selinux) -sound -source 
-toolkit-scroll-bars -wide-int -xft (-xwidgets)" 0 KiB


The parentheses indicate that the flag is 'forced, masked, or removed' (from man emerge) 
so it is ignored on purpose. I have no idea why.


raffaele



Re: [gentoo-user] How do you emerge emacs 25 with xwidgets support?

2017-04-20 Thread Danny YUE

On 2017-04-20 14:48, Raffaele Belardi  wrote:
> Danny YUE wrote:
>> Hi guys,
>>
>> Maybe I am too stupid, but how can you emerge emacs-25 with xwidgets?
>>
>> Running `equey use emacs' shows:
>> ~ $ equery u emacs
>> [ Legend : U - final flag setting for installation]
>> [: I - package is installed with flag ]
>> [ Colors : set, unset ]
>>  * Found these USE flags for app-editors/emacs-25.2_rc2:
> ...
>>
>> Where is the xwidgets USE flag?
>>
>> I can see it by running `eix -e emacs' but setting that flag does not
>> work.
>>
>> `USE=xwidgets emerge -a emacs' does not work.
>>
>> Any idea? Thanks in advance for any clue.
>>
>> Danny
>>
>> .
>>
>
> $ euse -i -l xwidgets
> local use flags (searching: xwidgets)
> 
> [-  ] xwidgets
>  app-editors/emacs: Enable use of GTK widgets in Emacs buffers
>  (requires GTK3)
>(18) 18.59-r11 [gentoo]
>(23) 23.4-r14 [gentoo]
>(23) 23.4-r15 [gentoo]
>(24) 24.4-r4 [gentoo]
>(24) 24.5-r3 [gentoo]
>  [-  ] (25) 25.1 [gentoo]
>  [-  ] (25) 25.2_rc1 [gentoo]
>  [-  ] (25) 25.2_rc2 [gentoo]
>
>
> Maybe you need to set gtk3 also?
>
> raffaele

Thanks for the quick reply.

Well, my emacs was already built with gtk3. I wanted to try xwidget
browser out just now, but found no corresponding USE flag.

Corresponding line in package.use:
app-editors/emacs xft imagemagick libxml2 gtk3 xwidgets

Still not working.

BTW I got:
~ $ euse -i -l xwidgets
local use flags (searching: xwidgets)

[-  ] xwidgets
app-editors/emacs: Enable use of GTK widgets in Emacs buffers 
(requires GTK3)
  (18) 18.59-r11 [gentoo]
  (23) 23.4-r14 [gentoo]
  (23) 23.4-r15 [gentoo]
  (24) 24.4-r4 [gentoo]
  (24) 24.5-r3 [gentoo]
[+P ] (25) 25.1 [gentoo]
[+P ] (25) 25.2_rc1 [gentoo]
[+P ] (25) 25.2_rc2 [gentoo]

[-  ] xwidgets
app-editors/emacs-vcs: Enable use of GTK widgets in Emacs buffers 
(requires GTK3)
[-  ] (25) 25.1.91 [gentoo]
[-  ] (25) 25.2. [gentoo]
[-  ] (26) 26.0. [gentoo]

It seems strange...euse tells me there is a xwidgets USE for emacs, but
equery says something different.

Weird...

Danny



Re: [gentoo-user] How do you emerge emacs 25 with xwidgets support?

2017-04-20 Thread Raffaele Belardi

Danny YUE wrote:

Hi guys,

Maybe I am too stupid, but how can you emerge emacs-25 with xwidgets?

Running `equey use emacs' shows:
~ $ equery u emacs
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for app-editors/emacs-25.2_rc2:

...


Where is the xwidgets USE flag?

I can see it by running `eix -e emacs' but setting that flag does not
work.

`USE=xwidgets emerge -a emacs' does not work.

Any idea? Thanks in advance for any clue.

Danny

.



$ euse -i -l xwidgets
local use flags (searching: xwidgets)

[-  ] xwidgets
app-editors/emacs: Enable use of GTK widgets in Emacs buffers
(requires GTK3)
  (18) 18.59-r11 [gentoo]
  (23) 23.4-r14 [gentoo]
  (23) 23.4-r15 [gentoo]
  (24) 24.4-r4 [gentoo]
  (24) 24.5-r3 [gentoo]
[-  ] (25) 25.1 [gentoo]
[-  ] (25) 25.2_rc1 [gentoo]
[-  ] (25) 25.2_rc2 [gentoo]


Maybe you need to set gtk3 also?

raffaele



[gentoo-user] How do you emerge emacs 25 with xwidgets support?

2017-04-20 Thread Danny YUE
Hi guys,

Maybe I am too stupid, but how can you emerge emacs-25 with xwidgets?

Running `equey use emacs' shows:
~ $ equery u emacs
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for app-editors/emacs-25.2_rc2:
 U I
 + + X   : Add support for X11
 - - Xaw3d   : Add support for the 3d athena widget set
 + + acl : Add support for Access Control Lists
 + + alsa: Add support for media-libs/alsa-lib (Advanced Linux 
Sound Architecture)
 - - athena  : Enable the MIT Athena widget set (x11-libs/libXaw)
 + + dbus: Enable dbus support for anything that needs it 
(gpsd, gnomemeeting, etc)
 - - dynamic-loading : Enable loading of dynamic libraries at runtime
 - - games   : Support shared score files for games
 - - gconf   : Use gnome-base/gconf to read the system font name
 - - gfile   : Use gfile (dev-libs/glib) for file notification
 + + gif : Add GIF image support
 + + gpm : Add support for sys-libs/gpm (Console-based mouse 
driver)
 - - gsettings   : Use gsettings (dev-libs/glib) to read the system 
font name
 - - gtk : Add support for x11-libs/gtk+ (The GIMP Toolkit)
 + + gtk3: Prefer version 3 of the GIMP Toolkit to version 2 
(x11-libs/gtk+)
 - - gzip-el : Compress bundled Emacs Lisp source
 - - hesiod  : Enable support for net-dns/hesiod
 + + imagemagick : Use media-gfx/imagemagick for image processing
 + + inotify : Enable inotify filesystem monitoring support
 + + jpeg: Add JPEG image support
 - - kerberos: Add kerberos support
 + + libxml2 : Use dev-libs/libxml2 to parse XML instead of the 
internal Lisp implementations
 - - livecd  : !!internal use only!! DO NOT SET THIS FLAG 
YOURSELF!, used during livecd building
 - - m17n-lib: Enable m17n-lib support
 - - motif   : Add support for the Motif toolkit
 - - pax_kernel  : Enable building under a PaX enabled kernel
 + + png : Add support for libpng (PNG images)
 - - sound   : Enable sound support
 - - source  : Install C source files and make them available for 
find-function
 + + ssl : Add support for Secure Socket Layer connections
 + + svg : Add support for SVG (Scalable Vector Graphics)
 + + tiff: Add support for the TIFF image format
 - - toolkit-scroll-bars : Use the selected toolkit's scrollbars in preference 
to Emacs' own scrollbars
 - - wide-int: Prefer wide Emacs integers (typically 62-bit). This 
option has an effect only on architectures where "long" and "long long" types 
have different size.
 + + xft : Build with support for XFT font renderer 
(x11-libs/libXft)
 + + xpm : Add support for XPM graphics format
 + + zlib: Add support for zlib (de)compression

Where is the xwidgets USE flag?

I can see it by running `eix -e emacs' but setting that flag does not
work.

`USE=xwidgets emerge -a emacs' does not work.

Any idea? Thanks in advance for any clue.

Danny