[gentoo-user] Arduino development on GENTOO Linux

2016-04-29 Thread Meino . Cramer
Hi,

WARNING! I AM __VERY__ NEW TO ARDUINO!  :)

For a little project I need to program an Arduino board.
Since all needed lib/scatched/script - or whatever it
is called in case of the Arduino - are already implemented
by someone else I will not reinvent the wheel a second time :)

Therefore I need the Arduino IDE.

Here http://playground.arduino.cc/Linux/Gentoo I found
some instructions, how to install it on GENTOO (I am on
a 64 bit AMD machine...)

But I found this:
| 64-bit users:
| librxtx is reported to cause some problems on gentoo linux because of an 
overflow, 
| causing the IDE to fail. This problem is noted at rxtx here. Please go here 
for fixed binaries.

Above, "here" is a link ... which cannot be resolved.

Furthermore:
| Installing the Basics:
| First you need to log in as the superuser and install some necessary packages:
| emerge -avq sun-jre-bin crossdev

but
eix sun-jre-bin
says "not found".

So I /think/ this page is a little outdated...? 

An

eix arduino

gives two matches:

* dev-embedded/arduino
 Available versions:  1.0.5-r1^bs {doc examples ELIBC="FreeBSD"}
 Homepage:http://arduino.cc/ https://arduino.googlecode.com/
 Description: An open-source AVR electronics prototyping platform

* dev-ros/rosserial_arduino
 Available versions:  ~0.7.1 ** {test PYTHON_TARGETS="python2_7" 
ROS_MESSAGES="+cxx eus lisp +python"}
 Homepage:http://wiki.ros.org/rosserial_arduino
 Description: Libraries and examples for ROSserial usage on 
Arduino/AVR Platforms


If the first one is the IDE it is outdated. 
The current version is 1.6.8.

The second match seems not to be relevant in my case.

Question:
What software do I need for programming an Arduino board "the arduino
way to do it" -- preverable installing it "the GENTOO way to do it"
(read: I like sources and compilations, I dont like bin blobs from
unknown sources that much...)

Thank you very much for any help in advance!
Have a nice weekend! :)
Best regards,
Meino





Re: [gentoo-user] Failed to emerge dev-qt/qtwebkit-5.6.0

2016-04-29 Thread Dale
Dale wrote:
> Howdy,
>
> Doing some updates and ran into this.  Anyone else having this problem? 
> I can post more info if needed but thought this would get it off to a
> start. 
>
>  SNIP 
>
> Thanks.
>
> Dale
>
> :-)  :-) 
>
>


Seems I'm not alone and it is a bug.

https://bugs.gentoo.org/show_bug.cgi?id=581282 

Dale

:-)  :-) 



[gentoo-user] Re: Kernel upgrade from 4.1.12 to 4.4.6 hangs without writing logs.

2016-04-29 Thread Hans

On 30/04/16 00:28, Michael Mol wrote:

On Friday, April 29, 2016 10:56:28 PM Hans wrote:

On 28/04/16 22:22, Hans wrote:

On 27/04/16 21:33, J. Roeleveld wrote:

On April 27, 2016 12:59:18 PM GMT+02:00, Hans  wrote:

Tried to upgrade the kernels of my desktop and notebook fron kernel
4.1.12 upgrade to 4.4.6. Both systems freeze during booting with 4.4.6.

No dmsg, No messages logs. Previous kernel upgrades always worked
smooth
as silk.

Using: OpenRC, eudev, Xfce,

Desktop configration:
Genkernel with /etc/genkernel.conf additional options:
MENUCONFIG="yes"
MAKEOPTS="-j5"
MDADM="yes"
MDADM_CONFIG="/etc/mdadm.conf"
DISKLABEL="yes"
KNAME="genkernel-G_ROOT"

Boot: Grub-static
grub.conf:
title PROXY-64 domdadm LABEL=G_ROOT Gentoo Linux 4.4.6-gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-G_ROOT-x86_64-4.4.6-gentoo net.ifnames=0
root=/dev/ram0 domdadm real_root=LABEL=G_ROOT
initrd /boot/initramfs-genkernel-G_ROOT-x86_64-4.4.6-gentoo

No error reported in genkernel.log
--

Notebook configration:
Genkernel with /etc/genkernel.conf additional options:
MENUCONFIG="yes"
MAKEOPTS="-j5"
DISKLABEL="yes"
KNAME="genkernel-HP_ROOT"

Boot: Grub-static
grub.conf:
title PROXY-64 domdadm LABEL=HP_ROOT Gentoo Linux 4.4.6-gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-HP_ROOT-x86_64-4.4.6-gentoo net.ifnames=0

root=/dev/ram0 real_root=LABEL=HP_ROOT
initrd /boot/initramfs-genkernel-HP_ROOT-x86_64-4.4.6-gentoo

No error reported in genkernel.log
---


Why are you specifying root=/dev/ram0?

Modern kernels use initramfs and you normally specify the real root
device there.


"root=/dev/ram0" is a leftover from the original installation from a
long time ago. Removing it makes no difference.

Am at the moment making a new test installation in VirtualBox. So far
its working with kernel 4.4.6. If Xfce works tomorrow, it's either a
configuration or driver problem. I will then do a re-install of Gentoo
on my desktop and the notebook using a external drive.


Kernel 4.4.6 as a bug. x11-drivers/xf86-video-virtualbox does not compile.
Reason:
/usr/src/linux-4.4.6-gentoo/include/linux/string.h
'char *strreplace(char *s, char old, char new);' causes compile failure.
"new" is a C++ keyword.
Changing tp 'char *strreplace(char *s, char oldstr, char newstr);' fixes
the problem.


That's not a bug in the kernel per se, that's a bug in using that kernel
header (written in C) in a compiler expecting C++ code. Which would make it a
bug in xf86-video-virtualbox for not linking against a C-compiled object file.

Granted, it'd be a heck of a lot more convenient if the kernel header files
didn't use C++ keywords...but it *is* fundamentally a problem with compiling a
source file using the wrong language. Like trying to read something in
Portugese, except it was written in Spanish. It might work some of the time,
but it'll catch you out eventually.



The Virtualbox internal runtime compiler, assembler and gcc compiler to 
build executables such as app-emulation/virtualbox-guest-additions, etc. 
use some of the kernel sources and headers.


Kernel 4.1.12 string.h and earlier did not have this silly problem.





Re: [gentoo-user] Re: Kernel upgrade from 4.1.12 to 4.4.6 hangs without writing logs.

2016-04-29 Thread Michael Mol
On Friday, April 29, 2016 10:56:28 PM Hans wrote:
> On 28/04/16 22:22, Hans wrote:
> > On 27/04/16 21:33, J. Roeleveld wrote:
> >> On April 27, 2016 12:59:18 PM GMT+02:00, Hans  wrote:
> >>> Tried to upgrade the kernels of my desktop and notebook fron kernel
> >>> 4.1.12 upgrade to 4.4.6. Both systems freeze during booting with 4.4.6.
> >>> 
> >>> No dmsg, No messages logs. Previous kernel upgrades always worked
> >>> smooth
> >>> as silk.
> >>> 
> >>> Using: OpenRC, eudev, Xfce,
> >>> 
> >>> Desktop configration:
> >>> Genkernel with /etc/genkernel.conf additional options:
> >>> MENUCONFIG="yes"
> >>> MAKEOPTS="-j5"
> >>> MDADM="yes"
> >>> MDADM_CONFIG="/etc/mdadm.conf"
> >>> DISKLABEL="yes"
> >>> KNAME="genkernel-G_ROOT"
> >>> 
> >>> Boot: Grub-static
> >>> grub.conf:
> >>> title PROXY-64 domdadm LABEL=G_ROOT Gentoo Linux 4.4.6-gentoo
> >>> root (hd0,0)
> >>> kernel /boot/kernel-genkernel-G_ROOT-x86_64-4.4.6-gentoo net.ifnames=0
> >>> root=/dev/ram0 domdadm real_root=LABEL=G_ROOT
> >>> initrd /boot/initramfs-genkernel-G_ROOT-x86_64-4.4.6-gentoo
> >>> 
> >>> No error reported in genkernel.log
> >>> --
> >>> 
> >>> Notebook configration:
> >>> Genkernel with /etc/genkernel.conf additional options:
> >>> MENUCONFIG="yes"
> >>> MAKEOPTS="-j5"
> >>> DISKLABEL="yes"
> >>> KNAME="genkernel-HP_ROOT"
> >>> 
> >>> Boot: Grub-static
> >>> grub.conf:
> >>> title PROXY-64 domdadm LABEL=HP_ROOT Gentoo Linux 4.4.6-gentoo
> >>> root (hd0,0)
> >>> kernel /boot/kernel-genkernel-HP_ROOT-x86_64-4.4.6-gentoo net.ifnames=0
> >>> 
> >>> root=/dev/ram0 real_root=LABEL=HP_ROOT
> >>> initrd /boot/initramfs-genkernel-HP_ROOT-x86_64-4.4.6-gentoo
> >>> 
> >>> No error reported in genkernel.log
> >>> ---
> >> 
> >> Why are you specifying root=/dev/ram0?
> >> 
> >> Modern kernels use initramfs and you normally specify the real root
> >> device there.
> > 
> > "root=/dev/ram0" is a leftover from the original installation from a
> > long time ago. Removing it makes no difference.
> > 
> > Am at the moment making a new test installation in VirtualBox. So far
> > its working with kernel 4.4.6. If Xfce works tomorrow, it's either a
> > configuration or driver problem. I will then do a re-install of Gentoo
> > on my desktop and the notebook using a external drive.
> 
> Kernel 4.4.6 as a bug. x11-drivers/xf86-video-virtualbox does not compile.
> Reason:
> /usr/src/linux-4.4.6-gentoo/include/linux/string.h
> 'char *strreplace(char *s, char old, char new);' causes compile failure.
> "new" is a C++ keyword.
> Changing tp 'char *strreplace(char *s, char oldstr, char newstr);' fixes
> the problem.

That's not a bug in the kernel per se, that's a bug in using that kernel 
header (written in C) in a compiler expecting C++ code. Which would make it a 
bug in xf86-video-virtualbox for not linking against a C-compiled object file.

Granted, it'd be a heck of a lot more convenient if the kernel header files 
didn't use C++ keywords...but it *is* fundamentally a problem with compiling a 
source file using the wrong language. Like trying to read something in 
Portugese, except it was written in Spanish. It might work some of the time, 
but it'll catch you out eventually.

-- 
:wq

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


[gentoo-user] Re: Kernel upgrade from 4.1.12 to 4.4.6 hangs without writing logs.

2016-04-29 Thread Hans

On 28/04/16 22:22, Hans wrote:

On 27/04/16 21:33, J. Roeleveld wrote:

On April 27, 2016 12:59:18 PM GMT+02:00, Hans  wrote:

Tried to upgrade the kernels of my desktop and notebook fron kernel
4.1.12 upgrade to 4.4.6. Both systems freeze during booting with 4.4.6.

No dmsg, No messages logs. Previous kernel upgrades always worked
smooth
as silk.

Using: OpenRC, eudev, Xfce,

Desktop configration:
Genkernel with /etc/genkernel.conf additional options:
MENUCONFIG="yes"
MAKEOPTS="-j5"
MDADM="yes"
MDADM_CONFIG="/etc/mdadm.conf"
DISKLABEL="yes"
KNAME="genkernel-G_ROOT"

Boot: Grub-static
grub.conf:
title PROXY-64 domdadm LABEL=G_ROOT Gentoo Linux 4.4.6-gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-G_ROOT-x86_64-4.4.6-gentoo net.ifnames=0
root=/dev/ram0 domdadm real_root=LABEL=G_ROOT
initrd /boot/initramfs-genkernel-G_ROOT-x86_64-4.4.6-gentoo

No error reported in genkernel.log
--

Notebook configration:
Genkernel with /etc/genkernel.conf additional options:
MENUCONFIG="yes"
MAKEOPTS="-j5"
DISKLABEL="yes"
KNAME="genkernel-HP_ROOT"

Boot: Grub-static
grub.conf:
title PROXY-64 domdadm LABEL=HP_ROOT Gentoo Linux 4.4.6-gentoo
root (hd0,0)
kernel /boot/kernel-genkernel-HP_ROOT-x86_64-4.4.6-gentoo net.ifnames=0

root=/dev/ram0 real_root=LABEL=HP_ROOT
initrd /boot/initramfs-genkernel-HP_ROOT-x86_64-4.4.6-gentoo

No error reported in genkernel.log
---


Why are you specifying root=/dev/ram0?

Modern kernels use initramfs and you normally specify the real root
device there.


"root=/dev/ram0" is a leftover from the original installation from a
long time ago. Removing it makes no difference.

Am at the moment making a new test installation in VirtualBox. So far
its working with kernel 4.4.6. If Xfce works tomorrow, it's either a
configuration or driver problem. I will then do a re-install of Gentoo
on my desktop and the notebook using a external drive.


Kernel 4.4.6 as a bug. x11-drivers/xf86-video-virtualbox does not compile.
Reason:
/usr/src/linux-4.4.6-gentoo/include/linux/string.h
'char *strreplace(char *s, char old, char new);' causes compile failure.
"new" is a C++ keyword.
Changing tp 'char *strreplace(char *s, char oldstr, char newstr);' fixes 
the problem.








[gentoo-user] emerge --rebuild-if-new-rev always triggers rebuild

2016-04-29 Thread Michael Mol
From the does-this-happen-to-anyone-else-or-is-it-just-me department.

I'm finding that if I include "--rebuild-if-new-rev y", I get a slew of new 
packages built, *even if I just built them*. That seems wrong. I've tried 
removing it, and the problem goes away. The presence or absence of "--rebuild-
if-new-slot y" seems to have no impact.

EMERGE_DEFAULT_OPTS="--tree --with-bdeps=y --keep-going --quiet-build=y --deep 
--unordered-display --load-average 3 --jobs=3 --rebuild-if-new-slot y --
rebuild-if-new-rev y"

$ emerge -puDN @world

These are the packages that would be merged:

Calculating dependencies... done!
[nomerge   ] dev-python/virtualenv-13.1.2 
[nomerge   ]  dev-python/setuptools-18.4 
[nomerge   ]   dev-lang/python-3.4.3-r1 
[nomerge   ]sys-libs/ncurses-5.9-r5 
[nomerge   ] sys-libs/gpm-1.20.7-r2 
[nomerge   ]  virtual/yacc-0 
[nomerge   ]   sys-devel/bison-3.0.4-r1 
[nomerge   ]sys-devel/flex-2.5.39-r1 
[nomerge   ] sys-devel/gettext-0.19.4 
[nomerge   ]  dev-libs/libxml2-2.9.3 
[nomerge   ]   sys-devel/autoconf-2.69 
[nomerge   ]dev-lang/perl-5.20.2 
[nomerge   ] app-admin/perl-cleaner-2.19 
[nomerge   ]  app-portage/portage-utils-0.62 
[nomerge   ]   dev-libs/iniparser-3.1-r1 
[nomerge   ]app-doc/doxygen-1.8.10-r1 
[nomerge   ] app-text/ghostscript-gpl-9.15-r1 
[nomerge   ]  x11-libs/gtk+-3.18.7 
[nomerge   ]   app-accessibility/at-spi2-atk-2.18.1 
[nomerge   ]dev-libs/glib-2.46.2-r2 
[nomerge   ] dev-libs/libxslt-1.1.28-r5 
[nomerge   ]  dev-libs/libgcrypt-1.6.5 
[nomerge   ]   virtual/texi2dvi-0 
[nomerge   ]virtual/latex-base-1.0 
[nomerge   ] dev-texlive/texlive-fontutils-2014 
[nomerge   ]  dev-texlive/texlive-basic-2014 
[nomerge   ]   app-text/texlive-core-2014-r4 
[nomerge   ]x11-libs/cairo-1.14.2 
[nomerge   ] x11-libs/libX11-1.6.3 
[nomerge   ]  app-text/docbook-xml-dtd-4.3-r1 
[nomerge   ]   app-text/build-docbook-
catalog-1.19.1 
[nomerge   ]sys-apps/util-linux-2.26.2 
[nomerge   ] sys-libs/pam-1.2.1 
[nomerge   ]  sys-auth/pambase-20150213 
[nomerge   ]   sys-auth/consolekit-1.1.0 
[nomerge   ]sys-auth/polkit-0.113 
[ebuild  rR   ~] kde-plasma/polkit-kde-
agent-5.6.3 
[nomerge   ] kde-apps/kleopatra-4.14.10 
[nomerge   ]  kde-base/kdelibs-4.14.16 
[ebuild  rR   ~]   kde-apps/khelpcenter-5.6.2-r1 
[ebuild  rR]kde-frameworks/khtml-5.18.0 
[ebuild  rR   ~]kde-plasma/kde-cli-tools-5.6.3 
[ebuild  rR] kde-frameworks/kdesu-5.18.0 
[ebuild  rR]  kde-frameworks/kpty-5.18.0 
[nomerge   ] kde-plasma/plasma-meta-5.6.3 
[ebuild  rR   ~]  kde-plasma/ksshaskpass-5.6.3 
[ebuild  rR   ~]  kde-plasma/kmenuedit-5.6.3 
[ebuild  rR   ~]   kde-plasma/khotkeys-5.6.3 
[ebuild  rR   ~]kde-plasma/plasma-workspace-5.6.3 
[ebuild  rR   ~] kde-plasma/kwin-5.6.3 
[ebuild  rR   ~]  kde-plasma/kscreenlocker-5.6.3 
[ebuild  rR   ~] kde-plasma/libksysguard-5.6.3 
[ebuild  rR   ~] kde-apps/kio-extras-15.12.3 
[ebuild  rR] kde-frameworks/kxmlrpcclient-5.18.0 
[ebuild  rR   ~] kde-plasma/ksysguard-5.6.3 
[ebuild  rR   ~] kde-plasma/milou-5.6.3 
[ebuild  rR] kde-frameworks/ktexteditor-5.18.0 
[ebuild  rR   ~]  kde-plasma/kwrited-5.6.3 
[ebuild  rR   ~]  kde-plasma/bluedevil-5.6.3 
[ebuild  rR   ~]  kde-plasma/kgamma-5.6.3 
[ebuild  rR   ~]  kde-plasma/kinfocenter-5.6.3 
[ebuild  rR   ~]  kde-plasma/plasma-integration-5.6.3 
[ebuild  rR   ~]  kde-plasma/breeze-5.6.3 
[ebuild  rR]   kde-frameworks/frameworkintegration-5.18.0 
[ebuild  rR   ~]  kde-plasma/systemsettings-5.6.3 
[ebuild  rR   ~]   kde-plasma/kde-gtk-config-5.6.3 
[nomerge   ]  kde-plasma/plasma-desktop-5.6.3 
[ebuild  rR   ~]   kde-plasma/plasma-pa-5.6.3 
[ebuild  rR   ~]   kde-plasma/oxygen-5.6.3 
[ebuild  rR   ~]  kde-plasma/powerdevil-5.6.3 
[ebuild  rR   ~]  kde-plasma/sddm-kcm-5.6.3 
[ebuild  rR   ~]  kde-plasma/kdeplasma-addons-5.6.3 
[ebuild  rR]   kde-frameworks/kross-5.18.0 
[ebuild  rR   ~]  kde-plasma/kscreen-5.6.3 
[ebuild  rR   ~]  kde-plasma/user-manager-5.6.3 
[nomerge   ] kde-apps/kde-apps-meta-15.12.3-r3 
[nomerge   ]  kde-apps/kdegames-meta-15.12.3 
[ebuild  rR   ~]   kde-apps/ksquares-15.12.3 
[ebuild  rR   ~]kde-apps/libkdegames-15.12.3 

Re: [gentoo-user] Re: freeSwitch

2016-04-29 Thread Michael Mol
On Thursday, April 28, 2016 08:37:14 PM Neil Bothwick wrote:
> On Thu, 28 Apr 2016 15:32:37 -0400, Michael Mol wrote:
> > > I take it the other 10% was rounding errors? ;-)
> > 
> > Covered by NDA. ;)
> 
> Non-Decimal Addition?

Actually, part of what annoyed me about it was driven / exacerbated by things 
I honestly can't discuss. But, yes, that was intended to be roughly 10%.

-- 
:wq

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


Re: [gentoo-user] Failed to emerge dev-qt/qtwebkit-5.6.0

2016-04-29 Thread Peter Humphrey
On Thursday 28 Apr 2016 16:53:43 waltd...@waltdnes.org wrote:
> On Thu, Apr 28, 2016 at 10:44:34AM +0100, Peter Humphrey wrote
> 
> > proc/proc   procdefaults0 0
> > shm /dev/shmtmpfs   nodev,nosuid0 0
> > 
> > Not sure about those last two - are they still needed nowadays?
> 
>   I'm running OK without them...

OK - thanks. I'll try deleting them.

-- 
Rgds
Peter