Re: [gentoo-user] Forcing kmail to always default to NON-html email

2014-09-13 Thread Fernando Rodriguez
On Saturday 13 September 2014 9:54:34 AM J. Roeleveld wrote:
 On 13 September 2014 09:49:19 CEST, Mick michaelkintz...@gmail.com wrote:
 On Saturday 13 Sep 2014 07:56:50 J. Roeleveld wrote:
  Hi all,
  
  I have not been able to find a setting anywhere in KMail to force it
 to
  always default to plain-text emails when creating a new email or
 replying.
  
  The few times I actually need html functionality, I prefer to just
 enable
  it for that single email. Unfortunately, kmail tends to remember the
 last
  setting.
  
  Is there any setting I have missed? Or is this something I need to
 take up
  with KDE upstream?
 
 As far as I know it will remember the previous selection under Options
 in your 
 message editor, for all of the settings therein.  It would be nice if
 these 
 could be set and honoured as a default preference under say, 
 Settings/Configure Kmail/Composer, then overriden on a message by
 message 
 basis using the Options in each message.
 
 My point exactly.
 I'll try to log a feature request with KDE upstream this weekend if noone 
comes with a working solution before then.
 
 --
 Joost
 


For me the composer does remember the last setting, however unless you use any 
of the formatting options it sends the message as plain text.

For replying there's the option under Composer  General to Reply or forward 
using HTML if present. If I uncheck that it always quotes the original 
message using plain-text so unless I use formatting it gets sent as text.

Am I missing something?



Re: [gentoo-user] Forcing kmail to always default to NON-html email

2014-09-14 Thread Fernando Rodriguez
It remembers the setting but even when it is turned on it only sends HTML if 
you use
Rich Text formatting on the email, so you enable it by actually using rich 
text.

At least that's how it works for me and I keep it on all the time.

Maybe you're doing something that uses rich text without noticing, I think 
there's an option
to parse smileys (I can't check as I'm not on Kmail now) so if you got that 
enabled

and type a smiley it turns HTML on?

-Original Message- 
From: J. Roeleveld

Sent: Sunday, September 14, 2014 3:29 PM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Forcing kmail to always default to NON-html email


On Saturday, September 13, 2014 05:19:17 PM Fernando Rodriguez wrote:

On Saturday 13 September 2014 9:54:34 AM J. Roeleveld wrote:
 On 13 September 2014 09:49:19 CEST, Mick michaelkintz...@gmail.com

wrote:

 On Saturday 13 Sep 2014 07:56:50 J. Roeleveld wrote:
  Hi all,
 
  I have not been able to find a setting anywhere in KMail to force it
 
 to
 
  always default to plain-text emails when creating a new email or
 
 replying.
 
  The few times I actually need html functionality, I prefer to just
 
 enable
 
  it for that single email. Unfortunately, kmail tends to remember the
 
 last
 
  setting.
 
  Is there any setting I have missed? Or is this something I need to
 
 take up
 
  with KDE upstream?
 
 As far as I know it will remember the previous selection under Options
 in your
 message editor, for all of the settings therein.  It would be nice if
 these
 could be set and honoured as a default preference under say,
 Settings/Configure Kmail/Composer, then overriden on a message by
 message
 basis using the Options in each message.

 My point exactly.
 I'll try to log a feature request with KDE upstream this weekend if 
 noone


comes with a working solution before then.

 --
 Joost

For me the composer does remember the last setting, however unless you use
any of the formatting options it sends the message as plain text.

For replying there's the option under Composer  General to Reply or
forward using HTML if present. If I uncheck that it always quotes the
original message using plain-text so unless I use formatting it gets sent
as text.

Am I missing something?


I'm afraid yes, as that setting has been unchecked since day 1.

There are times I actually need to send HTML emails. To do that, I need to
press the Rich Text button when creating the email (in the compose email
window).

That setting is then remembered the next time I send a new message or want 
to

reply to an email.
Usually I do remember to switch it off, but not always, as is evident when I
accidentally send an HTML email. I need an option in KMail where the Rich
Text button is off by default and requires enabling specifically.

--
Joost




Re: [gentoo-user] Forcing kmail to always default to NON-html email

2014-09-15 Thread Fernando Rodriguez
On Monday 15 September 2014 8:03:50 AM J. Roeleveld wrote:
 Please do NOT top-post.
 
 On Sunday, September 14, 2014 05:27:22 PM Fernando Rodriguez wrote:
  It remembers the setting but even when it is turned on it only sends HTML 
if
  you use Rich Text formatting on the email, so you enable it by actually
  using rich text.
  At least that's how it works for me and I keep it on all the time.
 
 Do you?
 Can you send a screenshot of the top part of your komposer window showing 
all 

Ok. The attachment shows the settings I'm using to send this message.

Re: [gentoo-user] Re: Noob WiFi question (yes-or-no answer will suffice)

2014-10-03 Thread Fernando Rodriguez
On Friday 03 October 2014 7:21:58 AM walt wrote:
 On 10/02/2014 09:39 PM, J. Roeleveld wrote:
  
  On Thursday, October 02, 2014 10:24:51 PM Alec Ten Harmsel wrote:
  On 10/02/2014 10:05 PM, walt wrote:
  I did some googling and enabled the appropriate kernel drivers, then
  rebooted and now the output from ifconfig includes this interface:
 
  wlan0: flags=4099UP,BROADCAST,MULTICAST  mtu 1500
 
  ether b8:a3:86:99:a8:d8  txqueuelen 1000  (Ethernet)
  RX packets 0  bytes 0 (0.0 B)
  RX errors 0  dropped 0  overruns 0  frame 0
  TX packets 0  bytes 0 (0.0 B)
  TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
  My yes-or-no question:  does the appearance of wlan0 imply that
  my new kernel drivers are the right ones for this particular D-Link
  WiFi adapter?
 
  It's certainly a great sign, but it may or may not be enough. I'm by no
  means an expert, but I believe I have to install some extra firmware
  (b43-firmware) to use on my laptop as it's not in the kernel (unless I'm
  clueless with kernel config). Without b43-firmware, the interface shows
  up and is recognized, but can't be used iirc.
  
  In my experience, when it shows in ifconfig, it is loaded.
  You might want to check the dmesg output to see if it is missing firmware 
  somewhere.
  Did you try dhcpcd wlan0 to see if it gets an IP-address?
 
 That doesn't work (yet).  An error message said that 
/etc/wpa_supplicant.conf
 was missing, so I copied this example from a man page:
 
 #cat /etc/wpa_supplicant.conf 
 ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
 
 network={
   ssid=myhomewireless
   scan_ssid=1
   key_mgmt=WPA-PSK
   psk=mypsk
 }
 
 #dhcpcd wlan0
 dhcpcd[1415]: version 6.4.7 starting
 dhcpcd[1415]: wlan0: adding address fe80::f45c:642e:a392:f47c
 dhcpcd[1415]: if_addaddress6: Permission denied
 dhcpcd[1423]: wlan0: starting wpa_supplicant
 dhcpcd[1415]: wlan0: waiting for carrier
 dhcpcd[1415]: timed out
 dhcpcd[1415]: allowing 8 seconds for IPv4LL timeout
 dhcpcd[1415]: timed out
 dhcpcd[1415]: exited
 
 NetworkManager gets wlan0 working normally, but the problem is the
 network doesn't come up until I log in and use the NetworkManager
 panel applet to enter the psk manually.  Ugh.
 
 So, the hardware works but I need to configure the network properly.
 Anyone have an idea how I can get the connection working automatically
 during boot?
 
 Thanks.
 
 BTW, this is ifconfig after NetworkManager brings wlan0 up:
 
 wlan0: flags=4163UP,BROADCAST,RUNNING,MULTICAST  mtu 1500
 inet 192.168.1.75  netmask 255.255.255.0  broadcast 192.168.1.255
 inet6 fe80::baa3:86ff:fe99:a8d8  prefixlen 64  scopeid 0x20link
 inet6 2602:306:c4d4:cf40:baa3:86ff:fe99:a8d8  prefixlen 128  scopeid 
0x0global
 ether b8:a3:86:99:a8:d8  txqueuelen 1000  (Ethernet)
 RX packets 317  bytes 18320 (17.8 KiB)
 RX errors 0  dropped 0  overruns 0  frame 0
 TX packets 82  bytes 38743 (37.8 KiB)
 TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
 

As for NetworkManager, just log in to your DE as root or run kde-nm-
connection-editor as root (assuming you're using KDE) and setup the 
connection, then check All users may connect to this network on the general 
tab of the connection details. It will then connect at boot whenever the 
network is available (if you enable the NetworkManager service at boot) and it 
also has the advantage that although the PSK is still stored as plain-text 
only root has access to it. That's specially useful if your wifi login is also 
your active directory (or similar) account.

It's also nicer for laptops if you connect to multiple networks. My ISP has 
hotspots all over the city and NM keeps me connected while driving around with 
barely any (noticeable) disconnects. You can also connect to VPNs just a 
easily.


--
Fernando Rodriguez
frodriguez.develo...@outlook.com



Re: [gentoo-user] kernel 3.17.0

2014-10-23 Thread Fernando Rodriguez
On Monday 20 October 2014 10:59:52 AM Michael Mattes wrote:
 And that is because of the additional features? :-D

I've had issues with the additional features too. Some of the USB serial 
devices don't get detected. But this is fixed by disabling the Gentoo specific 
options. I may be wrong but I think they're just configuration patches, not the 
actual kernel sources. I do use the vanilla kernel because at one point I 
needed features from a version that wasn't yet on portage.



 Am 18.10.2014 23:16, schrieb Volker Armin Hemmann:
  Am 18.10.2014 um 06:17 schrieb Philip Webb:
  I just installed Kernel 3.17.0 (gentoo-sources)
   noticed there are specific options for Gentoo right at the 
  beginning.
  Are we really privileged to have our own place in kernel-land
  or have these been added by the Gentoo devs ?
  
  
  and that is why I don't use gentoo-sources.
 




Re: [gentoo-user] kernel 3.17.0

2014-10-29 Thread Fernando Rodriguez
On Friday 24 October 2014 7:22:24 AM Rich Freeman wrote:
 On Thu, Oct 23, 2014 at 11:53 PM, Fernando Rodriguez
 frodriguez.develo...@outlook.com wrote:
  On Monday 20 October 2014 10:59:52 AM Michael Mattes wrote:
  And that is because of the additional features? :-D
 
  I've had issues with the additional features too. Some of the USB serial
  devices don't get detected. But this is fixed by disabling the Gentoo 
specific
  options. I may be wrong but I think they're just configuration patches, not 
the
  actual kernel sources. I do use the vanilla kernel because at one point I
  needed features from a version that wasn't yet on portage.
 
 
 How long ago was this?  It looks like gentoo-sources just tracks the
 stable kernel, and so does vanilla-sources.  If you want mainline you
 need git-sources, assuming you aren't just pulling them from git
 yourself (an option you of-course have with vanilla too).
 
 The config items in the gentoo-sources are really just master switches
 to turn on everything needed by openrc/systemd/etc - they're
 conveniences just like meta-packages in portage.
 
 Now, gentoo-sources DOES include additional patches, and some of them
 are features.  It is of course entirely possible that they could cause
 problems, but I imagine that they're selected fairly carefully.
 
 The general philosophy mixed with some very dated info can be found at:
 http://dev.gentoo.org/~mpagano/genpatches/
 
 --
 Rich
 

Not that long ago maybe 2-3 months, it may be very close behind upstream but 
at that time it was. 

It is the master switch that still causes the USB problem for me. I don't know 
exactly how that works but none of the usb serial drivers in the kernel have 
my device id hardcoded on the devices table, if I add it to some of the 
drivers and recompile they get detected but work only if I use file IO system 
calls to communicate with it. If I just disable the gentoo master switches it 
works out of the box with any application. Everything else that I need works 
fine with the switch disabled.
 
--
Fernando Rodriguez
frodriguez.develo...@outlook.com



Re: [gentoo-user] Iron penguin on usb?

2014-11-25 Thread Fernando Rodriguez
On Wednesday, November 19, 2014 10:15:38 PM James wrote:
 Hello,
 
 Ok the latest release of livedvd is here:
 
 https://www.gentoo.org/news/20140826-livedvd.xml
 
 So my understanding is you can put this on a usb stick. Run
 gentoo live, download packages, set flags, install packages
 and save them to the USB stick?  So it's a portable  gentoo
 workstation on a usb stick? 
 
 https://wiki.gentoo.org/wiki/LiveUSB/HOWTO
 
 
 Are these the best instructions to follow to createa usb bootable
 live gentoo image?  It has to be able to install new packages and 
 save those to the usb stick.
 
 I remember some time back (Neil) mentioned a package I was
 not aware of (and naturally cannot remmber the name of) that
 made creating USB bootable, usable, images on a usb stick
 straightforward?
 
 It even handled grub2, uefi and such?
 
 suggestions?
 
 
 James
 
 
 
 

You can install Gentoo to a USB drive following the installation guide on the 
wiki. I've done it Arch cause it's quicker but it will work with Gentoo as 
well. Just make sure to compile the kernel with everything as modules and 
install all the xorg drivers if you want a desktop.

You can also make a multiboot USB (for most live CDs) like that, Just use 
syslinux as your bootloader, to install a new live CD (in a nutshell):

1. Create a FAT partition big enough to store the Live CD. If the CD has a 
volume label that's less that 8 chars set the label of the new partition to 
the same (some live CDs use it to find the live medium).
2. Mount the ISO image as a loop device and copy all the files to your new 
partition.
3. Install Syslinux on top of Isolinux (usually /isolinux).
4. Create a syslinux.cfg as follows: echo 'include isolinux.cfg'  
/mnt/isolinux/syslinux.cfg (assuming your new partition is mounted on /mnt).
5. Add an entry to your Gentoo's syslinux.cfg to chainload to the new 
partition.

I recently tried this and it worked with Arch, Knoppix, Kali, and Ubuntu CDs 
(for Ubuntu distros create the partition and then use Ubunutu's startup disk 
creator to install it to the new partition, then do step #5).

I create a FAT32 parition for my files and set the type of all other paritions, 
including the ext2 partion to Hidden FAT32 (more modern software doesnt care 
about the type) so when you plug it in on a desktop (even windows) only that 
partition is visible. Just make sure not to mount your it on your /home 
directory cause it'll give you problems.

-- 
Fernando Rodriguez
PGP Key: http://keys.gnupg.net/pks/lookup?op=getsearch=0xF6CE157FF9525C1C

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25

2014-12-01 Thread Fernando Rodriguez
On Monday, December 01, 2014 7:34:35 PM meino.cra...@gmx.de wrote:
 Dale rdalek1...@gmail.com [14-12-01 19:16]:
  meino.cra...@gmx.de wrote:
   Hi,
  
   another sigh from an Arietta adventure...
  
   I sintalled Gentoo on an Arietta G25
   (http://www.acmesystems.it/arietta).
  
   For this I used Robert Nelsons Kernel for armv5tel platforms,
   which boots fine (using at91bootstrap, no U-Boot). 
  
   But: Shutdown (as recommmended by acmesystems shutdown -h -H now)
   REBOOTS the system instead of powering it down.
  
   The hardware is not to blame: Using the original Debian rootfs
   and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the
   powerdown works fine.
  
   Firstly I blamed the kernel...but when using the 3.16.1 kernel
   and the Gentoo rootfs the problem remains.
  
   Then I copied the Gentoo shutdown to the Debian rootfs, boot that
   and tries to shutdown the Debian Linux with it.
   shutdown cries no /dev/initctl adn shutdowns the system only for
   rebooting it.
  
   Ok...seems to be the shutdown executable.
  
   I copied the Debian shutdown to Gentoo and tries that:
   The systems reboots.
  
   Slowly but surely I begin to think, that I dont understand anything at 
all of
   It would be relly good news, 
   that...
  
   man shutdown on the Debian image informs me, that the manpages
   were not installed (embedded system...). Shutdown --version gives
   a short help of the usual options...but nothing more.
  
   What is the difference here? 
   Isn't it, that all shutdown applications only send some instructions
   to the kernel and the kernel is the main actor in bringing the system
   down?
  
   Is there any shutdown guru ;) out there, who is able to shed some
   light into this problem ? :)
  
   Thank you very much in advance for any torch send into my direction!
   Best regards,
   Meino
  
  
  Just shooting in the dark here, try -h and -H but not at the same time? 
  Maybe having both is clashing in some weird way???
  
  Dale
  
  :-)  :-) 
  
 
 Hi Dale,
 
 The Trouble shooting FAQ*)  by acmesystems explicitely say shutdown -h
 -H now (and it works with the Debian rootfs)...but I will try the
 other shutdowns and will see, what happens,
 
 Best regards,
 Meino
 
 
 
 *) http://www.acmesystems.it/qa
 

Looking at the code for sysvinit, all shutdown  does is set some environment 
variables and switch runlevel. The actual shutdown is done by halt and it's 
done through the reboot system call with RB_POWER_OFF.

So, since you said the Gentoo system doesn't work even with Debian's kernel 
and the shutdown, then it must be that either Debian has a different halt, or 
more likely your Gentoo system calls halt with different options. So check your 
inittab on Gentoo and make sure it calls halt in the same way.

-- 
Fernando Rodriguez
frodriguez.develo...@outlook.com
PGP Key: http://keys.gnupg.net/pks/lookup?op=getsearch=0xF6CE157FF9525C1C

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Shutdown, Gentoo and the Arietta.G25

2014-12-01 Thread Fernando Rodriguez
On Monday, December 01, 2014 7:34:35 PM meino.cra...@gmx.de wrote:
 Dale rdalek1...@gmail.com [14-12-01 19:16]:
  meino.cra...@gmx.de wrote:
   Hi,
  
   another sigh from an Arietta adventure...
  
   I sintalled Gentoo on an Arietta G25
   (http://www.acmesystems.it/arietta).
  
   For this I used Robert Nelsons Kernel for armv5tel platforms,
   which boots fine (using at91bootstrap, no U-Boot). 
  
   But: Shutdown (as recommmended by acmesystems shutdown -h -H now)
   REBOOTS the system instead of powering it down.
  
   The hardware is not to blame: Using the original Debian rootfs
   and the kernel 3.16.1 (Robert Nelsons kernel is 3.17.3.) the
   powerdown works fine.
  
   Firstly I blamed the kernel...but when using the 3.16.1 kernel
   and the Gentoo rootfs the problem remains.
  
   Then I copied the Gentoo shutdown to the Debian rootfs, boot that
   and tries to shutdown the Debian Linux with it.
   shutdown cries no /dev/initctl adn shutdowns the system only for
   rebooting it.
  
   Ok...seems to be the shutdown executable.
  
   I copied the Debian shutdown to Gentoo and tries that:
   The systems reboots.
  
   Slowly but surely I begin to think, that I dont understand anything at 
all of
   It would be relly good news, 
   that...
  
   man shutdown on the Debian image informs me, that the manpages
   were not installed (embedded system...). Shutdown --version gives
   a short help of the usual options...but nothing more.
  
   What is the difference here? 
   Isn't it, that all shutdown applications only send some instructions
   to the kernel and the kernel is the main actor in bringing the system
   down?
  
   Is there any shutdown guru ;) out there, who is able to shed some
   light into this problem ? :)
  
   Thank you very much in advance for any torch send into my direction!
   Best regards,
   Meino
  
  
  Just shooting in the dark here, try -h and -H but not at the same time? 
  Maybe having both is clashing in some weird way???
  
  Dale
  
  :-)  :-) 
  
 
 Hi Dale,
 
 The Trouble shooting FAQ*)  by acmesystems explicitely say shutdown -h
 -H now (and it works with the Debian rootfs)...but I will try the
 other shutdowns and will see, what happens,
 
 Best regards,
 Meino
 
 
 
 *) http://www.acmesystems.it/qa
 

Also AFAICT the -H option just set an env variable INIT_HALT and it looks like 
OpenRC ignores it so look at your init scripts on Debian and see what it does 
when it is set.

-- 
Fernando Rodriguez
frodriguez.develo...@outlook.com
PGP Key: http://keys.gnupg.net/pks/lookup?op=getsearch=0xF6CE157FF9525C1C

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] [half OT] WLAN totally beginners question

2014-12-07 Thread Fernando Rodriguez
On Sunday, December 07, 2014 8:10:46 PM meino.cra...@gmx.de wrote:
 Hi,
 
 I am just starting to do the first steps in configuring WLAN.
 The problem is: This topic seems to be rich of terms, which I 
 dont know yet how to evaluate: AP, WAP, WEP, FSK...and dozens more.
 
 Since my use case is very limited I want to configure just that 
 without being urged to achieve my master degree of WLANism after 
 studying everything this topic consists of only to recognize that
 I only need to know about...say...2% of it.
 
 Background: I have two little Linux boards (Arietta G25) with
 a RT5370 Wireless Adapter each.
 
 I want to make both able to communicate with each other beside
 being able to use the ethernet-over-USB connection to enable
 the communication with/to my PC.
 
 The whole thing should be only accessible from the Ariettas. The PC
 will not have an wifi adapter. 

You need to setup one of the boards (the one with the ethernet connection) or 
a PC as an access point, see: http://wiki.gentoo.org/wiki/Hostapd 

The wifi adapter on the boards must support AP mode for this to work, if it 
doesn't then you need to setup a PC as an AP or just get a wireless router.

On the other one just follow the Gentoo installation manual to setup the 
wireless link.

 Would be nice, if both could be configured/setup symmetrically, so
 no client-server relationship or something hierachical like that is
 needed.

I think 802.11n supports something like that but I'm not sure how it works or 
if there's support for it on linux.


-- 
Fernando Rodriguez
PGP Key: http://keys.gnupg.net/pks/lookup?op=getsearch=0xF6CE157FF9525C1C

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Samba shares gone from from Dolphin after update.

2014-12-12 Thread Fernando Rodriguez
Hello,

I just got a kde update and after rebooting my samba shares are gone from 
Dolphin (under Network). Originally I had to enable the samba use flag for kde-
base/kdebase-kioslaves to get this feature and it's still set. Does anyone 
know how to re-enable it?

-- 
Fernando Rodriguez


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: Manipulating ext2 image without root access.

2015-02-11 Thread Fernando Rodriguez
On Monday, February 09, 2015 11:05:08 PM Jonathan Callen wrote:
 On 02/09/2015 10:23 PM, Fernando Rodriguez wrote:
  Hi,
 
  I need a way to manipulate a ext2 HD image as a regular user
  (without mounting it). All I need is to copy a file to the image
  (possibly overwritting an existing file). For FAT it can be done
  with mtools, is there anything like it of ext?
 
 
 
 
 It is possible to do this with debugfs(8), although you probably want
 to run e2fsck(8) on the filesystem after modifying it via debugfs.
 Keeping a backup copy of the image might not be a bad idea as well.
 
 --
 Jonathan Callen
 

Thanks, that was helpful. Do you know how to open a partitioned image with it?
The only way I could get it to work was to split the image into one for each 
partition plus one for the partition table, then use debugfs to copy the files, 
and finally use dd to merge them into one image.

-- 
Fernando Rodriguez


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] syslog-ng: how to read the log files

2015-02-19 Thread Fernando Rodriguez
On Tuesday, February 17, 2015 7:26:05 PM lee wrote:
 Hi,
 
 how do you read the log files when using syslog-ng?
 
 The log file seem to be some sort of binary that doesn't display too
 well in less, and there doesn't seem to be any way to read them.
 
 
 

You can just pipe the output of strings /var/log/messages to less. You can use 
strings(1) for systemd  journal files also.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Manipulating ext2 image without root access.

2015-02-09 Thread Fernando Rodriguez
Hi,

I need a way to manipulate a ext2 HD image as a regular user (without mounting 
it). All I need is to copy a file to the image (possibly overwritting an 
existing file). For FAT it can be done with mtools, is there anything like it 
of ext?


-- 
Fernando Rodriguez


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] getting blocks for system and world update not resolved

2015-03-17 Thread Fernando Rodriguez
On Wednesday, March 18, 2015 5:11:25 AM Tamer Higazi wrote:
 Hi people!
 I have problems getting these blocks at a system update solved...
 
 I executed:
 emerge --backtrack=30 -fuDN @system @world
 
 
 Any ideas ?!
 
 ...
 ...
 ...
 [blocks B  ] perl-core/ExtUtils-Install-1.670.0
 (perl-core/ExtUtils-Install-1.670.0 is blocking
 virtual/perl-ExtUtils-Install-1.670.0)
 [blocks B  ] media-libs/libpostproc (media-libs/libpostproc is
 blocking media-video/ffmpeg-1.2.6-r1)
 [blocks B  ] perl-core/Parse-CPAN-Meta-1.441.400
 (perl-core/Parse-CPAN-Meta-1.441.400 is blocking
 virtual/perl-Parse-CPAN-Meta-1.441.400)
 [blocks B  ] media-video/ffmpeg:0 (media-video/ffmpeg:0 is
 blocking media-video/libav-9.17, media-libs/libpostproc-10.20140517-r1)
 [blocks B  ] perl-core/ExtUtils-Manifest-1.630.0
 (perl-core/ExtUtils-Manifest-1.630.0 is blocking
 virtual/perl-ExtUtils-Manifest-1.630.0-r1)
 [blocks B  ] perl-core/version-0.990.900
 (perl-core/version-0.990.900 is blocking
 virtual/perl-version-0.990.900-r1)
 [blocks B  ] perl-core/CPAN-Meta-YAML-0.12.0
 (perl-core/CPAN-Meta-YAML-0.12.0 is blocking
 virtual/perl-CPAN-Meta-YAML-0.12.0)
 
 

Try perl-cleaner --all and add -libav to your system wide USE flags. That 
usually fixes it for me.

If it doesnt unmerge all the perl-core packages and run emerge -vauDN @world 
again.
-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Is this a bug in firefox-36.0?

2015-03-17 Thread Fernando Rodriguez
On Tuesday, March 17, 2015 4:49:54 PM walt wrote:
 I get a certificate verification error when visiting https://www.att.com
 using firefox-36.0, but not when using chrome-41.0.2272.76.
 
 Anyone else see the same with firefox-36?
 
 BTW, I tried the latest firefox in a Win7 virtual machine and I was
 shocked to see that firefox was updating itself when I was logged in
 as an unprivileged user (i.e. *not* an Administrator).  Are the idiots
 at M$ *really* that stupid?  They've learned nothing, apparently, since
 Win 95 :(
 
 BTW, the Win7 firefox also flagged an error when visiting the web site
 I mentioned above, but the error was displayed so subtly that I would
 have missed it if I hadn't been looking for it specifically.  Very bad
 behavior.
 

Technically the issue is with att's SSL certificate. It may be that they got a 
cheap certificate (meaning it's provides encryption but the CA did not verificy 
that ATT is a legit company) or it may be an issue with the certificate.

It doesn't give any warning for me, it just shows an exclamation next to the 
address and the latest chromium does the same (it shows a triangle) and it 
gives you more info: The identity of this website has been verified by Verizon 
Akamai SureSever CA G14-SHA1 but does not have public audit records.

If you're concerned about it contact ATT and let them know.


-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Is this a bug in firefox-36.0?

2015-03-17 Thread Fernando Rodriguez
On Tuesday, March 17, 2015 4:49:54 PM walt wrote:
 BTW, I tried the latest firefox in a Win7 virtual machine and I was
 shocked to see that firefox was updating itself when I was logged in
 as an unprivileged user (i.e. *not* an Administrator).  Are the idiots
 at M$ *really* that stupid?  They've learned nothing, apparently, since
 Win 95 :(

At the risk of being flamed, the security model of NT operating systems is 
actually far superior to that of Linux with all the disaster kits. The problem 
is that Windows users don't want to be bothered with security settings. When 
the set the default to ask for password on vista they where flooded with 
negative feedback. MS being a commercial company would indeed be stupid not to 
give them what they want.

As a user you could use an unprivileged account and use runas just like sudo 
on Linux but that's too much for Windows users so they took it a step further, 
even if you got admin rights it will ask for permission (optionally password) 
before doing anything privileged, still users blindly click OK on those 
dialogs (like you did with firefox).

If firefox follows MS guidelines it won't let an unpriviliged user (unless an 
user with admin rights explicitly sets an option allowing it, probably during 
install) update it even technically it can cause you allowed it to install.

-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:30:49 AM German wrote:
 On Sun, 22 Mar 2015 03:19:50 -0400
 Fernando Rodriguez frodriguez.develo...@outlook.com wrote:
 
  On Sunday, March 22, 2015 3:06:59 AM German wrote:
   On Sun, 22 Mar 2015 08:49:54 +0200
   Matti Nykyri matti.nyk...@iki.fi wrote:
   
 On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:
 
 
 /sbin/poweroff says Must be a superuser :(

Did you read any of the previous messages? They told you that you have 
to 
  have consolekit and polkit installed and configured for this to work!
   
   Yes, I've read them. However no one explianed how this has to be 
  accomplished with polkit and consolekit.
  
  You don't need those. It sounds like you somehow got both sysvinit and 
systemd 
  installed. The message you're getting is from sysvinit. poweroff should be 
a 
  symlink to systemctl. Try:
  
  systemctl poweroff
  
  You may need to unmerge sysvinit and anything else related to openrc and 
then 
  re-emerge systemd. With systemd it should either shutdown or ask you for 
the 
  root password (if you're not logged in locally or there's other users 
logged 
 
 Thanks, I decide to go with sudo on this one. However when I try to run it, 
it says:
 Username is not in the sudoers file. Where is this file located and how can 
I add the user to it? Thanks
 
  in).
  
 
 
 

See man sudo. But the advice you're getting is for openrc (it will work until 
something else breaks), you need to remove all openrc components and install 
systemd properly.
-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 9:35:46 AM Matti Nykyri wrote:
  On Mar 22, 2015, at 9:31, Fernando Rodriguez 
frodriguez.develo...@outlook.com wrote:
  
  On Sunday, March 22, 2015 3:06:59 AM German wrote:
  On Sun, 22 Mar 2015 08:49:54 +0200
  Matti Nykyri matti.nyk...@iki.fi wrote:
  
  On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:
  
  
  /sbin/poweroff says Must be a superuser :(
  
  Did you read any of the previous messages? They told you that you have 
to
  have consolekit and polkit installed and configured for this to work!
  
  Yes, I've read them. However no one explianed how this has to be
  accomplished with polkit and consolekit.
  
  Actually systemd's poweroff should be on /usr/bin or /bin but if you got it 
  there you shouldn't have got the command not found error so something is 
  messed up with your system. Post the output to the folling
  
  ls -l /usr/bin/poweroff
  ls -l /bin/poweroff
  ls -l /sbin/poweroff
  ls -l /usr/sbin/poweroff
  
  Only one of them should list something and it should be a symlink to 
  systemctl.
 
 From previous messages by the OP I recall that he is using OpenRC.

Yea, I'm fucking up. I read the systemd before this one and got them mixed 
up...sorry

-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:06:59 AM German wrote:
 On Sun, 22 Mar 2015 08:49:54 +0200
 Matti Nykyri matti.nyk...@iki.fi wrote:
 
   On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:
   
   
   /sbin/poweroff says Must be a superuser :(
  
  Did you read any of the previous messages? They told you that you have to 
have consolekit and polkit installed and configured for this to work!
 
 Yes, I've read them. However no one explianed how this has to be 
accomplished with polkit and consolekit.

You don't need those. It sounds like you somehow got both sysvinit and systemd 
installed. The message you're getting is from sysvinit. poweroff should be a 
symlink to systemctl. Try:

systemctl poweroff

You may need to unmerge sysvinit and anything else related to openrc and then 
re-emerge systemd. With systemd it should either shutdown or ask you for the 
root password (if you're not logged in locally or there's other users logged 
in).

-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:06:59 AM German wrote:
 On Sun, 22 Mar 2015 08:49:54 +0200
 Matti Nykyri matti.nyk...@iki.fi wrote:
 
   On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:
   
   
   /sbin/poweroff says Must be a superuser :(
  
  Did you read any of the previous messages? They told you that you have to 
have consolekit and polkit installed and configured for this to work!
 
 Yes, I've read them. However no one explianed how this has to be 
accomplished with polkit and consolekit.

Actually systemd's poweroff should be on /usr/bin or /bin but if you got it 
there you shouldn't have got the command not found error so something is 
messed up with your system. Post the output to the folling

ls -l /usr/bin/poweroff
ls -l /bin/poweroff
ls -l /sbin/poweroff
ls -l /usr/sbin/poweroff

Only one of them should list something and it should be a symlink to 
systemctl.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How to poweroff the system from user?

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 3:30:49 AM German wrote:
 On Sun, 22 Mar 2015 03:19:50 -0400
 Fernando Rodriguez frodriguez.develo...@outlook.com wrote:
 
  On Sunday, March 22, 2015 3:06:59 AM German wrote:
   On Sun, 22 Mar 2015 08:49:54 +0200
   Matti Nykyri matti.nyk...@iki.fi wrote:
   
 On Mar 22, 2015, at 8:32, German gentger...@gmail.com wrote:
 
 
 /sbin/poweroff says Must be a superuser :(

Did you read any of the previous messages? They told you that you have 
to 
  have consolekit and polkit installed and configured for this to work!
   
   Yes, I've read them. However no one explianed how this has to be 
  accomplished with polkit and consolekit.
  
  You don't need those. It sounds like you somehow got both sysvinit and 
systemd 
  installed. The message you're getting is from sysvinit. poweroff should be 
a 
  symlink to systemctl. Try:
  
  systemctl poweroff
  
  You may need to unmerge sysvinit and anything else related to openrc and 
then 
  re-emerge systemd. With systemd it should either shutdown or ask you for 
the 
  root password (if you're not logged in locally or there's other users 
logged 
 
 Thanks, I decide to go with sudo on this one. However when I try to run it, 
it says:
 Username is not in the sudoers file. Where is this file located and how can 
I add the user to it? Thanks
 
  in).

Actually you never said anything about systemd so it's my bad.
They where talking about logind and I got it messed up with another thread 
about systemd.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: Is this a bug in firefox-36.0?

2015-03-18 Thread Fernando Rodriguez
On Wednesday, March 18, 2015 4:41:25 PM walt wrote:
 On 03/17/2015 04:49 PM, walt wrote:
  I get a certificate verification error when visiting https://www.att.com
  using firefox-36.0, but not when using chrome-41.0.2272.76.
 
 Thanks to all who replied.  I'm surprised by the variety of different results
 you reported.
 
 (BTW, I'm running firefox-bin-36.0, so the behavior may be a bit different 
from
 the gentoo build.)
 
 FF will not even show me the secure att.com webpage.  I get an entire html 
page
 with this (very big) error message:
 
 Secure Connection Failed
 
 An error occurred during a connection to www.att.com. The OCSP server 
experienced
 an internal error. (Error code: sec_error_ocsp_server_error)
 
 The page you are trying to view cannot be shown because the authenticity of 
the
 received data could not be verified.
 
 Please contact the website owners to inform them of this problem.
 
 

That sounds more like a networking issue. Are you behind a firewall? Is it 
possible that you somehow blocked their OCSP server? Can you bypass the 
firewall for testing?

It also looks like firefox caches the error: 
http://superuser.com/questions/755755/sec-error-ocsp-server-error-when-trying-to-open-a-https-page
 but you're having this issue for a while and more than 
one device now so it's not likely that it was a temporary problem.

-- 
Fernando Rodriguez



Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-18 Thread Fernando Rodriguez
On Wednesday, March 18, 2015 9:56:12 PM Walter Dnes wrote:
   My situation...
 
 * I've dug up my ancient netbook, and got Gentoo re-installed on it
 * The cpu is a dual-core Intel(R) Atom(TM) CPU Z520
 * It's 32-bit only; YES!
 * Compiling just the Seamonkey binary (ignoring its dependancies) took
   14 hours
 
   I obviously want to offload compiling to another machine.  As per the
 subject, will a 64-bit no-multilb install be able to cross compile
 32-bit code?

I've done it with distcc by adding the -m32 option to cflags. I used a script 
(named after the compiler on the gentoo box) to call the compiler with the -
m32 flag and placed on the PATH environment (just for the distccd service) 
before anything else and it worked. I got a 64 bit arch box to compile for a 
32 bit gentoo (not nearly as fast as compiling locally on the arch box but 
much faster than the gentoo box). It should work similarly with other cross-
compile scenarios.


-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-18 Thread Fernando Rodriguez
On Thursday, March 19, 2015 12:20:26 AM Walter Dnes wrote:
 On Wed, Mar 18, 2015 at 10:27:05PM -0400, Fernando Rodriguez wrote
  On Wednesday, March 18, 2015 9:56:12 PM Walter Dnes wrote:
 My situation...
   
   * I've dug up my ancient netbook, and got Gentoo re-installed on it
   * The cpu is a dual-core Intel(R) Atom(TM) CPU Z520
   * It's 32-bit only; YES!
   * Compiling just the Seamonkey binary (ignoring its dependancies) took
 14 hours
   
 I obviously want to offload compiling to another machine.  As per the
   subject, will a 64-bit no-multilb install be able to cross compile
   32-bit code?
  
  I've done it with distcc by adding the -m32 option to cflags. I used a 
script 
  (named after the compiler on the gentoo box) to call the compiler with the 
-
  m32 flag and placed on the PATH environment (just for the distccd service) 
  before anything else and it worked. I got a 64 bit arch box to compile for 
a 
  32 bit gentoo (not nearly as fast as compiling locally on the arch box but 
  much faster than the gentoo box). It should work similarly with other 
cross-
  compile scenarios.
 
   Thanks.  I'll probably be back with a bunch of questions.  As a matter
 of fact, I already have one.  The docs say that it does not work if the
 -march=native cflag is used.  It says to use the output of...
 
 gcc -march=native -E -v - /dev/null 21 | grep cc1
 
 ...omitting /usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.3/cc1 -E -quiet -v -
 I presume.  So on the 64-bit host, I would go from...
 
 CFLAGS=-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -fno-
unwind-tables -fno-asynchronous-unwind-tables
 
 ...to...
 
 CFLAGS=-O2 -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-
popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-
tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rtm -mno-hle -
mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -
mno-xsave -mno-xsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 
--param l2-cache-size=2048 -mtune=core2 -fstack-protector -mfpmath=sse -fomit-
frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables
 
   And on the target (netbook), I'd go to...
 
 CFLAGS=-O2 -march=atom -mno-cx16 -msahf -mmovbe -mno-aes -mno-pclmul -mno-
popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-
tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rtm -mno-hle -
mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -
mno-xsave -mno-xsaveopt --param l1-cache-size=24 --param l1-cache-line-size=64 
--param l2-cache-size=512 -mtune=atom -fstack-protector -mfpmath=sse -fomit-
frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables 
 
   Is that correct (assuming that's my output)?

The CFLAGS on the host won't be used so you don't need to change them. Now on 
the host create scripts with the exact full name of the compiler on the target 
and make distccd can find them (either put them on /usr/bin or make sure to add 
it's path to the PATH environment var for distccd, if you're using openrc I'm 
not sure if the init scripts allow it so you may have to start it manually or 
modify the scripts) and have them exec gcc with the -m32 switch. Make sure you 
have the same version of gcc selected on both boxes.


-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 3:26:56 PM German wrote:
 If I run poweroff from root, the system shuts down, however when I run 
poweroff from user -- command not found. How to shut down the system from user? 
Thanks
 
 

The command not found part is because /sbin and /usr/sbin and on gentoo it's 
not on your PATH env var by default.

I think it's supposed to be a security measure but really it provides no 
security whatsoever so I always add it to my path. After that you'll be able 
to shutdown if there's no other active sessions, otherwise you should be 
prompted for password.

-- 
Fernando Rodriguez



Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 8:46:10 AM Mike Gilbert wrote:
 On Thu, Mar 19, 2015 at 12:20 AM, Walter Dnes waltd...@waltdnes.org wrote:
  CFLAGS=-O2 -march=atom -mno-cx16 -msahf -mmovbe -mno-aes -mno-pclmul -
mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -
mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rtm -mno-
hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr 
-mno-xsave -mno-xsaveopt --param l1-cache-size=24 --param l1-cache-line-
size=64 --param l2-cache-size=512 -mtune=atom -fstack-protector -mfpmath=sse -
fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables
 
Is that correct (assuming that's my output)?
 
 
 I should warn you against including all of those -mno-xxx flags. This
 has been known to break the build process for packages like chromium,
 which always wants to build with SSE4 support and toggles it off at
 runtime. Passing -mno-sse4.1 causes a build failure as it tries to use
 macros that are not defined.
 

Isn't it possible that removing it for all packages would cause a more subtle 
problem with another faulty ebuild (like a program crashing due to an illegal 
instruction)?

-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 9:35:44 PM Alexander Kapshuk wrote:
 On Sat, Mar 21, 2015 at 9:34 PM, Alexander Kapshuk 
 alexander.kaps...@gmail.com wrote:
 
  On Sat, Mar 21, 2015 at 9:26 PM, German gentger...@gmail.com wrote:
 
  If I run poweroff from root, the system shuts down, however when I run
  poweroff from user -- command not found. How to shut down the system from
  user? Thanks
 
  --
  German gentger...@gmail.com
 
 
  poweroff(1) says:
  If  you're  not  the superuser, you will get the message `must be supe‐
 ruser'.
 
  Either run poweroff as the superuser, or if you're running Gnome, KDE,
  XFCE, etc., you may use the shutdown option available in those desktop
  environments.
 
  Others might suggest other ways of doing it.
 
 
 It's actually poweroff(8). Sorry.

That's actually sysvinit poweroff...systemd's is different.
-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 4:58:42 PM German wrote:
 On Sat, 21 Mar 2015 16:32:25 -0400
 Philip Webb purs...@ca.inter.net wrote:
 
  150321 German wrote:
   If I run poweroff from root, the system shuts down.
   When I run poweroff from user -- command not found.
   How to shut down the system from user ?
  
  I'ld say Don't : it's contrary to the principles of Unix,
  which separate the roles of sysadmin (root) from those of ordinary users.
  
  To shut down, I first exit Fluxbox via its menu,
  then 'su' + root password, then alias 'down' = 'shutdown -h now'.
  That observes the proper roles + ceremonies (smile).
 
 Interesting. But as I said ealier, I can reboot the system when I am a user 
by Ctrl+Alt+Delete. The user can reboot the system, but can't shut down? 
Strange
  

Either /sbin/poweroff or /usr/sbin/poweroff will do it from a local session (if 
there's no other users logged in locally).

Like I said, /sbin is only on the search path for root by default on gentoo.

-- 
Fernando Rodriguez



Re: [gentoo-user] How to poweroff the system from user?

2015-03-21 Thread Fernando Rodriguez
On Saturday, March 21, 2015 11:52:45 PM Emanuele Rusconi wrote:
 Ctrl-Alt-Del can be set to do what you want.
 
 I have this in my /etc/inittab:
 
 ca:12345:ctrlaltdel:/sbin/shutdown -P now
 
 This way Ctrl-Alt-Del calls power off instead of reboot.
 So to shutdown I just exit from Openbox and press Ctrl-Alt-Del.
 
 -- Emanuele Rusconi

Also sysvinit specific.
On systemd you need to copy /usr/lib/systemd/system/ctrl-alt-del.target to 
/etc/systemd/system and edit that file.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Bluetooth Input Devices

2015-03-19 Thread Fernando Rodriguez
On Thursday, March 19, 2015 3:53:42 AM Thomas Mori wrote:
 Hi guys
 
 I have stumbled on the Bluetooth Input Devices section in
 wiki.gentoo.org [1]; however, I am not finding the Driver L2CAP
 protocol support in my kernel [2]. I am not seeing the driver L2CAP
 protocol anywhere [3]. I am wondering if the Wiki is slightly outdated
 or am I not using the proper kernel for this task? 
 
 Having said all of the above though, how should I enable Bluetooth
 Input Devices? :) 
 
 Thanks for your support!
 
 [1] http://wiki.gentoo.org/wiki/Bluetooth_Input_devices

Looks like it's part of the bluetooth core now (CONFIG_BT).

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] unable to compile kdelibs in arm chroot

2015-03-19 Thread Fernando Rodriguez
On Thursday, March 19, 2015 9:11:02 PM Michael Mair-Keimberger wrote:
 Hi List,
 
 For the last few weeks i was playing around with my newly acquired
 raspberry pi 2. While it was pretty easy to setup a working gentoo
 stage3 system i failed installing anything below the basic packages.
 Generally my idea was building the arm packages on any system and
 provide them as binary packages for other raspberry pi's (yeah, i
 already bought my second rpi :D)
 
 At first, my idea was to build all the packages directly on the rpi. (with
 /var/tmp  /usr/portage on a external harddisk). However, the compile
 times are worse than i expected so i abandoned the idea.
 
 Next i've played around with crossdev. It sort of worked, but i never
 could finish compiling xorg-server. (or basic system packages) Even
 though i've started over and over with different settings, there were
 always packages which failed to compile thus doesn't let me finish
 xorg-server. I might look into it some other day but now i just wanted
 something working.
 
 Now i'm playing with using qemu-arm [1][2] in order to compile the
 packages inside a chroot. This is - so far - the most promising method
 building packages, even though the compile times are worse than with
 crossdev, but still better than directly on the rpi.
 
 So far i finally could compile xorg-server and also updated the whole
 system, which, at this point, wasn't much anyway. My next goal was kde.
 I've compiled about half of all packages which are required for
 kdebase-meta, but now i'm stuck at kdelibs and i have no idea what's
 wrong.
 
 The problem:
 
 The problem is, the compile doesn't fail - it just hangs/stops. At some
 point (which seems to be random - it can stop anywhere between 1% and
 100% of the compile) the compile stops and does nothing. I've waited
 hours, but nothing happened.
 So far i tried lots of things, for example:
 * MAKEOPTS=-j1 and/or FEATURES=-sandbox
 * also tried without building binary packages (-buildpkg)
 * /var/tmp on tmpfs
 * using: ebuild /usr/portage/kde-base//kdelibsebuild compile
 * using python3.3 instead of default 2.7
 * moved it on a different system and tried building it there (again with
 many different settings)
 
 Nothing worked, even though the build moved until 100% two times (-_-)
 
 I have no idea what the problem is. Even qtwebkit, which took way longer
 to compile (about 3 hours) compiled on the first try. (which should
 exclude temperate and/or resource problems)
 I also don't think it's a problem with a use flag as the build stops
 anywhere - i couldn't find a pattern. It seems to be completely random.
 
 Any ideas whats wrong or how to fix this? Any help would be much
 appreciated as i'm out of ideas :(
 
 Thx
 
 [1] https://www.gentoo.org/proj/en/base/embedded/handbook/?part=1chap=5
 [2] http://wiki.gentoo.org/wiki/Crossdev_qemu-static-user-chroot

One possibility is swap trashing (running so low in RAM that every instruction 
takes several swaps to execute), especially with /var/tmp on tmpfs! This can 
happen even if you don't have a swap partition. Try with either more RAM or 
/var/tmp on a physical filesystem.


-- 
Fernando Rodriguez



Re: [gentoo-user] Broken localepurge

2015-03-20 Thread Fernando Rodriguez
On Friday, March 20, 2015 10:33:29 AM Peter Humphrey wrote:
 On Friday 20 March 2015 09:14:42 I wrote:
  On Thursday 19 March 2015 11:15:55 Fernando Rodriguez wrote:
   On Thursday, March 19, 2015 10:15:58 AM Peter Humphrey wrote:
   Meanwhile, does anyone here have a ready fix?
   
   Looks like Jan-Matthias does.
   You can just apply the patch directly to the localepurge script.
   
   patch /usr/bin/localepurge localepurge-0.5.4-fix_option_parsing.patch
  
  Yes, I saw that and downloaded it, then tried calling it from the ebuild.
  There are five other patches already, and I haven't yet found the right
  place in the sequence to add this one.
  
  Still working on it...
 
 I found the problem: the line count was wrong in the patch file. Once I'd 
 fixed that, all was hunky-dory.
 
 I've submitted the corrected patch to the bug report.

It applied cleanly for me. I tried it before replying.

-- 
Fernando Rodriguez



Re: [gentoo-user] unable to compile kdelibs in arm chroot

2015-03-20 Thread Fernando Rodriguez
On Friday, March 20, 2015 10:15:03 AM Michael Mair-Keimberger wrote:
 On Thu, Mar 19, 2015 at 04:44:55PM -0400, Fernando Rodriguez wrote:
  On Thursday, March 19, 2015 9:11:02 PM Michael Mair-Keimberger wrote:
   Hi List,
   
   For the last few weeks i was playing around with my newly acquired
   raspberry pi 2. While it was pretty easy to setup a working gentoo
   stage3 system i failed installing anything below the basic packages.
   Generally my idea was building the arm packages on any system and
   provide them as binary packages for other raspberry pi's (yeah, i
   already bought my second rpi :D)
   
   At first, my idea was to build all the packages directly on the rpi. 
(with
   /var/tmp  /usr/portage on a external harddisk). However, the compile
   times are worse than i expected so i abandoned the idea.
   
   Next i've played around with crossdev. It sort of worked, but i never
   could finish compiling xorg-server. (or basic system packages) Even
   though i've started over and over with different settings, there were
   always packages which failed to compile thus doesn't let me finish
   xorg-server. I might look into it some other day but now i just wanted
   something working.
   
   Now i'm playing with using qemu-arm [1][2] in order to compile the
   packages inside a chroot. This is - so far - the most promising method
   building packages, even though the compile times are worse than with
   crossdev, but still better than directly on the rpi.
   
   So far i finally could compile xorg-server and also updated the whole
   system, which, at this point, wasn't much anyway. My next goal was kde.
   I've compiled about half of all packages which are required for
   kdebase-meta, but now i'm stuck at kdelibs and i have no idea what's
   wrong.
   
   The problem:
   
   The problem is, the compile doesn't fail - it just hangs/stops. At some
   point (which seems to be random - it can stop anywhere between 1% and
   100% of the compile) the compile stops and does nothing. I've waited
   hours, but nothing happened.
   So far i tried lots of things, for example:
   * MAKEOPTS=-j1 and/or FEATURES=-sandbox
   * also tried without building binary packages (-buildpkg)
   * /var/tmp on tmpfs
   * using: ebuild /usr/portage/kde-base//kdelibsebuild compile
   * using python3.3 instead of default 2.7
   * moved it on a different system and tried building it there (again with
   many different settings)
   
   Nothing worked, even though the build moved until 100% two times (-_-)
   
   I have no idea what the problem is. Even qtwebkit, which took way longer
   to compile (about 3 hours) compiled on the first try. (which should
   exclude temperate and/or resource problems)
   I also don't think it's a problem with a use flag as the build stops
   anywhere - i couldn't find a pattern. It seems to be completely random.
   
   Any ideas whats wrong or how to fix this? Any help would be much
   appreciated as i'm out of ideas :(
   
   Thx
   
   [1] https://www.gentoo.org/proj/en/base/embedded/handbook/?part=1chap=5
   [2] http://wiki.gentoo.org/wiki/Crossdev_qemu-static-user-chroot
  
  One possibility is swap trashing (running so low in RAM that every 
instruction 
  takes several swaps to execute), especially with /var/tmp on tmpfs! This 
can 
  happen even if you don't have a swap partition. Try with either more RAM 
or 
  /var/tmp on a physical filesystem.
  
 Usually /var/tmp is on the physical filesystem anyway. I've tried it
 just once or twice because i though about a performance problem. RAM
 shouldn't be a problem too as i'm having 16GB of RAM available.
  

I would tell you to attach a debugger and see if you can tell why it's hanging 
but that may not be worth the trouble (since it'll be a child process that's 
hanging it'll be tricky to start qemu with the gdb stub just for that 
process). If you want to try it see: 
http://tinkering-is-fun.blogspot.com/2009/12/debugging-non-native-programs-with-qemu.html
 and 
search QEMU_GDB for the tricky part.

Have you tried a different qemu version?

-- 
Fernando Rodriguez



Re: [gentoo-user] Can't fetch www-plugins/chrome-binary-plugins

2015-03-12 Thread Fernando Rodriguez
On Wednesday, March 11, 2015 6:52:39 AM Mick wrote:
 On Wednesday 11 Mar 2015 06:42:35 Fernando Rodriguez wrote:
  On Wednesday, March 11, 2015 6:20:25 AM Mick wrote:
   On Tuesday 10 Mar 2015 23:33:33 Fernando Rodriguez wrote:
 
Google only keeps the latest versions so that ebuild is usually only
good for a short while after it gets marked stable.
Just keyword the unstable package.
   
   So users of the stable package have to be really fast, or lucky?
  
  Right. Or put emerge www-plugins/chrome-binary-plugins --fetchonly on a
  cron job to fetch it as soon as it's stable.
 
 I googled for it and downloaded it from a mirror.  Am I correct that if the 
 hash is not right the ebuild will complain about it, or will I end up 
 installing a suspect package?
 

Yes. If you haven't found it...
 
https://drive.google.com/file/d/0BzPt9N2PyrQGZTg5YXZYTTAzbms/view?usp=sharing

-- 
Fernando Rodriguez



Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]

2015-03-11 Thread Fernando Rodriguez
On Wednesday, March 11, 2015 4:15:53 PM Tom H wrote:
 I've never used nmcli except to get ip information (see below) but
 setting up NM without a gui is simple.
 
 This is my home wifi setup:
 
 # cat /etc/NetworkManager/system-connections/thsky
 [connection]
 id=thsky
 uuid=e03d75e4-043a-4276-bf03-3995270ec891
 type=802-11-wireless
 
 [802-11-wireless]
 ssid=myssidname
 mode=infrastructure
 security=802-11-wireless-security
 
 [802-11-wireless-security]
 key-mgmt=wpa-psk
 psk=myssidpassword
 
 [ipv4]
 method=manual
 address1=192.168.1.11/24,192.168.1.1
 dns=192.168.1.111
 
 [ipv6]
 method=link-local

Did you find that documented somewhere or did you use an UI to create the file 
originally? What about when you need one of the many features that this simple 
example doesn't cover (like permissions)? what is the guid? It is hard.
 
When I started using NetworkManager I had hell trying to modify that file 
manually because plasma-nm ask for root password when modifying system wide 
connections but it doesn't save the changes (the solution was to run nm-
connection-editor manually as root). The same applies to nmtui and it only 
covers a few options. I don't remember exactly what needed to be changed in 
the file but it wasn't intuitive.

-- 
Fernando Rodriguez




Re: [gentoo-user] gummiboot does not display new kernel

2015-03-08 Thread Fernando Rodriguez
On Sunday, March 08, 2015 8:57:43 PM Stefan G. Weichinger wrote:
 On 08.03.2015 19:10, Stefan G. Weichinger wrote:
 
  But no big problem, I can edit that conf-file whenever I install a new
  kernel. Sure, would be nice to solve.
 
 fun fact:
 
 compiled and installed 4.0.0-rc2 ... visible at boot time at first try
 
 ;-)
 
 
 
 

Just a guess, if you move it back to the original name, does it boot?
Maybe there was something funny with the directory entry that confused the 
bootloader's FAT driver and got fixed when you moved it.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] gummiboot does not display new kernel

2015-03-08 Thread Fernando Rodriguez
On Sunday, March 08, 2015 10:37:22 PM Stefan G. Weichinger wrote:
 On 08.03.2015 21:21, Fernando Rodriguez wrote:
 
  Just a guess, if you move it back to the original name, does it
  boot? Maybe there was something funny with the directory entry that
  confused the bootloader's FAT driver and got fixed when you moved
  it.
 
 will try .. right now I don't want to reboot  some work to do ...
 
 Maybe I should have partitioned the ESP bigger ... I chose 100M and
 that fills up rather quickly (at 88% now ... no space for another
 kernel+initrd ... why my initrd is 21M is another question ..)
 
 S

Do you have proprietary video drivers in it? fglrx alone is 13 megs and if 
it's for plymouth it doesnt use them so it's just taking space.

-- 
Fernando Rodriguez



Re: [gentoo-user] Damaged CD medium

2015-03-13 Thread Fernando Rodriguez
On Friday, March 13, 2015 4:30:59 PM Mick wrote:
 Hi All,
 
 I was given a CD with some pictures, but I am not able to mount it.  This is 
 what dmesg reveals:
 
 [ 7791.880206] sr 1:0:0:0: [sr0]  
 [ 7791.880211] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
 [ 7791.880215] sr 1:0:0:0: [sr0]  
 [ 7791.880217] Sense Key : Hardware Error [current] 
 [ 7791.880224] sr 1:0:0:0: [sr0]  
 [ 7791.880229] Add. Sense: Timeout on logical unit
 [ 7791.880233] sr 1:0:0:0: [sr0] CDB: 
 [ 7791.880236] Read(10): 28 00 00 00 00 00 00 00 02 00
 [ 7791.880252] blk_update_request: I/O error, dev sr0, sector 0
 [ 7800.424417] sr 1:0:0:0: [sr0]  
 [ 7800.424422] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
 [ 7800.424427] sr 1:0:0:0: [sr0]  
 [ 7800.424429] Sense Key : Hardware Error [current] 
 [ 7800.424436] sr 1:0:0:0: [sr0]  
 [ 7800.424440] Add. Sense: Timeout on logical unit
 [ 7800.424445] sr 1:0:0:0: [sr0] CDB: 
 [ 7800.424447] Read(10): 28 00 00 00 00 00 00 00 02 00
 [ 7800.424463] blk_update_request: I/O error, dev sr0, sector 0
 [ 7800.424468] Buffer I/O error on dev sr0, logical block 0, async page read
 [ 7809.051719] sr 1:0:0:0: [sr0]  
 [ 7809.051725] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
 [ 7809.051729] sr 1:0:0:0: [sr0]  
 [ 7809.051731] Sense Key : Hardware Error [current] 
 [ 7809.051738] sr 1:0:0:0: [sr0]  
 [ 7809.051743] Add. Sense: Timeout on logical unit
 [ 7809.051748] sr 1:0:0:0: [sr0] CDB: 
 [ 7809.051750] Read(10): 28 00 00 00 00 00 00 00 02 00
 [ 7809.051766] blk_update_request: I/O error, dev sr0, sector 0
 [ 7809.051771] Buffer I/O error on dev sr0, logical block 0, async page read
 [ 7817.681141] sr 1:0:0:0: [sr0]  
 [ 7817.681146] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
 [ 7817.681150] sr 1:0:0:0: [sr0]  
 [ 7817.681152] Sense Key : Hardware Error [current] 
 [ 7817.681159] sr 1:0:0:0: [sr0]  
 [ 7817.681164] Add. Sense: Timeout on logical unit
 [ 7817.681168] sr 1:0:0:0: [sr0] CDB: 
 [ 7817.681170] Read(10): 28 00 00 00 00 00 00 00 02 00
 [ 7817.681187] blk_update_request: I/O error, dev sr0, sector 0
 [ 7817.681192] Buffer I/O error on dev sr0, logical block 0, async page read
 
 
 I tried on different PCs and I am getting the same error.  Shall I forget 
 about it, or is there some means by which I can recover the files on it?

You can try sticking it into a DVD player and see if it plays. Also check that 
all CD/DVD Filesystem options (including MS extensions) are enabled on your 
kernel.


-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Can't fetch www-plugins/chrome-binary-plugins

2015-03-11 Thread Fernando Rodriguez
On Wednesday, March 11, 2015 6:20:25 AM Mick wrote:
 On Tuesday 10 Mar 2015 23:33:33 Fernando Rodriguez wrote:
  On Tuesday, March 10, 2015 11:19:34 PM Mick wrote:
   On Tuesday 10 Mar 2015 22:45:28 Dale wrote:
Mick wrote:
 This is the second machine I am getting a 404 in as many weeks with
 this package.  Is it a known problem, or am I the only one suffering
 from this?
 
 Emerging (1 of 8) www-plugins/chrome-binary-
 
 plugins-41.0.2272.76_p1::gentoo
 
  * Fetching files in the background. To view fetch progress, run
  * `tail -f /var/log/emerge-fetch.log` in another terminal.
  
 Downloading

'https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stabl
e/go ogle-chrome-stable_41.0.2272.76-1_amd64.deb'

 --2015-03-10 22:02:09--

https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable
/goo gle-chrome-stable_41.0.2272.76-1_amd64.deb

 Resolving dl.google.com... 216.58.210.46, 2a00:1450:4009:800::200e
 Connecting to dl.google.com|216.58.210.46|:443... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2015-03-10 22:02:09 ERROR 404: Not Found.
 
 !!! Couldn't download
 'google-chrome-stable_41.0.2272.76-1_amd64.deb'. Aborting.
 
  * Fetch failed for

'www-plugins/chrome-binary-plugins-41.0.2272.76_p1', Log

 file:
  *  '/var/tmp/portage/www-plugins/chrome-binary-
 
 plugins-41.0.2272.76_p1/temp/build.log'
 
  * Please wait 24 hours and sync your portage tree before reporting
  
  fetch
  
 failures.

I don't use the package but tried to fetch it to test.  Same failure
here too.   Can you force it to use a different mirror or is it
google's and that's it?

Dale

:-)  :-)
   
   Thanks Dale, I'm guessing google is the only repo, at least that's the
  
  SRC_URI
  
   coded in the ebuild.
  
  Google only keeps the latest versions so that ebuild is usually only good
  for a short while after it gets marked stable.
  Just keyword the unstable package.
 
 So users of the stable package have to be really fast, or lucky?
 
 

Right. Or put emerge www-plugins/chrome-binary-plugins --fetchonly on a cron 
job to fetch it as soon as it's stable.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Network manager [ control of wireless and wired interafaces]

2015-03-11 Thread Fernando Rodriguez
On Wednesday, March 11, 2015 5:19:32 AM German wrote:
 Hi. I was said that I need network manager to control my interfaces. What 
package should I emerge? I am in console mode. Is that ncurses based or 
command line? Any other pointers on how this can be configured are welcome. 
Thanks
 
 

net-misc/networkmanager

It comes with CLI tools but it's usually used with a frontend GUI. See 
http://wiki.gentoo.org/wiki/NetworkManager#NetworkManager_GUI_bits_in_GTK

For KDE I use kde-misc/plasma-nm. If you don't have a desktop it propably 
makes more sense to just use wpa_supplicant directly.

If you use systemd net-misc/netctl has a nice curses UI but I've only tried on 
Arch.

-- 
Fernando Rodriguez



Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!?

2015-03-10 Thread Fernando Rodriguez
On Tuesday, March 10, 2015 1:05:58 PM Walter Dnes wrote:
 On Tue, Mar 10, 2015 at 03:39:05AM -0400, Fernando Rodriguez wrote
  
  Are you using OpenRC?
  If so, do you have the hwclock init script set to run at boot?
 
   Yes and yes.  /sbin/rc-update show boot shows it.  rc-status boot
 also shows it.

Do you have CONFIG_RTC_HCTOSYS set on your kernel?
If so it's because you're using localtime and the kernel sets it to UTC.
Either disable that option or if you need localtime for windows you can also
set windows to use UTC. 
https://wiki.archlinux.org/index.php/Time#UTC_in_Windows


   A tangentaial question.  rc-status shows service netmount stopped.
 Is it really needed?  I'm not doing NFS or netboot.

I don't think so. I dont have it.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] My machine wakes up from hibernation in GMT time !?!?

2015-03-10 Thread Fernando Rodriguez
On Monday, March 09, 2015 10:20:39 PM Walter Dnes wrote:
   I'm in Canada/Eastern timezone.  For some reason, my machine seems to
 come up in GMT when waking up from hibernation.  This started happening
 a week or two ago.  I do not think this is related to my conversion and
 re-install from 32-bit to 64-bit.  I worked OK for a while.  Only
 recently did it start waking up with the clock 5 hours ahead of Eastern
 Standard (i.e. GMT).  Since the time change this past Sunday, it's been
 waking up 4 hours ahead of Eastern Daylight.  It definitely looks like
 it's coming up in GMT.  I reset it to Eastern time, but after
 hibernation and wakeup, it comes up GMT.  I don't know why.  Any ideas?
 Here are the contents of...
 
 /etc/hibernate/hibernate.conf
 /etc/timezone
 /etc/conf.d/hwclock
 
 ...a sanity-check on /etc/local/timezone
 
 ...my script to manually sync my machine clock.
 
 
 
 [d531][waltdnes][~] grep -v ^# /etc/hibernate/hibernate.conf
 
 TryMethod disk.conf
 Distribution gentoo
 EnsureLILOResumes yes
 LogVerbosity 3
 LogFile /var/log/hibernate.log
 PowerdownMethod shutdown
 RestartServices sshd
 OnResume 00 /bin/cat /home/waltdnes/.appointments
 
 ==
 
 [d531][waltdnes][~] cat /etc/timezone 
 Canada/Eastern
 
 ==
 
 [d531][waltdnes][~] grep -v ^# /etc/conf.d/hwclock 
 clock=local
 
 clock_hctosys=YES
 
 clock_systohc=YES
 
 clock_args=
 
 ==
 
 [d531][waltdnes][~] diff -s /etc/localtime /usr/share/zoneinfo/Canada/Eastern 
 Files /etc/localtime and /usr/share/zoneinfo/Canada/Eastern are identical
 
 ==
 
 [d531][waltdnes][~] cat bin/settime 
 #!/bin/bash
 date
 /usr/bin/sudo /usr/bin/openrdate -n -s ca.pool.ntp.org
 /usr/bin/sudo /sbin/hwclock --systohc
 date
 
 

Are you using OpenRC?
If so, do you have the hwclock init script set to run at boot?

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] See bootup/poweroff screen?

2015-03-05 Thread Fernando Rodriguez
On Thursday, March 05, 2015 3:16:55 AM Dale wrote:
 Yea, it won't catch everything.  This is sort of designed for that point
 where one log stops and the other hasn't started yet.  This is usually
 where dmesg stops and syslog and friends hasn't yet started.  Of course,
 if /var isn't mounted, well, it has no where to go.
 
 Isn't those init thingys supposed to fix this sort of thing tho?  Isn't
 it supposed to store it in memory until /var is mounted and then dump it?
 
 Dale
 
 :-)  :-)
 

Even late on the boot process the OpenRC log won't catch everything. I think 
it only logs openrc messages, if it comes from some program it's probably on 
the system log (or nowhere at all).

-- 
Fernando Rodriguez



Re: [gentoo-user] Can't fetch www-plugins/chrome-binary-plugins

2015-03-10 Thread Fernando Rodriguez
On Tuesday, March 10, 2015 11:19:34 PM Mick wrote:
 On Tuesday 10 Mar 2015 22:45:28 Dale wrote:
  Mick wrote:
   This is the second machine I am getting a 404 in as many weeks with this
   package.  Is it a known problem, or am I the only one suffering from
   this?
   
   Emerging (1 of 8) www-plugins/chrome-binary-
   
   plugins-41.0.2272.76_p1::gentoo
   
* Fetching files in the background. To view fetch progress, run
* `tail -f /var/log/emerge-fetch.log` in another terminal.

   Downloading
  
  'https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/go
  ogle-chrome-stable_41.0.2272.76-1_amd64.deb'
  
   --2015-03-10 22:02:09--
  
  https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/goo
  gle-chrome-stable_41.0.2272.76-1_amd64.deb
  
   Resolving dl.google.com... 216.58.210.46, 2a00:1450:4009:800::200e
   Connecting to dl.google.com|216.58.210.46|:443... connected.
   HTTP request sent, awaiting response... 404 Not Found
   2015-03-10 22:02:09 ERROR 404: Not Found.
   
   !!! Couldn't download 'google-chrome-stable_41.0.2272.76-1_amd64.deb'.
   Aborting.
   
* Fetch failed for
  
  'www-plugins/chrome-binary-plugins-41.0.2272.76_p1', Log
  
   file:
*  '/var/tmp/portage/www-plugins/chrome-binary-
   
   plugins-41.0.2272.76_p1/temp/build.log'
   
* Please wait 24 hours and sync your portage tree before reporting 
fetch
   
   failures.
  
  I don't use the package but tried to fetch it to test.  Same failure
  here too.   Can you force it to use a different mirror or is it google's
  and that's it?
  
  Dale
  
  :-)  :-)
 
 Thanks Dale, I'm guessing google is the only repo, at least that's the 
SRC_URI 
 coded in the ebuild.
 
 

Google only keeps the latest versions so that ebuild is usually only good for 
a short while after it gets marked stable.
Just keyword the unstable package. 

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: [OFF TOPIC] Qt Creator unable to access containers in debug mode

2015-03-24 Thread Fernando Rodriguez
On Wednesday, March 25, 2015 12:32:30 AM Nikos Chantziaras wrote:
 Note that gdb cannot inspect containers. It doesn't know anything about 
 them.

It can, it's just not pretty:

(gdb) p list1
$1 = {{p = {static shared_null = {ref = {_q_value = 15}, alloc = 0, begin = 0, 
end = 0, sharable = 1, array = {0x0}}, 
  d = 0x61b050}, d = 0x61b050}}
(gdb) p/c ((QString*)list1.d.array).d.data[0]@10
$2 = {72 'H', 101 'e', 108 'l', 108 'l', 111 'o', 32 ' ', 71 'G', 68 'D', 66 
'B', 0 '\000'}

and with missing symbols:

(gdb) p list1
No symbol list1 in current context.

So I wasn't arguing, just suggesting a way to find out quickly.

-- 
Fernando Rodriguez



Re: [gentoo-user] syslog-ng: reporting no space though there's plenty

2015-03-24 Thread Fernando Rodriguez
On Tuesday, March 24, 2015 9:01:37 AM Alan McKinnon wrote:
 On 23/03/2015 18:37, hw wrote:
  
  Hi,
  
  syslog-ng keeps reporting:
  
  
  Mar 23 17:34:41 sunflo-mx syslog-ng[27532]: Error suspend timeout has
  elapsed, attempting to write again; fd='15'
  Mar 23 17:34:41 sunflo-mx syslog-ng[27532]: Suspending write operation
  because of an I/O error; fd='15', time_reopen='60'
  
  
  while there's plenty of disk space available.  Restarting it didn't
  help.  This is from an LXC container --- could there be some disk limit
  in effect by default which I don't know about?
  
 
 
 You are on the wrong track. That error message does not say there is no
 space available.
 
 It says the disk is not available, something very different. Check dmesg.
 
 

It just says that a write failed. It could be anything.
-- 
Fernando Rodriguez



Re: [gentoo-user] syslog-ng: reporting no space though there's plenty

2015-03-24 Thread Fernando Rodriguez
On Tuesday, March 24, 2015 10:09:50 AM hw wrote:
 
 Am 24.03.2015 um 08:01 schrieb Alan McKinnon:
  On 23/03/2015 18:37, hw wrote:
 
  Hi,
 
  syslog-ng keeps reporting:
 
 
  Mar 23 17:34:41 sunflo-mx syslog-ng[27532]: Error suspend timeout has
  elapsed, attempting to write again; fd='15'
  Mar 23 17:34:41 sunflo-mx syslog-ng[27532]: Suspending write operation
  because of an I/O error; fd='15', time_reopen='60'
 
 
  while there's plenty of disk space available.  Restarting it didn't
  help.  This is from an LXC container --- could there be some disk limit
  in effect by default which I don't know about?
 
 
 
  You are on the wrong track. That error message does not say there is no
  space available.
 
  It says the disk is not available, something very different. Check dmesg.
 
 
 Mar 24 10:05:01 sunflo-mx syslog-ng[27532]: internal() messages are 
 looping back, preventing loop by suppressing all internal messages until 
 the current message is processed; trigger-msg='', 
 first-suppressed-msg='I/O error occurred while writing; fd=\'15\', 
 error=\'No space left on device (28)\''
 
 
 Somewhat misleading maybe ...

I hate it when I run out of space on tty12 :)


-- 
Fernando Rodriguez



Re: [gentoo-user] MCE error

2015-03-28 Thread Fernando Rodriguez
On Saturday, March 28, 2015 7:48:48 PM Sebas Pedersen wrote:
 I see, thanks for clarifying that. So looks like not too many options, 
 either try to update the bios and/or replace the CPU.
 
 I really appreciated you replys and time.
 
 Thanks!,
 Sebas
 

There's a few things you can try.

1. Go in the bios menu and reset it to safe defaults or similar setting. If 
that don't work play with the settings, especially memory settings (try 
lowering the frequency).

2. If the motherboard is dirty, clean it real good. This may sound crazy but 
I've had success spray washing it with a hose and drying it on a warm oven.

3. Flash the bios with the latest version.

4. If you have a soldering iron and junk parts laying around replace any blown 
capacitors on the board.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: This nite's switch to full multilib

2015-03-30 Thread Fernando Rodriguez
On Monday, March 30, 2015 9:09:14 PM Alan McKinnon wrote:
 On 30/03/2015 15:04, Holger Hoffstätte wrote:
  On Mon, 30 Mar 2015 13:44:59 +0100, Neil Bothwick wrote:
  
  On Mon, 30 Mar 2015 12:15:01 + (UTC), Holger Hoffstätte wrote:
 
  Portage does not override your choices, and it certainly does not
  allow one single ebuild to automagically change the behaviour of
  multiple other ebuilds. The correct way to bring about changes in
  behaviour is to add your global choices to make.conf (which is
  outside the control of the tree), or to add your explicit changes to
  package.*  
 
  ..that just shows the root of the problem: the ABI is not handled
  consistently, but rather as a per-package configuration choice.
 
  The news item also showed how to make it a global choice, avoiding the
  need to multiple per-package directories.
  
  I'm not sure that's a solution to the problem at all (which is why I
  didn't do it on my machines either). Apart from always wasting much more
  work  resources than necessary for no good reason it doesn't answer the
  question what happens as soon as I want to build a package that is
  64-bit-only - in which case you'd end up in the same situation we have
  now, just mirrored.
 
 
 Maybe it's time we asked the multilib devs how they intended to deal
 with these questions you raise.

I don't have a problem with the way it is, but I think something like the 
following would be nice: instead of just supporting use_flag and -use_flag you 
could add something like @use_flag (auto-use flag) that automatically builds 
the 
feature only if needed to satisfy a dependency. That way you're not changing 
anything with existing configuration and still got full control over it.

-- 
Fernando Rodriguez



Re: [gentoo-user] Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-30 Thread Fernando Rodriguez
On Monday, March 30, 2015 11:22:58 PM Bob Wya wrote:
 I'm getting a bit bogged down trying to build an early release of the 3.18
 kernel. Since I can't automatically go back before 3.18.9 now (using
 portage anyway)...
 
 Basically I trying to check if a suspend/resume issue I've got was
 introduced after the 3.18 kernel was released (or was in the base release).
 I've got a reproduce-able failure to suspend-to-ram with =3.18.x gentoo
 kernel sources. However this issue is not present with the gentoo kernel
 sources =3.17.x. (A systemd nfs client mount problem - which blocks the
 suspend-to-ram process.)
 
 I had a look at the kernel-2 eclass and my head started to hurt... Do I
 need to wade into the weeds or is there a short-cut I can take to go back
 to the earliest gentoo-sources 3.18 kernel build :-)
 
 

You can use git. I believe gentoo patches are only for config options so if you 
configure it with make oldconfig it *should* be the same as using gentoo-
sources.

cd /usr/src
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-
stable.git
cd linux-stable
git checkout v3.18.9
make oldconfig
make

You can checkout any version committed prior to your last git pull 
instantly.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: Easy (cough) way to build earlier gentoo-sources 3.18.x kernel?

2015-03-30 Thread Fernando Rodriguez
On Tuesday, March 31, 2015 1:16:08 AM Nicolas Sebrecht wrote:
 On Mon, Mar 30, 2015 at 06:45:40PM -0400, Fernando Rodriguez wrote:
 
  You can use git. I believe gentoo patches are only for config options so if 
you 
  configure it with make oldconfig it *should* be the same as using gentoo-
  sources.
 
 Actually no, gentoo-sources aren't vanilla kernel while efforts are made
 to avoid including intrusive patches.
 
   http://dev.gentoo.org/~mpagano/genpatches/about.htm
   http://dev.gentoo.org/~mpagano/genpatches
 
 ,-)
 

Oh well, my mistake. I think I heard that here :) Thanks.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-30 Thread Fernando Rodriguez
On Sunday, March 29, 2015 12:23:00 PM lee wrote:
 Philip Webb purs...@ca.inter.net writes:
 What's the last time you pressed Ctrl+Alt+Del and it actually worked?
 It's a legacy thing from times when freezes/crashes were common and when
 it did work and was useful.
 
 Nowadays, when you're pressing it, usually nothing happens anyway
 because the machine is down to where you have to press the reset button
 or to turn off the power (if you can't log in with ssh).  When the
 machine still works, Ctrl+Alt+Del also works, which means that the
 default does nothing but create a security hole.

On Linux now there's the Magic SysRq Key feature for that. If enabled (I think 
it is by default, may be wrong) you can use ctrl-alt-sysrq plus one these keys 
even if your kernel panics or freezes in most cases (ctrl may only be needed 
from xorg):

r - to get the keyboard back so you can switch to VT if xorg freezes
e - to terminate all processes gracefully (SIGTERM) except pid 1
i - to terminate all processes forcefully (SIGKILL) except pid 1
s - to sync all filesystems 
u - to unmount them and remount readonly
b - to reboot

Easy to remember as Reboot Even If System Utterly Broken
There's a lot of other commands in the kernel docs sysrq.txt
 
 So how can we have this default changed?

Somebody posted that on this very thread. Replace the ctrlaltdel entry on 
inittab with /bin/false.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: How to poweroff the system from user?

2015-03-31 Thread Fernando Rodriguez
On Tuesday, March 31, 2015 1:57:32 AM Fernando Rodriguez wrote:
 On Sunday, March 29, 2015 12:23:00 PM lee wrote:
  Philip Webb purs...@ca.inter.net writes:
  What's the last time you pressed Ctrl+Alt+Del and it actually worked?
  It's a legacy thing from times when freezes/crashes were common and when
  it did work and was useful.
  
  Nowadays, when you're pressing it, usually nothing happens anyway
  because the machine is down to where you have to press the reset button
  or to turn off the power (if you can't log in with ssh).  When the
  machine still works, Ctrl+Alt+Del also works, which means that the
  default does nothing but create a security hole.
 
 On Linux now there's the Magic SysRq Key feature for that. If enabled (I 
think 
 it is by default, may be wrong) you can use ctrl-alt-sysrq plus one these 
keys 
 even if your kernel panics or freezes in most cases (ctrl may only be needed 
 from xorg):
 
 r - to get the keyboard back so you can switch to VT if xorg freezes
 e - to terminate all processes gracefully (SIGTERM) except pid 1
 i - to terminate all processes forcefully (SIGKILL) except pid 1
 s - to sync all filesystems 
 u - to unmount them and remount readonly
 b - to reboot
 
 Easy to remember as Reboot Even If System Utterly Broken
 There's a lot of other commands in the kernel docs sysrq.txt
  
  So how can we have this default changed?
 
 Somebody posted that on this very thread. Replace the ctrlaltdel entry on 
 inittab with /bin/false.
 
 
Actually it says after a crash or freeze but not a panic.
-- 
Fernando Rodriguez



Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 10:03:01 AM Mike Gilbert wrote:
 On Sat, Mar 21, 2015 at 3:52 PM, Fernando Rodriguez
 frodriguez.develo...@outlook.com wrote:
  On Saturday, March 21, 2015 8:46:10 AM Mike Gilbert wrote:
  On Thu, Mar 19, 2015 at 12:20 AM, Walter Dnes waltd...@waltdnes.org 
wrote:
   CFLAGS=-O2 -march=atom -mno-cx16 -msahf -mmovbe -mno-aes -mno-pclmul -
  mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-
bmi2 -
  mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rtm -
mno-
  hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -
mfxsr
  -mno-xsave -mno-xsaveopt --param l1-cache-size=24 --param l1-cache-line-
  size=64 --param l2-cache-size=512 -mtune=atom -fstack-protector -
mfpmath=sse -
  fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-
tables
  
 Is that correct (assuming that's my output)?
  
 
  I should warn you against including all of those -mno-xxx flags. This
  has been known to break the build process for packages like chromium,
  which always wants to build with SSE4 support and toggles it off at
  runtime. Passing -mno-sse4.1 causes a build failure as it tries to use
  macros that are not defined.
 
 
  Isn't it possible that removing it for all packages would cause a more 
subtle
  problem with another faulty ebuild (like a program crashing due to an 
illegal
  instruction)?
 
 Passing -march=atom should be sufficient to ensure that you don't get
 any illegal instructions. The -mno-XXX flags are redundant, and MOSTLY
 harmless.
 
You got me curious as to why they're there being redundant and I think I found 
out why.

I looked at the code (gcc/config/i386/driver-i386.c) and there is a very slim 
chance that the -march reported by gcc when using -march=native will not be 
the most appropriate. In some cases it's guessed based on the features 
reported by the CPU but on other cases it trusts the model number and Intel 
lists several Atom server CPUs and SoCs with no extensions at all (I have no 
idea what they report themselves like or if their specs are right). All the -
mxxx and -mno-xxx flags are determined by the features reported by the CPU so 
no chance of error there (save from a CPU bug).

I guess gcc devs are careful when using the model numbers (Intel lists 3 for 
Atoms, gcc uses only two so that may account for the models I mentioned) but 
the chance of error is there. The -mno-xxx flags would safeguard against it.

-- 
Fernando Rodriguez



Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-22 Thread Fernando Rodriguez
On Sunday, March 22, 2015 10:03:01 AM Mike Gilbert wrote:
 On Sat, Mar 21, 2015 at 3:52 PM, Fernando Rodriguez
 frodriguez.develo...@outlook.com wrote:
  On Saturday, March 21, 2015 8:46:10 AM Mike Gilbert wrote:
  On Thu, Mar 19, 2015 at 12:20 AM, Walter Dnes waltd...@waltdnes.org 
wrote:
   CFLAGS=-O2 -march=atom -mno-cx16 -msahf -mmovbe -mno-aes -mno-pclmul -
  mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-
bmi2 -
  mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rtm -
mno-
  hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -
mfxsr
  -mno-xsave -mno-xsaveopt --param l1-cache-size=24 --param l1-cache-line-
  size=64 --param l2-cache-size=512 -mtune=atom -fstack-protector -
mfpmath=sse -
  fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-
tables
  
 Is that correct (assuming that's my output)?
  
 
  I should warn you against including all of those -mno-xxx flags. This
  has been known to break the build process for packages like chromium,
  which always wants to build with SSE4 support and toggles it off at
  runtime. Passing -mno-sse4.1 causes a build failure as it tries to use
  macros that are not defined.
 
 
  Isn't it possible that removing it for all packages would cause a more 
subtle
  problem with another faulty ebuild (like a program crashing due to an 
illegal
  instruction)?
 
 Passing -march=atom should be sufficient to ensure that you don't get
 any illegal instructions. The -mno-XXX flags are redundant, and MOSTLY
 harmless.
 
 In the case of chromium, the build system adds -msse4.1 for specific
 files (just the ones using SSE4.1 instructons). When you have
 -mno-sse4.1, this takes precedence and the build fails.
 

Thanks for explaining.

-- 
Fernando Rodriguez



[gentoo-user] Deleted kdevelop ebuilds

2015-02-27 Thread Fernando Rodriguez

I've been using kdevelop-4.7.0 (unstable) for a while and it was working just 
fine. Then about a couple weeks ago it's ebuild got deleted from the portage 
tree and replaced with kdevelop-4.7.1 which is broken (I have issues with 
remote debugging).

Why does a good ebuild gets replaced with a broken one? Is there any way to 
make sure that packages that I'm using don't get removed from the portage tree
or at least that the package doesn't get downgraded automatically. Right now 
if I install an unstable package by keywording a specific version and it gets 
deleted you get downgraded the next time you run emerge -vauDN so you have no 
simple way of going back to your working configuration since the ebuild is 
gone.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: Deleted kdevelop ebuilds

2015-03-01 Thread Fernando Rodriguez
On Sunday, March 01, 2015 3:01:09 AM Michael Palimaka wrote:
 On 27/02/15 19:07, Fernando Rodriguez wrote:
  
  I've been using kdevelop-4.7.0 (unstable) for a while and it was working 
just 
  fine. Then about a couple weeks ago it's ebuild got deleted from the 
portage 
  tree and replaced with kdevelop-4.7.1 which is broken (I have issues with 
  remote debugging).
  
  Why does a good ebuild gets replaced with a broken one? Is there any way 
to 
  make sure that packages that I'm using don't get removed from the portage 
tree
  or at least that the package doesn't get downgraded automatically. Right 
now 
  if I install an unstable package by keywording a specific version and it 
gets 
  deleted you get downgraded the next time you run emerge -vauDN so you have 
no 
  simple way of going back to your working configuration since the ebuild is 
  gone.
  
 
 Don't forget to file a bug so we can track your issue.

Should I file one with gentoo even if it's an upstream bug?

-- 
Fernando Rodriguez



Re: [gentoo-user] gummibootx64.efi OR bootx64.efi?

2015-03-01 Thread Fernando Rodriguez
On Monday, March 02, 2015 12:11:51 AM German wrote:
 Out of curiosity I looked into my /boot partition and found two .efi files. 
One is /boot/efi/gummiboot/gummibootx64.efi and another is 
/boot/efi/boot/bootx64.efi. I remember I've created /boot/efi/boot/bootx64.efi 
during install by copying kernel image file to it and supposedly it was for 
efibootmng. I think gummiboot has created its own gummibootx64.efi. Is that 
safe 
to delete */boot/bootx64.efi? Thanks

It should be but the easiest certain way to find out is to move it and reboot, 
if the system doesn't boot then restore it. Also efibootmgr -v will show you 
which one you're using.

-- 
Fernando Rodriguez



Re: [gentoo-user] EFI install ( continum) [ system hangs at boot ]

2015-03-01 Thread Fernando Rodriguez
On Saturday, February 28, 2015 12:50:37 PM Tom H wrote:
 On Fri, Feb 27, 2015 at 5:47 PM, Fernando Rodriguez
 frodriguez.develo...@outlook.com wrote:
 
  Efibootmgr is not a boot manager, it's an utility to interface with the EFI
  firmware on the motherboard and you don't need to hardcode the command line 
on
  the kernel, look at the -u option of efibootmgr. You can even load an 
initrd
  with it by specifying the efi_memmap boot option. I use something like this 
(it
  shoulld work with any firmware because Windows uses it):
 
  efibootmgr -p 2 -c -b 0001 -l \EFI\Linux\vmlinuz.efi -L Gentoo Linux -u
  root=/dev/sda2 resume=/dev/sda3 quiet splash efi_memmap
  initrd=/EFI/Linux/initramfs.img
 
 Interesting. I must be over-complicating things because I use the
 following when I want to use the EFI stub without gummiboot:
 
 # cat /boot/efi/efi-extra.txt \
 | iconv -f ascii -t ucs2 \
 | efibootmgr -b  -c -L 3.19.0 -l vmlinuz-3.19.0 -u -@ -
 
 where
 
 # cat /boot/efi/efi-extra.txt
 initrd=initrd.img-3.19.0
 root=UUID=b51ee688-137c-47ec-9635-b69434b4e1f8 ro
 init=/lib/systemd/systemd
 

It's a good idea to do that as it's less error prone. I don't know if you need 
iconv in the pipeline but if you put the arguments on the command line it's 
not needed. I just called my kernel vmlinuz.efi so I don't need to do that 
everytime I update it and use grub if I need to boot an alternate kernel or 
boot with different options.

-- 
Fernando Rodriguez



Re: [gentoo-user] Deleted kdevelop ebuilds

2015-02-27 Thread Fernando Rodriguez
On Friday, February 27, 2015 11:45:52 AM Alan McKinnon wrote:

 You can look in the packages Changelog in the portage tree, perhaps
 there's an entry there explaining why the old version was removed.

It only says Version bump. Removed old
 
 ebuilds are never truly lost, if you still have it installed the ebuild
 is stored in /var/db. If not, you can find it in the gentoo attic
 (google can help), download it and put it in your local overlay. Mask
 the versions you don't want and portage will ensure your local copy
 stays installed.

Thanks, I found it on the attic, I didn't know you could get deleted ebuilds 
from it. I think it would be best if portage didn't downgrade packages 
automatically.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] EFI install ( continum) [ system hangs at boot ]

2015-02-27 Thread Fernando Rodriguez
On Friday, February 27, 2015 10:14:18 AM German wrote:
 Hmm.. I was using some sort of boot manager, efibootmgr, however there was no 
word in install docs how to configure it to point to root device.. So, are you 
advising on gummiboot? Are people happy with it? I found gentoo wiki how to 
configure it, so I must give it a try. Thanks for your input, I guess the 
problem is solved now. On to the next install with gummi
 

Efibootmgr is not a boot manager, it's an utility to interface with the EFI 
firmware on the motherboard and you don't need to hardcode the command line on 
the kernel, look at the -u option of efibootmgr. You can even load an initrd 
with it by specifying the efi_memmap boot option. I use something like this (it 
shoulld work with any firmware because Windows uses it):

efibootmgr -p 2 -c -b 0001 -l \EFI\Linux\vmlinuz.efi -L Gentoo Linux -u 
root=/dev/sda2 resume=/dev/sda3 quiet splash efi_memmap 
initrd=/EFI/Linux/initramfs.img

I normally boot directly with the EFI stub because it's slightly faster and 
prettier (completely graphical) but I also have GRUB2 installed as a separate 
EFI entry for flexibility in case I need to boot another kernel or play with 
the command line at boot time.


-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: xfreerdp clipboard not working

2015-03-26 Thread Fernando Rodriguez
On Wednesday, March 25, 2015 9:46:52 PM Grant Edwards wrote:
 On 2015-03-25, Grant Edwards grant.b.edwa...@gmail.com wrote:
  On 2015-03-25, Grant Edwards grant.b.edwa...@gmail.com wrote:
 
  I start it, and it says it's loading the clipboard plugin
 
  $ xfreerdp +clipboard /u:xx /p:yy /v:N.N.N.N
  loading channel cliprdr
  connected to N.N.N.N:3389
 
  But no ctrl-V never pastes anything from the X11 clipboard the way it
  always did with rdesktop.
 
  Um, never mind.
 
  It has started working, but I have no idea why... :/
 
 I spoke too soon.  Sometimes it works, sometimes it doesn't.  I seems
 to be completely random.
 

This may not be very helpful but I can tell you that in KDE using the krdc 
frontend and klipper it works. Sometimes modifier keys stop working at all. 
When that happens I just disconnect and reconnect.

-- 
Fernando Rodriguez



Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-24 Thread Fernando Rodriguez
 number, you'll know when you see the 
CPU usage maxing on the hosts during a parallel build. Keep in mind that most 
makefiles don't do a lot of parallel compiling so you need to use the monitor 
utility to check during a busy time.

Also if you're using wireless and you can connect via ethernet do that because 
you will see a LOT of traffic.

-- 
Fernando Rodriguez



Re: [gentoo-user] [OFF TOPIC] Qt Creator unable to access containers in debug mode

2015-03-24 Thread Fernando Rodriguez
On Tuesday, March 24, 2015 10:07:56 AM Francisco Ares wrote:
 Hi,
 
 Recently - but can't figure out exactly when - Qt Creator has become unable
 to access Qt containers (where the STL ones work as expected) on the debug
 panel.  It shows not accessible in place of the expected item quantity
 for a QList, for instance, but for a std::vectorstd::string, it works,
 allowing inspection of all items.
 
 Any hints on what I may be doing wrong? The headers are all accessible, for
 instance. Should I build Qt with debug symbols enabled, as recommended for
 glibc?
 
 Using current Qt 4.8.5, Qt Creator 2.8.1, gdb 7.7.1, gcc 4.8.3
 
 Thanks!
 Francisco

Try to print it from gdb cli, if it works you'll know the issue QtCreator, 
otherwise you're likely missing some symbols. You should always compile any 
development libraries with debug symbols.

-- 
Fernando Rodriguez



Re: [gentoo-user] preserved-rebuild python endless loop

2015-03-23 Thread Fernando Rodriguez
On Monday, March 23, 2015 4:38:08 PM Dale wrote:
 Howdy,
 
 For the past week or so, I been getting this endless loop with
 preserved-rebuild.  I did a emerge -ev world last night and it still
 gives me the same thing.  I'm stumped with the info emerge is giving me
 again.
 
 root@fireball / # emerge @preserved-rebuild
 
 These are the packages that would be merged, in order:
 
 Calculating dependencies... done!
 [ebuild   R] dev-lang/python-3.3.5-r1:3.3::gentoo  USE=gdbm ipv6
 ncurses readline sqlite ssl threads tk xml -build -doc -examples
 -hardened -wininst 0 KiB
 [ebuild   R] dev-lang/python-2.7.9-r1:2.7::gentoo  USE=gdbm ipv6
 ncurses readline sqlite ssl threads tk (wide-unicode) xml -berkdb -build
 -doc -examples -hardened -wininst 0 KiB
 [ebuild   R] dev-lang/python-3.4.1:3.4::gentoo  USE=gdbm ipv6
 ncurses readline sqlite ssl threads tk xml -build -examples -hardened
 -wininst 0 KiB
 
 Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
 
  Verifying ebuild manifests
  Emerging (1 of 3) dev-lang/python-3.3.5-r1::gentoo
  Emerging (2 of 3) dev-lang/python-2.7.9-r1::gentoo
  Emerging (3 of 3) dev-lang/python-3.4.1::gentoo
  Installing (2 of 3) dev-lang/python-2.7.9-r1::gentoo
  Installing (1 of 3) dev-lang/python-3.3.5-r1::gentoo
  Installing (3 of 3) dev-lang/python-3.4.1::gentoo
  Jobs: 3 of 3 complete   Load avg: 3.99,
 2.91, 1.47
  Auto-cleaning packages...
 
  No outdated packages were found on your system.
 
  * GNU info directory index is up-to-date.
 
 !!! existing preserved libs:
  package: dev-lang/tk-8.5.17
  *  - /usr/lib64/libtk8.6.so
  *  used by /usr/lib64/python2.7/lib-dynload/_tkinter.so
 (dev-lang/python-2.7.9-r1)
  *  used by /usr/lib64/python3.3/lib-dynload/_tkinter.cpython-33.so
 (dev-lang/python-3.3.5-r1)
  *  used by /usr/lib64/python3.4/lib-dynload/_tkinter.cpython-34.so
 (dev-lang/python-3.4.1)
  package: dev-lang/tcl-8.5.17
  *  - /usr/lib64/libtcl8.6.so
  *  used by /usr/lib64/python2.7/lib-dynload/_tkinter.so
 (dev-lang/python-2.7.9-r1)
  *  used by /usr/lib64/python3.3/lib-dynload/_tkinter.cpython-33.so
 (dev-lang/python-3.3.5-r1)
  *  used by /usr/lib64/python3.4/lib-dynload/_tkinter.cpython-34.so
 (dev-lang/python-3.4.1)
 Use emerge @preserved-rebuild to rebuild packages using these libraries
 
  * IMPORTANT: config file '/etc/bash/bashrc' needs updating.
 
  * IMPORTANT: config file '/usr/share/config/kdm/kdmrc' needs updating.
  * See the CONFIGURATION FILES section of the emerge
  * man page to learn how to update config files.
 root@fireball / #
 
 
 I've also rebuilt tcl and tk before doing a emerge -ev world.  Where is
 my hammer? 
 
 Thanks.
 
 Dale
 
 :-)  :-) 
 

http://wiki.gentoo.org/wiki/Preserve-libs

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: [OFF TOPIC] Qt Creator unable to access containers in debug mode

2015-03-24 Thread Fernando Rodriguez
On Tuesday, March 24, 2015 9:32:07 PM Nikos Chantziaras wrote:
 On 24/03/15 21:12, Fernando Rodriguez wrote:
  On Tuesday, March 24, 2015 10:07:56 AM Francisco Ares wrote:
  Hi,
 
  Recently - but can't figure out exactly when - Qt Creator has become 
unable
  to access Qt containers (where the STL ones work as expected) on the 
debug
  panel.  It shows not accessible in place of the expected item quantity
  for a QList, for instance, but for a std::vectorstd::string, it works,
  allowing inspection of all items.
 
  Any hints on what I may be doing wrong? The headers are all accessible, 
for
  instance. Should I build Qt with debug symbols enabled, as recommended 
for
  glibc?
 
  Using current Qt 4.8.5, Qt Creator 2.8.1, gdb 7.7.1, gcc 4.8.3
 
  Thanks!
  Francisco
 
  Try to print it from gdb cli, if it works you'll know the issue QtCreator,
  otherwise you're likely missing some symbols. You should always compile 
any
  development libraries with debug symbols.
 
 You don't need debug symbols for inspecting containers. They are not 
 needed. The only reason for enabling debug symbols in Qt is if you want 
 to step into Qt's code.

Thank you. You do need symbols though, just not Qts for this specific case. 
There are many reasons why you should compile your development libraries with 
symbols besides stepping into the code. Such as getting a backtrace. Even 
proprietary (closed-source) libraries often make the symbols available for 
this reason.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: Is this a bug in firefox-36.0?

2015-03-19 Thread Fernando Rodriguez
On Thursday, March 19, 2015 3:57:05 AM walt wrote:
 On 03/18/2015 06:06 PM, Fernando Rodriguez wrote:
  On Wednesday, March 18, 2015 4:41:25 PM walt wrote:
  On 03/17/2015 04:49 PM, walt wrote:
  I get a certificate verification error when visiting https://www.att.com
  using firefox-36.0, but not when using chrome-41.0.2272.76.
 
  Thanks to all who replied.  I'm surprised by the variety of different 
results
  you reported.
 
  (BTW, I'm running firefox-bin-36.0, so the behavior may be a bit different 
  from
  the gentoo build.)
 
  FF will not even show me the secure att.com webpage.  I get an entire 
html 
  page
  with this (very big) error message:
 
  Secure Connection Failed
 
  An error occurred during a connection to www.att.com. The OCSP server 
  experienced
  an internal error. (Error code: sec_error_ocsp_server_error)
 
  The page you are trying to view cannot be shown because the authenticity 
of 
  the
  received data could not be verified.
 
  Please contact the website owners to inform them of this problem.
 
 
  
  That sounds more like a networking issue. Are you behind a firewall? Is it 
  possible that you somehow blocked their OCSP server? Can you bypass the 
  firewall for testing?
 
 Wow, creepy.  I forced a warm reboot of my home wireless router and the 
problem
 went away.  I now see the gray triangle with the ! and I have no idea how 
long
 ago that started.  I probably just didn't notice it until this router screw-
up
 happened.  And I don't even want to think about why my home router suddenly
 changed behavior :(

It probably started Jan 20 when they renewed the certificate. See 
http://www.certificate-transparency.org/ev-ct-plan (from Mick's link). It 
refers to chrome but probably applies to firefox as well.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Broken localepurge

2015-03-19 Thread Fernando Rodriguez
On Thursday, March 19, 2015 10:15:58 AM Peter Humphrey wrote:
 Hello list,
 
 Bug https://bugs.gentoo.org/show_bug.cgi?id=491010 registers the fact that 
 specifying -nocolor to localepurge causes it to stop, and a diff is included 
 to fix the problem. But that was 16 months ago, no-one's done anything since 
 and the fault is still present.
 
 I haven't done any patching of ebuilds before, so I have some learning to 
 do. Meanwhile, does anyone here have a ready fix?

Looks like Jan-Matthias does.
You can just apply the patch directly to the localepurge script.

patch /usr/bin/localepurge localepurge-0.5.4-fix_option_parsing.patch

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] syslog-ng: reporting no space though there's plenty

2015-03-23 Thread Fernando Rodriguez
On Monday, March 23, 2015 5:37:28 PM hw wrote:
 
 Hi,
 
 syslog-ng keeps reporting:
 
 
 Mar 23 17:34:41 sunflo-mx syslog-ng[27532]: Error suspend timeout has 
 elapsed, attempting to write again; fd='15'
 Mar 23 17:34:41 sunflo-mx syslog-ng[27532]: Suspending write operation 
 because of an I/O error; fd='15', time_reopen='60'
 
 
 while there's plenty of disk space available.  Restarting it didn't 
 help.  This is from an LXC container --- could there be some disk limit 
 in effect by default which I don't know about?
 

Post the output of:

ls -l /proc/27532/fd/15

where 27532 is the pid next syslog-ng on the log and 15 is the fd value.

-- 
Fernando Rodriguez



Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-23 Thread Fernando Rodriguez
On Monday, March 23, 2015 6:48:39 PM Mike Gilbert wrote:
 On Mon, Mar 23, 2015 at 6:41 PM, Fernando Rodriguez
 frodriguez.develo...@outlook.com wrote:
  On Monday, March 23, 2015 6:18:46 PM Mike Gilbert wrote:
  On Mon, Mar 23, 2015 at 9:51 PM, Walter Dnes waltd...@waltdnes.org 
wrote:
   On Sun, Mar 22, 2015 at 09:25:53PM -0400, Fernando Rodriguez wrote
  
   I guess gcc devs are careful when using the model numbers (Intel
   lists 3 for Atoms, gcc uses only two so that may account for the
   models I mentioned) but the chance of error is there. The -mno-xxx
   flags would safeguard against it.
  
 I have one of the earliest Atom chips.  Some people have a hard time
   believing this, but it's a 32-bit-only chip;  a couple of lines from
   /proc/cpuinfo
  
   model name  : Intel(R) Atom(TM) CPU Z520   @ 1.33GHz
   address sizes   : 32 bits physical, 32 bits virtual
  
 Intel gives the CPU's specs at...
  
   http://ark.intel.com/products/35466/Intel-Atom-Processor-Z520-512K-Cache-1_33-GHz-533-MHz-FSB
  
   ...where it specifically says...
  
   Intel 64 # No
  
 I want to make absolutely certain that illegal instructions are not
   compiled for it.
 
  You will probably need to add -m32 to CFLAGS to avoid building 64-bit
  objects on the 64-bit machine.
 
 
  Your CPU is an example of what I'm saying, not just because it doesn't 
have 64
  bit extensions but because it doesn't have MMX (at least according to the
  specs) and according to the GCC manual -march=atom means: Intel Atom CPU 
with
  64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3 and SSSE3 instruction set
  support. So I guess it's more common than I thought.
 
  So you may also want to add -mno-mmx to be sure. GCC does check for mmx 
but it
  doesn't not use it on the output (probably a bug?).
 
 
 It's much more likely that Intel's website doesn't bother including
 MMX because it is so damn old that nobody cares.
 
 /proc/cpuinfo would be a more reliable source of data.
 

I agree that's very likely, that's why I said if the specs are right...
This one doesn't list any SIMD extensions at all:
http://ark.intel.com/products/85475/Intel-Atom-x7-Z8700-Processor-2M-Cache-up-to-2_40-GHz


-- 
Fernando Rodriguez



Re: [gentoo-user] Will a 64-bit-no-multilib machine cross-compile 32-bit code?

2015-03-23 Thread Fernando Rodriguez
On Monday, March 23, 2015 6:18:46 PM Mike Gilbert wrote:
 On Mon, Mar 23, 2015 at 9:51 PM, Walter Dnes waltd...@waltdnes.org wrote:
  On Sun, Mar 22, 2015 at 09:25:53PM -0400, Fernando Rodriguez wrote
 
  I guess gcc devs are careful when using the model numbers (Intel
  lists 3 for Atoms, gcc uses only two so that may account for the
  models I mentioned) but the chance of error is there. The -mno-xxx
  flags would safeguard against it.
 
I have one of the earliest Atom chips.  Some people have a hard time
  believing this, but it's a 32-bit-only chip;  a couple of lines from
  /proc/cpuinfo
 
  model name  : Intel(R) Atom(TM) CPU Z520   @ 1.33GHz
  address sizes   : 32 bits physical, 32 bits virtual
 
Intel gives the CPU's specs at...
 
  http://ark.intel.com/products/35466/Intel-Atom-Processor-Z520-512K-Cache-1_33-GHz-533-MHz-FSB
 
  ...where it specifically says...
 
  Intel 64 # No
 
I want to make absolutely certain that illegal instructions are not
  compiled for it.
 
 You will probably need to add -m32 to CFLAGS to avoid building 64-bit
 objects on the 64-bit machine.
 

Your CPU is an example of what I'm saying, not just because it doesn't have 64 
bit extensions but because it doesn't have MMX (at least according to the 
specs) and according to the GCC manual -march=atom means: Intel Atom CPU with 
64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3 and SSSE3 instruction set 
support. So I guess it's more common than I thought.

So you may also want to add -mno-mmx to be sure. GCC does check for mmx but it 
doesn't not use it on the output (probably a bug?).


-- 
Fernando Rodriguez



Re: [gentoo-user] Question of quantum computer

2015-04-02 Thread Fernando Rodriguez
On Friday, April 03, 2015 1:25:59 AM Ivan Viso Altamirano wrote:
 Ii think it is about Quantum bonds . In wich 2 particles share the same
 State  at any distance .

And about PhDs extracting research funds from politicians :)

-- 
Fernando Rodriguez



Re: [gentoo-user] Question of quantum computer

2015-04-03 Thread Fernando Rodriguez
On Friday, April 03, 2015 5:05:35 AM waben...@gmail.com wrote:
 Boricua Siempre borikua.197...@gmail.com wrote:
 
  Hello
  
  I have reading of quantum computing and I want know what operating
  systems are use in quantum computers. And I read quantum computers
 
 I don't think that (yet) there exists computers that are completely 
 based on quantum components. Maybe they have a quantum based arithmetic
 unit but the other components are certainly conventional. I don't know
 what kind of OS is used on such machines. But I wouldn't be surprised 
 if it is some kind of BSD or Linux (maybe Gentum-OS). ;-)

And there probably never will. An operating system requires deterministic 
behaviour and as I understand it (and I'm not an expert) quantum computing can 
only deal with probabilities so a quantum OS would probably crash :)

What we do have is the quantum equivalent of the circuits you may do on a high 
school computer club to add a few bits. The most complex ones may run simple 
algorithms but are not much more than that as far as I know.
 
  can use particols moving faster than light but on other book
  particels faster than light make analog sonar boom that can destroy
  universe. Is quantum computer dangerus? Sorry if my english not good,
  still learning.
 
 I'm really not an expert on quantum physics but I don't think that a 
 quantum computer could be dangerous. :-)
 
 In fact, a quantum is the minimum amount of any physical entity 
 involved in an interaction (wikipedia). 
 
 I could imagine that a single high energy gamma quantum (that can have 
 a energy of some MeV) could maybe destroy a flash memory cell or a DNA 
 molecule. But such high energetic photons are not used in quantum 
 computers. Quantum does there only means that they are using very small
 entities which can be described by the theories of quantum mechanic, 
 like electron spins or quantum entangled photons.
 
 And of course there doesn't exist particles that are moving faster than
 light (at least no such particle is ever be detected and AFAIK there 
 are absolutely no indications that such particles exits). You probably

There is a sort of analogue to a sonic boom for light speed. It happens when a 
particle travels faster than light in a medium. No massive particle can travel 
at the speed of light in vacuum but light travels much slower through a medium 
and particles can be accelerated much faster. It happens in nuclear reactors. 
Of course it doesn't destroy the universe, it just emits a blue light known a 
Cherenkov radiation.

 mean quantum teleportation. But this has nothing to to with the 
 movement of particles. It is a phenomenon that results from the quantum
 entanglement of e.g. two electrons and has to do with the nonlocality
 of such phenomenons. When you measure the quantum attributes of one of 
 these two electrons you instantaneous influence the quantum attributes 
 of the other one, regardless of its distance. But if you wanna know the
 quantum attributes of the second electron you need the information 
 about the measurement of the first one. And because you cannot transmit
 this information faster than light you also cannot use quantum 
 teleportation to really transmit information faster than light.

The best laymen terms explanation I've heard of this is by Murray Gell-Mann in 
The Quark and the Jaguar. The state is really determined when the particles 
are entangled. The principle of uncertainty holds because we cannot know the 
state until we make the measurement but there's no spooky action at a 
distance.

 My English as well as my knowledge about quantum physics is not 
 sufficient to explain it better. But you can find many information about
 the strange and also fascination aspects of quantum mechanics in the
 internet. Just look at wikipedia. 
 
 --
 Regards
 wabe
 

-- 
Fernando Rodriguez



Re: [gentoo-user] Anyone here speak vala?

2015-04-13 Thread Fernando Rodriguez
On Monday, April 13, 2015 4:13:40 PM walt wrote:
 I'm trying to install dev-libs/granite but the install fails with this bit 
of wit:
 
 /var/tmp/portage/dev-
libs/granite-0.2.3.1/work/granite-0.2.3.1/lib/Widgets/DynamicNotebook.vala:509.19-509.49:
 
error: Return value transfers ownership but method return type hasn't been 
declared to transfer ownership
 get { return add_button.tooltip_text; }
   ^^^
 
 Sometimes I despair of software devs ever learning to communicate with 
humans :(
 
 

I don't know Vala but I can tell you what's going on. It's a version mismatch 
between the compiler and library. Since vala is in early stages the syntax is 
still changing. So the answer is to file a bug with gentoo.

However you can get it to compile with valac-0.24 but it looks for valac-0.26 
so:

# mv /usr/bin/valac-0.26 /usr/bin/valac-0.26.old
# cp /usr/bin/valac-0.24 /usr/bin/valac-0.26
# emerge dev-libs/granite

And then restore the original valac-0.26. This will compile successfully but 
with several warnings so it may not actually work.

-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] qpdfview - asking for qt4 or qt5

2015-04-25 Thread Fernando Rodriguez
On Saturday, April 25, 2015 10:54:03 AM Joseph wrote:
 I've on my system qpdfview (without qt*) but the system wants to upgrade 
to qpdfview-0.4.13-r1
 and it is asking for qt4 or qt5
 -
 !!! The ebuild selected to satisfy app-text/qpdfview has unmet 
requirements.
 - app-text/qpdfview-0.4.13-r1::gentoo USE=cups dbus pdf svg -djvu (-fitz) -
postscript -qt4 (-qt5) -sqlite -synctex ABI_X86=64 LINGUAS=-ast -az -bg -
bs -ca -cs 
 -da -de -el -en_GB -eo -es -eu -fi -fr -gl -he -hr -id -it -kk -ko -ky -lt -
ms -my -pl -pt -pt_BR -ro -ru -sk -sv -tr -ug -uk -vi -zh_CN
 
   The following REQUIRED_USE flag constraints are unsatisfied:
 exactly-one-of ( qt4 qt5 )
 
   The above constraints are a subset of the following complete expression:
 exactly-one-of ( qt4 qt5 ) at-most-one-of ( fitz pdf )
 -
 
 Why? 

Because you didn't have it without qt4, it wasn't optional. Now that it is you 
must choose. Since you've been using qt4 I would stick with it unless you're 
feeling adventurious.

-- 
Fernando Rodriguez



Re: [gentoo-user] [~amd64] Confusing behavior from gdb

2015-04-25 Thread Fernando Rodriguez
On Saturday, April 25, 2015 7:42:30 PM cov...@ccs.covici.com wrote:
  (gdb) list mount.c:123
  118 else
  119 fputc(*p, stdout);
  120 }
  121 }
  122 
  123 static void print_all(struct libmnt_context *cxt, char *pattern, int 
show_label)
  124 {
  125 struct libmnt_table *tb;
  126 struct libmnt_iter *itr = NULL;
  127 struct libmnt_fs *fs;
  (gdb) 
  
  
  This seems to me to be very buggy behavior, but I'd like to get opinions 
from
  people who really know gdb, which I don't.
 
 I think it wants to put you on the first real statement of the function.
 

Yes. Also, if you compiled with any optimizations compile again with none. 
That way the compiler will try to generate code that matches the order of your 
C statements. It doesn't guarantees that this won't happen but with 
optimizations if you try to step through the source it'll definitely be jumping 
back and forth. The first statement here is line 126 but it may be optimized 
away or out of order. Also for source code debugging it'll be much easier to 
use a graphical frontend (ddd,kdbg,kdevelop,etc).

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: Half error message on attempting to access You Tube from Firefox

2015-04-26 Thread Fernando Rodriguez
On Sunday, April 26, 2015 1:03:30 PM »Q« wrote:
 On Sun, 26 Apr 2015 16:49:27 +
 Alan Mackenzie a...@muc.de wrote:
 
  On Sun, Apr 26, 2015 at 11:23:53AM -0500, »Q« wrote:
 
   Alan, I think Firefox relies on gstreamer for at least some of its
   HTML5 playback capability, so USE=-gstreamer may be at the root of
   the  issue.  On the YouTube HTML5 page, do you get a What does this
   browser support? section?  If so, what does it say?
  
  Of the six boxes there, I have ticks (?check marks?) on
o - HTMLVideoElement
o - WebM VP8
  I have exclamation marks on all the others, namely
o - H.264
 ^
 This is the only one which I have but you don't, and HTML video plays ok
 for me with Firefox 37.0.2.
 
o - Media Source Extensions
o - MSE  H.264
o - MSE  WebM VP9
 
 The MSE ones are disabled in all Firefoxen for now.  They tried
 enabling support recently, but uncovered so many bugs they had to
 disable it right away.
 
  It's frustrating that HTML5 isn't mentioned in that list of six.
 
 HTML5 video encompasses several formats.  HTMLVideoElement checked
 just means the browser will recognize video elements, and the others
 are various formats.
 
  I'll take your tip and try rebuilding with gstreamer enabled.  Thanks!
 
 I hope it works!  I just tried looking at which gst-plugins I have
 installed, to figure out which might give H.264 support, but I can't
 make sense of it.
 

Do you have the OpenH264 Video Codec provided by Cisco Systems firefox add-on 
installed (I think it comes with firefox). I have it but I still don't have 
H.264 checked on that page and I can't play some H.264 videos like this one 
https://www.microsoft.com/microsoft-hololens/en-us. If you have it, do you 
mind disabling it to check if that's where you're getting H.264 support from?

I have no problems playing youtube videos without it (both HTML5 and Flash) 
and I don't have gstreamer enabled on firefox.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: Strange new behavior from the mount command

2015-04-19 Thread Fernando Rodriguez
On Sunday, April 19, 2015 3:18:38 PM walt wrote:
 
 As a quick-and-dirty way of testing your idea I moved /etc/fstab out of the 
way.
 
 I was surprised to learn that mount doesn't care about fstab, and doesn't 
even
 bother to look for it (when invoked with no arguments).
 

You'll have to play with the options to test my idea. It doesn't need to 
access it when called without arguments but it does (either directly or 
indirectly) when mounting volumes, either by mount -a at boot or whatever was 
used to mount them. Since mount(8) is an interface to mount(2) and friends, 
all the mount options are already cached by the kernel and it'll have access 
to them. You can also tell if the mount options on fstab are overriden by 
something else by comparing the output of mount (with no args) with your fstab 
file.

-- 
Fernando Rodriguez



Re: [gentoo-user] abi_x86_32 FLAG

2015-04-22 Thread Fernando Rodriguez
On Tuesday, April 21, 2015 12:19:03 PM Peter Humphrey wrote:
 On Tuesday 21 April 2015 12:38:40 Heiko Baums wrote:
  Am 21.04.2015 um 03:14 schrieb Joseph:
   I don't think grub is asking for it.
  
  I know it does, because grub-0.97 is 32 bit only software, and the
  package sys-boot/grub-0.97-r14 compiles grub from the sources with
  dynamic linking. So it needs 32 bit dependencies (packages with
  USE=abi_x86_32) incl. sys-devel/gcc.
 
 Not here, it doesn't. 
 

It does unless you set the -ncurses flag.
You don't need to specify abi_x86_32 for grub because it's 32bit only but it 
does depend on =sys-libs/ncurses-5.9-r3[abi_x86_32(-)].

It doesn't need a 32 bit gcc though, only multilib enabled gcc and I think 
that's always the case on gentoo cause the ebuild doesn't have either multilib 
or abi_x86_32 flags.
-- 
Fernando Rodriguez



Re: [gentoo-user] Half error message on attempting to access You Tube from Firefox

2015-04-28 Thread Fernando Rodriguez
On Monday, April 27, 2015 1:24:59 AM Stroller wrote:
 
 On Sun, 26 April 2015, at 3:49 pm, Alan Mackenzie a...@muc.de wrote:
 
  The following USE flags were used in my building of firefox 31.6.0:
  
 USE=bindist dbus jit minimal startup-notification -custom-cflags
 -custom-optimization -debug -gstreamer -hardened (-pgo) -pulseaudio
 (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx
 -system-sqlite {-test} -wifi
 
 `euses system-libvpx` says use the system-wide media-libs/libvpx and if we 
look up media-libs/libvpx then its description explains that its about the 
WebM VP8 codec. It would be better if it explained that this is a _video_ 
codec, but Gentoo's USE flag and package descriptions have always been rubbish.
 
 I would perhaps try rebuilding with USE=system-libvpx and checking the 
https://www.youtube.com/html5 page again.

I believe that's just an option between using the libvpx bundled with firefox 
as recommended by mozilla, or using the system libvpx.

 Personally, I would probably also try a later version of Firefox.
 
 I appreciate that 31.x is the latest stable version, but I doubt newer 
versions are actually unstable in any way, and if I google youtube html5 
firefox I find that Google will enforce the use of HTML5 video on YouTube for 
all Firefox users who use Firefox 33 or newer, FYI: Firefox 35 uses the 
HTML5 video player in Youtube by default and Firefox 37 Released With Native 
HTML5 YouTube Playback

Firefox 37 still uses the flash player for youtube. It will fallback on HTML5 
if the flash player crashes. There's an update on that page that the change has 
been delayed.

-- 
Fernando Rodriguez



Re: [gentoo-user] Half error message on attempting to access You Tube from Firefox

2015-04-28 Thread Fernando Rodriguez
On Monday, April 27, 2015 1:24:59 AM Stroller wrote:
 
 On Sun, 26 April 2015, at 3:49 pm, Alan Mackenzie a...@muc.de wrote:
 
  The following USE flags were used in my building of firefox 31.6.0:
  
 USE=bindist dbus jit minimal startup-notification -custom-cflags
 -custom-optimization -debug -gstreamer -hardened (-pgo) -pulseaudio
 (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx
 -system-sqlite {-test} -wifi
 
 `euses system-libvpx` says use the system-wide media-libs/libvpx and if we 
look up media-libs/libvpx then its description explains that its about the 
WebM VP8 codec. It would be better if it explained that this is a _video_ 
codec, but Gentoo's USE flag and package descriptions have always been rubbish.
 
 I would perhaps try rebuilding with USE=system-libvpx and checking the 
https://www.youtube.com/html5 page again.

I believe that's just an option between using the libvpx bundled with firefox 
as recommended by mozilla, or using the system libvpx.

 Personally, I would probably also try a later version of Firefox.
 
 I appreciate that 31.x is the latest stable version, but I doubt newer 
versions are actually unstable in any way, and if I google youtube html5 
firefox I find that Google will enforce the use of HTML5 video on YouTube for 
all Firefox users who use Firefox 33 or newer, FYI: Firefox 35 uses the 
HTML5 video player in Youtube by default and Firefox 37 Released With Native 
HTML5 YouTube Playback

Firefox 37 still uses the flash player for youtube. It will fallback on HTML5 
if the flash player crashes. There's an update on that page that the change has 
been delayed.

-- 
Fernando Rodriguez



Re: [gentoo-user] Half error message on attempting to access You Tube from Firefox

2015-04-28 Thread Fernando Rodriguez
On Monday, April 27, 2015 1:24:59 AM Stroller wrote:
 
 On Sun, 26 April 2015, at 3:49 pm, Alan Mackenzie a...@muc.de wrote:
 
  The following USE flags were used in my building of firefox 31.6.0:
  
 USE=bindist dbus jit minimal startup-notification -custom-cflags
 -custom-optimization -debug -gstreamer -hardened (-pgo) -pulseaudio
 (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx
 -system-sqlite {-test} -wifi
 
 `euses system-libvpx` says use the system-wide media-libs/libvpx and if we 
look up media-libs/libvpx then its description explains that its about the 
WebM VP8 codec. It would be better if it explained that this is a _video_ 
codec, but Gentoo's USE flag and package descriptions have always been rubbish.
 
 I would perhaps try rebuilding with USE=system-libvpx and checking the 
https://www.youtube.com/html5 page again.

I believe that's just an option between using the libvpx bundled with firefox 
as recommended by mozilla, or using the system libvpx.

 Personally, I would probably also try a later version of Firefox.
 
 I appreciate that 31.x is the latest stable version, but I doubt newer 
versions are actually unstable in any way, and if I google youtube html5 
firefox I find that Google will enforce the use of HTML5 video on YouTube for 
all Firefox users who use Firefox 33 or newer, FYI: Firefox 35 uses the 
HTML5 video player in Youtube by default and Firefox 37 Released With Native 
HTML5 YouTube Playback

Firefox 37 still uses the flash player for youtube. It will fallback on HTML5 
if the flash player crashes. There's an update on that page that the change has 
been delayed.

-- 
Fernando Rodriguez



Re: [gentoo-user] Half error message on attempting to access You Tube from Firefox

2015-04-28 Thread Fernando Rodriguez
On Monday, April 27, 2015 1:24:59 AM Stroller wrote:
 
 On Sun, 26 April 2015, at 3:49 pm, Alan Mackenzie a...@muc.de wrote:
 
  The following USE flags were used in my building of firefox 31.6.0:
  
 USE=bindist dbus jit minimal startup-notification -custom-cflags
 -custom-optimization -debug -gstreamer -hardened (-pgo) -pulseaudio
 (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx
 -system-sqlite {-test} -wifi
 
 `euses system-libvpx` says use the system-wide media-libs/libvpx and if we 
look up media-libs/libvpx then its description explains that its about the 
WebM VP8 codec. It would be better if it explained that this is a _video_ 
codec, but Gentoo's USE flag and package descriptions have always been rubbish.
 
 I would perhaps try rebuilding with USE=system-libvpx and checking the 
https://www.youtube.com/html5 page again.

I believe that option is just a choice between using the libvpx bundled with 
firefox (as recommended by mozilla) and using the system wide libvpx.

 Personally, I would probably also try a later version of Firefox.
 
 I appreciate that 31.x is the latest stable version, but I doubt newer 
versions are actually unstable in any way, and if I google youtube html5 
firefox I find that Google will enforce the use of HTML5 video on YouTube for 
all Firefox users who use Firefox 33 or newer, FYI: Firefox 35 uses the 
HTML5 video player in Youtube by default and Firefox 37 Released With Native 
HTML5 YouTube Playback

I'm using firefox 37 and it has always used the flash player. It has fallen 
back 
on HTML5 a few times because the flash plugin crashed. It uses flash even if I 
open a private session (no cookies) or even if I move the ~/.mozilla 
directory, It also says on that page that the option to switch between HTML5 
and Flash was removed on firefox 33 and I still have it so they must have 
changed their mind.

-- 
Fernando Rodriguez



Re: [gentoo-user] Half error message on attempting to access You Tube from Firefox

2015-04-28 Thread Fernando Rodriguez
On Monday, April 27, 2015 1:24:59 AM Stroller wrote:
 
 On Sun, 26 April 2015, at 3:49 pm, Alan Mackenzie a...@muc.de wrote:
 
  The following USE flags were used in my building of firefox 31.6.0:
  
 USE=bindist dbus jit minimal startup-notification -custom-cflags
 -custom-optimization -debug -gstreamer -hardened (-pgo) -pulseaudio
 (-selinux) -system-cairo -system-icu -system-jpeg -system-libvpx
 -system-sqlite {-test} -wifi
 
 `euses system-libvpx` says use the system-wide media-libs/libvpx and if we 
look up media-libs/libvpx then its description explains that its about the 
WebM VP8 codec. It would be better if it explained that this is a _video_ 
codec, but Gentoo's USE flag and package descriptions have always been rubbish.
 
 I would perhaps try rebuilding with USE=system-libvpx and checking the 
https://www.youtube.com/html5 page again.

I believe that's just an option between using the libvpx bundled with firefox 
as recommended by mozilla, or using the system libvpx.

 Personally, I would probably also try a later version of Firefox.
 
 I appreciate that 31.x is the latest stable version, but I doubt newer 
versions are actually unstable in any way, and if I google youtube html5 
firefox I find that Google will enforce the use of HTML5 video on YouTube for 
all Firefox users who use Firefox 33 or newer, FYI: Firefox 35 uses the 
HTML5 video player in Youtube by default and Firefox 37 Released With Native 
HTML5 YouTube Playback

Firefox 37 still uses the flash player for youtube. It will fallback on HTML5 
if the flash player crashes. There's an update on that page that the change has 
been delayed.

-- 
Fernando Rodriguez



Re: [gentoo-user] Difference between normal distcc and distcc with pump?

2015-05-04 Thread Fernando Rodriguez
On Sunday, May 03, 2015 11:59:08 PM Walter Dnes wrote:
 On Sun, May 03, 2015 at 02:57:46PM -0400, Fernando Rodriguez wrote
 
  Some packages do custom preprocessing and other weird things during
  the build process that cause problems with pump mode since it caches
  copies of the unmodified headers. If you're lucky it just fails (and
  usually falls back on compiling locally), if you're not then it may
  succeed and you'll get runtime bugs. I haven't find a package yet
  that fails without pump mode as long as your CFLAGS are set properly.
 
   Seamonkey fails during the build process.  Two tries, and the build
 log was 74,046 bytes each time.  I have an Intel x86_64 as the host, and
 an Atom i686 (32-bit only) as the client.  Given your description, I may
 drop pump altogether from my xmerge script.  I'll unmerge
 seamonkey-bin, and try distcc-building seamonkey from source, without
 pump, Monday when I have more time.  Here are a few lines from the
 failed build log, using pump...
 
 Executing: gcc -o nsinstall_real -march=atom -mtune=atom -fstack-protector -
pipe -mno-avx -DXP_UNIX -MD -MP -MF .deps/nsinstall_real.pp -O2 -DUNICODE -
D_UNICODE -Wl,-O1 -Wl,--as-needed host_nsinstall.o host_pathsub.o
 
 /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
i386:x86-64 architecture of input file `host_nsinstall.o' is incompatible with 
i386 output
 
 /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
i386:x86-64 architecture of input file `host_pathsub.o' is incompatible with 
i386 output
 
 /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
host_nsinstall.o: file class ELFCLASS64 incompatible with ELFCLASS32
 
 /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
final link failed: File in wrong format
 
 

The error on the link that you posted looks like cause by pump mode, this one 
I'm not so sure.

It looks like you're not using the cross compiler on the host as it would not 
generate 64 bit code. Did you add -m32 to your CFLAGS on the client box? Also 
you may need to set the custom-cflags use flag. Can you verify that it is using 
the cross compiler on the host?

I'm not sure exactly what the gentoo recommended distcc/cross compile setup 
but if you do it like I suggested on your other thread (using the host 64bit 
compiler) it should work. Look at the links you got under /usr/lib/distcc/bin. 
All you need to do is create scripts on the host with the exact same names and 
have them execute the compiler that you want with the options you want (I just 
have it execute the 64bit compiler with -m32). Then make sure that distccd (on 
host) finds them before the actual compiler by putting it in the PATH 
environment variable before anything else. For that you may need to modify the 
init script or unit file if using systemd or just start distccd manually.

A simpler hack is to just delete the c++, cc, gcc, and g++ symlinks from the 
/usr/lib/distcc/bin directory. That will force distcc to only trap the 
compiler invocations that use the full compiler name and end up using the 
cross compiler in the host, but if you do this you may end up compiling more 
stuff locally.


-- 
Fernando Rodriguez



Re: [gentoo-user] Difference between normal distcc and distcc with pump?

2015-05-04 Thread Fernando Rodriguez
On Monday, May 04, 2015 5:29:34 AM Fernando Rodriguez wrote:
 On Sunday, May 03, 2015 11:59:08 PM Walter Dnes wrote:
  On Sun, May 03, 2015 at 02:57:46PM -0400, Fernando Rodriguez wrote
  
   Some packages do custom preprocessing and other weird things during
   the build process that cause problems with pump mode since it caches
   copies of the unmodified headers. If you're lucky it just fails (and
   usually falls back on compiling locally), if you're not then it may
   succeed and you'll get runtime bugs. I haven't find a package yet
   that fails without pump mode as long as your CFLAGS are set properly.
  
Seamonkey fails during the build process.  Two tries, and the build
  log was 74,046 bytes each time.  I have an Intel x86_64 as the host, and
  an Atom i686 (32-bit only) as the client.  Given your description, I may
  drop pump altogether from my xmerge script.  I'll unmerge
  seamonkey-bin, and try distcc-building seamonkey from source, without
  pump, Monday when I have more time.  Here are a few lines from the
  failed build log, using pump...
  
  Executing: gcc -o nsinstall_real -march=atom -mtune=atom -fstack-protector 
-
 pipe -mno-avx -DXP_UNIX -MD -MP -MF .deps/nsinstall_real.pp -O2 -DUNICODE -
 D_UNICODE -Wl,-O1 -Wl,--as-needed host_nsinstall.o host_pathsub.o
  
  /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
 i386:x86-64 architecture of input file `host_nsinstall.o' is incompatible 
with 
 i386 output
  
  /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
 i386:x86-64 architecture of input file `host_pathsub.o' is incompatible with 
 i386 output
  
  /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
 host_nsinstall.o: file class ELFCLASS64 incompatible with ELFCLASS32
  
  /usr/lib/gcc/i686-pc-linux-gnu/4.8.4/../../../../i686-pc-linux-gnu/bin/ld: 
 final link failed: File in wrong format
  
  
 
 The error on the link that you posted looks like cause by pump mode, this 
one 
 I'm not so sure.
 
 It looks like you're not using the cross compiler on the host as it would 
not 
 generate 64 bit code. Did you add -m32 to your CFLAGS on the client box? 
Also 
 you may need to set the custom-cflags use flag. Can you verify that it is 
using 
 the cross compiler on the host?
 
 I'm not sure exactly what the gentoo recommended distcc/cross compile setup 
 but if you do it like I suggested on your other thread (using the host 64bit 
 compiler) it should work. Look at the links you got under 
/usr/lib/distcc/bin. 
 All you need to do is create scripts on the host with the exact same names 
and 
 have them execute the compiler that you want with the options you want (I 
just 
 have it execute the 64bit compiler with -m32). Then make sure that distccd 
(on 
 host) finds them before the actual compiler by putting it in the PATH 
 environment variable before anything else. For that you may need to modify 
the 
 init script or unit file if using systemd or just start distccd manually.
 
 A simpler hack is to just delete the c++, cc, gcc, and g++ symlinks from the 
 /usr/lib/distcc/bin directory. That will force distcc to only trap the 
 compiler invocations that use the full compiler name and end up using the 
 cross compiler in the host, but if you do this you may end up compiling more 
 stuff locally.

Or you just replace them (c++, cc, gcc, and g++) with a wrapper to make sure 
it invokes the full compiler name. That's what they recommend here: 
https://wiki.gentoo.org/wiki/Raspberry_Pi_Cross_building

-- 
Fernando Rodriguez



Re: [gentoo-user] utf8_general_ci

2015-05-05 Thread Fernando Rodriguez
On Tuesday, May 05, 2015 11:03:38 AM Joseph wrote:
 On 05/05/15 12:32, Fernando Rodriguez wrote:
 On Tuesday, May 05, 2015 9:32:15 AM Joseph wrote:
  I have my mysql database Collation set as: utf8_general_ci
 
  but when a customer from for example Japan places an order all I see is:
 
 
 
amp;#31481;amp;#40763;amp;#31435;amp;#21407;amp;#30010;amp;#65301;amp;#65293;amp;#65301;
 
  Do I need to change Collation setting to something else or something 
else?
 
 
 
 I think that's because the web applications runs the data through something
 like php's htmlspecialchars() or similar to help prevent SQL injections. So
 you'll need to either decode it before using it (I think you can use the 
app-
 text/recode), or use a different method to filter anything that could be
 malicious SQL.
 
 I've saved the relevant information into a TXT file (address.txt) and tried 
to run: recode ISO-8859-9..UTF8  address.txt  address2.txt
 
 
amp;#31481;amp;#40763;amp;#31435;amp;#21407;amp;#30010;amp;#65301;amp;#65293;amp;#65301;
 amp;#23665;amp;#31185;amp;#21306;
 amp;#20140;amp;#37117;amp;#24066;, 601-8015
 amp;#20140;amp;#37117;amp;#24220;, Japan
 
 It didn't help.  How do you run recode correctly?
 Yes, the customer is using oscommerce php addlication to provide 
information.

It looks like they ran it through the encoding function twice. This worked for 
me:

recode html..utf8  test.txt | recode html..utf8


-- 
Fernando Rodriguez

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] trouble with modify-frame-parameters

2015-05-10 Thread Fernando Rodriguez
On Sunday, May 10, 2015 8:21:33 PM gottl...@nyu.edu wrote:
 I execute the following function in *scratch* on a fresh emacs -Q
 
   (modify-frame-parameters; for 2560x1600
nil '((fullscreen . fullheight) (width . 176) (left . -1300)))
 
 My screen is 2560x1600.  Emacs version is 24.4.  System is gentoo/gnome.
 
 The frame does become fullheight and the width does become 176.
 However, left is not correct (it should be flush left but is nearly
 centered.
 The weird part is if I execute the same command again (a second C-j in
 *scratch), the frame moves to the correct, flush left, position.
 
 An explanation would be appreciated.
 thanks,
 allan
 
 PS If I use the more natural (left . 0) the frame moves near the left
 edge but is not flush left (even if executed twice).
 

See if thiis works (it's basicly telling the window manager not to ignore 
you):

  (modify-frame-parameters  ; for 2560x1600
nil '((fullscreen . fullheight) (width . 176) (left . 0)(user-position . 
1)(user-size . 1)))

http://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Frame-Parameters.html#Window-Frame-Parameters


-- 
Fernando Rodriguez



Re: [gentoo-user] Difference between normal distcc and distcc with pump?

2015-05-04 Thread Fernando Rodriguez
On Monday, May 04, 2015 4:36:08 PM Fernando Rodriguez wrote:
 On Monday, May 04, 2015 3:41:54 PM Walter Dnes wrote:
Why is seamonkey the only program (so far for me) that needs -m32?
  Would it need -m64 if it was being cross-compiled on a 32-bit host
  system for 64-bit client?  Is there a wiki that we can contribute this
  info to?
 
 It has to do with my last post. Basicly the makefiles are invoking the full 
 compiler name for the files that are meant to run on the target but it 
invokes 
 just gcc for the files that are meant to run on the host. This is in the 
 context of cross-compiling, not distcc, so the file that's failing is meant 
to 
 run locally (it's a custom build tool). If you where compiling locally (or 
in 
 two machines with the same compiler) it would not matter cause the host and 
 target compiler are the same, but when distcc comes in it builds those files 
 with the host (system) compiler on the host.
 
 Changing the c++, cc, gcc, and g++ symlinks to a wrapper script that invokes 
 the compiler by it's full name as show in the RaspberryPi wiki page *should* 
 fix it.
 

That sounds confusing cause I use host to mean distcc host at one point and 
host compiler on another. I will use server to refer to distcc host on this 
post. When you run a GNU standard configure script you can specify two 
compilers, the host and target compiler. When compiling locally they're both 
the same. But when cross-compiling the host is the system compiler and is used 
for compiling things that will be executed as part of the build process (most 
packages don't do this). On gentoo this is set from the CHOST variable on 
make.conf, but either it's not usually passed to configure scripts by portage 
or some scripts just ignore it and invoke the host compiler as cc, c++, g++, 
or gcc.

When cross-compiling the target compiler is the one for the target 
architecture where the package will be deployed to. This is always invoked by 
the full name (on GNU compliant packages).

Distcc just traps the compiler invocations on the client and perform the same 
invokations on the server. In your case the seamonkey is trying to compile 
something with the host compiler, distcc is trapping it and compiling it with 
the host compiler on the server. Since the host compiler in the server is not 
the same as the host compiler on the server things go bad.

So you don't need -m32 unless you want to use the host compiler on the server. 
Since you want to use a cross-compiler on the server that was an ugly hack 
because you're actually using both compilers on the server. If the version of 
the cross-compiler gets out of sync with the host compiler things can go bad 
easily. So the proper fix in your scenario is to get rid of the -m32 and make 
the host compiler links a wapper script so that everything is compiled with 
the cross-compiler on the server.

-- 
Fernando Rodriguez



Re: [gentoo-user] Difference between normal distcc and distcc with pump?

2015-05-03 Thread Fernando Rodriguez
On Saturday, May 02, 2015 9:10:01 PM Walter Dnes wrote:
   I ran into a couple of problems with distcc cross-compiling on a
 64-bit host for a 32-bit host.  One was with ffmpeg, and the other
 one was seamonkey (built-from-source).  There's a thread at
 http://www.gossamer-threads.com/lists/gentoo/user/298324 which mentions
 ffmpeg with symptoms identical to mine.
 
   ffmpeg is no problem doing locally.  But seamonkey built-from-source
 is a 14 hour marathon on the ancient 32-bit Atom.  It's the reason I got
 into distcc in the first place.  Fortunately, seamonkey-bin exists, and
 builds properly.  Basic Youtube videos (End Of The Line; Travelling
 Wilburys; HTML5; H264; 360-line-resolution) peg the double-core Atom
 with a cpu load of 2.75.  That's not Seamonkey's fault; what do you
 expect from an Atom, driving an un-accelerated framebuffer?  I'm happy
 that the devs went to the trouble of reverse-engineering the Poulsbo
 (bleagh) chip.
 
   The thread listed above mentions that distcc without pump can
 sometimes solve crossdev build problems.  Can it be used to build
 seamonkey from source on the host and manually push it to the client?
 
   While we're on the topic of distcc, it's update time.  The client
 shows...
 
 aa1 ~ # gcc-config -l
  [1] i686-pc-linux-gnu-4.8.4 *
 
 ...and the host shows...
 
 [d531][waltdnes][~] gcc-config -l
  [1] i686-pc-linux-gnu-4.8.3 *
 
  [2] x86_64-pc-linux-gnu-4.8.4 *
 
 According to the crossdev --help listing...
 -S, --stable Use latest stable versions as default
 -C, --clean target   Uninstall specified target
 
   This implies that on the host, I should do the following...
 
 crossdev -C -t i686-pc-linux-gnu
 crossdev -S -t i686-pc-linux-gnu
 
   Before I take the plunge, can anybody with experience confirm that
 this is the correct way to do it?
 
 

The difference is that without pump mode the source files are run through the 
preprocessor locally and a single preprocessed file is sent to the host for 
each compilation unit. With pump mode the actual source is sent to the host 
and it request the headers from the client as needed and the host caches them 
so they're only sent once. So pump mode uses less network traffic but it's not 
necessarily  faster, in fact it's much slower in some cases.

Some packages do custom preprocessing and other weird things during the build 
process that cause problems with pump mode since it caches copies of the 
unmodified headers. If you're lucky it just fails (and usually falls back on 
compiling locally), if you're not then it may succeed and you'll get runtime 
bugs. I haven't find a package yet that fails without pump mode as long as your 
CFLAGS are set properly.

As for updating, you likely don't need to. According to the distcc FAQ the 
minor version number is not as important. If you still want to, I *think* you 
can just mask the other versions using an atom like cross-i686-pc-mingw32/gcc 
to ensure that you get the version you want but I'm not sure about this and 
there may be a better way.

-- 
Fernando Rodriguez



Re: [gentoo-user] Re: Half error message on attempting to access You Tube from Firefox

2015-05-05 Thread Fernando Rodriguez
On Tuesday, April 28, 2015 3:27:32 PM »Q« wrote:
 On Sun, 26 Apr 2015 18:58:55 -0400
 Fernando Rodriguez frodriguez.develo...@outlook.com wrote:
 
  Do you have the OpenH264 Video Codec provided by Cisco Systems
  firefox add-on installed (I think it comes with firefox). I have it
  but I still don't have H.264 checked on that page and I can't play
  some H.264 videos like this one
  https://www.microsoft.com/microsoft-hololens/en-us. If you have it,
  do you mind disabling it to check if that's where you're getting
  H.264 support from?
 
 I don't understand all the details -- not by a long stretch -- but
 AIUI, the Cisco thing makes it possible to use H.264 for real-time
 video chat, called WebRTC by the W3C and Firefox Hello by Mozilla.
 
 Judging by Alan's USE flags, it's not available for Fx 31.x.  In later
 versions gmp-autoupdate controls it -- with that flag set, Firefox
 will silently download the thing and updates to it from Cisco.  Mozilla
 won't bundle it because it's patent-encumbered.  It comes from Cisco as
 a binary.

Thanks, I rebuilt firefox with gstreamer support today and now I can play H.264 
video. I still can't play quicktime videos from apple's site. I think there's 
a gstreamer plugin for this but I don't know what gentoo package to install.

-- 
Fernando Rodriguez



Re: [gentoo-user] utf8_general_ci

2015-05-05 Thread Fernando Rodriguez
On Tuesday, May 05, 2015 9:32:15 AM Joseph wrote:
 I have my mysql database Collation set as: utf8_general_ci
 
 but when a customer from for example Japan places an order all I see is:
 
 
amp;#31481;amp;#40763;amp;#31435;amp;#21407;amp;#30010;amp;#65301;amp;#65293;amp;#65301;
 
 Do I need to change Collation setting to something else or something else?
 
 

I think that's because the web applications runs the data through something 
like php's htmlspecialchars() or similar to help prevent SQL injections. So 
you'll need to either decode it before using it (I think you can use the app-
text/recode), or use a different method to filter anything that could be 
malicious SQL.



-- 
Fernando Rodriguez



Re: [gentoo-user] Difference between normal distcc and distcc with pump?

2015-05-04 Thread Fernando Rodriguez
On Monday, May 04, 2015 3:41:54 PM Walter Dnes wrote:
   Why is seamonkey the only program (so far for me) that needs -m32?
 Would it need -m64 if it was being cross-compiled on a 32-bit host
 system for 64-bit client?  Is there a wiki that we can contribute this
 info to?

It has to do with my last post. Basicly the makefiles are invoking the full 
compiler name for the files that are meant to run on the target but it invokes 
just gcc for the files that are meant to run on the host. This is in the 
context of cross-compiling, not distcc, so the file that's failing is meant to 
run locally (it's a custom build tool). If you where compiling locally (or in 
two machines with the same compiler) it would not matter cause the host and 
target compiler are the same, but when distcc comes in it builds those files 
with the host (system) compiler on the host.

Changing the c++, cc, gcc, and g++ symlinks to a wrapper script that invokes 
the compiler by it's full name as show in the RaspberryPi wiki page *should* 
fix it.

-- 
Fernando Rodriguez



Re: [gentoo-user] beep

2015-04-15 Thread Fernando Rodriguez
On Wednesday, April 15, 2015 12:25:03 AM lee wrote:
 
 Hi,
 
 when the pcspkr module (or how it's called; I haven't compiled atm) is
 loaded, somehow the built-in speaker is used to sometimes beep.  There
 also seems to be the option to play this beep via the sound card ---
 which usually sounds nicer.
 
 How is this done?  Do I need to load a different module for that, or
 does it require to use some sort of additional software?

If you mean how to configure the kernel for it then just load the right module. 
I remember seeing a PC Speaker Emulation or similar module but I can't find 
it now so it may be gone.

Anyways, this only applies to the console (VT). Software just writes the BEL 
character (0x07) to it's terminal (stdout) to play a beep. You can also open 
/dev/console directly and play this character or use ioctl calls to play 
sounds with different frequencies and duration but this requires root 
privileges. Modern desktop terminal emulators will already be using the sound 
card to play the BEL character. On KDE for example you can choose any sound 
file to play or just show a notification.

-- 
Fernando Rodriguez



Re: [gentoo-user] Machine completely broken; Ncursed!

2015-04-15 Thread Fernando Rodriguez
On Saturday, April 11, 2015 10:22:09 AM Alan Grimes wrote:
 My machine is so completely broken right now I can't open any new
 terminal sessions.
 
 This is because I stupidly tried to toggle tinfo useflag in a desperate
 attempt to get everything in my portage tree working again.
 
 Why now did nothing in my portage tree build?
 
 It wasn't building for two reasons:
 
 1. My machine is not correctly configured to build 32 bit executables,
 mainly because I cannot find a 32 bit version of ncurses that ld is
 willing to acknowledge the existence of.
 
 2. LD cannot find ncurses, -- It simply can't, in 64 bit mode either.
 That is the only error message it ever gives and vast amount of effort
 spent in sessions over the last year and a half have failed to find any
 solution. I only installed Gentoo on this machine four and a half years
 ago so it's hard to imagine what could have gotten this royally foobar
 in such a short period.
 
 
 I am an enthuseastic supporter of multilib, I even tried to set it up
 myself but failed due, once again, to ncurses.
 
 I was running my system as usual, running updates every week or two, no
 major issues since the libav clusterfuck a few months ago. (Libav is a
 cult not a software project). The ncurses problem has been a low-level
 issue for a long time but, with tinfo set, 99% of packages worked.
 
 And then portage did two things.
 
 1. It masked emul-linux -- A move that I support, it's time to see that go.
 
 2. It sent out a profile that sets variable ABI_x86 with 32 bit enabled.
 ALARM: ABI_x86 should be set in exactly one place:
 /etc/portage/make.conf and nowhere else. But, nevertheless, ABI_x86 WAS
 set which broke the profile because my system cannot compile 32 bit
 executables. =( I tried the no-multilib profile but it didn't have a
 number of essential useflags and was foobar.
 
 
 Right now my system is completely unusable and will need fresh stage3
 packages followed by an emerge emptytree to recover. But before I can do
 that, I need a sane profile and to know that the person who pushed out
 the changes to portage, obviously without any testing whatsoever, that
 broke my system so comprehensively is tortured, executed, butchered, and
 then cremated.

This is probably what happened:

1. You have ncurses and emul-linux libraries installed. Everything's good.
2. You come up with this genius idea: LDFLAGS=-lncurses 
3. You uninstalled emul-linux (including 32-bit ncurses). Now you need to 
rebuild ncurses BUT YOU'RE LINKING IT AGAINST ITSELF. This fails because you 
don't have 32-bit ncurses (may fail even if you did, not sure).
4. Since you're linking everything against ncurses everything 32-bit fails.

Duh! You could've probably fixed it by just removing that LDFLAGS line and 
rebuilding ncurses.

-- 
Fernando Rodriguez



Re: [gentoo-user] ffmpeg command not found

2015-04-12 Thread Fernando Rodriguez
On Sunday, April 12, 2015 10:23:32 PM gevisz wrote:
 Thank you for your reply.  I am aware of that change. But the news says:
 
 Users who currently use libav (the Gentoo default) do not have to
 perform any action since USE=libav is enabled by default.
 
 So, I performed no actions.
 
 And I still have media-video/libav-9.17 installed.
 
 P.S. I have nor libav no ffmpeg USE flags in make.conf but I think
that USE=libav is enabled somewhere in the profile. Am I wrong?
 

I think that should be read as Users who want to continue using libav...
There an avconv in libav that is mostly compatible with ffmpeg.

-- 
Fernando Rodriguez



Re: [gentoo-user] cryptsetup wont use aes-xts:plain64

2015-04-18 Thread Fernando Rodriguez
On Saturday, April 18, 2015 9:35:27 PM Fernando Rodriguez wrote:
 On Saturday, April 18, 2015 12:27:15 PM Marko Weber | 8000 wrote:
  
  hello list,
  
  i try to crypt a partition with cryptsetup.
  Yes, in Kernel i had all need things i think.
  
  CONFIG_CRYPTO=y
  CONFIG_CRYPTO_ALGAPI=y
  CONFIG_CRYPTO_ALGAPI2=y
  CONFIG_CRYPTO_AEAD=m
  CONFIG_CRYPTO_AEAD2=y
  CONFIG_CRYPTO_BLKCIPHER=y
  CONFIG_CRYPTO_BLKCIPHER2=y
  CONFIG_CRYPTO_HASH=y
  CONFIG_CRYPTO_HASH2=y
  CONFIG_CRYPTO_RNG=m
  CONFIG_CRYPTO_RNG2=y
  CONFIG_CRYPTO_PCOMP=m
  CONFIG_CRYPTO_PCOMP2=y
  CONFIG_CRYPTO_MANAGER=y
  CONFIG_CRYPTO_MANAGER2=y
  CONFIG_CRYPTO_USER=m
  # CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
  CONFIG_CRYPTO_GF128MUL=m
  CONFIG_CRYPTO_NULL=m
  CONFIG_CRYPTO_PCRYPT=m
  CONFIG_CRYPTO_WORKQUEUE=y
  CONFIG_CRYPTO_CRYPTD=m
  CONFIG_CRYPTO_MCRYPTD=m
  CONFIG_CRYPTO_AUTHENC=m
  CONFIG_CRYPTO_TEST=m
  CONFIG_CRYPTO_ABLK_HELPER=m
  CONFIG_CRYPTO_GLUE_HELPER_X86=m
  CONFIG_CRYPTO_CCM=m
  CONFIG_CRYPTO_GCM=m
  CONFIG_CRYPTO_SEQIV=m
  CONFIG_CRYPTO_CBC=y
  CONFIG_CRYPTO_CTR=m
  CONFIG_CRYPTO_CTS=m
  CONFIG_CRYPTO_ECB=m
  CONFIG_CRYPTO_LRW=m
  CONFIG_CRYPTO_PCBC=m
  CONFIG_CRYPTO_XTS=m
  CONFIG_CRYPTO_CMAC=m
  CONFIG_CRYPTO_HMAC=m
  CONFIG_CRYPTO_XCBC=m
  CONFIG_CRYPTO_VMAC=m
  CONFIG_CRYPTO_CRC32C=y
  CONFIG_CRYPTO_CRC32C_INTEL=m
  CONFIG_CRYPTO_CRC32=m
  CONFIG_CRYPTO_CRC32_PCLMUL=m
  CONFIG_CRYPTO_CRCT10DIF=y
  CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m
  CONFIG_CRYPTO_GHASH=m
  CONFIG_CRYPTO_MD4=m
  CONFIG_CRYPTO_MD5=y
  CONFIG_CRYPTO_MICHAEL_MIC=m
  CONFIG_CRYPTO_RMD128=m
  CONFIG_CRYPTO_RMD160=m
  CONFIG_CRYPTO_RMD256=m
  CONFIG_CRYPTO_RMD320=m
  CONFIG_CRYPTO_SHA1=m
  CONFIG_CRYPTO_SHA1_SSSE3=m
  CONFIG_CRYPTO_SHA256_SSSE3=m
  CONFIG_CRYPTO_SHA512_SSSE3=m
  CONFIG_CRYPTO_SHA1_MB=m
  CONFIG_CRYPTO_SHA256=m
  CONFIG_CRYPTO_SHA512=m
  CONFIG_CRYPTO_TGR192=m
  CONFIG_CRYPTO_WP512=m
  CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m
  CONFIG_CRYPTO_AES=y
  CONFIG_CRYPTO_AES_X86_64=m
  CONFIG_CRYPTO_AES_NI_INTEL=m
  CONFIG_CRYPTO_ANUBIS=m
  CONFIG_CRYPTO_ARC4=m
  CONFIG_CRYPTO_BLOWFISH=m
  CONFIG_CRYPTO_BLOWFISH_COMMON=m
  CONFIG_CRYPTO_BLOWFISH_X86_64=m
  CONFIG_CRYPTO_CAMELLIA=m
  CONFIG_CRYPTO_CAMELLIA_X86_64=m
  CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=m
  CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=m
  CONFIG_CRYPTO_CAST_COMMON=m
  CONFIG_CRYPTO_CAST5=m
  CONFIG_CRYPTO_CAST5_AVX_X86_64=m
  CONFIG_CRYPTO_CAST6=m
  CONFIG_CRYPTO_CAST6_AVX_X86_64=m
  CONFIG_CRYPTO_DES=m
  CONFIG_CRYPTO_DES3_EDE_X86_64=m
  CONFIG_CRYPTO_FCRYPT=m
  CONFIG_CRYPTO_KHAZAD=m
  CONFIG_CRYPTO_SALSA20=m
  CONFIG_CRYPTO_SALSA20_X86_64=m
  CONFIG_CRYPTO_SEED=m
  CONFIG_CRYPTO_SERPENT=m
  CONFIG_CRYPTO_SERPENT_SSE2_X86_64=m
  CONFIG_CRYPTO_SERPENT_AVX_X86_64=m
  CONFIG_CRYPTO_SERPENT_AVX2_X86_64=m
  CONFIG_CRYPTO_TEA=m
  CONFIG_CRYPTO_TWOFISH=m
  CONFIG_CRYPTO_TWOFISH_COMMON=m
  CONFIG_CRYPTO_TWOFISH_X86_64=m
  CONFIG_CRYPTO_TWOFISH_X86_64_3WAY=m
  CONFIG_CRYPTO_TWOFISH_AVX_X86_64=m
  CONFIG_CRYPTO_DEFLATE=m
  CONFIG_CRYPTO_ZLIB=m
  CONFIG_CRYPTO_LZO=m
  CONFIG_CRYPTO_LZ4=m
  CONFIG_CRYPTO_LZ4HC=m
  CONFIG_CRYPTO_ANSI_CPRNG=m
  CONFIG_CRYPTO_DRBG_MENU=m
  CONFIG_CRYPTO_DRBG_HMAC=y
  # CONFIG_CRYPTO_DRBG_HASH is not set
  # CONFIG_CRYPTO_DRBG_CTR is not set
  CONFIG_CRYPTO_DRBG=m
  CONFIG_CRYPTO_USER_API=m
  CONFIG_CRYPTO_USER_API_HASH=m
  CONFIG_CRYPTO_USER_API_SKCIPHER=m
  CONFIG_CRYPTO_HASH_INFO=y
  # CONFIG_CRYPTO_HW is not set
  
  
  but when i try to use cryptsetup i get this:
  
  # cryptsetup -c aes-xts:plain64 -y -s 256 luksFormat 
  /dev/mapper/VolGroup01-media2
  
  WARNING!
  
  This will overwrite data on /dev/mapper/VolGroup01-media2 irrevocably.
  
  Are you sure? (Type uppercase yes): YES
  Enter passphrase:
  Verify passphrase:
  device-mapper: reload ioctl on  failed: Invalid argument
  Failed to setup dm-crypt key mapping for device 
  /dev/mapper/VolGroup01-media2.
  Check that kernel supports aes-xts:plain64 cipher (check syslog for more 
  info).
  
  
  
  Any ideas?
  
  i built cryptsetup with this useflags:
  
  nls openssl python udev urandom
  
  
  
  cryptsetup --help shows me i am able to use the options
  
  Default compiled-in device cipher parameters:
   loop-AES: aes, Key 256 bits
   plain: aes-cbc-essiv:sha256, Key: 256 bits, Password hashing: 
  ripemd160
   LUKS1: aes-xts-plain64, Key: 256 bits, LUKS header hashing: 
  sha1, RNG: /dev/random
  
  
  any help / ideas or knowledge welcome.
  
  best regards
  
  marko
 
 That message is incorrectly shown if something's wrong with the way you 
 specified the cipher and key size. It threw me off for a while too. This is 
what 
 I ended up using:
 
 cryptsetup -i 3 -c twofish-xts-essiv:sha256 -s 512 -h sha512 luksFormat 
 file.img
 
 I don't remember where I was getting it wrong, I think I was using -s 256 
but 
 xts uses half the key for every other block so the key needs to be twice the 
 size. I found a site with a table that list what you can use with which

Re: [gentoo-user] Re: Strange new behavior from the mount command

2015-04-18 Thread Fernando Rodriguez
On Saturday, April 18, 2015 3:59:15 PM walt wrote:
 
 execve(/bin/mount, [mount], [/* 61 vars */]) = 0
 
 That number 61 on the 'bad' machine is 48, though, and I don't know where
 that odd-looking string of characters is generated or what it means. To me
 it looks like a comment in a file of 'c' code.
 
 Still stumped :(

That would be the number of environment variables passed to execve. strace is 
just trying not to be too noisy.


Are there any differences in the options used in fstab between both machines, 
Especially the auto or noauto options or if one of them is using labels. The 
mount(8) man page may have more hints.

-- 
Fernando Rodriguez



Re: [gentoo-user] cryptsetup wont use aes-xts:plain64

2015-04-18 Thread Fernando Rodriguez
On Saturday, April 18, 2015 12:27:15 PM Marko Weber | 8000 wrote:
 
 hello list,
 
 i try to crypt a partition with cryptsetup.
 Yes, in Kernel i had all need things i think.
 
 CONFIG_CRYPTO=y
 CONFIG_CRYPTO_ALGAPI=y
 CONFIG_CRYPTO_ALGAPI2=y
 CONFIG_CRYPTO_AEAD=m
 CONFIG_CRYPTO_AEAD2=y
 CONFIG_CRYPTO_BLKCIPHER=y
 CONFIG_CRYPTO_BLKCIPHER2=y
 CONFIG_CRYPTO_HASH=y
 CONFIG_CRYPTO_HASH2=y
 CONFIG_CRYPTO_RNG=m
 CONFIG_CRYPTO_RNG2=y
 CONFIG_CRYPTO_PCOMP=m
 CONFIG_CRYPTO_PCOMP2=y
 CONFIG_CRYPTO_MANAGER=y
 CONFIG_CRYPTO_MANAGER2=y
 CONFIG_CRYPTO_USER=m
 # CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set
 CONFIG_CRYPTO_GF128MUL=m
 CONFIG_CRYPTO_NULL=m
 CONFIG_CRYPTO_PCRYPT=m
 CONFIG_CRYPTO_WORKQUEUE=y
 CONFIG_CRYPTO_CRYPTD=m
 CONFIG_CRYPTO_MCRYPTD=m
 CONFIG_CRYPTO_AUTHENC=m
 CONFIG_CRYPTO_TEST=m
 CONFIG_CRYPTO_ABLK_HELPER=m
 CONFIG_CRYPTO_GLUE_HELPER_X86=m
 CONFIG_CRYPTO_CCM=m
 CONFIG_CRYPTO_GCM=m
 CONFIG_CRYPTO_SEQIV=m
 CONFIG_CRYPTO_CBC=y
 CONFIG_CRYPTO_CTR=m
 CONFIG_CRYPTO_CTS=m
 CONFIG_CRYPTO_ECB=m
 CONFIG_CRYPTO_LRW=m
 CONFIG_CRYPTO_PCBC=m
 CONFIG_CRYPTO_XTS=m
 CONFIG_CRYPTO_CMAC=m
 CONFIG_CRYPTO_HMAC=m
 CONFIG_CRYPTO_XCBC=m
 CONFIG_CRYPTO_VMAC=m
 CONFIG_CRYPTO_CRC32C=y
 CONFIG_CRYPTO_CRC32C_INTEL=m
 CONFIG_CRYPTO_CRC32=m
 CONFIG_CRYPTO_CRC32_PCLMUL=m
 CONFIG_CRYPTO_CRCT10DIF=y
 CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m
 CONFIG_CRYPTO_GHASH=m
 CONFIG_CRYPTO_MD4=m
 CONFIG_CRYPTO_MD5=y
 CONFIG_CRYPTO_MICHAEL_MIC=m
 CONFIG_CRYPTO_RMD128=m
 CONFIG_CRYPTO_RMD160=m
 CONFIG_CRYPTO_RMD256=m
 CONFIG_CRYPTO_RMD320=m
 CONFIG_CRYPTO_SHA1=m
 CONFIG_CRYPTO_SHA1_SSSE3=m
 CONFIG_CRYPTO_SHA256_SSSE3=m
 CONFIG_CRYPTO_SHA512_SSSE3=m
 CONFIG_CRYPTO_SHA1_MB=m
 CONFIG_CRYPTO_SHA256=m
 CONFIG_CRYPTO_SHA512=m
 CONFIG_CRYPTO_TGR192=m
 CONFIG_CRYPTO_WP512=m
 CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m
 CONFIG_CRYPTO_AES=y
 CONFIG_CRYPTO_AES_X86_64=m
 CONFIG_CRYPTO_AES_NI_INTEL=m
 CONFIG_CRYPTO_ANUBIS=m
 CONFIG_CRYPTO_ARC4=m
 CONFIG_CRYPTO_BLOWFISH=m
 CONFIG_CRYPTO_BLOWFISH_COMMON=m
 CONFIG_CRYPTO_BLOWFISH_X86_64=m
 CONFIG_CRYPTO_CAMELLIA=m
 CONFIG_CRYPTO_CAMELLIA_X86_64=m
 CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=m
 CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=m
 CONFIG_CRYPTO_CAST_COMMON=m
 CONFIG_CRYPTO_CAST5=m
 CONFIG_CRYPTO_CAST5_AVX_X86_64=m
 CONFIG_CRYPTO_CAST6=m
 CONFIG_CRYPTO_CAST6_AVX_X86_64=m
 CONFIG_CRYPTO_DES=m
 CONFIG_CRYPTO_DES3_EDE_X86_64=m
 CONFIG_CRYPTO_FCRYPT=m
 CONFIG_CRYPTO_KHAZAD=m
 CONFIG_CRYPTO_SALSA20=m
 CONFIG_CRYPTO_SALSA20_X86_64=m
 CONFIG_CRYPTO_SEED=m
 CONFIG_CRYPTO_SERPENT=m
 CONFIG_CRYPTO_SERPENT_SSE2_X86_64=m
 CONFIG_CRYPTO_SERPENT_AVX_X86_64=m
 CONFIG_CRYPTO_SERPENT_AVX2_X86_64=m
 CONFIG_CRYPTO_TEA=m
 CONFIG_CRYPTO_TWOFISH=m
 CONFIG_CRYPTO_TWOFISH_COMMON=m
 CONFIG_CRYPTO_TWOFISH_X86_64=m
 CONFIG_CRYPTO_TWOFISH_X86_64_3WAY=m
 CONFIG_CRYPTO_TWOFISH_AVX_X86_64=m
 CONFIG_CRYPTO_DEFLATE=m
 CONFIG_CRYPTO_ZLIB=m
 CONFIG_CRYPTO_LZO=m
 CONFIG_CRYPTO_LZ4=m
 CONFIG_CRYPTO_LZ4HC=m
 CONFIG_CRYPTO_ANSI_CPRNG=m
 CONFIG_CRYPTO_DRBG_MENU=m
 CONFIG_CRYPTO_DRBG_HMAC=y
 # CONFIG_CRYPTO_DRBG_HASH is not set
 # CONFIG_CRYPTO_DRBG_CTR is not set
 CONFIG_CRYPTO_DRBG=m
 CONFIG_CRYPTO_USER_API=m
 CONFIG_CRYPTO_USER_API_HASH=m
 CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_HASH_INFO=y
 # CONFIG_CRYPTO_HW is not set
 
 
 but when i try to use cryptsetup i get this:
 
 # cryptsetup -c aes-xts:plain64 -y -s 256 luksFormat 
 /dev/mapper/VolGroup01-media2
 
 WARNING!
 
 This will overwrite data on /dev/mapper/VolGroup01-media2 irrevocably.
 
 Are you sure? (Type uppercase yes): YES
 Enter passphrase:
 Verify passphrase:
 device-mapper: reload ioctl on  failed: Invalid argument
 Failed to setup dm-crypt key mapping for device 
 /dev/mapper/VolGroup01-media2.
 Check that kernel supports aes-xts:plain64 cipher (check syslog for more 
 info).
 
 
 
 Any ideas?
 
 i built cryptsetup with this useflags:
 
 nls openssl python udev urandom
 
 
 
 cryptsetup --help shows me i am able to use the options
 
 Default compiled-in device cipher parameters:
  loop-AES: aes, Key 256 bits
  plain: aes-cbc-essiv:sha256, Key: 256 bits, Password hashing: 
 ripemd160
  LUKS1: aes-xts-plain64, Key: 256 bits, LUKS header hashing: 
 sha1, RNG: /dev/random
 
 
 any help / ideas or knowledge welcome.
 
 best regards
 
 marko

That message is incorrectly shown if something's wrong with the way you 
specified the cipher and key size. It threw me off for a while too. This is 
what 
I ended up using:

cryptsetup -i 3 -c twofish-xts-essiv:sha256 -s 512 -h sha512 luksFormat 
file.img

I don't remember where I was getting it wrong, I think I was using -s 256 but 
xts uses half the key for every other block so the key needs to be twice the 
size. I found a site with a table that list what you can use with which 
options but unfortunately I can't find it now. So try using -s 512 (since 
cryptsetup is telling you that you can use a 256 bit key).


-- 
Fernando Rodriguez



  1   2   3   4   >