Re: [gentoo-user] syncing via via git and signature failure

2018-07-06 Thread Floyd Anderson

Hi Bill,

On Sat, 07 Jul 2018 07:40:00 +0800
Bill Kenworthy  wrote:


I still have this error and  Ive tried a number of things including:

gemato create -p ebuild -K /usr/share/openpgp-keys/gentoo-release.asc
/usr/portage/

next emerge --sync error-ed on a lot of private manifest files but
missing toot manifest error disappeared.  Deleted them and successfully
resynced.

olympus /usr/portage # gemato verify -s -K
/usr/share/openpgp-keys/gentoo-release.asc /usr/portage/
INFO:root:Refreshing keys from keyserver...
INFO:root:Keys refreshed.
ERROR:root:Top-level Manifest /usr/portage/Manifest is not OpenPGP signed
olympus /usr/portage #

also did a "git reset --hard"

still get:

olympus /usr/portage # emerge --sync

Syncing repository 'gentoo' into '/usr/portage'...

/usr/bin/git pull
Already up to date.
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys from keyserver
... 
   
[ ok ]
 * No valid signature found: unable to verify signature (missing key?)
q: Updating ebuild cache in /usr/portage ...


please be aware of the context of my response to Mick. He use *rsync* 
and so do I. It seems you are using Git and thus, a different tree 
verification mechanism. I don't know why you have gemato installed, 
because it comes usually only with sys-apps/portage[rsync-verify] set 
and is only related to *rsync* therefore.


Have a look at:

 - [1] 
 - [2] 

 - [3] 

for some further information. Maybe:

 $ git status --untracked-files

within your tree location can help to identify and sanitise the tree 
from any of your (with gemato) created files.



--
Regards,
floyd




Re: [gentoo-user] syncing via via git and signature failure

2018-07-05 Thread Floyd Anderson

On Wed, 04 Jul 2018 22:57:05 -0400
John Covici  wrote:


I got the following when running your command:
gemato verify -K /tmp/gentoo-release.asc.20180703 /usr/portage/
INFO:root:Refreshing keys from keyserver...
INFO:root:Keys refreshed.


To be more specific, I wasn't interested in verifying the tree. My main 
goal was to get:


 INFO:root:Keys refreshed.

because my sync/update script hung at:

 INFO:root:Refreshing keys from keyserver...

all the time, caused by:

 gpg: Can't check signature: No public key

result, so I wasn't able to update.


ERROR:root:Top-level Manifest not found in /usr/portage/

How can I fix, or do I need to fix?


I've no idea why your portage tree doesn't have a top-level Manifest 
file (assuming "/usr/portage" is the location of your tree), but it 
should be created/updated on next syncing.



--
Regards,
floyd




Re: [gentoo-user] syncing via via git and signature failure

2018-07-04 Thread Floyd Anderson

On Wed, 04 Jul 2018 23:25:16 +0100
Mick  wrote:


Thanks gevisz, the first line to refresh keys fails, because in /var/lib/
gentoo/ I only have a news/ subdirectory.

Interestingly, I already have app-crypt/openpgp-keys-gentoo-release installed,
but still get 'gpg: Can't check signature: No public key' error when running
rsync.


For me, using the keys from package:

 app-crypt/openpgp-keys-gentoo-release-20180703 [1]

and running gemato with those:

 # gemato verify -K /tmp/gentoo-release.asc.20180703 /usr/portage/

solves the issue. Afterwards I was able to update (pulls and install the 
new version app-crypt/openpgp-keys-gentoo-release-20180703).


Hope that helps.


References:

 - [1] 




--
Regards,
floyd




Re: [gentoo-user] OT: Extracting year from data, but honour empty lines

2018-05-11 Thread Floyd Anderson


Hi Daniel,

On Fri, 11 May 2018 16:16:52 -0700
Daniel Frey  wrote:


[…]

Does anyone have a quick tip for my tired brain to make this work and
just output a blank line if there's no match? I swear I did this months
ago and had something working but I apparently didn't bother saving the
script I made. Argh!


if you can ensure there is only one four-digit year per line, try to 
strip all other line characters with:


   $ sed -e 's/.*\([0-9]\{4\}\).*/\1/' /path/to/your-date-file

while keeping none matching lines as they are. Note, pattern is always 
greedy and picks up the last year it founds.



--
Regards,
floyd




Re: [gentoo-user] IPv6 and sysctl

2018-04-28 Thread Floyd Anderson

On Sat, 28 Apr 2018 07:57:17 +0100
Klaus Ethgen  wrote:

Hi,

... but I does have an ipv6 question too.

Currently I have the following in /etc/sysctl.conf:
  net.ipv6.conf.default.use_tempaddr=2
  net.ipv6.conf.lo.use_tempaddr=2
  net.ipv6.conf.eth0.use_tempaddr=2
  net.ipv6.conf.wlan0.use_tempaddr=2

all doesn't have any effect, see [0] and [1]. So, no, that is not
related to the problem.

For some reasons I have ipv6 and tg3 (my eth0) as module.

Unfortunately, the setting does not to be set. My guess is, that sysctl
runs before loading of the network modules.

Restarting sysctl service and network does work and gives me privacy
extension. But not the standard boot.

Any idea how to fix that? There must be a trustable way to set privacy
extension.


You can change to builtin by ‘CONFIG_IPV6=y’ – some basic settings can 
be made in "/etc/modprobe.d/ipv6.conf" if you want to keep it as module, 
see kernel doc "Documentation/networking/ipv6.txt".



--
Regards,
floyd




Re: [gentoo-user] Re: Is udev-mount still valid?

2018-04-14 Thread Floyd Anderson

On Sat, 14 Apr 2018 17:25:36 -0700
Ian Zimmerman <i...@very.loosely.org> wrote:

On 2018-04-15 00:10, Floyd Anderson wrote:


> https://very.loosely.org/paste/symlinks-pl



Because argument ROOTDIR is mandatory, the script should do something
when ROOTDIR is not given, e.g. print usage. Maybe ‘-r’ should be also
mandatory or the script should define some useful defaults. Consider
following invocations:

   $ ./symlinks-pl
   $ ./symlinks-pl /path/to/broken-symlink
   $ ./symlinks-pl -r /path/to/broken-symlink

which do nothing and results with exit code 0.


I think this is more of a documentation bug in usage().  ROOTDIR is in
fact not mandatory - a list of zero or more items is expected, and each
item processed in turn.  I remember thinking about it for a second, and
this was the most consistent and regular behavior, so the most
attractive to my droid mind :-P


Then, I think, ROOTDIR in synopsis of `symlinks-pl --help` should be:

   symlinks-pl [OPTION ...] [ROOTDIR ...]

like OPTION instead of:

   symlinks-pl [OPTION ...] ROOTDIR ...

to be more consistent to other command line tools. But I see your point 
and forget to say thanks for sharing. ;-)



--
Regards,
floyd




Re: [gentoo-user] Re: Is udev-mount still valid?

2018-04-14 Thread Floyd Anderson


Hi Ian,

On Sat, 14 Apr 2018 09:58:51 -0700
Ian Zimmerman <i...@very.loosely.org> wrote:

On 2018-04-13 23:18, Floyd Anderson wrote:


   # find /{etc,lib,usr,var} -path /etc/config-archive -prune -o \
   -type l -xtype l -print


there is also the app-misc/symlinks package,


TBH, I don’t expected there exists a package for this, so I’ve never 
searched for it and its additional features. Thanks for the input Ian.



and my own baby for the same purpose:

https://very.loosely.org/paste/symlinks-pl



It’s nice even it runs a little bit slower. I like the prefixed or ‘\0’ 
separated output for further processing of its result.


One pernickety remark (do not overrate it):

Because argument ROOTDIR is mandatory, the script should do something 
when ROOTDIR is not given, e.g. print usage. Maybe ‘-r’ should be also 
mandatory or the script should define some useful defaults. Consider 
following invocations:


   $ ./symlinks-pl
   $ ./symlinks-pl /path/to/broken-symlink
   $ ./symlinks-pl -r /path/to/broken-symlink

which do nothing and results with exit code 0.


--
Regards,
floyd




Re: [gentoo-user] Is udev-mount still valid?

2018-04-13 Thread Floyd Anderson

On Fri, 13 Apr 2018 11:01:40 +0100
Mick  wrote:


[…]

Yes, the broken symlinks are from the sysinit runlevel.  I checked another
system of mine and it *also* has these broken symlinks ...  :-/

So, whatever mistake I made, I must have made it at least twice!  LOL!


I think this is nothing special and not your fault. I vaguely remember 
having broken symlinks in runlevels too – was it also tmpfiles.dev or 
udev-mount? I cannot recall it but I’m sure about those in folder 
/etc/ssl/certs or regarded to the packages media-libs/mesa and 
x11-libs/libXvMC for example.



Shouldn't the openrc or udev ebuild remove the symlinks, back when they became
depracated?


In a perfect world …
But I can well believe how hard it is to keep track of probably 
externally changed symlinks or similar. Most of the time it works and 
while at it, I like to say “thanks!”. Sporadically and being in 
housekeeping mode, I run something like:


   # find /{etc,lib,usr,var} -path /etc/config-archive -prune -o \
   -type l -xtype l -print

to obtain exceptional cases but ignoring prior sanitised stuff.


[…]

Thank you for these symlinks Floyd,


I posted those s/symlinks/links/ ;-) only for conveniently mouse 
clicking, maybe you can find more relevant things by a recursive grep 
search in:


 "$(portageq get_repo_path / gentoo)/metadata/news/"

I am using '/dev/sda1' notation for partitions in /etc/fstab, rather 
than any of the /dev/disk/by-* symlinks.


…and probably also in:

 /lib/udev/rules.d/

because rules using “*/by-*” syntax for their ‘SYMLINK+="..."’ foo for 
your re-plugged devices – as you can see with:


 $ udevadm monitor -u -p


udev-settle is not in my sysinit runlevel.


As it is supposed to be:

 “udev and udev-trigger will be added to your sysinit runlevel, but not
 udev-settle. udev-settle should not be added to a runlevel. Instead, if
 a service needs this, it should add "need udev-settle" to its
 dependencies.”

by the 2015-06-08-udev-init-scripts-changes.en.txt news.


--
Regards,
floyd




Re: [gentoo-user] Is udev-mount still valid?

2018-04-10 Thread Floyd Anderson

On Tue, 10 Apr 2018 17:11:17 +0100
Mick  wrote:

I've noticed udev has been playing up lately.  In particular, switching on
wireless/bluetooth would cause udev to be pegged to 100% CPU and bluetooth
won't work.  USB won't work thereafter; e.g. unplugging a USB mouse and
replugging it is not detected.

I had a look at /etc/runlevels and noticed two broken symlinks:

lrwxrwxrwx 1 root root   24 Nov 25  2013 tmpfiles.dev -> /etc/init.d/
tmpfiles.dev
lrwxrwxrwx 1 root root   22 Oct 26  2012 udev-mount -> /etc/init.d/udev-mount

The following two symlinks in the same runlevel are valid:

lrwxrwxrwx 1 root root   16 May  2  2011 udev -> /etc/init.d/udev
lrwxrwxrwx 1 root root   24 Feb 25  2017 udev-trigger -> /etc/init.d/udev-
trigger


Not sure which runlevel(s) you’re listing here but if I read the 
sys-apps/openrc-0.35.5.ebuild correct, the expected runlevel for your 
broken ones is sysinit. I’m using OpenRC and haven’t these files, so 
same as Ian wrote.



I'm not saying the above missing symlinks are causing the bluetooth problem,
but those symlinks should not be there.  Have I missed some enotice to remove
these two symlinks, or is something borked in my system?


Maybe [1][2][3] are relevant here.



References:
 [1] 

 [2] 

 [3] 




--
Regards,
floyd




Re: [gentoo-user] Mutt database option

2018-04-07 Thread Floyd Anderson

On Sat, 07 Apr 2018 14:42:49 +0100
Mick <michaelkintz...@gmail.com> wrote:

On Saturday, 7 April 2018 14:35:27 BST Floyd Anderson wrote:

Hi Mick,

On Sat, 07 Apr 2018 11:21:23 +0100

Mick <michaelkintz...@gmail.com> wrote:
>So far I had been using gdbm, but I now see that emerge also added lmdb.

Same here, so I gave lmdb a try as hcache backend.

>Which one is best to use? What have you chosen?

I assume you mean for speed? I don’t know and it may become very
academic to answer this. But you can find some none Mutt-specific
benchmark results on NeoMutt’s website [1].

Note, the mentioned benchmark page say:

“[…] you’ll need a reasonable large number of
messages – >50k – to see anything interesting”

Using lmdb as backend, I do not realise any differences over gdbm within
Mutt respectively NeoMutt and I doubt one really can (without measuring
it exactly – which I haven’t done yet).


References:
  [1] <https://www.neomutt.org/contrib/hcache-bench>


Thanks Floyd, good information.

I also switched to lmdb now and updated my use flags accordingly for mutt.  I
see neomutt gaining traction, but I am still running mutt here.  Is there a
benefit from switching?


I think yes but I’m also using both here. Mutt for testing different 
behaviour (sometimes issues) of NeoMutt and NeoMutt as as my day-to-day 
mail client workhorse.


The main reason for my switch to NeoMutt was that I’ve had no luck with 
colourisation in Mutt (nearly two years ago). TBH, afterwards I realised 
that the problem was sitting in front of the screen and used 
sys-libs/slang instead of sys-libs/ncurses), so no reason for a switch.


But I like the faster development/release cycle, the goal to clean up 
the 20 years old code base and some features [1] of NeoMutt, e.g. 
Lua-scripting, sidebar; which sometimes find their way into Mutt. I have 
no experiences contributing patches to Mutt but regarded to NeoMutt, it 
meet my expectations and that is fun.


Back to the topic, with a another example. As far as I can tell you 
cannot change the hcache backend without recompiling Mutt where NeoMutt 
implements the ‘$header_cache_backend’ configuration variable for.


But in the end I can only say forget all things above, I’m only more 
familiar with NeoMutt than with Mutt.



References:
 [1] <https://www.neomutt.org/feature.html>



--
Regards,
floyd




Re: [gentoo-user] Mutt database option

2018-04-07 Thread Floyd Anderson

Hi Mick,

On Sat, 07 Apr 2018 11:21:23 +0100
Mick  wrote:

So far I had been using gdbm, but I now see that emerge also added lmdb.


Same here, so I gave lmdb a try as hcache backend.


Which one is best to use? What have you chosen?


I assume you mean for speed? I don’t know and it may become very 
academic to answer this. But you can find some none Mutt-specific 
benchmark results on NeoMutt’s website [1].


Note, the mentioned benchmark page say:

   “[…] you’ll need a reasonable large number of
   messages – >50k – to see anything interesting”

Using lmdb as backend, I do not realise any differences over gdbm within 
Mutt respectively NeoMutt and I doubt one really can (without measuring 
it exactly – which I haven’t done yet).



References:
 [1] 


--
Regards,
floyd




Re: [gentoo-user] The return of the dreaded "Cannot run C compiled programs"

2018-03-28 Thread Floyd Anderson

On Wed, 28 Mar 2018 08:38:10 +0100
Peter Humphrey <pe...@prh.myzen.co.uk> wrote:

On Tuesday, 27 March 2018 16:47:32 BST Floyd Anderson wrote:


Just a guess, because you’re compiling multilib – look whether your
kernel is able to run 32bit binaries. Check, e.g. the setting for kernel
option CONFIG_IA32_EMULATION.


That's it! I just reused the .config from the previous no-multilib system
without thinking about it. Stupid boy (TM).


You’re not alone. I wanted to shrink my kernel size and switched that 
kernel option off (beside others) – the error occurred weeks later.



--
Regards,
floyd




Re: [gentoo-user] Error with infinality font while emerging sane-backends

2018-03-28 Thread Floyd Anderson

On Wed, 28 Mar 2018 13:58:21 +0800
Danny YUE  wrote:



Thanks for your quick reply :-)

I created the symbolic link as you told,


That solves the:

Fontconfig error: failed reading config file
Fontconfig error: Cannot load config file "infinality/conf.d"

errors – they’re gone.


but it still does not
work...same error message.


Now you have to solve the:

Error: /invalidfont in /findfont

Last OS error: No such file or directory
GPL Ghostscript 9.21: Error: /invalidfont in /findfont

errors. The culprit seems here the Type-1 font selection, see bug 
#620148 [1]. Commenting the mentioned section in:


   /etc/fonts/infinality/infinality.conf

works here, bumping Ghostscript to version 9.23 doesn’t.

Hope that helps. If not, you probably can temporarily rename:

   /usr/bin/fig2dev (package media-gfx/transfig)

to hide it from the media-gfx/sane-backends build process, so it wont 
build the PDF documentation. Previously sane-backends-1.0.27 compiles 
fine without media-gfx/xfig and therefore media-gfx/transfig.



Reference:
 [1] 



--
Regards,
floyd




Re: [gentoo-user] Error with infinality font while emerging sane-backends

2018-03-27 Thread Floyd Anderson

On Wed, 28 Mar 2018 11:17:59 +0800
Danny YUE  wrote:

Hi folks,

I am trying to emerge xsane, which requires sane-backends.
However, the sane-backends package fails forever with error message like
below:
--- BEGIN ---
Fontconfig error: Cannot load config file "infinality/conf.d"
Error: /invalidfont in /findfont
--- END ---

I have only "52-infinality.conf" enabled in "eselect fontconfig".
I suppose this is a problem related to infinality fontconfig I am using.
But how am I supposed to fix this?


That is probably because media-libs/fontconfig seems not to canonicalise 
relative target path for symlinks.


As a quick, but volatile, solution you can re-create symlink:

   ln -s /etc/fonts/infinality/styles.conf.avail/linux \
 /etc/fonts/infinality/conf.d

or you have to patch the module:

   /usr/share/eselect/modules/infinality.eselect

of app-eselect/eselect-infinality-1 to use full qualified paths.

Test configuration loading afterwards, e.g. with `fc-match monospace`.
---
infinality.eselect | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/infinality.eselect b/infinality.eselect
index 8f397dc..8b069ae 100644
--- a/infinality.eselect
+++ b/infinality.eselect
@@ -1,5 +1,5 @@
# -*-eselect-*-  vim: ft=eselect
-# Copyright 2005-2012 Gentoo Foundation
+# Copyright 2005-2018 Gentoo Foundation
# Distributed under the terms of the GNU GPL version 2 or later
#
# Original author: MeisterP 
@@ -34,7 +34,8 @@ set_symlink() {
[[ -z ${target} || ! -d 
${EROOT}/etc/fonts/infinality/styles.conf.avail/${target} ]] \
&& die -q "Target \"$1\" doesn't appear to be valid!"

-ln -s "styles.conf.avail/${target}" "${EROOT}/etc/fonts/infinality/conf.d"
+ln -s "${EROOT}/etc/fonts/infinality/styles.conf.avail/${target}" \
+"${EROOT}/etc/fonts/infinality/conf.d"
echo "Selected style: ${target}"
echo "You should set eselect lcdfilter to match your current style"
}
--
2.16.3




Re: [gentoo-user] The return of the dreaded "Cannot run C compiled programs"

2018-03-27 Thread Floyd Anderson

On Mon, 26 Mar 2018 14:19:07 +0100
Peter Humphrey  wrote:

[…]
It's some years since I last saw this error, and I'm stuck. I've looked
through /etc hoping to find something skew-whiff, and I've compared the
environment with this box's, but nothing stands out.
[…]

Has anyone a clue?


Just a guess, because you’re compiling multilib – look whether your 
kernel is able to run 32bit binaries. Check, e.g. the setting for kernel 
option CONFIG_IA32_EMULATION.



--
Regards,
floyd




Re: [gentoo-user] Re: pdftk - replacement

2018-03-15 Thread Floyd Anderson

On Thu, 15 Mar 2018 12:55:23 -0600
the...@sys-concept.com wrote:

On 03/15/2018 10:49 AM, Grant Edwards wrote:

On 2018-03-15, the...@sys-concept.com  wrote:

On 03/15/2018 08:48 AM, Grant Edwards wrote:


Did you try the non-gcj ebuild for pdftk?


I would like to try it.
Where did you find it?



From my earler posting:


   http://repo.or.cz/marcv-overlay.git/tree/HEAD:/app-text/pdftk

NB: I haven't tried it, and have know idea if it works.


How do you tell portage about this ebuild?
I couldn't find this ebuild via "layman -a gitlab"

I've copied the ebuild to:
/usr/local/portage/app-text/pdftk/

ebuild /usr/local/portage/app-text/pdftk/pdftk-.ebuild manifest
/usr/local/portage/app-text/pdftk/pdftk-.ebuild: line 1: syntax error near 
unexpected token `newline'
/usr/local/portage/app-text/pdftk/pdftk-.ebuild: line 1: `'


I’ve never heard of XML (Extensible Markup Language) ebuild support, 
could that be the case?



--
Regards,
floyd




Re: [gentoo-user] emerge --oneshot portage

2018-03-13 Thread Floyd Anderson

Hi,

On Tue, 13 Mar 2018 13:38:40 -0600
the...@sys-concept.com wrote:

[…]


just a side note:


[ebuild U ] sys-apps/portage-2.3.24-r1 [2.3.6] USE="(ipc) native-extensions xattr -build 
-doc -epydoc -gentoo-dev% (-rsync-verify) (-selinux) (-linguas_ru%)" 
PYTHON_TARGETS="python2_7 python3_5* (-pypy) -python3_4* -python3_6"


be aware of the now new USE-flag rsync-verify, that is currently 
disabled by default but might be re-enabled in future versions.



--
Regards,
floyd




Re: [gentoo-user] Problems to update caused by nvidia-drivers?

2018-03-09 Thread Floyd Anderson

On Sat, 10 Mar 2018 07:44:54 +0100
tu...@posteo.de wrote:

On 03/10 07:35, Floyd Anderson wrote:

On Sat, 10 Mar 2018 05:42:16 +0100
tu...@posteo.de wrote:
>
>  (x11-base/xorg-server-1.19.5-r1:0/1.19.5::gentoo, installed) pulled in by
>x11-base/xorg-server:0/1.19.5= required by 
(x11-drivers/xf86-input-evdev-2.10.5:0/0::gentoo, installed)
>^^
>x11-base/xorg-server:0/1.19.5= required by 
(x11-drivers/xf86-input-libinput-0.26.0:0/0::gentoo, installed)
>^^

Are you sure you need both input drivers?


--
Regards,
floyd




Dont know...are they interchangeable?


Yes, but libinput is the default now [1][2]. If you doesn’t have any 
reason to keep both installed, I would simply go the mainstream route 
and probably bypass some issues [3].



References:
  - [1] <https://bugs.gentoo.org/show_bug.cgi?id=601132>
  - [2] 
<https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3ac878318dd96a88190a13b5ac7572ec0c56380>
  - [3] <https://wiki.gentoo.org/wiki/Libinput#Troubleshooting>


--
Regards,
floyd




Re: [gentoo-user] Problems to update caused by nvidia-drivers?

2018-03-09 Thread Floyd Anderson

On Sat, 10 Mar 2018 05:42:16 +0100
tu...@posteo.de wrote:


 (x11-base/xorg-server-1.19.5-r1:0/1.19.5::gentoo, installed) pulled in by
   x11-base/xorg-server:0/1.19.5= required by 
(x11-drivers/xf86-input-evdev-2.10.5:0/0::gentoo, installed)
   ^^
   x11-base/xorg-server:0/1.19.5= required by 
(x11-drivers/xf86-input-libinput-0.26.0:0/0::gentoo, installed)
   ^^


Are you sure you need both input drivers?


--
Regards,
floyd




Re: [gentoo-user] Xorg broken?

2018-03-07 Thread Floyd Anderson

On Wed, 07 Mar 2018 15:52:24 +0100
Christoph Böhmwalder  wrote:

I think I broke something once again...

Rebooting after a recent update caused my X Server to completely die.  I
faintly remember some x11-related packages being blocked on that
particular update, but because I was short on time I decided just to
ignore those at the time (note to self: bad idea, apparently).

Now when I run startx, it complains about a bunch of permissions being
borked:

$ cat Xorg.0.log
 8< 
[11.763] (--) using VT number 7

[11.763] (EE)
Fatal server error:
[11.766] (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission 
denied)
[11.767] (EE)
[11.768] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[11.773] (EE) Please also check the log file at 
"/home/christoph/.local/share/xorg/Xorg.0.log" for additional information.
[11.774] (EE)
[11.775] (WW) xf86CloseConsole: KDSETMODE failed: Bad file descriptor
[11.775] (WW) xf86CloseConsole: VT_GETMODE failed: Bad file descriptor
[11.775] (EE) Server terminated with error (1). Closing log file.

(I'll attach the full log)

I don't fully understand what's going on there, but I figured maybe
someone more experienced on here might have an idea as to what I did
wrong this time.


FWIW, I already tried setting the permissions of /dev/tty7 to 664,
causing the X server to work, albeit with inputs not working (the log
reveiled that it couldn't access /dev/input/event7 or something, so
probably the same issue).


My user's groups are:

$ groups christoph
tty wheel audio video usb users input davfs2 plugdev christoph kvm

(Note tty, audio, video, and input. That's all X should really need,
right?)

My VIDEO_CARDS contains "intel i915" (for an Intel HD 4000(?) chip in a
Lenovo X1 Carbon 1st gen).


Has this broken for anyone else?  Anyone who could point me in the right
direction?  Thanks in advance!


I got the same (again) but x11-base/xorg-server-1.19.99.901 runs just 
fine here when, and only when, I re-implement the +suid USE-flag 
(--enable-install-setuid) and remove --enable-suid-wrapper from the 
ebuild.


Remove your user from tty group and you’ll probably get:

   “parse_vt_settings: Cannot open /dev/tty0 (Permission denied)”

that is discussed at [1]. So downgrading to:

   x11-base/xorg-server-1.19.5-r1[+suid]

may be a quick but cannot be a permanent solution in my opinion.


References:
  - [1] 


--
Regards,
floyd




Re: [gentoo-user] [off-topic] Ripping "enhanced" CDs with abcde/cdparanoia

2018-03-04 Thread Floyd Anderson

On Sun, 04 Mar 2018 18:45:57 +0200
Lasse Pouru <lasse.po...@edu.turkuamk.fi> wrote:

Lasse Pouru <lasse.po...@edu.turkuamk.fi> writes:


[This sender failed our fraud detection checks and may not be who they
appear to be. Learn about spoofing at
http://aka.ms/LearnAboutSpoofing]

Floyd Anderson <f...@31c0.net> writes:


On Sun, 04 Mar 2018 14:01:00 +0200
Lasse Pouru <lasse.po...@edu.turkuamk.fi> wrote:

You know, the ones with video or software tracks shoehorned into the
end. Whenever I try to rip one with abcde I get the error "selected span
contains non audio track at track X", even when I've chosen a range not
containing track X (e.g. abcde 1-11, 12 being the non-audio track). Grip
rips the same CDs just fine, but I'd prefer to use a command-line
tool. I'm using cdparanoia with both abcde and grip, so is this a bug in
abcde or am I doing something wrong?



That error message seems to come from dev-libs/libcdio-paranoia [1],
so you have to ensure that abcde invokes cdparanoia (I assume it’s a
symlink to /usr/bin/libcdio-paranoia) with the intended track
range/span by looking at the forced debug or verbose output.

Or maybe simpler, invoke cdparanoia directly to see which one of the
involved parts (wrapper/program) to blame – if your given range/span
really contains only audio tracks.


References:
  - [1] 
<https://github.com/rocky/libcdio-paranoia/blob/b63fec7/src/cd-paranoia.c#L1199>


Same error when invoking cdparanoia directly. It seems grip includes its
own version of cdparanoia since it has two cdparanoia options, "grip
(cdparanoia)" and just "cdparanoia". The first on works, the latter
doesn't.

I'll try installing the unstable version of libcdio-paranoia in case
this is a bug that has recently been fixed.


Ok, upgrading libcdio-paranoia and libcdio to unstable versions solved
the problem. It's not even necessary to specify the range when running
abcde, the non-audio tracks are automatically left out.



Good to know, thanks. I used abcde recently and it works (except 
retrieving metadata from musicbrainz.org due to an API change) but found 
it’s a horrible huge script and not so easy to contribute to the 
project. Just an example, making it XDG-compliant and fixing whitespace 
results in 15 files changed (346 insertions and 325 deletions).



--
Regards,
floyd




Re: [gentoo-user] [off-topic] Ripping "enhanced" CDs with abcde/cdparanoia

2018-03-04 Thread Floyd Anderson

On Sun, 04 Mar 2018 14:01:00 +0200
Lasse Pouru  wrote:

You know, the ones with video or software tracks shoehorned into the
end. Whenever I try to rip one with abcde I get the error "selected span
contains non audio track at track X", even when I've chosen a range not
containing track X (e.g. abcde 1-11, 12 being the non-audio track). Grip
rips the same CDs just fine, but I'd prefer to use a command-line
tool. I'm using cdparanoia with both abcde and grip, so is this a bug in
abcde or am I doing something wrong?



That error message seems to come from dev-libs/libcdio-paranoia [1], so 
you have to ensure that abcde invokes cdparanoia (I assume it’s a 
symlink to /usr/bin/libcdio-paranoia) with the intended track range/span 
by looking at the forced debug or verbose output.


Or maybe simpler, invoke cdparanoia directly to see which one of the 
involved parts (wrapper/program) to blame – if your given range/span 
really contains only audio tracks.



References:
  - [1] 



--
Regards,
floyd




Re: [gentoo-user] Bouncing Messages

2018-03-02 Thread Floyd Anderson

On Fri, 02 Mar 2018 08:36:23 -0800
Ian Zimmerman <i...@very.loosely.org> wrote:

On 2018-03-02 12:04, Floyd Anderson wrote:


<https://archives.gentoo.org/gentoo-user/message/a29910d5d9a24cb23461a68302c029b1>
<https://archives.gentoo.org/gentoo-user/message/e6b46a7c62da9497d8303e0b9ba255c2>
<https://archives.gentoo.org/gentoo-user/message/49d45fd9a088b5717db8aa847fddeac9>


These are all from Grant Taylor.  They are DKIM-signed, and, not
surprisingly given the list header and footer munging, signature
verification fails (on my mail server).

Munging by lists should just die.  Why do it?  Windoze and Goo users may
have to split their mail into folders by Subject, but surely Gentooers
know better?


Yes, after reading the Gmail log snippet from the bug that Branko has 
filed, there is also a DMARC policy involved with an unauthenticated 
email. The site linked in that snippet mentioned also:


“[…] Google rejects all messages from eBay or PayPal that aren’t 
authenticated.”



--
Regards,
floyd




Re: [gentoo-user] Bouncing Messages

2018-03-02 Thread Floyd Anderson

On Thu, 01 Mar 2018 23:28:51 -0600
Dale <rdalek1...@gmail.com> wrote:

Floyd Anderson wrote:

On Thu, 01 Mar 2018 20:21:52 -0800
Ian Zimmerman <i...@very.loosely.org> wrote:

On 2018-03-01 18:12, Dale wrote:


Here is the list of the bounced messages:
- 182748
- 182749
- 182751


If you succeed in retrieving them, please let us know which ones they
were, so we can guess as to the cause.



Just send an empty mail to:

   <gentoo-user+ge...@lists.gentoo.org>

where ‘N’ is the message number, for instance:

   <gentoo-user+get-182...@lists.gentoo.org>

and you should receive the requested mail (182749). I got it within
one minute.




Interesting.  The plot thickens.  I sent mine hours ago and got nothing
yet, other than the recent replies which are in sequence so far.  This
is what I sent to get them:

gentoo-user+get-182...@lists.gentoo.org


that should give you [1]


gentoo-user+get-182...@lists.gentoo.org


and also [2]


gentoo-user+get-182...@lists.gentoo.org


and finally [3]. The sequence order shouldn’t play any role I think. A 
year ago I got also massive bounces here (due to my mail provider) and 
requested a bunch of (collected) list mails by a script – nearly without 
problems (sometimes I had to do it twice for certain emails).



Am I missing something?


I don’t think so. Did you previously receive a help message from 
<gentoo-user+h...@lists.gentoo.org>? Or just try your success with
<gentoo-user+get-182...@lists.gentoo.org> (my previous reply or try your 
own [182794] email), so the Gentoo side can probably be excluded.



I wonder if google is blocking them. I have to BCC myself to get my
replies since google sends them to /dev/null otherwise. Annoying thing.


Since all three emails have the same source, I found some blacklist 
results on [4] but I don’t know whether this is relevant, i.e. I’m 
purely guessing here.



References:
  - [1] 
<https://archives.gentoo.org/gentoo-user/message/a29910d5d9a24cb23461a68302c029b1>
  - [2] 
<https://archives.gentoo.org/gentoo-user/message/e6b46a7c62da9497d8303e0b9ba255c2>
  - [3] 
<https://archives.gentoo.org/gentoo-user/message/49d45fd9a088b5717db8aa847fddeac9>
  - [4] <https://mxtoolbox.com/domain/tnetconsulting.net/>



--
Regards,
floyd




Re: [gentoo-user] Bouncing Messages

2018-03-01 Thread Floyd Anderson

On Thu, 01 Mar 2018 20:21:52 -0800
Ian Zimmerman  wrote:

On 2018-03-01 18:12, Dale wrote:


Here is the list of the bounced messages:
- 182748
- 182749
- 182751


If you succeed in retrieving them, please let us know which ones they
were, so we can guess as to the cause.



Just send an empty mail to:

   

where ‘N’ is the message number, for instance:

   

and you should receive the requested mail (182749). I got it within one 
minute.



--
Regards,
floyd




Re: [gentoo-user] File collision dvtm

2018-02-20 Thread Floyd Anderson

On Wed, 21 Feb 2018 05:01:14 +0100
tu...@posteo.de wrote:

Hi,

while updateing I got a file collision.

The error message starts with a lengthy explanation what to
do NOT (reporting a bug, if there is only one ackage affected)
but it is say nothing WHAT to do, when one package is affected.

So,...

One package is affected...what can I do?


If you cannot wait until it is fixed, have a look at `man 5 make.conf` 
for COLLISION_IGNORE, collision-protect and protect-owned. You can use 
`infocmp` to compare colliding terminfo description files and see if 
they differ and which one to keep. I would treat ncurses as the master.



References:
 - [1] 
 - [2] 
 - [3] 


--
Regards,
floyd




Re: [gentoo-user] webkit-gtk-2.4.11-r200::gentoo failed (compile phase)

2018-02-18 Thread Floyd Anderson

Hi Thelma,

On Sun, 18 Feb 2018 12:01:54 -0700
the...@sys-concept.com wrote:

I'm getting an error.

make[1]: Leaving directory 
'/var/tmp/portage/net-libs/webkit-gtk-2.4.11-r200/work/webkitgtk-2.4.11'
make: *** [GNUmakefile:25837: all] Error 2
* ERROR: net-libs/webkit-gtk-2.4.11-r200::gentoo failed (compile phase):
*   emake failed

I've tried this propose patch.
https://621532.bugs.gentoo.org/attachment.cgi?id=511304

save it to a file patch.patch
went to directory:
cd /usr/portage/net-libs/webkit-gtk/
patch -p0 < patch.patch

It ask me what file I want to patch, I entered:
JSStringRef.h

run:
ebuild /usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild digest

But it still fails to compile.
Am I applying patch the same way.
--
Thelma



There’s no ‘JSStringRef.h’ file in ‘/usr/portage/net-libs/webkit-gtk/’, 
so patch must fail. Since the ebuild:


   /usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild

defines EAPI="6" you can just put the patch file in:

   /etc/portage/patches/net-libs/webkit-gtk/

with the right permissions (so that portage can read it). Don’t forget 
to remove the patch for newer (future) versions or be more specific and 
use the path:


   /etc/portage/patches/net-libs/webkit-gtk-2.4.11-r200/

for the patch file [1].

It seems the patch file isn’t valid because its first line:

--- webkitgtk-2.4.11.orig/Source/JavaScriptCore/API/JSStringRef.h   
2016-04-10 08:48:36.0 +0200

looks wrong to me (I doubt the package archive contains a 
‘webkitgtk-2.4.11.orig’ subfolder underneath the patch command will find 
the file ‘JSStringRef.h’)


After you ensured the path is fine try to re-emerge the package. 



References:
  - [1] 


--
Regards,
floyd




Re: [gentoo-user] detox'ing files by keeping their time stamp?

2018-02-18 Thread Floyd Anderson

Hi David,

On Sun, 18 Feb 2018 17:34:21 +0100
David Haller <gen...@dhaller.de> wrote:

Hello,

On Sun, 18 Feb 2018, Floyd Anderson wrote:

On Sun, 18 Feb 2018 14:44:24 +0100
tu...@posteo.de wrote:

On 02/18 01:55, Floyd Anderson wrote:
> On Sun, 18 Feb 2018 13:07:33 +0100
> tu...@posteo.de wrote:
> > On 02/18 11:38, Stroller wrote:

[..]

> > > I think:
> > >
> > >   tmpfile=/tmp/foo-$RANDOM
> > >   touch -r "$file" "$tmpfile"
> > >   detox "$file"
> > >   touch -r "$tmpfile "$file"
> > >   rm "$tmpfile"

[..]

> > I like to wrap detox with a script, which will do you magic trick.
> > Since I want to get rid of those evil characters (...) in the filename,
> > which normally intercept shell processing, I want to use detox,
> > which in turn will be called by a shell script in turn, to do the
> > time machine magic. To do so, I need detox, to sanitize the
> > filenames from the evil characters, which normally intercept.
> > .stack overflowrecursion depth failure.process killed.

[..]

So you have to figure out why detox, that I doesn't know and thus never have
been used, does not rename those files. Maybe because the new file (after
file name translation) already exists in directory as mentioned in the BUGS
section of the manual page. So you must ensure that all resulting file names
are unique.

[..]

And the circle starts right from the beginning.
The problem arises at that moment, where I need to feed the name
of a single file what program ever, since first there is the shell...
even when calling other programs.


Here comes escaping and/or quoting into play but the glob `detox *`, you've
specified, should work. Can you share a sample file name with funny
characters in it?


Well, at least bash is robust enough if you quote variables correctly.

$ ls -lb
total 4
-rw-r--r-- 1 dh dh   0 Feb 18 17:23 a\ "\ b\ '\ c\ #\ d
-rw-r--r-- 1 dh dh   0 Feb 18 17:27 a"b\ c
-rw-r--r-- 1 dh dh   0 Feb 18 17:26 a'b
-rw-r- 1 dh dh 166 Feb 18 17:26 t.sh

$ cat t.sh
#!/bin/bash
TMPF=$(mktemp "/tmp/detox_wrapper.$$.")
for f in "$@"; do
   touch -r "$f" "$TMPF"
   detox "$f"
   touch -r "$TMPF" "$f"
done
rm -f "$TMPF"


If I’m not totally wrong, the second `touch` cannot work because the 
file that "$f" holds is renamed now. That’s what I mean earlier with 
iterating a list or adapt Stroller’s suggestion.


I have no idea if:

   modtime="$(stat -c '%Y' "$f")"
   newfile="$(detox $"f")"
   touch -d "@$modtime" "$newfile"

is possible instead.


--
Regards,
floyd




Re: [gentoo-user] detox'ing files by keeping their time stamp?

2018-02-18 Thread Floyd Anderson

On Sun, 18 Feb 2018 14:44:24 +0100
tu...@posteo.de wrote:

On 02/18 01:55, Floyd Anderson wrote:

On Sun, 18 Feb 2018 13:07:33 +0100
tu...@posteo.de wrote:
> On 02/18 11:38, Stroller wrote:
> >
> > > On 18 Feb 2018, at 08:21, tu...@posteo.de wrote:
> > >
> > > when downloading files from non-UNIX sites, they often contain
> > > "poisonoys" characters like '#', ' ', ''' or that alike.
> > >
> > > With the tool 'detox' those filenames could be fixed.
> > >
> > > But detox changes the time stamp of the files, which
> > > filenames are altered (not all files, which are examined).
> > >
> > > Is there a way to either get detox not to alter the time stamp
> >
> > I think:
> >
> >   tmpfile=/tmp/foo-$RANDOM
> >   touch -r "$file" "$tmpfile"
> >   detox "$file"
> >   touch -r "$tmpfile "$file"
> >   rm "$tmpfile"
> >
> > It should be trivial to patch detox to do this itself.
> >
> > Stroller
> >
> >
> >
>
> Hi Stroller,
>
> this seems to be an egg<->chicken problem.
>
> I like to wrap detox with a script, which will do you magic trick.
> Since I want to get rid of those evil characters (...) in the filename,
> which normally intercept shell processing, I want to use detox,
> which in turn will be called by a shell script in turn, to do the
> time machine magic. To do so, I need detox, to sanitize the
> filenames from the evil characters, which normally intercept.
> .stack overflowrecursion depth failure.process killed.
>
> You know
>
> I am using zsh...
>
> Any idea to get a chicken OR an egg instead of an scrambled egg with
> feathers??? ;)

Go back one step and reread the manual page. It seems to be there is an
option ‘--dry-run’ (implies ‘--verbose’) that can probably be used to store
a list of the final new file names. Afterwards you can traverse this list
with Stroller’s suggestion (slightly adopted of course).

Or you can try other tools which doesn’t use function rename() [1], e.g.
perl-rename, and therefore don’t change the last modification time.

Or you can go two steps back and save the file(s) to your like when you
download it, e.g. with curl (maybe your’re also interested in its
‘--remote-time’ option).


References:
 - [1] <http://pubs.opengroup.org/onlinepubs/9699919799/functions/rename.html>


--
Regards,
floyd




Hi Floyd,

the unrenamed files are the only ones with the correct timestamp.
Therefore 'touch' has to access them.
But their filenames contain the poisonous characters.


So you have to figure out why detox, that I doesn’t know and thus never 
have been used, does not rename those files. Maybe because the new file 
(after file name translation) already exists in directory as mentioned 
in the BUGS section of the manual page. So you must ensure that all 
resulting file names are unique.


A second thought is that there probably isn’t a rule for a specific 
character translation, so detox won’t change those characters until you 
define a rule first [1].



And the circle starts right from the beginning.
The problem arises at that moment, where I need to feed the name
of a single file what program ever, since first there is the shell...
even when calling other programs.


Here comes escaping and/or quoting into play but the glob `detox *`, 
you’ve specified, should work. Can you share a sample file name with 
funny characters in it?



References:
  - [1] <http://detox.sourceforge.net/detox.tbl.5.html>


--
Regards,
floyd




Re: [gentoo-user] detox'ing files by keeping their time stamp?

2018-02-18 Thread Floyd Anderson

On Sun, 18 Feb 2018 13:07:33 +0100
tu...@posteo.de wrote:

On 02/18 11:38, Stroller wrote:


> On 18 Feb 2018, at 08:21, tu...@posteo.de wrote:
>
> when downloading files from non-UNIX sites, they often contain
> "poisonoys" characters like '#', ' ', ''' or that alike.
>
> With the tool 'detox' those filenames could be fixed.
>
> But detox changes the time stamp of the files, which
> filenames are altered (not all files, which are examined).
>
> Is there a way to either get detox not to alter the time stamp

I think:

  tmpfile=/tmp/foo-$RANDOM
  touch -r "$file" "$tmpfile"
  detox "$file"
  touch -r "$tmpfile "$file"
  rm "$tmpfile"

It should be trivial to patch detox to do this itself.

Stroller





Hi Stroller,

this seems to be an egg<->chicken problem.

I like to wrap detox with a script, which will do you magic trick.
Since I want to get rid of those evil characters (...) in the filename,
which normally intercept shell processing, I want to use detox,
which in turn will be called by a shell script in turn, to do the
time machine magic. To do so, I need detox, to sanitize the
filenames from the evil characters, which normally intercept.
.stack overflowrecursion depth failure.process killed.

You know

I am using zsh...

Any idea to get a chicken OR an egg instead of an scrambled egg with
feathers??? ;)


Go back one step and reread the manual page. It seems to be there is an 
option ‘--dry-run’ (implies ‘--verbose’) that can probably be used to 
store a list of the final new file names. Afterwards you can traverse 
this list with Stroller’s suggestion (slightly adopted of course).


Or you can try other tools which doesn’t use function rename() [1], e.g. 
perl-rename, and therefore don’t change the last modification time.


Or you can go two steps back and save the file(s) to your like when you 
download it, e.g. with curl (maybe your’re also interested in its 
‘--remote-time’ option).



References:
 - [1] 


--
Regards,
floyd




Re: [gentoo-user] eselect mystery

2018-02-04 Thread Floyd Anderson

On Sun, 04 Feb 2018 12:57:40 +0100
Helmut Jarausch  wrote:


i.e. it still searches for oracle-jdk-bin-1.8 and doesn't know about 
oracle-jdk-bin-9


Is this a bug or is there any means to bring eselect up-to-date ?


Comment 2 on bug #641690 [1] say no. As mentioned there, the point 
seems to be dev-java/oracle-jdk-bin-9.0.4[-gentoo-vm].


You should also note the true-branch (when enabling gentoo-vm):

   ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK"
   ewarn "recognised by the system. This will almost certainly break things."

in the dev-java/oracle-jdk-bin-9.0.4 ebuild.


Link:
 - [1] 



--
Regards,
floyd




Re: [gentoo-user] "eselect (c)python --list" corrupted somehow?

2018-02-03 Thread Floyd Anderson

On Sat, 03 Feb 2018 07:25:08 +0100
tu...@posteo.de wrote:

Hi,

I want to compile/install FreeCAD. I checked my python/cpython
installation, because FreeCAD wants python 2.7

I got this output

/root>eselect python list --cpython
Available Python  interpreters, in order of preference:
 [1]   python3.5
 [2]   python3.4 (uninstalled)
 [3]   python2.7
 [4]   python3.4 (uninstalled)
 [5]   python3.6
 [6]   python3.4 (uninstalled)



Not “corrupted somehow”, it’s a work-in-progress (WIP), see [1].


Why it is listing python versions, when '--cpython' is set?


Because the filter ‘--py’ for option ‘--cpython’ (action list) probably 
doesn’t match the condition:


   [[ ${1} == --py* && ${i} != python${1:4}* ]] && continue

in file [a] to skip not requested output.


Why do I have doubled entries?


Because your version of app-eselect/eselect-python probably doesn’t 
provide the function do_cleanup() in [a] to sanitise [b].



References:
 - [a] /usr/share/eselect/modules/python.eselect
 - [b] /etc/python-exec/python-exec.conf
 - [1] 


--
Regards,
floyd




Re: [gentoo-user] Heads Up - glibc-2.27 breaks my system

2018-02-02 Thread Floyd Anderson

Hi Helmut,

On Fri, 02 Feb 2018 18:34:23 +0100
Helmut Jarausch  wrote:
With glibc-2.27 installed I cannot compile anything, since most 
packages try to include 

which doesn't exit any more.
And downgrading glibc using a binary package doesn't work.

It looks like I have to restore my system from a recent backup,
very annoying!


Restoring your backup is probably faster but I want to point out the 
possibility of an intermediate build chroot [1] to get back a working 
toolchain. This helped me in the past to solve troubles with glibc and 
when I didn’t knew about buildpkg/buildsyspkg for FEATURES variable. 



Link:
 - [1] 


Good luck, bleeding edge(r) and thank you for the warning.


--
Regards,
floyd




Re: [gentoo-user] sync fails : ERROR:root:OpenPGP verification failed

2018-02-02 Thread Floyd Anderson

On Fri, 02 Feb 2018 11:11:38 +0100
Helmut Jarausch  wrote:

Hi,

I cannot run emerge --sync
I always get


ERROR:root:OpenPGP verification failed:
gpg: Signature made Fri 02 Feb 2018 09:38:18 AM UTC
gpg:using RSA key 
E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250

gpg: Can't check signature: No public key


What might have been happened?



Have a look at: 


--
Regards,
floyd




Re: [gentoo-user] Re: [OT] A little help for non-native English speakers

2018-02-01 Thread Floyd Anderson

On Thu, 01 Feb 2018 23:48:19 -0500
allan gottlieb  wrote:


"The ice cream that is in the fridge is cold"
restricts the assertion of coldness to the ice cream in the fridge as
opposed to some other ice cream.


…and that completes the circle ;-)

"The ice cream id est in the fridge is cold"
"The ice cream i.e. in the fridge is cold"


--
Regards,
floyd




Re: [gentoo-user] NeoMutt and GnuPG

2018-01-31 Thread Floyd Anderson

On Wed, 31 Jan 2018 12:18:08 -0500
Lucas Ramage  wrote:

Hello again,

I feel really stupid.

So I had set imap_user/pass, but not smtp_url so I was receiving emails
fine, but then instead of sending them, it was just encrypting them and
saving them via `set record = "+[Gmail]/Sent Mail"`.

** face palm **

Thanks for your help!



Glad to hear it’s working now. I thought sending/receiving was not the 
problem, so my focus was on GnuPG.


Just a side note, you don’t need the imap and smtp USE-flags in your 
package.use/neomutt file. None of the NeoMutt ebuilds in tree will 
honour it because >=neomutt-20170602 always build those features, look 
at [1][2] and `neomutt -v`.


Also it seems you use NeoMutt 20171208 which has some regressions, so 
consider an update to not run into the next unnecessary issue.



References:
 - [1] 
 - [2] 


--
Regards,
floyd




Re: [gentoo-user] NeoMutt and GnuPG

2018-01-31 Thread Floyd Anderson

On Wed, 31 Jan 2018 20:50:13 +1300
"Roger J. H. Welsh" <rjhwe...@gmail.com> wrote:

On  Wed, Jan 31, 2018 at 05:17:45AM +0100 , Floyd Anderson wrote:


> On my neomutt, when I press "v" to view attachments, all I can
> see is text/plain. I think my neomutt does something automatic to
> decrypt the messages.
>

Indeed, viewing attachments encrypted would break many functions otherwise,
e.g. piping, printing, saving.

So Lucas's original problem sounds like an issue with this, I can only
imagine it is some sort of lack of pgp support.


Honestly, I did not comprehended Luca’s issue and therefore have no clue 
for the reason. Perhaps something with mixed and interfering USE-flags. 
IIRC, his prior Mutt installation works after some hiccups.



> My source docs I used when setting my gpg up with mutt were:
> https://gitlab.com/muttmua/mutt/wikis/MuttGuide/UseGPG
> http://codesorcery.net/old/mutt/mutt-gnupg-howto
>

In the meantime NeoMutt != Mutt, so not to forget to mention
<https://www.neomutt.org/guide/>. ;-)

Lol. Of course. I read that for my current setup. Though I never really
got to grips with what gpgme was, as I was more concerned with
bootstrapping a working (neo)mutt configuration, which is why I source
my : "14 ! long and cryptic command lines".


Similar here, for a long time I plan to fully switch my setup away from 
widely spread (more or less) static config files, to a more dynamic one 
using Lua. But it works fine and that is murder for the motivation.



Thanks for the critique Floyd.


You’re welcome.


--
Regards,
floyd




Re: [gentoo-user] NeoMutt and GnuPG

2018-01-30 Thread Floyd Anderson

On Tue, 30 Jan 2018 20:48:02 -0800
Ian Zimmerman <i...@very.loosely.org> wrote:

On 2018-01-31 05:17, Floyd Anderson wrote:


Instead I suggest to set ‘gpgme’ USE-flag and *only that* – no
‘crypt’, ‘gpg’, ‘pgp_classic’, ‘smime’, ‘smime_classic’. Look at the
ebuild and especially the comments. This way I only need to set one !
variable to get the stuff working:

set crypt_use_gpgme = yes


I second that.  This has been my setup for about a year and it just works.



Yes, and when not (and you are interested in) you may investigate what’s 
going on by invoking:


   `GPGME_DEBUG="9:/tmp/gpgme.log" neomutt`


--
Regards,
floyd




Re: [gentoo-user] NeoMutt and GnuPG

2018-01-30 Thread Floyd Anderson


Hi Roger,

On Wed, 31 Jan 2018 15:01:39 +1300
"Roger J. H. Welsh"  wrote:

Hi Lucas,


Here is my muttrc on github:
https://github.com/lramage94/dotfiles/blob/master/.mutt/muttrc

It looks like you are using gpgme, I personally have not set this up for
my neomutt, instead I use a gpg.rc file from the samples provided.

For example;
bzcat /usr/share/doc/neomutt-*/samples/gpg.rc.bz2 > ~/.mutt/gpg.rc
echo "source ~/.mutt/gpg.rc" >> ~/.mutt/muttrc


I would not do that. The topic itself is complex enough and sourcing of 
14 ! long and cryptic command lines doesn’t make it better. Also note 
that gpg.rc defines the deprecated ‘pgp_clearsign_command’ variable.


BTW. as we‘re talking about NeoMutt here, I use:

${XDG_CONFIG_HOME:-${HOME}/.}${XDG_CONFIG_HOME:+/}neomutt/neomuttrc

so I can run a parallel Mutt installation when things get broken.

Instead I suggest to set ‘gpgme’ USE-flag and *only that* – no ‘crypt’, 
‘gpg’, ‘pgp_classic’, ‘smime’, ‘smime_classic’. Look at the ebuild and 
especially the comments. This way I only need to set one ! variable to 
get the stuff working:


set crypt_use_gpgme = yes


To be sure you may also set:

# ensure deprecated options are disabled or disarmed
set pgp_autoinline  = no
set pgp_clearsign_command   = ''
set pgp_mime_auto   = ask-yes
set pgp_replyinline = no


And if one like:

# semi-automated encrypted reply to encrypted messages
# Notes:
#- this can always be disabled by PGP-menu ('p')
#- crypt_autoencrypt or crypt_replyencrypt (if set) disables 
crypt_opportunistic_encrypt
set crypt_opportunistic_encrypt = yes
set crypt_autoencrypt   = no
set crypt_replyencrypt  = no

# whether or not display unusable (revoked, expired, disabled) keys
set pgp_show_unusable   = yes
set crypt_timestamp = no


With more than one mail address I suggest:
send2-hook  . 'set pgp_sign_as = ""'
send2-hook  '~f "1st@example\.net$"'  'set pgp_sign_as = 
"0x0123456789ABCDEF0123456789ABCDEF01234567"'
send2-hook  '~f "2nd@example\.net$"'  'set pgp_sign_as = 
"0xABCDEF0123456789ABCDEF0123456789ABCDEF01"'



On my neomutt, when I press "v" to view attachments, all I can
see is text/plain. I think my neomutt does something automatic to
decrypt the messages.



Indeed, viewing attachments encrypted would break many functions 
otherwise, e.g. piping, printing, saving.



My source docs I used when setting my gpg up with mutt were:
https://gitlab.com/muttmua/mutt/wikis/MuttGuide/UseGPG
http://codesorcery.net/old/mutt/mutt-gnupg-howto



In the meantime NeoMutt != Mutt, so not to forget to mention
. ;-)


--
Regards,
floyd




Re: [gentoo-user] NeoMutt and GnuPG

2018-01-30 Thread Floyd Anderson

Hi Lucas,

On Mon, 29 Jan 2018 15:20:23 -0500
Lucas Ramage  wrote:


When I send an encrypted message I see two files:

- noname (1kb)
- msg.asc (10kb) # <-- this one changes size depending on my message.



please be more specific, i.e. where did you see those two lines of 
files? In the attachment menu (after sending the mail) or compose menu 
(before you send the mail)? Can you see anchor pairs:


   -BEGIN PGP MESSAGE-
   -END PGP MESSAGE-

with your mail selected and after invoking :exec view-raw-message from 
NeoMutt’s command prompt?


Also, what is the version of your NeoMutt and the USE-flags.

--
Regards,
floyd




Re: [gentoo-user] rust 1.23.0 fails to install

2018-01-30 Thread Floyd Anderson

Hi John,

On Mon, 29 Jan 2018 16:58:56 -0500
John Covici  wrote:

Hi.  In my world update Rust 1.23.0 failed to install with the
following error:
install: installing component 'rustc'

   Rust is ready to roll.

< Rustc { stage: 2, target: "x86_64-unknown-linux-gnu", host:
"x86_64-unknown-linux-gnu" }
Build completed successfully in 0:21:12
mv: cannot stat
'/var/tmp/portage/dev-lang/rust-1.23.0/image//usr/share/doc/rust/*':
No such file or directory

I did not see a bug on bgo -- anyone knows how to fix?

Thanks in advance for any suggestions.



Maybe a resync for dev-lang/rust-1.23.0-r1::gentoo helps. But before you 
emerge, be aware of bug #646092 [1] (where I also ran into). For me [2] 
solves the described issue.



References:
 - [1] 
 - [2] 


--
Regards,
floyd




Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Floyd Anderson

Hi Andrew,

On Sun, 14 Jan 2018 12:06:23 +0100
Andrew Barchuk  wrote:

Thanks everyone, I've nailed it \o/ A more detailed story follows.


Thank you for your conclusion and that you share your solution which 
will certainly have some benefit for future readers.


Well done, keep it up.

--
Regards,
floyd




Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Floyd Anderson

On Sat, 13 Jan 2018 11:58:43 +0100
Andrew Barchuk  wrote:

Hi folks,


[…]


Any ideas what is going on and how do I make the fsck check succeed?


It seems the init script(s) within your initramfs implements no 
logic/hooks for fsck but just mount your /usr partition. After switching 
to real root your OpenRC fsck init script try to check /usr partition 
due to the specified 2 for passno (sixth field in /usr fstab entry) and 
fails because it is already mounted.


You have to implement your own logic in initramfs init script(s) and set 
passno to 0 for /usr partition to prevent the OpenRC fsck. Have a look 
at [1] as a starting point. Also check if /etc/initramfs.mounts exists 
(comes with genkernel-next and probably with other packages, I am not 
sure at this) and what is defined in there.


The steps to realise a fsck check hook within an initramfs init script 
may not be trivial and time consuming on building/testing, so, as Alan 
suggested earlier, checking your partition with a booted rescue live CD 
or similar, may prevent some headaches.



References:
 - [1] 



--
Regards,
floyd




Re: [gentoo-user] 'firmware_install' won't on 4.14.7-gentoo

2017-12-20 Thread Floyd Anderson

On Wed, 20 Dec 2017 16:51:04 +
Mick  wrote:

On Wednesday, 20 December 2017 16:03:02 GMT Mike Gilbert wrote:

On Wed, Dec 20, 2017 at 9:26 AM, Mick  wrote:



> You are quite right, there is no firmware_install in the 4.14.7 release.
> What does this mean?  How are we meant to install firmware now?

I believe all firmware has been removed from the kernel sources.

You should install sys-kernel/linux-firmware, or grab just the files
you need from the git repo.

https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git


Thank you all, but I see to have a mental disconnect here:

I already have sys-kernel/linux-firmware-20170314 installed.

I have specified in the kernel which blobs I need and /lib/firmware/ as the
path for the kernel to find any firmware it may need.

I used to run make firmware_install and the kernel was able to load whatever
firmware I had specified so that CPU/GPU can function properly at boot time.

With 4.14.7 I (can) no longer do this;


Since I fully encrypt my drives and therefore using an EFI-stub kernel 
with an embedded initramfs, I use genkernel-next and different scripts 
to build my kernels. It can be tricky and feels like a tool-chain but 
also works for me.




AND

the newly compiled kernel does not load at boot time any of the needed
firmware.

What step am I missing to arrive at a bootable kernel with all necessary
firmware?


Assuming your specified blobs are all available and required kernel 
options like CONFIG_MICROCODE and CONFIG_MICROCODE_INTEL [1] are proper 
set, I’m not sure it makes any difference but the default is:


   CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

without the appended forward slash.


[1] 


--
Regards,
floyd




Re: [gentoo-user] 'firmware_install' won't on 4.14.7-gentoo

2017-12-20 Thread Floyd Anderson

On Wed, 20 Dec 2017 12:22:29 +
Mick  wrote:

Has something changed in 4.14.7-gentoo sources from its predecessors?

I'm getting this on two systems:

[snip ...]
 INSTALL sound/pci/hda/snd-hda-codec-hdmi.ko
 INSTALL sound/pci/hda/snd-hda-codec.ko
 INSTALL sound/pci/hda/snd-hda-intel.ko
 DEPMOD  4.14.7-gentoo
make: *** No rule to make target 'firmware_install'.  Stop.


Yes, there is a change to drop the target rule ‘firmware_install’ [1]. 
I’ve noticed also [2] but in the end it seems the rule is finally 
dropped:


 /usr/src/linux-4.12.12-gentoo/scripts/Makefile.fwinst...  exists
 /usr/src/linux-4.14.4-gentoo/scripts/Makefile.fwinst ...  no such file 


To check it’s there look for ‘Other generic targets’ in kernel dir:

   sudo make help

or just grep:

   grep -q 'firmware_install' /usr/src/linux/Makefile


References:
 - [1] 
 - [2] 


--
Regards,
floyd




Re: [gentoo-user] Loading a Firmware Module By hand?

2017-12-18 Thread Floyd Anderson


If you want to build into the kernel again, check 
‘/lib/firmware/ath10k/QCA6174/hw2.1/firmware-6.bin’ exists and set:


  CONFIG_FIRMWARE_IN_KERNEL=y
  CONFIG_EXTRA_FIRMWARE="ath10k/QCA6174/hw2.1/firmware-6.bin"
  CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"



I must correct myself. I’ve seen that the file ‘firmware-6.bin’ is 
located in ‘/lib/firmware/ath10k/QCA6174/hw3.0’ and ‘firmware-5.bin’ 
lives in ‘/lib/firmware/ath10k/QCA6174/hw2.1’, see [1].


That is where your firmware loading error comes from (and my wrong 
example for the CONFIG_EXTRA_FIRMWARE). So, the correct kernel 
configuration should be:


   CONFIG_FIRMWARE_IN_KERNEL=y
   CONFIG_EXTRA_FIRMWARE="ath10k/QCA6174/hw2.1/firmware-5.bin"
   CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

or

   CONFIG_FIRMWARE_IN_KERNEL=y
   CONFIG_EXTRA_FIRMWARE="ath10k/QCA6174/hw3.0/firmware-6.bin"
   CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"


[1] 



--
Regards,
floyd




Re: [gentoo-user] Loading a Firmware Module By hand?

2017-12-18 Thread Floyd Anderson

On Mon, 18 Dec 2017 19:15:04 +
Hunter Jozwiak  wrote:

On 12/18/17, Mick  wrote:

On Monday, 18 December 2017 05:11:20 GMT Hunter Jozwiak wrote:

Hmm. I have kernel 4.14.7 and linux-firmware 20171206. I tried version
9 as well, but that didn't help matters, either. Nor did
compiling the firmware into the kernel; either 4.14 is too old, or it
is too new.


I'd think they are both too new?


I tried copying the firmware my live iso was using, but
that didn't help either.


If the live iso works, start with using the same kernel release and linux-
firmware version, to see if this works as expected on your installation.
Then
update kernel sources and firmware to the latest stable and see if this
works
too.

From there on you can move into ~arch to find the version at which things
break.
--
Regards,
Mick

Okay, here are the dmesg messages:
https://paste.pound-python.org/show/nrNfBAEPfh9W7ZIeItJC/
The present kernel configuration, as of yesterday evening:
https://paste.pound-python.org/show/NmNB8nzLuEjmsz74kRVE/
Make and model of the offending card: Qualcomm 6174 revision 20.
Not exactly what the -2 error means, but I will try as Mick suggested
and work my way forwards to see what I can get working.



Hi,

I was a little bit confused from your earlier mentioned

   /lib/firmware/ath10k/QCABLEFAGD/HW3.0

I wonder where this firmware come from. I cannot find it, neither with 
the identifier ‘QCABLEFAGD’ nor an upper cased ‘HW3.0’ directory in 
[1][2][3][4].


Your log tells an other story now. As far as I can tell:

   “Direct firmware load for […] failed with error -2”

comes from _request_firmware and fw_get_filesystem_firmware functions in 
file [5]. The symbolic error name ENOENT, see `man 3 errno`, means 
something like ‘No such element’ or ‘No such file or directory’.


Even CONFIG_EXTRA_FIRMWARE_DIR defaults to ‘/lib/firmware’, there should 
be whether an entry ‘# CONFIG_EXTRA_FIRMWARE_DIR is not set’ or 
something like ‘CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"’ in your 
config. Its unclear to me why it is not there.


If you want to build into the kernel again, check 
‘/lib/firmware/ath10k/QCA6174/hw2.1/firmware-6.bin’ exists and set:


   CONFIG_FIRMWARE_IN_KERNEL=y
   CONFIG_EXTRA_FIRMWARE="ath10k/QCA6174/hw2.1/firmware-6.bin"
   CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"

Hope that helps.


[1] 

[2] 

[3] 
[4] 
[5] 




--
Regards,
floyd




Re: [gentoo-user] Loading a Firmware Module By hand?

2017-12-17 Thread Floyd Anderson

On Mon, 18 Dec 2017 05:11:20 +
Hunter Jozwiak  wrote:

On 12/17/17, Andrey Utkin  wrote:

On Sun, Dec 17, 2017 at 12:34:14AM -0500, Hunter Jozwiak wrote:

Hi,

I have an ath10k_pci device that I'm trying to get hooked to the
Internet, but I'm having some strange issues. It is trying to load the
2.1 firmware, but I don't think that is the proper firmware for the
interface to have; I think it ought to be loading the 3.0 module, but
am not quite sure on that either, or how I could go about injecting
that into the modprobe; I wasn't able to pinpoint the firmware blob
the ISO was using, so that wasn't much of a pointer in the right
direction either. I see that the 3.0 blob does exist in
/lib/firmware/ath10k/QCABLEFAGD/HW3.0, but there are many bin files,


I have little to no idea about your actual case... But could it be that
you have a recent linux-firmware package (which provides /lib/firmware/
files) and not recent enough kernel? I think kernel is what decides
which firmware file to load.





!!! rearranged top-posting !!!


Hmm. I have kernel 4.14.7 and linux-firmware 20171206. I tried version
9 as well, but that didn't help matters, either. Nor did
compiling the firmware into the kernel; either 4.14 is too old, or it
is too new. I tried copying the firmware my live iso was using, but
that didn't help either.



I think you are a little bit too vague in your given info. If you don’t 
show your firmware related kernel settings (those lines posted by Mick 
earlier) nor what dmesg said about the firmware loading success of your 
specified config, people tends to think you know what you are doing and 
therefore may eliminate any errors based on syntactical mistakes or 
similar from their thoughts.


For instance, you wrote “It is trying to load the 2.1 firmware” but 
because trying != loaded successfully, nobody knows if 2.1 works or has 
been failed (and why), so you have a need to try the 3.0 blob.


As Mick pointed out, look what is in your dmesg log and communicate that 
(not only your own interpretation of it). Maybe there’s another module 
configured that also supports and loads the 2.1 blob so it must be 
blacklisted [1] or not built at all. Also the firmware must be available 
on boot and module load, so a probably used initramfs must include it as 
long as it is not built into the kernel.



[1] 


--
Regards,
floyd




Re: [gentoo-user] Compiling maim/slop failed

2017-12-11 Thread Floyd Anderson

Hi,

On Tue, 12 Dec 2017 02:36:23 +
tu...@posteo.de wrote:
[…]

As always...any survival tips are very welcome...;)


In case your search is broken, I’ve done it for you:

   

Bonus: When signed in there, you can put yourself to the CC list and 
wait what the time will bring.



--
Regards,
floyd




Re: [gentoo-user] Removing Firefox "Pocket" (Built-In Adware)

2017-11-16 Thread Floyd Anderson

On Fri, 17 Nov 2017 02:30:52 +
R0b0t1  wrote:


I would like to know if there is any recourse. I have disabled it, but
it is still present in the menus. It looks like it generates a unique
advertising ID, which I have cleared in "about:config."


Hi,

since I felt losing and wasting lifetime hunting for a suitable solution 
to configure those ‘features’, I switched to the aggressive route. This 
means, all things in ‘/usr/lib/firefox/browser/features/’, I cannot find 
easily a satisfiable explanation for, will be renamed.


In your case it seems to be the extension ‘fire...@getpocket.com.xpi’.


--
Regards,
floyd




Re: [gentoo-user] Does Gentoo support more than 8 bits per color channel?

2017-10-20 Thread Floyd Anderson

On Fri, 20 Oct 2017 22:05:27 +
mad.scientist.at.la...@tutanota.com wrote:
Linux will support at least 24 bit color on cards it can drive (nearly 
anything current).


Look at the subject, Helmut ask for Deep Color (30/36/48-bit) [1] not 
for True Color (24-bit).



[1] 



--
Regards,
floyd




Re: [gentoo-user] Re: High resolution on a 13 inch screen

2017-09-05 Thread Floyd Anderson

On Di, 05 Sep 20:00:56 +
Floyd Anderson <f...@31c0.net> wrote:

On Di, 05 Sep 13:29:13 +
Grant <emailgr...@gmail.com> wrote:


[…]


But X should get it right if I use:

DisplaySize 294 166


Looks like a typo. I got:

  349.6462 mm × 165.6207 mm

with:

  $ bc <<<'scale=4; ppi=276.05; cx=3800; inch=25.4; cx / ppi * inch'


Argh, my bad. Ignore the calculation above and in my previous reply. I’m 
wrong because I used 3800 px instead of 3200 px. Sorry for the noise.



--
Regards,
floyd




Re: [gentoo-user] Re: High resolution on a 13 inch screen

2017-09-05 Thread Floyd Anderson

On Di, 05 Sep 13:29:13 +
Grant  wrote:

Is there a way to digitally discover the true height and width of your
screen in mm?



If you know the shadow mask/dot pitch [1] or the real pixel per inch of your
screen, then calculate it. This way you see if software reports wrong
values.



Got it:

http://pixensity.com/list/dell-xps-13-4331/



BTW: X supports -dpi parameter/option. I use it in my xserverrc (xinit
server script) configuration and the Xorg.0.log reports the correct and
prior calculated values.



I think I read that there is no xorg.conf directive for DPI.


I mean -dpi as command line parameter/option, see `/usr/bin/Xorg -help` 
or [1]. On the same site is an example (“Tips and tricks” section) for 
startx invocation that bypass -dpi to Xorg but DisplaySize should do the 
job also.



But X should get it right if I use:

DisplaySize 294 166


Looks like a typo. I got:

   349.6462 mm × 165.6207 mm

with:

   $ bc <<<'scale=4; ppi=276.05; cx=3800; inch=25.4; cx / ppi * inch'


[1] 


--
Regards,
floyd




Re: [gentoo-user] Re: High resolution on a 13 inch screen

2017-09-04 Thread Floyd Anderson

Hello Grant,

On Mo, 04 Sep 12:24:00 -0700
Grant  wrote:


Is there a way to digitally discover the true height and width of your
screen in mm?


If you know the shadow mask/dot pitch [1] or the real pixel per inch of 
your screen, then calculate it. This way you see if software reports 
wrong values.


BTW: X supports -dpi parameter/option. I use it in my xserverrc (xinit 
server script) configuration and the Xorg.0.log reports the correct and

prior calculated values.

[1] 


--
Regards,
floyd




Re: [gentoo-user] Re: chromium 60 build failure

2017-08-01 Thread Floyd Anderson

On Di, 01 Aug 16:09:07 +
Grant Edwards <grant.b.edwa...@gmail.com> wrote:

On 2017-08-01, Floyd Anderson <f...@31c0.net> wrote:


If you look at

 https://packages.gentoo.org/packages/sys-devel/gcc

It showls eleven versions for amd64 in green with a '+' symbol.  I
thought that meant they were stable.  But, as there's no key on that
page explaining what the colors and symbols mean, I was evidently
wrong.



You are right that is a little bit odd and confusing. One have to look
at the mouse tool tip while hovering those symbols.


Very will hidden, that!  Kudos to the joker that thought that one up.


$ equery keywords sys-devel/gcc

is more clear on this.


Thanks, I should have known to not use a web page for something that
had a command-line tool.


Yes for me it is mostly more convenient, especially when javascript 
comes into play. Also learning never stops. The command `eshowkw`, which 
Mick mentioned, is new to me even if its output is very similar to 
`equery`.


BTW, there is a little symbol legend when you click on the question mark 
above the arch column header:


   <https://packages.gentoo.org/about/help#keyword-legend>

and it shows a not used symbol for masked versions. Maybe just another 
one from the joker. ;-)



--
Regards,
floyd




Re: [gentoo-user] Re: chromium 60 build failure

2017-08-01 Thread Floyd Anderson

On Di, 01 Aug 15:33:11 +
Grant Edwards  wrote:

On 2017-08-01, Mick  wrote:

On Tuesday 01 Aug 2017 16:00:07 Alan McKinnon wrote:

On 01/08/2017 15:55, Grant Edwards wrote:
> On 2017-08-01, Mart Raudsepp  wrote:
>> Everyone is expected to be on at least GCC 5 now.
>
> OK, next dumb question:
>
> There are 11 versions marked as stable for amd64.  How does one find
> out which version of GCC one is "expected to be on"?


I can only see three versions marked as stable on the main portage tree, two
of them being GCC 4 leaving one 5.4.0-r3 as the obvious candidate.  The
remaining are Masked, or testing:


If you look at

 https://packages.gentoo.org/packages/sys-devel/gcc

It showls eleven versions for amd64 in green with a '+' symbol.  I
thought that meant they were stable.  But, as there's no key on that
page explaining what the colors and symbols mean, I was evidently
wrong.



You are right that is a little bit odd and confusing. One have to look 
at the mouse tool tip while hovering those symbols.


$ equery keywords sys-devel/gcc

is more clear on this.


--
Regards,
floyd




Re: [gentoo-user] XFCE "Set Title" hotkey

2017-06-15 Thread Floyd Anderson

On Do, 15 Jun 13:54:15 +0800
Bill Kenworthy  wrote:

Hi,

   I am using the XFCE4 Terminal in drop down mode on an XFCE4
desktop.  Something has caused the "Set Title" hotkey to be set with the
letter "o" trapping that key whenever it is pressed.  Very frustrating
as "o" is a common letter :)

I've checked everywhere I can think of so I am now looking for
ideas/suggestions where this might be set/overridden?  Other systems I
have are fine so it probably something I accidentally altered.


Look for the file ‘accels.scm’ in your home directory. Mine is:

   ${XDG_CONFIG_HOME}/xfce4/terminal/accels.scm

and within that configuration change the line:

   (gtk_accel_path "/terminal-window/set-title" "s")

to what ever you need.

Note, to completely remove/deactivate the shortcut, commenting the line 
doesn’t work because it falls back to the default ‘s’. 
You have to set:


   (gtk_accel_path "/terminal-window/set-title" "")

means no shortcut at all. After editing that file and a re-login you 
should be done.


BTW and in the case you remove the ‘Set Title’ shortcut, setting the 
title can be achieved in various ways:


   `xfce4-terminal --drop-down -T 'my new title'`

or in a running terminal by using escape control sequences [1]:

   `echo -ne '\033]2;my new title\007'`

or

   `printf '\e]0;%s\007' 'my new title'`


[1] man page: console_codes(4)


--
Regards,
floyd




Re: [gentoo-user] Re: In search of an truecolor-capable terminal emulator

2017-04-29 Thread Floyd Anderson

On Sa, 29 Apr 05:15:50 +0200
tu...@posteo.de wrote:


Hi,

before changing my system I took a look at
https://wiki.gentoo.org/wiki/Xorg/Hardware_3D_acceleration_guide

Down the page there is a test, whohc on my system reports:
glxinfo | grep rendering
direct rendering: Yes
   GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,
   GL_NV_path_rendering, GL_NV_pixel_data_range, GL_NV_point_sprite,
   GL_NV_packed_float_linear, GL_NV_path_rendering,


For me it reads like: Yes, you have hardware accelerated rendering.

Or did I miss something...?
That need not be the whole truth. Look also for ‘OpenGL renderer’ [1] 
with command:

   glxinfo | grep 'render'
or more verbose:
   glxinfo | grep 'string:'

It may be worth to study the Xorg log file for something like:
 - Direct rendering enabled/disabled
 - 2D and 3D acceleration enabled/disabled
 - reverting to software rendering
 - Loaded and initialized swrast (swrast => software rasterizer)
 - and so on ...


References:
[1] 


--
Regards,
floyd




Re: [gentoo-user] System borked after emerge -e world

2017-04-27 Thread Floyd Anderson

On Fr, 28 Apr 01:27:23 +0200
wabe <waben...@gmail.com> wrote:

Floyd Anderson <f...@31c0.net> wrote:


On Do, 27 Apr 16:56:00 -0500
Dale <rdalek1...@gmail.com> wrote:
>One thing about alt sysreq, once you get to a certain point, you
>have >to go "all the way" with it. I've found that just the R and E
>generally >gets things back to a point it is accessible and I don't
>have to go >through it all. I think once you get to the I or S, it's
>all or nothing at that point. Even after the E, you may have to
>start/restart some init processes. FYI, I'm pretty sure the S is
>what syncs the file systems and the U unmounts everything.  Of
>course, the B reboots.  I can't recall what the others do exactly.
With access to the kernel sources, you doesn’t have to remember what
the others do, see
‘/usr/src/linux/Documentation/admin-guide/sysrq.rst’.


This file doesn't exist on my system (not even the directory
"admin-guide").

I can find it under:

/usr/src/linux/Documentation/sysrq.txt
That’s interesting, I doesn’t expect that. Maybe we are using different 
kernel sources. Mine is ‘sys-kernel/gentoo-sources-4.10.12::gentoo’ but 
wait, I’ve found it also under ‘Documentation/sysrq.txt’ with version 
4.9.16 and it’s slightly a little bit different (in form not in content 
as far as I can see).


But in my case I even had no access to any file, because no command
was working anymore. So I think it is better to have these information
on a good old sheet of paper. ;-)
Ha, yes of course, a paper backup beats them all (under typical 
circumstances). ;-)



--
Regards,
floyd




Re: [gentoo-user] System borked after emerge -e world

2017-04-27 Thread Floyd Anderson

On Do, 27 Apr 16:56:00 -0500
Dale  wrote:
One thing about alt sysreq, once you get to a certain point, you have 
to go "all the way" with it. I've found that just the R and E generally 
gets things back to a point it is accessible and I don't have to go 
through it all. I think once you get to the I or S, it's all or nothing

at that point. Even after the E, you may have to start/restart some
init processes. FYI, I'm pretty sure the S is what syncs the file
systems and the U unmounts everything.  Of course, the B reboots.  I
can't recall what the others do exactly.
With access to the kernel sources, you doesn’t have to remember what the 
others do, see ‘/usr/src/linux/Documentation/admin-guide/sysrq.rst’.



--
Regards,
floyd




Re: [gentoo-user] System borked after emerge -e world

2017-04-27 Thread Floyd Anderson

On Do, 27 Apr 19:43:46 +0200
wabe  wrote:

"J. Roeleveld"  wrote:


On April 27, 2017 7:20:29 PM GMT+02:00, wabe 
wrote:

On tty12 I can see messages […]
Try to switch to an other virtual terminal (with Ctrl+Alt+2) and start 
from there.



But I cannot open another terminal. I don't even see what I'm typing
(no echo). I can only see the output.

Try to reset the terminal by invoking `reset`.

--
Regards,
floyd




Re: [gentoo-user] In search of an truecolor-capable terminal emulator

2017-04-26 Thread Floyd Anderson

On Mi, 26 Apr 04:55:46 +0200
tu...@posteo.de wrote:

I tried xfce4-terminal as suggested by Floyd...and got exactly the
reversed timings. He found xfce4-terminal six times faster than
urxvt and I got the reversed result.

See my previous response for this.

If I could find the culprit on my box I would be happy with sakura
and/or xfve4-terminal.
Where can I start?
What may be the reasons?
Just to clarify, I doesn’t suggest you to install/use xfce4-terminal. 
It was only used as a reference by and for me. But since you could be 
happy with xfce4-terminal, try to find out the reasons by:

 - selecting a bitmap font
 - turn off anti-aliasing
 - turn off fancy visual/graphical stuff
 - decrease the terminal size
for example and look if it hopefully makes any differences so you get a 
basis for your next decision(s). :-)


--
Regards,
floyd




Re: [gentoo-user] In search of an truecolor-capable terminal emulator

2017-04-26 Thread Floyd Anderson

On Mi, 26 Apr 04:38:29 +0200
tu...@posteo.de wrote:

On 04/25 07:38, Floyd Anderson wrote:

On Di, 25 Apr 17:47:22 +0200
tu...@posteo.de wrote:

A few minutes ago I emerged xfce4-terminal and tried the
cat-time-test of yesterday: 29 secondes with xfce-terminal
and 5 seconds with urxvt. H...

You have got the reversed results compared with mine...
Yes, my test (and probably my response to you) was too quick. I’m using 
‘URxvt*skipScroll: false’ here (cannot recall exactly why), which 
defaults to ‘true’ normally. The same time-cat-test with `urxvt -ss` now 
finish within a second instead of 25. Just another example that shows
comparing test results might be misleading, especially across multiple 
computers.



What the heck slows down the output of the terminals on my
Gentoo and only let urxvt shine?
That was one of my first thought when I was noticing the performance 
difference between virtual terminal and terminal emulator(s). I happily 
ended up by using rxvt-unicode after a relative short quest due to its 
low resource requirements (can additionally decreased by using urxvtd), 
extensibility, responsive and so on. And true colour — maybe some day; 
but to be honest, 256 colours is more than enough for a terminal, at 
least for me — even more as long as applications like Mutt, struggles by 
using only a dozen of different colours.


I’m sure the way answering this question will cost quite some time of 
comparisons and/or investigations — too much vectors and special cases, 
too much ‘too much’ for my taste (for a single feature).


One thing (as you can see by my test result above) is the configuration 
itself — one nondescript parameter with a so noticeable impact. Also, 
with different font sizes you’ll get different test results.


Other reasons may be hardware acceleration, the font handling/renderer 
(anti-aliasing, sub-pixel addressing, hinting, colouring, combining 
characters, buffering), graphical features (transparency, background 
image, scroll bar).


And the main question that follows those considerations: Which of the 
terminal appearance/behaviour is well documented and can be controlled 
by the user? This were my next starting point at the quest for a new 
emulator nowadays.



PS: I found XVilka before. That's why I asked for some experiences
of other users :)
Yes, I thought as much because it is one of the top web search results 
by now. I put it in for the case you haven’t recognised it and due to 
the terminal overview and its still ongoing discussion.



--
Regards,
floyd




Re: [gentoo-user] In search of an truecolor-capable terminal emulator

2017-04-25 Thread Floyd Anderson

On Di, 25 Apr 17:47:22 +0200
tu...@posteo.de wrote:

Hi,

currently I am using urxvt as my standard terminal
application, which is FAST and reliable.
But it only emulates 24bit colors if instructed so.
It maps 24bit rgb to 256 color using a fast but not
total correct formula to to do (which is no critism -
its just the way ot is implemented).

I googled qyite a bit to find 24color terminal
emulators and the one, which came closer to
what I want is sakure.
But comparing the speed of sakura with urxvt
(catting a long log file twice while measureing the time
of the second cat) it shows that sakura needs
six times more time than urxvt.

Combining this with the compile sessions, which
are one of the core features of Gentoo ;)))...

What I want is the "fastest" possible (...)
terminal emulator supporting true color (24bit).
I dont need fancy configuring options (two exception:
TABS! and lightweighted) and I dont want KDE stuff (or
any other bloated thing with thousands of dependencies...)
I am simply using openbox.

What are your experiences?

Any hint is heartly welcome! Thanks !

Cheers
Meino

PS: The terminal emulator dont need to be part
of Gentoo necessarily...if it is compilable
by a human being withoyt super powers... ;)

I am using rxvt-unicode also as my main terminal emulator. Its true 
colour emulation bothers me also but just only a little bit.


As a second one, xfce4-terminal runs here from time to time (seldom). A 
quick time/cat test with a gcc-5.4.0 log file (approximately 25 MiB) 
shows surprisingly that xfce4-terminal runs six time faster than 
rxvt-unicode. Maybe one reason is that urxvt looks for URLs and email 
addresses to colourising them.


Maybe you can get a suggestion from [1].


References:
[1] 

--
Regards,
floyd




Re: [gentoo-user] Re: How to set size to windows in Openbox in local config [SOLVED]

2017-04-21 Thread Floyd Anderson

On Fr, 21 Apr 00:12:28 +0200
Miroslav Rovis <miro.ro...@croatiafidelis.hr> wrote:

On 170420-05:57+0200, Floyd Anderson wrote:

On Do, 13 Apr 21:55:29 +0200
Miroslav Rovis <miro.ro...@croatiafidelis.hr> wrote:

...

>
>But I forgot floyd has got a "patch to keep the window position while
>resizing the font" and offered it:
>
>https://marc.info/?l=gentoo-user=149205691530349=2

...


Hi Miroslav,

back from some computer-free holidays,

I hope you had good and restful time!
Yes, thanks, it was like that and I had better stay there because after 
an update yesterday, xorg-server kills my last nerve while I am fighting 
with a "Segmentation fault at address 0x0" server error. :-(



The patch is too unimportant to solve some/all of the above issues
and/or bloating up the urxvt extension script. And additionally,
rxvt-unicode won’t and doesn’t expose all Xlib functions (such as
XGetWindowAttributes) in urxvtperl, the embedded perl interpreter. So it

$ man urxvtperl # but how cryptic!, how long study that will be... I don't
 have all those hours right now...
 I hope I'll find a solution with less time to invest,
 else...
Yes it needs investigation. That was the reason why I does not realise 
firstly, that the changes to my local font-size extension script were 
made by me (as I mentioned in an earlier reply). I could not believe 
that I spend my time to those cryptic stuff (have not used Git for this 
in the past, which had simply shown myself as the author). 


My used and tested urxvt-font-size related Xresource settings:
URxvt.font-size.keepwin:true
URxvt.font-size.step:   4
URxvt.keysym.C-0xffad:  font-size:decrease
URxvt.keysym.C-0xffab:  font-size:increase
URxvt.keysym.C-0xffb0:  font-size:reset

Since I use the default keysyms for font-size:{decrease,increase,reset}
in Vim, I changed those defaults to C-KP_Substract (C-0xffad), C-KP_Add
(C-0xffab), C-KP_0 (C-0xffb0) like in Firefox and others.

I don't get what these are. Not at this time. And this is my second
reading of your email...

NOTE (at proofreading): Is that 'C-KP_Substract' should read
'C-KP_Subtract'?, the "-" on the keypad? So 'C-KP_Subtract' means
Ctrl-?, and C-KP_0 means Ctrl-0?
Sorry, I was not quite verbose about this. Yes your are right, the "C" 
means control key and "KP" stands for keypad. Normally you can use those 
identifier directly in the keysym definitions but those for keypad keys 
does not work for me, so I used their hexadecimal keycode equivalents. 
You can find the keycodes with the command `xev` or by looking in the 
header file "/usr/include/X11/keysymdef.h" near line 202.



I also compared what I have currently installed:

# eix urxvt-font-size
[I] x11-misc/urxvt-font-size
Available versions:  1.1 **
Installed versions:  1.1(13:07:28 22/02/15)
Homepage:https://github.com/majutsushi/urxvt-font-size/
Description: Perl extension for rxvt-unicode to change the font 
size on the fly

#

# qlist urxvt-font-size
/usr/lib64/urxvt/perl/font-size
/usr/share/doc/urxvt-font-size-1.1/README.markdown.bz2
#

[I compared what I have currently installed] with the  version, which
is the version that, IIUC, I plan to hopefully try and patch with your
patch...
Cannot figure out what IIUC is but anyway. Patching will fail with the 
v1.1-tag commit (two years, four month old).


I would recommend not to hassle portage with those tiny installs (at 
least on a single user machine). Simply tell rxvt-unicode where it can 
find your additionally extension script(s) by using for instance:

   URxvt.perl-lib: $HOME/.config/urxvt/ext

in your Xresource file for rxvt-unicode. Have a look at urxvt(1) manual 
for more alternatives. I see only one disadvantage, you have to apply 
the patch manually but only once if you are using a local Git repo (as 
you do and mentioned in your reply).



[2] 
<https://archives.gentoo.org/gentoo-user/message/a4d58e993934aa4a273998eda030d115>

The link that Savchenko gave in that email is puzzling me:
http://rcr.io/words/dynamic-xterm-colors.html
I want to try and figure out that bash script there... It's very
educational.

I need more time to study this. […]
Not necessary if you rarely use it (in my opinion) but always good to 
known that it is there when you need it. Becomes probably very handy 
e.g. for terminal prompt designs, window titling or:

 - quickly change/test fonts, where  is one of {710..713} which
   stands for regular, bold, italic, bold-italic and  something
   like 9x15, fixed or xft:termminus-12 and so on.
   $ printf '\e]%s;%s\007' "" ""
 - query RGB colour values, where  is one of {0..255}
   $ echo -ne "\033]4;;?\007"
 - window sizing/positioning (e.g. 1144x954+0+0 bound to Ctrl+F11) in
   urxvt. Did yo

Re: [gentoo-user] Re: How to set size to windows in Openbox in local config [SOLVED]

2017-04-19 Thread Floyd Anderson

On Do, 13 Apr 21:55:29 +0200
Miroslav Rovis  wrote:

ERRATA: I wrote...

On 170413-21:19+0200, Miroslav Rovis wrote:
...

[... I wrote]:

Only ERRATA may follow in the topic, as far as I am concerned.


But I forgot floyd has got a "patch to keep the window position while
resizing the font" and offered it:

https://marc.info/?l=gentoo-user=149205691530349=2

And I, in my reply, accepted to try and apply it.

So, it depends on him if this topic is over or not.

It's very related, so probably best not to do any new subject for it.


Hi Miroslav,

back from some computer-free holidays, I haven’t forgotten that I owe 
you a patch. Study my attached approach and if you like, apply the patch 
at your own risk (it should be clean applicable to the currently latest 
upstream commit [1]).


If you have any questions or ideas, get back to me. But keep in mind, 
I’m neither a developer nor a GUI programmer guru.


It has some limits and/or doesn’t resolve certain issues:
 - the patch assumes ‘NorthWest’ as the reference point for the window 
   gravity.
 - if terminal background is colourised via escape sequences (as Andrew 
   mentioned in [2]), you may notice that a borderless window colourise 
   only full cells (of rows/columns), not the gap between a terminal 
   cell end and the window edge. Framed windows seems not to be

   affected by this behaviour.
 - window edges flutters/flickers while resizing fonts (independently 
   from step-size and also when using escape sequences for resizing)
 - toggling a window between normal -> fullscreen/maximised state -> 
   and back, you may notice that the window size has changed. I don’t 
   know the reason for this issue (which occurs independently from the 
   urxvt-font-size extension and my patch).
 - different window manager (WM) probably produces different 
   behaviours. Think about a WM that try to imitate a tiling window 
   manager by automatic resizing/positioning within a snapping area 
   near the desktop edges.
 - patch is tested to my moderate needs but not fully with all kinds of 
   fonts, WMs, multi monitor environment, etc.

 - ...

The patch is too unimportant to solve some/all of the above issues 
and/or bloating up the urxvt extension script. And additionally, 
rxvt-unicode won’t and doesn’t expose all Xlib functions (such as 
XGetWindowAttributes) in urxvtperl, the embedded perl interpreter. So it 
will be tricky sometimes, to solve a specific behaviour.


My used and tested urxvt-font-size related Xresource settings:
URxvt.font-size.keepwin:true
URxvt.font-size.step:   4
URxvt.keysym.C-0xffad:  font-size:decrease
URxvt.keysym.C-0xffab:  font-size:increase
URxvt.keysym.C-0xffb0:  font-size:reset

Since I use the default keysyms for font-size:{decrease,increase,reset} 
in Vim, I changed those defaults to C-KP_Substract (C-0xffad), C-KP_Add 
(C-0xffab), C-KP_0 (C-0xffb0) like in Firefox and others.



References:
[1] 

[2] 


--
Regards,
floyd

diff --git a/font-size b/font-size
index c16924c..8d3417e 100755
--- a/font-size
+++ b/font-size
@@ -105,6 +105,14 @@ size change sequence would be for example 8->12->16->20 instead of
 available in specific sizes, though, and odd sizes are often not
 available, resulting in an effective step size of 2 instead of 1
 in that case.
+
+
+Controls whether or not to try to keep the window position/size while resizing
+the font size (assumes ‘NorthWest’ as reference point for the window gravity):
+
+  URxvt.font-size.keepwin: true
+
+Defaults to false if resource is omitted or cannot be treated as a boolean.
 =cut
 
 use strict;
@@ -122,6 +130,12 @@ sub on_start
 my ($self) = @_;
 
 $self->{step} = $self->x_resource("%.step") || 1;
+$self->{keepwin} = $self->x_resource_boolean("%.keepwin") || 0;
+if ($self->{keepwin}) {
+($self->{x}, $self->{y}, $self->{cw}, $self->{dx}, $self->{dy}) = (
+$self->XTranslateCoordinates($self->parent, $self->DefaultRootWindow, 0, 0),
+$self->width(), $self->height());
+}
 
 foreach my $type (qw(font boldFont italicFont boldItalicFont)) {
 $self->{$type} = $self->x_resource($type) || "undef";
@@ -203,11 +217,13 @@ sub fonts_change_size
 push @newfonts, $newfont;
 }
 my $newres = join(",", @newfonts);
+window_keep($term, 1);
 font_apply_new($term, $newres, "font", $save);
 
 handle_type($term, "boldFont",   $delta, $newbasedelta, $newbasesize, $save);
 handle_type($term, "italicFont", $delta, $newbasedelta, $newbasesize, $save);
 handle_type($term, "boldItalicFont", $delta, $newbasedelta, $newbasesize, $save);
+window_keep($term, 2);
 }
 
 if ($save > 

Re: [gentoo-user] vim colorschemes: A question regarding terminal capabilities

2017-04-10 Thread Floyd Anderson

On Mo, 10 Apr 05:00:26 +
tu...@posteo.de wrote:

I am playing around with colorschemes in vim […]

Wrong mailing list?


It seems impossible to change the fore-/background color of the cursor itself.

What have you tried by yourself so far to come to this conclusion at the
end? Or is it not much more as a guess while you are waiting for a
solution from the list?

There are so many resources out there. Have you ever searched for it?


[…] the terminal is able to display 256 colors
From which terminal emulator are you talking about? And of course, are

you using ‘app-editors/vim’, ‘app-editors/vim-core’, USE=minimal or even
‘app-editors/neovim’?


Is there something special terminal-wise when setting cursor colors ?

You have to deal with terminal escape sequences which may cause
headaches. Vim usually inherits its terminal options from the terminfo
file (man 5 terminfo) specified by the ${TERM} variable or at command
line as argument for the parameter ‘-T’.

Within Vim’s command line invoke (without the quotes) ‘:set termcap’ to
see what is currently set in your Vim session. To get an idea what those
output means, read the help at ‘:help terminal-options’. But it may be
worth to check first Vim is able to set cursor shape/colour related 
stuff by running:

   vim --version
or within Vim any of:
   :version
   :echo has('cursorshape')
and look it is compiled with the '+cursorshape' feature.

When it is, you can set the related terminal options (‘t_SI’,
‘t_SR’, ‘t_EI’). Read — once more — the most obviously resource:
   :help termcap-cursor-shape
   :help termcap-cursor-color
for an example. As an additional hint, you can set both (shape and
colour) by concatenating terminal escape sequences. For instance:
   let _SI = "\]12;purple\x7\[5 q"
sets a purple blinking IBeam cursor for insert mode (or globally, if you
are not reset the cursor style for the other modes).

Because you aren’t disclose your terminal emulator, I have to stop here.

The mentioned headaches maybe starts when:
 • you are expect a ready to use solution and/or unwilling to
   understand the basics of terminal escape sequences
 • you only want to style the cursor in Vim (not those in the terminal)
 • you are using different shapes/colours for different modes
 • you are using different terminal emulators (local/remote)
 • you are running terminal multiplexer > terminal emulator > Vim
 • your system lacks the required terminfo file
 • annoying side effects appears (e.g. with alternate screen)
 • …

But there are solutions for those issues (except for point one).


Why does it fail?

Why *what* fails? How can you expect an appropriate answer with so
sparsely informations from your side?

--
Regards,
floyd





Re: [gentoo-user] New Installation

2017-02-05 Thread Floyd Anderson

Hi Dale,

lets have a break. I lose the thread and driving nearer the ditch than 
the track. I think the main things were said. All following would only 
drift away.


Sorry for the noise.

--
floyd





Re: [gentoo-user] New Installation

2017-02-05 Thread Floyd Anderson

On Sun, 05 Feb 12:00:15 -0500
Rich Freeman <ri...@gentoo.org> wrote:

On Sun, Feb 5, 2017 at 11:16 AM, Floyd Anderson <f...@xmail.net> wrote:


That’s why Gentoo is often regarded as the freedom of choice.


This includes the freedom to shoot yourself in the foot.


He, nice allegory. Oh, and yes that’s what I like — you can but it 
doesn’t have to be inevitable done. Sometimes it’s necessary to 
hopefully learn something. Kids may believing you only *after* they 
touched the hot plate. Long ago, I couldn’t believe a Linux is able to 
destroy itself — until a mentor shows me.



I suggest that new users consider going with the defaults except when
they have a reason not to.

Sure, we can all pass around our make.conf files, and people can just
blindly copy what we're using.  In a sense this is also stick with the
"defaults" - just somebody else's choice of defaults.


That remember me when I start using SciTE with Lua, Vim and Mutt. I saw 
myself in front of tons of documentations and user experiences and I was 
unable to wait for results. Copying just any stuff from a public .config 
file repo without any clue what those things really do isn’t meaningful. 
Someone would still stay at the point as before and when things gets 
broken, frustration arise.



The difference is that if you don't do this then you're getting the
defaults the maintainer thought best, and the settings that get the
widest extent of testing.  If you run into a problem, you're probably
close to the upstream configuration, which means both upstream and the
maintainer are probably going to be willing to lend you a hand.
You're also closer to the settings used by other distros, which means
their own documentation will help you.

Stick with the profile defaults to start.  By all means tweak
something if you have a reason to, but make these conscious informed
decisions.  Keep things simple.


This was my intention (as the result of earlier experiences) when Gentoo 
comes into my life over two years ago. The only thing that bothers me 
down to the present day, I cannot get hardware acceleration to work with 
my GPU (Radeon HD 7870 XT). I’ve tested a lot USE flags, switched from 
stable to bleeding edge and back. Now run on testing (mixed with a 
stable toolchain and able to get free from a broken system by an 
intermediate chroot) and hoping mesa from Git, Open Source AMDGPU and 
kernel >=4.9 have pity with me someday.



When you start out with a very complex USE configuration on a distro
you're new to, then you're going to struggle a lot to deal with the
resulting issues.

In terms of profiles themselves, hardened isn't the friendliest place
to start.  It tends to get used in server environments, and I suspect
very few run a desktop environment in a hardened environment.  I'd
suggest chatting with others who run hardened to understand its
limitations.  I've been running Gentoo for a very long time now and I
wouldn't expect to do a hardened desktop install and get through it
without a bit of troubleshooting.


Well, this hardened stuff looks interesting to me — at least when I 
protect my browser profile — but I can wait opening those magic box.



Thank you for your suggestions and the kindly response. It should not be 
locked up in a subthread. ;-)


--
Best regards,
Floyd Anderson





Re: [gentoo-user] New Installation

2017-02-05 Thread Floyd Anderson

On Sun, 05 Feb 05:05:56 -0600
Dale <rdalek1...@gmail.com> wrote:
The point of my post was not for a specific flag.  I just picked a flag 
that has been around for a long time and pretty much everyone 
recognizes what it is for.


[…]

I might add, there are flags that we can't change.  Those are set by
upstream or the devs.  My post wasn't about that either.  It was all
about managing options that we can change..


I think there is an unfortunate misunderstanding and I may have to be 
more clear. I also just picked the threads-flag example as what it is, 
an example — not as a specific advise. My intention was to demonstrate 
my thoughts when I read the post from the dev list.


Basically I handle my USE flags similar as you do and had described in 
your former post. What I always want goes to make.conf (trying to keep 
it according to less is more) and specific flags lives in package.use.


When I read the post from Rich, I remember that I have the mentioned 
‘threads’ flag globally set. Some time ago I put it in, it works and 
nearly no thoughts were wasted since then. I didn’t care about:

 • pulling in heavyweight dependencies
 • package maintainers set a flag off by default for stability
 • ...

in that moment. That was what I mean with rethinking might be worth 
before *I* set a flag globally. Hope it’s clearer now ;-)


You have choices on how to do things, pick the one that works and does 
what you need.  It's a strong point for Gentoo.  I think USE flags are 
one of the biggest features of Gentoo. It's not like we have a fancy 
installer that can read our minds.  ROFL


It is interesting to see and read how others do this tho.  It's amazing
sometimes how many different ways the same thing can be managed and
still work.  I'm not sure any other distro can do that, not that I used
others in a long time.


That’s why Gentoo is often regarded as the freedom of choice. I love it 
to think for myself and not only consume what other OSes provides or not 
provides. Therefore (besides the USE flag feature) and because almost 
everything we feed our machines with, is plain text, we have the ability 
for creating ebuilds, overlays, patches. That’s so exciting even it may 
be hard sometimes, to learn all those stuff and stay up to date with it.


--
Best regards,
Floyd Anderson





Re: [gentoo-user] New Installation

2017-02-05 Thread Floyd Anderson

On Sun, 05 Feb 01:44:30 -0600
Dale <rdalek1...@gmail.com> wrote:

the...@sys-concept.com wrote:


I change in make.conf to:
USE="bindist"

and I was able to install basic system correctly, network is working and I can 
proceed with castomazation but
my next question: What is the correct way to configure "USE=" in make.conf?

When I use a below: (copied from my other systems):

USE="-qt4 -kde -gnome -arts -berkdb -acl X gtk alsa cups apache2 ssl foomaticdb 
truetype kpathsea ppds mysql udev tiff png usb scanner gimp gimpprint cgi fam nptl type1 
opengl tetexspell consolkit dbus pam policykit jpeg lock session startup-notification 
thunar cleartype corefonts -systemd -DOPENSSL_NO_HEARTBEATS abi_x86_32"

PS. I think "dbus" is no longer used, isn't it?
 <<< SNIP >>>
--
Thelma





Ask anyone, I'm different on the way I do USE flags, or I feel that
way.  If I have a flag that I want enabled/disabled on basically
everything that uses that flag, it goes in make.conf.  If I have a USE
flag that I may need for just a few packages, or a single package, I put
it in package.use.  As a example.  The kde USE flag.  Since I run mostly
KDE and want any packages I build to work with KDE, it goes in
make.conf.  To go with the other direction on this.  qt4 and qt5.  Some
packages work or look better with one or the other.  For those
exceptions, I use package.use to set those.  Since emerge reads
package.use last, those setting apply.

Basically, make.conf is the rule for USE flags.  Package.use is for
exceptions to that rule.

As usual, do what makes the most sense to you.  I post this just in case
this way may make sense, not that much of anything I do makes sense to
anyone else.  ;-)

Dale

:-)  :-)



Recently I read an interesting post [1] (especially the middle paragraph 
about the USE-flag ‘threads’ example). It let me rethink how I handle 
USE (which is even similar your way) and it might be worth to consider 
why a package maintainer defaults a flag on/off. 


[1] 
<https://archives.gentoo.org/gentoo-dev/message/a59f08ffe21bcf984ee82fd7125e0bf2>

--
Best regards,
Floyd Anderson





Re: [gentoo-user] net-misc/asterisk-1.8.28.2

2017-02-04 Thread Floyd Anderson

On Sat, 04 Feb 18:18:02 -0700
the...@sys-concept.com wrote:

I've tried to keep the asterisk-1.8.28.2 but the ebuild from "atic"
wouldn't even manifest. There was some security patch missing preventing
it from making manifest.
So more work for me upgrading to 11-ver.


Okay, I see your point.

Maybe FEATURES="buildpkg" and “emerge --usepkgonly ATOM” would help you 
in the future but not for packages living five years in the past because 
running eclean-pkg from time to time is recommended.


--
Best regards,
Floyd Anderson





Re: [gentoo-user] net-misc/asterisk-1.8.28.2

2017-02-04 Thread Floyd Anderson

On Sat, 04 Feb 09:00:55 -0500
Fernando Rodriguez <cyklon...@gmail.com> wrote:
He needs to rebuild the package to get rid of the old library so he 
needs the old ebuild and mask newer versions.


I assumed that the OP just wanted to hold the status quo of that package 
for a while and no kind of rebuilds. But otherwise...


If you *must* keep this build try adding --exclude='net-misc/asterisk' 
to the emerge @preserved-rebuild command and […]


...it’s worth in conjunction with @preserved-rebuild in that case.

--
Best regards,
Floyd Anderson





Re: [gentoo-user] net-misc/asterisk-1.8.28.2

2017-02-04 Thread Floyd Anderson

On Sat, 04 Feb 10:28:00 +
Neil Bothwick <n...@digimed.co.uk> wrote:

On Sat, 4 Feb 2017 07:12:01 +0100, Floyd Anderson wrote:


>I have an old version of asterisk-1.8.28.2 (it is no longer in
>portage). I want to keep this version, temporarily (till I have a
>chance to test a new one 11.25.1-ver.

If you have the asterisk-ebuild (and all related files) still
available, you could try to migrate it to a local overlay [1][2].
Otherwise, tell Portage you are handle this package yourself by adding
it to: /etc/portage/profile/package.provided


You should also add all newer versions to package.mask.

Yes, for sure. I forgot about that. Thanks to complete my suggestion. 
Something like: >net-misc/asterisk-1.8.28.2 in package.mask helps.


--
Best regards,
Floyd Anderson




Re: [gentoo-user] net-misc/asterisk-1.8.28.2

2017-02-03 Thread Floyd Anderson

On Fri, 03 Feb 18:34:22 -0700
the...@sys-concept.com wrote:

I have an old version of asterisk-1.8.28.2 (it is no longer in portage).
I want to keep this version, temporarily (till I have a chance to test a
new one 11.25.1-ver.


If you have the asterisk-ebuild (and all related files) still available, 
you could try to migrate it to a local overlay [1][2]. Otherwise, tell 
Portage you are handle this package yourself by adding it to:

   /etc/portage/profile/package.provided

This file can be used to hold a specific version — even the package is 
no longer in tree. But notice, this isn’t the whole truth as mentioned 
in [3]. Portage will not update listed packages unless another package 
requires a newer version of it.


Give it a try and invoke:
   emerge --pretend --verbose net-misc/asterisk
to ensure if it’ll work as expected.

References:
  [1] 
<https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/CustomTree#Defining_a_custom_repository>
  [2] <https://wiki.gentoo.org/wiki/Overlay/Local_overlay>
  [3] <https://wiki.gentoo.org/wiki//etc/portage/profile/package.provided>

--
Best regards,
Floyd Anderson





Re: [gentoo-user] What Firefox (what browser) for Online-Banking?

2017-01-07 Thread Floyd Anderson

On Sat, 07 Jan 16:51:41 +0100
meino.cra...@gmx.de wrote:

Hi,

what Firefox-Version/what browser is the most secure one for Online-Banking?


Who is able to tell about that? I think nobody which has evaluated this 
for every version (if some really has) is reading this list.


I would recommended at least a separate well configured browser profile 
for the banking purpose and to strip off all unnecessary connections.


The latter can be achieved by using a Proxy Auto Config (PAC) file [1]. 
Have a look at [2] for more background information on this — even when 
it’s quite old.


For Mozilla Firefox create a file (e.g. “proxy.pac”) with following 
content for example (don’t copy ’n paste, the spaces aren’t such):


function FindProxyForURL(url, host) {
// Proxy bypass logic
if (
   dnsDomainIs(host, '.your-bank.com')
//  || dnsDomainIs(host, 'addons.cdn.mozilla.net')
//  || dnsDomainIs(host, 'addons.mozilla.org')
) { return 'DIRECT'; }

// Redirect all other requests through localhost which should always 
// fail due no listen server.
return 'PROXY 127.0.0.1:65535';
}

and place it in the root of your browser profile, apply it due property 
“network.proxy.autoconfig_url” or via GUI by using the “file:” protocol 
in about:preferences#advanced > Network > Connection Settings.


Before you ask, I’ve never tried to use a relative path definition which 
may be important on an USB device nor can say if it’ll also work.


Notice the comment lines for the mozilla domains. Comment those out if 
you really need to use add-ons in a banking profile and want to have a 
more comfortable way to update them. But you know, comfort/add-ons and 
security is often like fire and water nowadays.


To test that only your banking connection is possible invoke:

/usr/bin/firefox --private-window "https://www.example.com/" --no-remote -P 
banking.profile


[1] <https://calomel.org/proxy_auto_config.html>
[2] 
<https://web.archive.org/web/20040821144727/http://developer.netscape.com/docs/manuals/proxy/adminux/>


--
Best regards,
Floyd Anderson





Re: [gentoo-user] Retrieving bounced list messages

2017-01-04 Thread Floyd Anderson


Thanks for both responses and your advise. I will investigate your hints 
further to see what is possible with my skills.


On Wed, 04 Jan 10:56:29 +0100
Hogren <hog...@iiiha.com> wrote:


For me, this is the raw mail [1]. When you are on a message, click on
"Download message RAW".

For your specified example URL in [1] yes, it looks like a raw message 
to me too. But it seems to be only the case because the mentioned 
message is signed and the signature wrapped some header fields which 
make it looks like raw.


If I click “Download message RAW” on an other but unsigned message, it 
always shows me the pure text of that message (even if I use “Save Link 
As...” in a browser or curl to download it).




Use a Bash, Python, C++, or other language with curl/libcurl to filter
by date.
It was my bad because I expected there’s a “ready to use” solution which 
was simply overlooked by me. ;-)


I think I have to be more clear about why headers are important to me. 
Although the main important thing is of course the information a mailing 
list discussion provides (pure text). But now comes the second one into 
play. How to handle all those interesting stuff offline?


My idea is download it, feed Mutt (my MUA) with it and view it sorted by 
threads/dates (here is the header fields part) and maybe in the future, 
crawling/indexing it with Notmuch.


I don’t want to have fly around a couple of message archives downloaded 
as plain text (without headers and therefore lost the relations to each 
other) on my storage organised in more or less bad named folder 
structures. This will become sooner or later the same destiny as many 
browser bookmark collections I saw (not only mine) — unmaintained and 
confusing — especially with silly bookmark managers.


--
Best regards,
Floyd Anderson





Re: [gentoo-user] Retrieving bounced list messages

2017-01-03 Thread Floyd Anderson

On Tue, 03 Jan 20:12:05 -0500
Philip Webb <purs...@ca.inter.net> wrote:

170104 Floyd Anderson wrote:

Is it possible — and when how — to retrieve bounced mailing list messages,
e.g. from <gentoo-annou...@lists.gentoo.org> or this list) ?


You can recover everything from the Gentoo lists' archive :
 http://archives.gentoo.org/ .


Thanks for your response. I’ve already found [1] but it’s hard (even 
impossible) to figure out the bounced message(s) from there. Notice, the 
bouncing messages information from mailing list manager (mlmmj) looks 
like:



Some messages to you could not be delivered. If you're seeing this
message it means things are back to normal, and it′ merely for your
information.

Here is the list of the bounced messages:
- 174956
- 174958


I see no change to find any message on [1] by its message number. 
Although it were possible, my goal is to have the messages local stored 
and searchable while being offline. Also [2] doesn’t help here even 
though it offers a message download link — it’s not the raw email (with 
header fields).


Anyway, you push me in the right direction. After digging somewhat 
deeper I found the ability to send a message request to e.g. 
<gentoo-user+ge...@lists.gentoo.org> (where N is the message number).


Now there is still one thing. How to get messages (better whole threads) 
for offline usage from a period before the list subscription when their 
message numbers is unknown?



[1] <https://archives.gentoo.org/gentoo-user/>
[2] <https://marc.info/?l=gentoo-user=148349234522442=2>

--
Best regards,
Floyd Anderson





[gentoo-user] Retrieving bounced list messages

2017-01-03 Thread Floyd Anderson


Hello list,

is it possible — and when how — to request/retrieve bounced mailing list 
messages (e.g. from <gentoo-annou...@lists.gentoo.org> or this list)?


If there is an approach, can it be also applied to get certain 
interesting threads from dates _before_ one has been subscribed to that 
Gentoo list?


I wish to have a complete mailing list and be able to locally store some 
informative user experience from the past which may be meaningful to me 
in the future. Thanks and…


--
Best regards,
Floyd Anderson