Re: [gentoo-user] Headless question: Harvesting the results...software needed.

2014-10-12 Thread Stroller

On Sat, 11 October 2014, at 3:10 pm, meino.cra...@gmx.de wrote:
 ...
 Two things need still to be investigated: How can I store GPSdata onto the
 flash in a way, that no additional data is stored if no movement is
 there.

This should be pretty easy, but if you want help with it, you're going to need 
to give us some insight into how you're storing or accessing the GPS data at 
present.

Having said that, I'm not convinced that this is necessary. I have a logfile 
here with 91,000 lines of text in it, and it's 9.9mb and bzips down to 369kb. 
91,000 is close to 10 entries every minute for a week, and I'd guess that you'd 
find CSV formatted GPS data written as text to have about the same length and 
compressibility as a typical /var/log/messages entry.

 And I have to prevent, that a sector/block/organisation unit
 of the flash is written more than once to prevent ware out of the
 flash.

Wear-levelling should be handled by the flash memory controller, and you 
shouldn't need to worry about it.

Stroller.





Re: [gentoo-user] sys-apps/man-db depends to app-text/po4a

2014-10-12 Thread hogren
Le Sat, 11 Oct 2014 07:37:14 +0100,
Stroller strol...@stellar.eclipse.co.uk a écrit :

 
 On Sat, 11 October 2014, at 7:17 am, hogren hog...@iiiha.com wrote:
 
  … 
  Emerge try to compile sys-apps/man-db-2.6.6 and fails.
  When I watched the build log, I saw that in the compilation period,
  po4a is not found.
  
  I make an #emerge app-text/po4a, I tried again #emerge
  @preserved-rebuild. It's ok.
  
  Is it correct if I file a bug about that ?
 
 Yes, absolutely.
 
 Thank you for your service.
 
 Stroller.
 
 

My bug [525034] is a duplicate of [41124] is an old bug.

In fact, when we update perl, we need to recompile all perl modules.

May be I did'nt see the message after the last perl emerge.

The command to execute is perl-cleaner --allmodules.
You must do this after each perl update.

Thank you for your help.

Regards,

Hogren



Re: [gentoo-user] Handbook missing portage unpacking

2014-10-12 Thread Stroller

On Sat, 11 October 2014, at 10:25 pm, Daniel Frey djqf...@gmail.com wrote:
 … 
 From memory (a very sketchy memory, I might add, so check before doing
 it) the command was:
 
 $ tar xvjf portage-latest.tar.bz2 -C /usr/portage

I'd have thought you'd download and unpack the portage-latest tarball using the 
emerge-webrsync command, and have no need to download or untar it manually.

Stroller.




Re: [gentoo-user] Headless question: Harvesting the results...software needed.

2014-10-12 Thread meino . cramer
Stroller strol...@stellar.eclipse.co.uk [14-10-12 09:28]:
 
 On Sat, 11 October 2014, at 3:10 pm, meino.cra...@gmx.de wrote:
  ...
  Two things need still to be investigated: How can I store GPSdata onto the
  flash in a way, that no additional data is stored if no movement is
  there.
 
 This should be pretty easy, but if you want help with it, you're going to 
 need to give us some insight into how you're storing or accessing the GPS 
 data at present.
 
 Having said that, I'm not convinced that this is necessary. I have a logfile 
 here with 91,000 lines of text in it, and it's 9.9mb and bzips down to 369kb. 
 91,000 is close to 10 entries every minute for a week, and I'd guess that 
 you'd find CSV formatted GPS data written as text to have about the same 
 length and compressibility as a typical /var/log/messages entry.
 
  And I have to prevent, that a sector/block/organisation unit
  of the flash is written more than once to prevent ware out of the
  flash.
 
 Wear-levelling should be handled by the flash memory controller, and you 
 shouldn't need to worry about it.
 
 Stroller.
 
 
 

Hi Stroller,

thank you for your input :) !!

I am still a pure newbie to gps. This morning I discovered, that there
a LOT of kinds of output of the different GPS devices...the output of
mine looks /so standard/, that I thought it would be /THAT STANDARD/.
;)

Ok ... the device I use is an Ultimate GPS by Adafruit Industries.
The device is a GlobalTop-FGPMMOPA6C module with a MediaTek MT3339
chipset.

The output are NMEA sentences (pure ASCII as it seems). The module is
wired to UART01 on my embedded computer, so gpsd can read the data
from /dev/ttyO1.
Via gpsd it is possible to create json output from that (instead of 
NMEA).

The module creates from 1 to 10 position reports per second. I want
to make this speed depended (read: I have to write some code for it,
if I dont find some...). If one choose 1 report/second it will send
5 position report and then 1 status report (current time for example).

Since civil GPS modules have the feature to obfuscate the exact
position up to some degree (otherwise I would build a weapon instead
of tinkering with an embedded system...at least according to some
external laws ;) I see problems in deciding, whether I am really
moving or my position is moving due to less accuracy of the
chipset.

Currently the GPS antenna is clamped to my desktop lamp and I am
nearly up to 100% sure that it is not moving at all...but gpsmon gives
me a natural speed of 0.5km/h which is definitely too much for
a warmth induced Brownian molecular motion... ;)

Wear levelling should be handled by the flash memory controller...

This should makes me a little nervous, Stroller... ;)
Linux includes a filesystem called F2FS, which takes care 
of the wear levelling problem (as far as I know). This F2FS originates
from SAMSUNG, one of the greater manufacturer of Flash memories of all
kind. Why the effort, if the memory controller take care of it?
Stroller, I DONT EXPLICETLY OR IMPLICITELY EXPRESS A I DONT BELIEVE
YOU HERE...!
It is just the difference between what manufacturer states (...should be
handled...) and what mechanisms create more benefits for them.

Best regards,
mcc











[gentoo-user] F2FS with older kernel

2014-10-12 Thread meino . cramer
Hi,

for my embedded system I am currently still using Linux kernel 3.8.13. due
to some missing features (platform related) of newer kernels.

I want to give F2FS a try since the embedded system runs from a
SDcard.

The only thing I dont know is the maturity level of the
implementation of F2FS in that kinda old kernel.

It is marked as EXPERIMENTAL there...but this marker is removed
very late in the development of filesystems in general...

Should I ? I should I keep my hands off that beast? ;)

Thank you very much in advance for any helpful hint!
Best regards,
mcc





Re: [gentoo-user] Headless question: Harvesting the results...software needed.

2014-10-12 Thread Neil Bothwick
On Sun, 12 Oct 2014 08:24:46 +0100, Stroller wrote:

  And I have to prevent, that a sector/block/organisation unit
  of the flash is written more than once to prevent ware out of the
  flash.  
 
 Wear-levelling should be handled by the flash memory controller, and
 you shouldn't need to worry about it.

Also, good cards these days handle far more writes to the same location
without failure. Stick to quality, branded cards and wear shouldn't be a
problem. If you are still concerned, replace the card every year.


-- 
Neil Bothwick

Top Oxymorons Number 3: Working vacation


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: has anyone tried KDE5?

2014-10-12 Thread Stefano Crocco
Excerpts from Michael Palimaka's message of 2014-10-04 19:37:04 +0200:
 On 10/04/2014 11:26 PM, behrouz khosravi wrote:
  Hello everyone.
  I was wondering if anyone has tried KDE5?
  Do you know when it's going to be placed in the main tree?
  
  thanks
 
 Hi,
 
 The KDE release structure has evolved[1], decoupling the release cycle
 of the Platform, Workspace, and Applications. This means that there is
 no longer a single Software Compilation in the same way there was with
 KDE 4.
 
 We (Gentoo KDE team) have not yet made a decision as to when the Plasma
 5 Workspace will be pushed to the main tree. I've been using it on a
 daily basis for about six months, and consider the next release (5.1.0)
 to be a good candidate for the main tree.
 
 The underlying Platform (KDE Frameworks 5) upon which Plasma 5 is built
 is expected in the main tree in about a week, after the 5.3.0 release.
 
 Best regards,
 Michael
 
 [1]: https://dot.kde.org/2013/09/04/kde-release-structure-evolves

I'd love to try KDE 5. So far I've been able to install Frameworks from the KDE
overlay. I then tried to install the workspace, but it seems that it can't
coexist with kde 4 (I get blockers from several kde 4 packages when trying to
install). Is this correct, or am I doing something wrong? I use paludis as
package manager, so maybe it behaves differently from portage and this is the
reason for the blockers.

I remember that when KDE 4 was released I used to run the live version,
rebuilding everything every day. It was a very pleasant experience being able to
witness how the programs improved, day after day. But I could do that because I
could have both KDE 4 and KDE 3 installed at the same time: those days when a
program I needed broke horribly in the KDE 4 live version, I could go on working
using the KDE 3 version. Currently, if indeed KDE 4 and KDE 5 workspace can't be
installed at the same time, I'll have to wait before trying the latter.

Stefano



[gentoo-user] Wrong timestamps over fish in midnight commander

2014-10-12 Thread Frank Steinmetzger
Hello fellows

Could someone please confirm an issue I’m having? When I connect to a remote
ssh host in mc, it always shows the seconds of files’ mtime to be 0. That
way, I can’t use mc to properly compare directories, because even if a file
has the same timestamp on both sides, one side appears younger because the
other’s seconds value is 0.

To see seconds in the first place, I got rid of the “intelligent” date
formatting and replaced it with the pure numerical facts in ~/.config/mc/ini:
  [Misc]
  ...
  timeformat_recent=%y-%m-%d %H:%M:%S
  timeformat_old=%y-%m-%d %H:%M:%S

Perhaps someone of you already has an account in the mc bug tracker¹ and can
report that. I’m delusionally paranoid (or at least lazy) and generally very
hesitant to register on a website just for one single use.

Cheers

¹ http://www.midnight-commander.org/report
-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.

“If wishes were horses we’d all be eating steak.” – Jayne, Firefly


signature.asc
Description: Digital signature


[gentoo-user] Re: has anyone tried KDE5?

2014-10-12 Thread Michael Palimaka
On 10/12/2014 11:11 PM, Stefano Crocco wrote:
 Excerpts from Michael Palimaka's message of 2014-10-04 19:37:04 +0200:
 On 10/04/2014 11:26 PM, behrouz khosravi wrote:
 Hello everyone.
 I was wondering if anyone has tried KDE5?
 Do you know when it's going to be placed in the main tree?

 thanks

 Hi,

 The KDE release structure has evolved[1], decoupling the release cycle
 of the Platform, Workspace, and Applications. This means that there is
 no longer a single Software Compilation in the same way there was with
 KDE 4.

 We (Gentoo KDE team) have not yet made a decision as to when the Plasma
 5 Workspace will be pushed to the main tree. I've been using it on a
 daily basis for about six months, and consider the next release (5.1.0)
 to be a good candidate for the main tree.

 The underlying Platform (KDE Frameworks 5) upon which Plasma 5 is built
 is expected in the main tree in about a week, after the 5.3.0 release.

 Best regards,
 Michael

 [1]: https://dot.kde.org/2013/09/04/kde-release-structure-evolves
 
 I'd love to try KDE 5. So far I've been able to install Frameworks from the 
 KDE
 overlay. I then tried to install the workspace, but it seems that it can't
 coexist with kde 4 (I get blockers from several kde 4 packages when trying to
 install). Is this correct, or am I doing something wrong? I use paludis as
 package manager, so maybe it behaves differently from portage and this is the
 reason for the blockers.

Unfortunately Plasma 5 and KDE 4 Workspaces cannot coexist. This is an
upstream decision.




Re: [gentoo-user] Re: Python 3.4.1

2014-10-12 Thread Frank Steinmetzger
On Sat, Oct 11, 2014 at 07:37:42PM -0400, Philip Webb wrote:
 141011 James wrote:
  Philip Webb purslow at ca.inter.net writes:
  I've just installed  python-3.4.1  alongside  2.7.7  3.2.5-r6  3.3.5-r1 .
  I've changed the lines in  make.conf  to
USE_PYTHON=2.7 3.4
PYTHON_TARGETS=python2_7 python3_4
PYTHON_SINGLE_TARGET=python2_7
  I use 'eselect python list' to see what options you have.
 
 Google found :  http://www.odi.ch/weblog/posting.php?posting=674 ,
 which suggests that, then 'eselect python set --python3 n',
 where  n = 3  in my case ; I've done that.
 
  Then I'd poke around for any bug reports on python-3.4.*
 
 That promises to be time-consuming, but thanks so far.
 
 Anyone else have info or suggestions ?

I noticed the same. I’m somewhat eager about python 3.4 because blender
always wants the beedingest edgiest stuff around, and blender 2.7x requires
python 3.4, which in turn even wants me to unmask python-exec 2..

Could this be profile induced? I do have PYTHON_TARGETS=python2_7 python3_3
python3_4 in make.conf, yet `emerge --info | grep TARGETS` still tells me
PYTHON_TARGETS=python2_7 python3_3

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.

“I’m working on than.” -- Stephen Hawking
(When visiting the set of the Starship Enterprise’s engine room)


signature.asc
Description: Digital signature


Re: [gentoo-user] Writing to tty01 (serial port) in simple straight forward way...?!?

2014-10-12 Thread Kerin Millar

On 12/10/2014 13:08, meino.cra...@gmx.de wrote:

Hi,

I want to send commands to ttyO1 (serial port on an embedded system).
The commands are one line each and terminated with CRL/LF (aka DOS).

Since this will be done from a batch script, it should be possible
via commandline tools and non-interactively. The serial port is
already setup up the right way.

I tried

echo -nblablabal\x0a\x0d


Firstly, this command is missing the -e switch. Secondly, the order of 
the control characters is wrong. I would suggest the use of printf as it 
has fewer pitfalls.


# printf '%s\r\n' command

--Kerin



Re: [gentoo-user] Handbook missing portage unpacking

2014-10-12 Thread Kerin Millar

On 11/10/2014 21:13, James wrote:

Hello,

I was just following the handbook for an amd64 install; I have
not looked at the handbook in a while. I downloaded the stage3
tarball and the portage-latest tarball at the same time, like I always
have done. The handbook give instructions for untaring the stage3, in
section 5, but not the  portage tarball, or did I miss something?


It specifies that emerge-webrsync be used, automating the process of 
fetching and extracting a portage tarball.


--Kerin




Re: [gentoo-user] Re: Python 3.4.1

2014-10-12 Thread Mike Gilbert
On Sun, Oct 12, 2014 at 11:26 AM, Frank Steinmetzger war...@gmx.de wrote:
 On Sat, Oct 11, 2014 at 07:37:42PM -0400, Philip Webb wrote:
 141011 James wrote:
  Philip Webb purslow at ca.inter.net writes:
  I've just installed  python-3.4.1  alongside  2.7.7  3.2.5-r6  3.3.5-r1 .
  I've changed the lines in  make.conf  to
USE_PYTHON=2.7 3.4
PYTHON_TARGETS=python2_7 python3_4
PYTHON_SINGLE_TARGET=python2_7
  I use 'eselect python list' to see what options you have.

 Google found :  http://www.odi.ch/weblog/posting.php?posting=674 ,
 which suggests that, then 'eselect python set --python3 n',
 where  n = 3  in my case ; I've done that.

  Then I'd poke around for any bug reports on python-3.4.*

 That promises to be time-consuming, but thanks so far.

 Anyone else have info or suggestions ?

 I noticed the same. I’m somewhat eager about python 3.4 because blender
 always wants the beedingest edgiest stuff around, and blender 2.7x requires
 python 3.4, which in turn even wants me to unmask python-exec 2..

 Could this be profile induced? I do have PYTHON_TARGETS=python2_7 python3_3
 python3_4 in make.conf, yet `emerge --info | grep TARGETS` still tells me
 PYTHON_TARGETS=python2_7 python3_3


At the moment, the python_target_python3_4 use flag is stable-masked
while the necessary packages are being stabilized. I know this is a
bit confusing, but it should not break anything. You can continue
using python3.3 for a while if you like.

For reference, see the following.

profiles/base/use.stable.mask
https://bugs.gentoo.org/show_bug.cgi?id=522322
https://bugs.gentoo.org/show_bug.cgi?id=524416

Once the stablereq bugs are resolved, I will remove the entry from
use.stable.mask.

In the meantime, you can unmask the pytho3_4 flag locally by creating
the following entries in /etc/portage.

mkdir -p /etc/portage/profile
echo 5  /etc/portage/profile/eapi
echo -python_targets_python3_4  /etc/portage/profile/use.stable.mask



Re: [gentoo-user] Handbook missing portage unpacking

2014-10-12 Thread Rich Freeman
On Sun, Oct 12, 2014 at 11:43 AM, Kerin Millar kerfra...@fastmail.co.uk wrote:
 On 11/10/2014 21:13, James wrote:

 Hello,

 I was just following the handbook for an amd64 install; I have
 not looked at the handbook in a while. I downloaded the stage3
 tarball and the portage-latest tarball at the same time, like I always
 have done. The handbook give instructions for untaring the stage3, in
 section 5, but not the  portage tarball, or did I miss something?


 It specifies that emerge-webrsync be used, automating the process of
 fetching and extracting a portage tarball.

Correct.  This is much more efficient than rsync when you're starting
from an empty tree, which was one of the reasons the old procedure
used to recommend using a portage tarball.  emerge-webrsync works well
and is easier to use anyway.

--
Rich



Re: [gentoo-user] Re: has anyone tried KDE5?

2014-10-12 Thread Stefano Crocco
Excerpts from Michael Palimaka's message of 2014-10-12 17:20:20 +0200:
  
  I'd love to try KDE 5. So far I've been able to install Frameworks from the 
  KDE
  overlay. I then tried to install the workspace, but it seems that it can't
  coexist with kde 4 (I get blockers from several kde 4 packages when trying 
  to
  install). Is this correct, or am I doing something wrong? I use paludis as
  package manager, so maybe it behaves differently from portage and this is 
  the
  reason for the blockers.
 
 Unfortunately Plasma 5 and KDE 4 Workspaces cannot coexist. This is an
 upstream decision.

That's a pity. It seems I'll have to wait.

Thanks for the information.

Stefano



Re: [gentoo-user] Writing to tty01 (serial port) in simple straight forward way...?!?

2014-10-12 Thread Paul Colquhoun
On Sun, 12 Oct 2014 16:42:22 Kerin Millar wrote:
 On 12/10/2014 13:08, meino.cra...@gmx.de wrote:
  Hi,
  
  I want to send commands to ttyO1 (serial port on an embedded 
system).
  The commands are one line each and terminated with CRL/LF (aka 
DOS).
  
  Since this will be done from a batch script, it should be possible
  via commandline tools and non-interactively. The serial port is
  already setup up the right way.
  
  I tried
  
  echo -nblablabal\x0a\x0d
 
 Firstly, this command is missing the -e switch. Secondly, the order of
 the control characters is wrong. I would suggest the use of printf as it
 has fewer pitfalls.
 
 # printf '%s\r\n' command
 
 --Kerin


Also, are you sure that the standard output of the script is connected to 
the serial port? Try adding  /dev/tty01 to the end of the echo/printf 
command lines and see if that helps.


-- 
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
 http://catb.org/~esr/faqs/smart-questions.html#intro



Re: [gentoo-user] Writing to tty01 (serial port) in simple straight forward way...?!?

2014-10-12 Thread Francisco Ares
2014-10-12 19:22 GMT-03:00 Paul Colquhoun paul...@andor.dropbear.id.au:

  On Sun, 12 Oct 2014 16:42:22 Kerin Millar wrote:

  On 12/10/2014 13:08, meino.cra...@gmx.de wrote:

   Hi,

  

   I want to send commands to ttyO1 (serial port on an embedded system).

   The commands are one line each and terminated with CRL/LF (aka DOS).

  

   Since this will be done from a batch script, it should be possible

   via commandline tools and non-interactively. The serial port is

   already setup up the right way.

  

   I tried

  

   echo -nblablabal\x0a\x0d

 

  Firstly, this command is missing the -e switch. Secondly, the order of

  the control characters is wrong. I would suggest the use of printf as it

  has fewer pitfalls.

 

  # printf '%s\r\n' command

 

  --Kerin





 Also, are you sure that the standard output of the script is connected to
 the serial port? Try adding  /dev/tty01 to the end of the echo/printf
 command lines and see if that helps.





 --

 Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/

 Asking for technical help in newsgroups? Read this first:

 http://catb.org/~esr/faqs/smart-questions.html#intro




Or, perhaps, /dev/ttyS0 , or even /dev/ttyUSB0, if it is connected through
a USB to serial adapter.

By using this approach, you might be able to send a command, but most
probably (never tried) will not be able to receive the device's reply.

Try minicom, a simple text serial console.

Good luck
Francisco


[gentoo-user] Re: Handbook missing portage unpacking

2014-10-12 Thread James
Rich Freeman rich0 at gentoo.org writes:


 Correct.  This is much more efficient than rsync when you're starting
 from an empty tree, which was one of the reasons the old procedure
 used to recommend using a portage tarball.  emerge-webrsync works well

I'll have to try thiswebsync sometime. I always like toget distracted 
and look at experimental, hardened, lilblue and many other tarballs just 
out of curiousity

thx to all that responded. It had been a while since I followed a handbook
install. I wonder when btrfs will replace ext..(just kidding...)




James






Re: [gentoo-user] Re: Handbook missing portage unpacking

2014-10-12 Thread Rich Freeman
On Sun, Oct 12, 2014 at 10:12 PM, James wirel...@tampabay.rr.com wrote:

 thx to all that responded. It had been a while since I followed a handbook
 install. I wonder when btrfs will replace ext..(just kidding...)


Nothing prevents you from installing Gentoo on btrfs.  It really isn't
anything different from installing Gentoo on any other filesystem.  I
know at least a few of us run it.  Or, if if you prefer zfs on linux
the maintainer is a Gentoo dev...

--
Rich