Re: [gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Joerg Schilling
Martin Vaeth mar...@mvath.de wrote:

 Neil Bothwick n...@digimed.co.uk wrote:
  As a
  scripting language, Bash is probably better

 This is not true, either: Although finally bash took some of the
 features of zsh (arrays, regular expression matching, etc.) there
 are still many features missing in bash (extended globbing, many
 variable and array operations etc.)

AFAIK, this was not introduced by zsh but by ksh.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'



Re: [gentoo-user] Securely deletion of an HDD

2015-07-13 Thread Marc Joliet
Am Sun, 12 Jul 2015 22:43:44 +0200
schrieb Volker Armin Hemmann volkerar...@googlemail.com:

 http://www.howtogeek.com/115573/htg-explains-why-you-only-have-to-wipe-a-disk-once-to-erase-it/

Yeah, that was linked from the Arch wiki I looked at.

 http://www.vidarholen.net/~vidar/overwriting_hard_drive_data.pdf

FWIW, Peter Gutmann doesn't have much good to say about that article
(specifically, he wrote about the related blog article at [0] in his Further
Epilogue at [1]). Regardless, the summary still seems to be: with
modern high-density drives, there is *no* wiggle room outside for remnants of
data to stick around after overwriting it, outside of some potential future
method that is probably a) far enough away into the future that the data on the
drive is uninteresting by then (if it ever was interesting to begin with!) and
b) prohibitively expensive (at least at the start), which pushes the earliest
time someone might ever look at my old hard drives even further back.  This
assumes that anybody is interested in developing something like that, if it's
even possible.

I can't help but wonder what the situation is like with tape, which still
commonly used for backups. ISTR that huge densities are also the norm there, but
that's about all I know.

[0]
https://web.archive.org/web/20090722235051/http://sansforensics.wordpress.com/2009/01/15/overwriting-hard-drive-data
[1] https://www.cs.auckland.ac.nz/~pgut001/pubs/secure_del.html
-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


pgpQE7rExP0Zs.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Securely deletion of an HDD

2015-07-13 Thread Rich Freeman
On Mon, Jul 13, 2015 at 4:05 AM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 Am 12.07.2015 um 23:30 schrieb Rich Freeman:
 Impossible is a pretty bold claim.  You need proof, not evidence that
 a particular recovery technique didn't work.  I can demonstrate very
 clearly that I'm unable to crack DES, but that doesn't make it secure.


 they gave you the prove. Others have found the same. If you are unable
 to understand what they wrote, just say so.


By all means point out more specifically where you think they made a
theoretical argument.  I see lots of talk of measurements and lots of
empirical-looking numbers.  Theoretical arguments tend to involve lots
of h-bars over pis and such.

As far as others finding the same goes, that also tends to
characterize this as an experimental/practical argument.  You
generally don't tend to have publications of reproductions of
theoretical arguments since about all you can do is either point out
an error in the math or extend it.

Such experiments are useful, but they're not airtight.  It is the
difference between AES and a one-time pad.  The former has no known
method of circumvention and seems really hard to attack, the latter is
theoretically impossible to attack if correctly implemented, but
probably impossible to truly implement correctly.  I don't worry about
using AES, but I'm not under any illusions that it is completely
unbreakable.

-- 
Rich



Re: [gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Joerg Schilling
Nikos Chantziaras rea...@gmail.com wrote:

 On 10/07/15 02:34, Nikos Chantziaras wrote:
  I tried it [zsh], for exactly 10 seconds. My home/end keys didn't work. This
  gave me the impression of an unfinished project. Why on earth would
  anyone release a program after 1990 that doesn't know the home/end keys?
  :-/

 PS:

 The Del key doesn't work either.

Well it seems to be strange but some people seem to believe that backspace is 
not to backspace in text but to delete chars.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'



Re: [gentoo-user] Securely deletion of an HDD

2015-07-13 Thread Joerg Schilling
Marc Joliet mar...@gmx.de wrote:

 Hi,

 I have to failed drives that I want to give away for recycling purposes, but
 want to be sure to properly clear them first.  They used be part of a btrfs

The test patterns used on Solaris and marked with federal requirements are:

int purge_patterns[]= {   /* patterns to be written */ 
0x, /* 10101010... */ 
0x, /* 01010101...  == ... */ 
0x, /* 10101010... */ 
0x, /* 10101010... */ 
}

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'



Re: [gentoo-user] Anyone's kernel getting panicky????

2015-07-13 Thread Alex Thorne
I'm on 4.1.2 with no problems. Sorry to check the obvious, are you sure you
copied your config over from your previous kernel? The only time I got a
kernel panic after a minor kernel upgrade was when I forgot to do this and
as a result compiled the default kernel without support for LVM.

Alex

On 13 July 2015 at 06:11, Andrew Lowe a...@wht.com.au wrote:

 Hi all,
 Just did an eix-sync followed by an emerge -NuD world and then the
 manual kernel, nvidia drivers build and grub2 fixup. When I rebooted I
 got a kernel panic. It appears to be very early on in the process as I
 get minimal stuff flashing up the screen before the panic. Any thoughts
 on how to find out what's going wrong?

 The kernel in question is 4.1.2 and I've now rebooted back into
 4.0.5
 and things are fine. I've looked at dmesg for this boot, 4.0.5, and it
 doesn't mention anything about memory being on the way out. My thoughts
 are to try and boot again from 4.1.2 and let it panic. Then reboot using
 a sysrescude cd and see if dmesg has written anything. Whilst I've got
 the sysrescue cd happening, I'll also run a memory check.

 I've done the above, there is nothing in /var/log/dmesg for the
 panicked boot, it still contains the data from the previous 4.0.5 boot.
 The running of memtest, I let it run for about 3hrs, showed no errors as
 well. I'm about to give boot_delay a try to see if I can spot what's
 causing the problem and am currently in the process of fixing this up:

 https://wiki.gentoo.org/wiki/Kernel_Crash_Dumps

 Would anyone have any other thoughts?

 Thanks in advance,
 Andrew




Re: [gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Joerg Schilling
Martin Vaeth mar...@mvath.de wrote:

 Neil Bothwick n...@digimed.co.uk wrote:
 
  In one sub-thread we've so far managed to cover:
 
  Bash vs Zsh
  Vim vs Emacs
  Perl vs Python

 not to forget: POSIX vs Bash

Let us better call it bash vs. POSIX, as bash tried to ignore long existing 
rules just because the bash maintainer did not understand them.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'



Re: [gentoo-user] Securely deletion of an HDD

2015-07-13 Thread Marc Joliet
Am Mon, 13 Jul 2015 01:50:57 +
schrieb Thomas Mueller mueller6...@bellsouth.net:

 All that has been said on this thread supposes that the hard drive is still 
 readable and writable.
 
 But the original post stated this was a failed drive.
 
 Then you might not be able to dd if=/dev/zero of=/dev/sdx .. or whatever else.
 
 You would be stopped by bad sectors.

The two drives I'm referring to here failed in the sense that they have no more
reallocation sectors available.  Perhaps that will make it difficult to wipe 
them
properly, but they were fine mechanically when I removed them.

-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


pgpm3N2V4UFQG.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Peter Humphrey
On Monday 13 July 2015 11:21:22 Joerg Schilling wrote:
 Nikos Chantziaras rea...@gmail.com wrote:
  On 10/07/15 02:34, Nikos Chantziaras wrote:
   I tried it [zsh], for exactly 10 seconds. My home/end keys didn't work.
   This gave me the impression of an unfinished project. Why on earth
   would anyone release a program after 1990 that doesn't know the
   home/end keys?  
   :-/
  
  PS:
  
  The Del key doesn't work either.
 
 Well it seems to be strange but some people seem to believe that backspace
 is not to backspace in text but to delete chars.

Well I've been around a fair length of time and I don't remember it behaving 
any other way. Ever.

-- 
Rgds
Peter




Re: [gentoo-user] Securely deletion of an HDD

2015-07-13 Thread Marc Joliet
Am Sun, 12 Jul 2015 18:32:39 +0200
schrieb Volker Armin Hemmann volkerar...@googlemail.com:

 Am 12.07.2015 um 14:35 schrieb Marc Joliet:
  Hi,
 
  I have to failed drives that I want to give away for recycling purposes, but
  want to be sure to properly clear them first.  They used be part of a btrfs
  RAID10 array, but needed to be replaced (with btrfs replace).  (In the
  meantime I converted the array to RAID1 with only two drives.)
 
  My question is how precisely the disks should be cleared.  From various 
  sources
  I know that overwriting them with random data a few times is enough to 
  render
  old versions of data unreadable.  I'm guessing 3 times ought to be enough, 
  but
  maybe even that small amount is overly paranoid these days?
 
  As to the actual command, I would suspect something like dd if=/dev/urandom
  of=/dev/sdx bs=4096 should suffice, and according to
  https://wiki.archlinux.org/index.php/Random_number_generation#.2Fdev.2Furandom,
  /dev/urandom ought to be random enough for this task.  Or are cat/cp that 
  much
  faster?
 
  Any thoughts?
 
  Greetings
 
 actually 1 time is enough. With zeros. Or ones. Does not matter at all.

If you look at my initial response to Rich, I already concluded that one time
is enough, although I'm going to stick with whatever random data shred(1)
produces.

-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


pgpykgWwMsVBc.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] How to avoid perl harbor (pun intended)

2015-07-13 Thread walt
Today's update started as a disaster:  perl wants to upgrade from
5.20.2 to 5.22.0, but all of my existing perl modules insist on having
5.20.2 so the perl update blocks and then emerge stopped with an error
and left the whole mess for me to solve. (To me this appears to be a
bug in the perl family of ebuilds.)

Here is my painless workaround for this mess:

#ebuild /usr/portage/dev-lang/perl/perl-5.22.0.ebuild merge

That trick cleared the blocker and allowed the rest of today's update
to proceed.  (Lots of individual perl modules have updates also, which
may be part of this problem, but I don't know.)




[gentoo-user] Re: zsh: not so bad?

2015-07-13 Thread Martin Vaeth
Alon Bar-Lev alo...@gentoo.org wrote:

 Only issue I could not find a solution to is tab completion after '=',
 for example:

 xxx --file=TAB

 This will not complete files, while it will be nice if it does.

For standard commands, it works as it should. For instance,

tar --file=TAB
chmod --reference=TAB
dd if=TAB

all work as excpected. For your own custom-commands, it is usually the
best idea to write your own _custom-command completion file for _zsh
where you can specify the options and their arguments (and how the
option arguments can look like, e.g. whether = is acceptable
as an option-argument separator) in detail.

For instance, gentoo-zsh-completion does this for most commands of
gentoo projects, others like eix bring their own completion files.
If you don't, you do not get completion for options but only the
generic completion of filenames (in which case = has no magic
meaning, of course).

 There is magic_equal_subst option which enables that but also cause
 harm when using = in other places such as:

That's exactly the purpose of magic_equal_subst:
To support it for *all* arguments everywhere.
Usually there is no point to specify this globally.
You can of course set it locally in a specific completion function,
in which you want it (although other completion helper functions
like _arguments are usually sufficient to treat = correctly).

 Is there any sequence to enable completion after space without
 effecting the entire interpreter?

After space? I suppose the question you meant is answered above.




Re: [gentoo-user] How to avoid perl harbor (pun intended)

2015-07-13 Thread Neil Bothwick
On Mon, 13 Jul 2015 05:19:46 -0700, walt wrote:

 Today's update started as a disaster:  perl wants to upgrade from
 5.20.2 to 5.22.0, but all of my existing perl modules insist on having
 5.20.2 so the perl update blocks and then emerge stopped with an error
 and left the whole mess for me to solve. (To me this appears to be a
 bug in the perl family of ebuilds.)

I've upgraded 4 machines so far and all of them handled it perfectly,
updating Perl and then installing or reinstalling the modules.

emerge --update --deep --changed-use --ask -v --with-bdeps y --keep-going
@system @world reported

 Total: 190 packages (49 upgrades, 141 reinstalls, 3
uninstalls), Size of downloads: 6,246 KiB Conflict: 3 blocks

The three blocks were handled automatically by portage.

Which version of portage are you using?


-- 
Neil Bothwick

Smoking Can Damage Your HealthUnless us Non-Smokers do it first!


pgp_fcobI2mQa.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: google

2015-07-13 Thread Grant Edwards
On 2015-07-10, Alec Ten Harmsel a...@alectenharmsel.com wrote:

 Do you folks notice that google is triying to control the way we live?!
 
 belive me or not, sometimes I feel I am living in the 1984 novel ?!

 What? They don’t control the way I live.

Which is _exactly_ what you would post if Google _were_ controlling
you.

Perhaps you're just not aware that they're controlling you?

;)

-- 
Grant Edwards   grant.b.edwardsYow! Yes, but will I
  at   see the EASTER BUNNY in
  gmail.comskintight leather at an
   IRON MAIDEN concert?




[gentoo-user] xen doesn't work

2015-07-13 Thread hw


Hi,

I'm trying to get a windoze 7 to run as a domU on a fresh install of 
gentoo with xen.  I need to use the installer ISO to boot from and to 
install into a partition on a physical disk.


Running 'xl -vvv create /etc/xen/ws-01.hvm' gives me the following messages:


Parsing config from /etc/xen/ws-01.hvm
libxl: debug: libxl_create.c:1504:do_domain_create: ao 0x1a97440: 
create: how=(nil) callback=(nil) poller=0x1a974a0
libxl: verbose: libxl_create.c:137:libxl__domain_build_info_setdefault: 
qemu-xen is unavailable, use qemu-xen-traditional instead: No such file 
or directory
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk 
vdev=hda spec.backend=unknown
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk 
vdev=hda, using backend phy
libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk 
vdev=hdc spec.backend=unknown
libxl: debug: libxl_device.c:215:disk_try_backend: Disk vdev=hdc, 
backend phy unsuitable as phys path not a block device
libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk 
vdev=hdc, using backend qdisk

libxl: debug: libxl_create.c:907:initiate_domain_create: running bootloader
libxl: debug: libxl_bootloader.c:323:libxl__bootloader_run: not a PV 
domain, skipping bootloader
libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch 
w=0x1a97d70: deregister unregistered
libxl: debug: libxl_numa.c:483:libxl__get_numa_candidate: New best NUMA 
placement candidate found: nr_nodes=1, nr_cpus=12, nr_vcpus=26, 
free_memkb=9875
libxl: debug: libxl_numa.c:483:libxl__get_numa_candidate: New best NUMA 
placement candidate found: nr_nodes=1, nr_cpus=12, nr_vcpus=26, 
free_memkb=10311
libxl: detail: libxl_dom.c:196:numa_place_domain: NUMA placement 
candidate with 1 nodes, 12 cpus and 10311 KB free selected

libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: base group enabled
libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: freq group enabled
libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: time_ref_count 
group enabled
xc: error: Could not open kernel image (2 = No such file or directory): 
Internal error

libxl: error: libxl_dom.c:818:libxl__build_hvm: hvm building failed
libxl: error: libxl_create.c:1121:domcreate_rebuild_done: cannot 
(re-)build domain: -3
libxl: error: libxl_dm.c:1595:kill_device_model: unable to find device 
model pid in /local/domain/12/image/device-model-pid
libxl: error: libxl.c:1608:libxl__destroy_domid: 
libxl__destroy_device_model failed for 12
libxl: info: libxl.c:1691:devices_destroy_cb: forked pid 5036 for 
destroy of domain 12
libxl: debug: libxl_create.c:1520:do_domain_create: ao 0x1a97440: 
inprogress: poller=0x1a974a0, flags=i
libxl: debug: libxl_event.c:1765:libxl__ao_complete: ao 0x1a97440: 
complete, rc=-3

libxl: debug: libxl_event.c:1737:libxl__ao__destroy: ao 0x1a97440: destroy
xc: debug: hypercall buffer: total allocations:197 total releases:197
xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
xc: debug: hypercall buffer: cache current size:4
xc: debug: hypercall buffer: cache hits:182 misses:4 toobig:11


The configuration for the VM is as follows:


# This configures an HVM rather than PV guest
builder = hvm

# Guest name
name = ws-01.hvm

# 128-bit UUID for the domain as a hexadecimal number.
# Use uuidgen to generate one if required.
# The default behavior is to generate a new UUID each time the guest is 
started.

#uuid = ----

# Enable Microsoft Hyper-V compatibile paravirtualisation /
# enlightenment interfaces. Turning this on can improve Windows guest
# performance and is therefore recommended
viridian = 1

# Initial memory allocation (MB)
memory = 4096

# Maximum memory (MB)
# If this is greater than `memory' then the slack will start ballooned
# (this assumes guest kernel support for ballooning)
#maxmem = 512

# Number of VCPUS
vcpus = 2

# Network devices
# A list of 'vifspec' entries as described in
# docs/misc/xl-network-configuration.markdown
vif = [ 'bridge=brloc' ]

# Disk Devices
# A list of `diskspec' entries as described in
# docs/misc/xl-disk-configuration.txt
disk = [ 'phy:/dev/sde1,ioemu:hda,w', 
'file:/root/installers/de_windows_7_professional_with_sp1_x64_dvd_u_676919.iso,ioemu:hdc:cdrom,r' 
]


boot=dc

# Guest VGA console configuration, either SDL or VNC
sdl = 0
vnc = 1


Any idea why I cannot create VMs?  Is this a Gentoo problem or a problem 
with xen?  Do I need to install some more packages?




[gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Martin Vaeth
Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote:
 Martin Vaeth mar...@mvath.de wrote:

 This is not true, either: Although finally bash took some of the
 features of zsh (arrays, regular expression matching, etc.) there
 are still many features missing in bash (extended globbing, many
 variable and array operations etc.)

 AFAIK, this was not introduced by zsh but by ksh.

Yes, you are right: To be historically correct, one should call
many of them ksh features. However, fact is that zsh *has* almost
all ksh features (with mainly identical syntax) while bash still
lacks a lot of them (and for others it has a more cumbersome
syntax).

This might change in the long run: as mentioned, bash has
adopted a lot of ksh/zsh features over the years,
but a lot are still missing, and ksh/zsh has evolved meanwhile.

For instance, bash now finally has also a completion mechanism
which zsh had much longer before.
Moreover, my impression is that bash's mechanism is more in the
spirit to zsh's first attempt (zshcompctl) while since quite a
while zsh has obsoleted this mechanism and replaced by a much
superior/flexible one (zshcompsys).




[gentoo-user] Re: Securely deletion of an HDD

2015-07-13 Thread Grant Edwards
On 2015-07-12, Marc Joliet mar...@gmx.de wrote:

 With regards to the other replies: I think physical destruction is
 unnecessary, and I don't really want to go through the trouble.

If it's trouble rather than fun, then you're doing it wrong. :)

There's thermite:

  
http://hackaday.com/2008/09/16/how-to-thermite-based-hard-drive-anti-forensic-destruction/

And mechanical shredding:

  http://www.youtube.com/watch?v=AZdZGKyu9hc

Others favor a high-powered rifle or an 8lb sledge.

-- 
Grant Edwards   grant.b.edwardsYow! Sometime in 1993
  at   NANCY SINATRA will lead a
  gmail.comBLOODLESS COUP on GUAM!!




[gentoo-user] Re: How to avoid perl harbor (pun intended)

2015-07-13 Thread Nikos Chantziaras

On 13/07/15 15:19, walt wrote:

Today's update started as a disaster:  perl wants to upgrade from
5.20.2 to 5.22.0, but all of my existing perl modules insist on having
5.20.2 so the perl update blocks and then emerge stopped with an error
and left the whole mess for me to solve. (To me this appears to be a
bug in the perl family of ebuilds.)


Same here.

I uninstalled perl and tried again. This always worked with other packages.

But here: nope. Portage wants to then install both versions at the same 
time.


Not good.





Re: [gentoo-user] How to avoid perl harbor (pun intended)

2015-07-13 Thread Alan McKinnon
On 13/07/2015 14:58, Neil Bothwick wrote:
 On Mon, 13 Jul 2015 05:19:46 -0700, walt wrote:
 
 Today's update started as a disaster:  perl wants to upgrade from
 5.20.2 to 5.22.0, but all of my existing perl modules insist on having
 5.20.2 so the perl update blocks and then emerge stopped with an error
 and left the whole mess for me to solve. (To me this appears to be a
 bug in the perl family of ebuilds.)
 
 I've upgraded 4 machines so far and all of them handled it perfectly,
 updating Perl and then installing or reinstalling the modules.
 
 emerge --update --deep --changed-use --ask -v --with-bdeps y --keep-going
 @system @world reported
 
  Total: 190 packages (49 upgrades, 141 reinstalls, 3
 uninstalls), Size of downloads: 6,246 KiB Conflict: 3 blocks
 
 The three blocks were handled automatically by portage.
 
 Which version of portage are you using?


Same here, a mostly problem-free upgrade with portage-2.2.20.
There was one file collision with perl-code/Encode, easily fixed rm

I'm also busy with a new install while all this is going on, and that
machine have some initial issues - something blocking perl-5.22.0 -
which has now gone away and I don't know what I did to make that happen
:-)  IIRC I manually upgraded portage to latest ~ (but a lot wqas going
on so can't be totally sure)


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Joerg Schilling
Martin Vaeth mar...@mvath.de wrote:

 Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote:
 
  bash vs. POSIX, as bash tried to ignore long existing
  rules just because the bash maintainer did not understand them.

 Are there really several? I know only one such example:

One is that sh -ce cmd did not exit on error for some kind of commands.
This is where I have been able to convince the bash maintainer together with 
David Korn for bash-4.0. This was a nightmare for make.

Another is e.g. that bash makes job control for commands in scripts or commands 
from sh -ce cmd. This is another nightmare for make, as this prevents layered 
makefiles from terminating when ^C is typed as some comands run in different 
process groups. Smake for this reason has a special autoconf test for /bin/sh 
being bash and tries to manually kill(2) the dependencies if they are run by 
bash.

 bash insists on compound commands ({ ... } or ( ... ))
 for the function body while according to POSIX also
 non-compound commmands can form the body, e.g.

 hello() echo hello world

 is a valid function definition according to POSIX
 (and thus works in dash or also zsh) but not in bash:
 Rumors say that the bash maintainer intentionally
 excluded this due to some misinterpretation of the
 POSIX formulation.


This is valid in the Bourne Shell already, so it is something that can be seen 
as very basic.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'



Re: [gentoo-user] How to avoid perl harbor (pun intended)

2015-07-13 Thread Simon Thelen
On 15-07-13 at 05:19, walt wrote:
 Today's update started as a disaster:  perl wants to upgrade from
 5.20.2 to 5.22.0, but all of my existing perl modules insist on having
 5.20.2 so the perl update blocks and then emerge stopped with an error
 and left the whole mess for me to solve. (To me this appears to be a
 bug in the perl family of ebuilds.)
 
 Here is my painless workaround for this mess:
 
 #ebuild /usr/portage/dev-lang/perl/perl-5.22.0.ebuild merge
 
 That trick cleared the blocker and allowed the rest of today's update
 to proceed.  (Lots of individual perl modules have updates also, which
 may be part of this problem, but I don't know.)
It worked for me after I added --backtrack=30

-- 
Simon Thelen



Re: [gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Joerg Schilling
Martin Vaeth mar...@mvath.de wrote:

 Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote:
  Martin Vaeth mar...@mvath.de wrote:
 
  This is not true, either: Although finally bash took some of the
  features of zsh (arrays, regular expression matching, etc.) there
  are still many features missing in bash (extended globbing, many
  variable and array operations etc.)
 
  AFAIK, this was not introduced by zsh but by ksh.

 Yes, you are right: To be historically correct, one should call

It migh be of interest that I recently asked David Korn whether adding a bunch 
of typical commands as builtins into the shell was introduced by ksh or by 
Bruce Perens (busybox). David answered:

As far as I know, I added these to ksh93 before busy box existed.

To be more verbose, even loadable builtins existed in ksh in the middle between 
ksh88 and ksh93.

 many of them ksh features. However, fact is that zsh *has* almost
 all ksh features (with mainly identical syntax) while bash still
 lacks a lot of them (and for others it has a more cumbersome
 syntax).

 This might change in the long run: as mentioned, bash has

It also might be of interest that we decided to standardize a new way to manage 
builtin commands in the shell and this has been derived from the method that 
was introduced for OpenSolaris when ksh93 was added to OpenSolaris in August 
2007:

Builtins beyond the documented builtins from POSIX must be searched
by a tagged PATH in POSIX issue 8.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'



[gentoo-user] Re: How to avoid perl harbor (pun intended)

2015-07-13 Thread Nikos Chantziaras

On 13/07/15 16:01, Simon Thelen wrote:

On 15-07-13 at 05:19, walt wrote:

Today's update started as a disaster:  perl wants to upgrade from
5.20.2 to 5.22.0, but all of my existing perl modules insist on having
5.20.2 so the perl update blocks and then emerge stopped with an error
[...]

It worked for me after I added --backtrack=30


That was it. After using that option, it works.

So I guess the default value is not good enough.




[gentoo-user] Re: Anyone else having a problem with bash?

2015-07-13 Thread Martin Vaeth
Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote:

 bash vs. POSIX, as bash tried to ignore long existing
 rules just because the bash maintainer did not understand them.

Are there really several? I know only one such example:
bash insists on compound commands ({ ... } or ( ... ))
for the function body while according to POSIX also
non-compound commmands can form the body, e.g.

hello() echo hello world

is a valid function definition according to POSIX
(and thus works in dash or also zsh) but not in bash:
Rumors say that the bash maintainer intentionally
excluded this due to some misinterpretation of the
POSIX formulation.




[gentoo-user] New install, can't load modules

2015-07-13 Thread Alan McKinnon
Did a new install, the new kernel can't load modules:

# modprobe nfsv3
modprobe: ERROR: could not insert 'nfsv3': Exec format error

Odd. Never had this before. The module file itself is a regular 64-bit
ELF file, just as it should be (compared to a working module on another
machine)

gcc is 4.8.4 as supplied by a recent stage3-amd64-20150709.tar.bz2:
# gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++-v4
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls
--without-included-gettext --enable-checking=release
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4
p1.6, pie-0.6.1' --enable-libstdcxx-time --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-altivec
--disable-fixed-point --enable-targets=all --disable-libgcj
--enable-libgomp --disable-libmudflap --disable-libssp --enable-lto
--without-cloog --enable-libsanitizer
Thread model: posix
gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1)

make.conf seems correct:
CHOST=x86_64-pc-linux-gnu
CFLAGS=-march=native -O2 -pipe
CXXFLAGS=${CFLAGS}
ACCEPT_KEYWORDS=~amd64

The kernel loads and runs OK:
# uname -a
Linux download 4.1.2-gentoo #1 SMP Mon Jul 13 13:28:40 SAST 2015 x86_64
Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux

and the kernel was built with gcc auto-detection:
# grep NATIVE /boot/config-4.1.2-gentoo
CONFIG_MNATIVE=y

and the .config was grabbed from a working machine with very similar
hardware (one minor hardware upgrade ahead)

I haven't done a full world update yet, most code is still what's in the
stage3, but always in the past that hasn't been a problem; the stage
must successfully build a kernel and load the modules.

Module loading works just fine when booted from the Gentoo minimal
install image.

So, what dumbass n00b error did I make today?


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Alan McKinnon
On 13/07/2015 18:42, Alexander Kapshuk wrote:
 On Mon, Jul 13, 2015 at 5:29 PM, Alan McKinnon alan.mckin...@gmail.com 
 wrote:
 Did a new install, the new kernel can't load modules:

 # modprobe nfsv3
 modprobe: ERROR: could not insert 'nfsv3': Exec format error

 Odd. Never had this before. The module file itself is a regular 64-bit
 ELF file, just as it should be (compared to a working module on another
 machine)

 gcc is 4.8.4 as supplied by a recent stage3-amd64-20150709.tar.bz2:
 # gcc -v
 Using built-in specs.
 COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4/gcc
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.4/lto-wrapper
 Target: x86_64-pc-linux-gnu
 Configured with:
 /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
 --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/info
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++-v4
 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/python
 --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
 --disable-werror --with-system-zlib --enable-nls
 --without-included-gettext --enable-checking=release
 --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4
 p1.6, pie-0.6.1' --enable-libstdcxx-time --enable-shared
 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
 --enable-multilib --with-multilib-list=m32,m64 --disable-altivec
 --disable-fixed-point --enable-targets=all --disable-libgcj
 --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto
 --without-cloog --enable-libsanitizer
 Thread model: posix
 gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1)

 make.conf seems correct:
 CHOST=x86_64-pc-linux-gnu
 CFLAGS=-march=native -O2 -pipe
 CXXFLAGS=${CFLAGS}
 ACCEPT_KEYWORDS=~amd64

 The kernel loads and runs OK:
 # uname -a
 Linux download 4.1.2-gentoo #1 SMP Mon Jul 13 13:28:40 SAST 2015 x86_64
 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux

 and the kernel was built with gcc auto-detection:
 # grep NATIVE /boot/config-4.1.2-gentoo
 CONFIG_MNATIVE=y

 and the .config was grabbed from a working machine with very similar
 hardware (one minor hardware upgrade ahead)

 I haven't done a full world update yet, most code is still what's in the
 stage3, but always in the past that hasn't been a problem; the stage
 must successfully build a kernel and load the modules.

 Module loading works just fine when booted from the Gentoo minimal
 install image.

 So, what dumbass n00b error did I make today?


 --
 Alan McKinnon
 alan.mckin...@gmail.com


 
 Does 'modprobe -nv' say anything useful?

It's normal - a list of dependant modules to be insmod'ed

 
 Anything of interest in '/var/log/dmesg'?

Nothing I can see:

# dmesg | egrep -i warn|error
[0.00] ACPI BIOS Warning (bug): 32/64X FACS address mismatch in
FADT: 0xCF7E4E40/0xCF7E4D40, using 32-bit address
(20150410/tbfadt-283)
[1.455621] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
[2.278571] i8042: Warning: Keylock active
[3.798045] EXT3-fs (sdb3): error: couldn't mount because of
unsupported optional features (240)
[3.798411] EXT2-fs (sdb3): error: couldn't mount because of
unsupported optional features (240)


Digging a little deeper, I see that the kernel IS auto-loading modules
on start-up. My e1000e NIC is compiled as a module, and works:

00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit
Network Connection [8086:1502] (rev 04)
DeviceName:  Onboard LAN
Subsystem: Dell Precision M4600 [1028:04a3]
Kernel driver in use: e1000e
Kernel modules: e1000e


lsmod returns null output (just a header line, no data), and modprobe
fails with every module tried so far.

A dim memory is tickling my brain, something about module loading from
userspace post-startup being disabled - I'll google some more.


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Re: [OT} CPU question

2015-07-13 Thread Meino . Cramer
Nikos Chantziaras rea...@gmail.com [15-07-13 20:36]:
 On 13/07/15 19:04, meino.cra...@gmx.de wrote:
 Are crosscompilers freely available for it (or is this
 CPU even i386 compatible)
 
 It's x86 and x86-64 compatible (it's a 64-bit CPU).
 
 With -march=native, GCC will use the most appropriate instruction 
 sets for this CPU.
 
 

Hi Nikos,

THATS REALLY GOOD NEWS!
That makes many things much more easier for me!
Great! THANKS! ::)))
Best regards,
Meino





Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Alan McKinnon
On 13/07/2015 19:47, Mick wrote:
 On Monday 13 Jul 2015 17:42:22 Alexander Kapshuk wrote:
 On Mon, Jul 13, 2015 at 5:29 PM, Alan McKinnon alan.mckin...@gmail.com 
 wrote:
 Did a new install, the new kernel can't load modules:

 # modprobe nfsv3
 modprobe: ERROR: could not insert 'nfsv3': Exec format error

 Odd. Never had this before. The module file itself is a regular 64-bit
 ELF file, just as it should be (compared to a working module on another
 machine)

 gcc is 4.8.4 as supplied by a recent stage3-amd64-20150709.tar.bz2:
 # gcc -v
 Using built-in specs.
 COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4/gcc
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.4/lto-wrappe
 r Target: x86_64-pc-linux-gnu
 Configured with:
 /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
 --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/info
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++
 -v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/python
 --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
 --disable-werror --with-system-zlib --enable-nls
 --without-included-gettext --enable-checking=release
 --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4
 p1.6, pie-0.6.1' --enable-libstdcxx-time --enable-shared
 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
 --enable-multilib --with-multilib-list=m32,m64 --disable-altivec
 --disable-fixed-point --enable-targets=all --disable-libgcj
 --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto
 --without-cloog --enable-libsanitizer
 Thread model: posix
 gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1)

 make.conf seems correct:
 CHOST=x86_64-pc-linux-gnu
 CFLAGS=-march=native -O2 -pipe
 CXXFLAGS=${CFLAGS}
 ACCEPT_KEYWORDS=~amd64

 The kernel loads and runs OK:
 # uname -a
 Linux download 4.1.2-gentoo #1 SMP Mon Jul 13 13:28:40 SAST 2015 x86_64
 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux

 and the kernel was built with gcc auto-detection:
 # grep NATIVE /boot/config-4.1.2-gentoo
 CONFIG_MNATIVE=y

 and the .config was grabbed from a working machine with very similar
 hardware (one minor hardware upgrade ahead)

 I haven't done a full world update yet, most code is still what's in the
 stage3, but always in the past that hasn't been a problem; the stage
 must successfully build a kernel and load the modules.

 Module loading works just fine when booted from the Gentoo minimal
 install image.

 So, what dumbass n00b error did I make today?


 --
 Alan McKinnon
 alan.mckin...@gmail.com

 Does 'modprobe -nv' say anything useful?

 Anything of interest in '/var/log/dmesg'?
 
 
 Just in case you missed it on the enthusiasm of a new install, have you set:
 
 CONFIG_MODULES=y

Yes, that's set. And the kernel correctly loads modules it finds it
needs on startup. I just can't do it from userspace.

 
 and of course built as modules whatever you're modprobing.
 
 BTW, is the module in question called 'nfsv3', or is it 'nfs'?  I don't use 
 it 
 myself to know.

The name is correct. There's a module nfs for core stuff and nfsv3 
nfsv4 fr the different versions.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] xen doesn't work

2015-07-13 Thread hydra
On Mon, Jul 13, 2015 at 3:01 PM, hw h...@gartencenter-vaehning.de wrote:


 Hi,

 I'm trying to get a windoze 7 to run as a domU on a fresh install of
 gentoo with xen.  I need to use the installer ISO to boot from and to
 install into a partition on a physical disk.

 Running 'xl -vvv create /etc/xen/ws-01.hvm' gives me the following
 messages:


 Parsing config from /etc/xen/ws-01.hvm
 libxl: debug: libxl_create.c:1504:do_domain_create: ao 0x1a97440: create:
 how=(nil) callback=(nil) poller=0x1a974a0
 libxl: verbose: libxl_create.c:137:libxl__domain_build_info_setdefault:
 qemu-xen is unavailable, use qemu-xen-traditional instead: No such file or
 directory
 libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk
 vdev=hda spec.backend=unknown
 libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk
 vdev=hda, using backend phy
 libxl: debug: libxl_device.c:269:libxl__device_disk_set_backend: Disk
 vdev=hdc spec.backend=unknown
 libxl: debug: libxl_device.c:215:disk_try_backend: Disk vdev=hdc, backend
 phy unsuitable as phys path not a block device
 libxl: debug: libxl_device.c:298:libxl__device_disk_set_backend: Disk
 vdev=hdc, using backend qdisk
 libxl: debug: libxl_create.c:907:initiate_domain_create: running bootloader
 libxl: debug: libxl_bootloader.c:323:libxl__bootloader_run: not a PV
 domain, skipping bootloader
 libxl: debug: libxl_event.c:629:libxl__ev_xswatch_deregister: watch
 w=0x1a97d70: deregister unregistered
 libxl: debug: libxl_numa.c:483:libxl__get_numa_candidate: New best NUMA
 placement candidate found: nr_nodes=1, nr_cpus=12, nr_vcpus=26,
 free_memkb=9875
 libxl: debug: libxl_numa.c:483:libxl__get_numa_candidate: New best NUMA
 placement candidate found: nr_nodes=1, nr_cpus=12, nr_vcpus=26,
 free_memkb=10311
 libxl: detail: libxl_dom.c:196:numa_place_domain: NUMA placement candidate
 with 1 nodes, 12 cpus and 10311 KB free selected
 libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: base group
 enabled
 libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: freq group
 enabled
 libxl: detail: libxl_dom.c:254:hvm_set_viridian_features: time_ref_count
 group enabled
 xc: error: Could not open kernel image (2 = No such file or directory):
 Internal error
 libxl: error: libxl_dom.c:818:libxl__build_hvm: hvm building failed
 libxl: error: libxl_create.c:1121:domcreate_rebuild_done: cannot
 (re-)build domain: -3
 libxl: error: libxl_dm.c:1595:kill_device_model: unable to find device
 model pid in /local/domain/12/image/device-model-pid
 libxl: error: libxl.c:1608:libxl__destroy_domid:
 libxl__destroy_device_model failed for 12
 libxl: info: libxl.c:1691:devices_destroy_cb: forked pid 5036 for destroy
 of domain 12
 libxl: debug: libxl_create.c:1520:do_domain_create: ao 0x1a97440:
 inprogress: poller=0x1a974a0, flags=i
 libxl: debug: libxl_event.c:1765:libxl__ao_complete: ao 0x1a97440:
 complete, rc=-3
 libxl: debug: libxl_event.c:1737:libxl__ao__destroy: ao 0x1a97440: destroy
 xc: debug: hypercall buffer: total allocations:197 total releases:197
 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4
 xc: debug: hypercall buffer: cache current size:4
 xc: debug: hypercall buffer: cache hits:182 misses:4 toobig:11


 The configuration for the VM is as follows:


 # This configures an HVM rather than PV guest
 builder = hvm

 # Guest name
 name = ws-01.hvm

 # 128-bit UUID for the domain as a hexadecimal number.
 # Use uuidgen to generate one if required.
 # The default behavior is to generate a new UUID each time the guest is
 started.
 #uuid = ----

 # Enable Microsoft Hyper-V compatibile paravirtualisation /
 # enlightenment interfaces. Turning this on can improve Windows guest
 # performance and is therefore recommended
 viridian = 1

 # Initial memory allocation (MB)
 memory = 4096

 # Maximum memory (MB)
 # If this is greater than `memory' then the slack will start ballooned
 # (this assumes guest kernel support for ballooning)
 #maxmem = 512

 # Number of VCPUS
 vcpus = 2

 # Network devices
 # A list of 'vifspec' entries as described in
 # docs/misc/xl-network-configuration.markdown
 vif = [ 'bridge=brloc' ]

 # Disk Devices
 # A list of `diskspec' entries as described in
 # docs/misc/xl-disk-configuration.txt
 disk = [ 'phy:/dev/sde1,ioemu:hda,w',
 'file:/root/installers/de_windows_7_professional_with_sp1_x64_dvd_u_676919.iso,ioemu:hdc:cdrom,r'
 ]

 boot=dc

 # Guest VGA console configuration, either SDL or VNC
 sdl = 0
 vnc = 1


 Any idea why I cannot create VMs?  Is this a Gentoo problem or a problem
 with xen?  Do I need to install some more packages?


Please post the output of
emerge --info xen
emerge --info xen-tools

Were you able to start any virtual machine in your Xen environment yet or
this is the first try?


Re: [gentoo-user] zsh: not so bad?

2015-07-13 Thread Alon Bar-Lev
On 13 July 2015 at 10:12, Alon Bar-Lev alo...@gentoo.org wrote:

 On 13 July 2015 at 04:52, walt w41...@gmail.com wrote:
  Maybe someone here has missed the recent discussion of zsh? ;)
 
  I just found this website, giving a wonderful primer on how to
  configure zsh:
 
  http://wiki.redbrick.dcu.ie/mw/Account_Customisation_(zsh)
 

 I also moved to zsh just to check.


I updated bug#213627 for better default configuration, it was not
applied ever since 2008(!).

Solved so far:
1. system dir colors
2. proper prompt
3. ~/.profile execution.

Only issue I could not find a solution to is tab completion after '=',
for example:

xxx --file=TAB

This will not complete files, while it will be nice if it does.

There is magic_equal_subst option which enables that but also cause
harm when using = in other places such as:

% echo xx==cat
xx=/bin/cat

Is there any sequence to enable completion after space without
effecting the entire interpreter?

Thanks!

[1] https://bugs.gentoo.org/show_bug.cgi?id=213627



[gentoo-user] [OT} CPU question

2015-07-13 Thread Meino . Cramer

Hi,

I am on the way to decide for a tablet PC (7) to use it as a platform
for installing Linux (preferred: Gentoo!) on it and compile software
for it for usage of decoding shortwave audio transmissions (i.e. morse
code, sstv, etc.) for example.

I mean this NOT performance wise or anything else than
the technical possibility to painless compile linux software
on this CPU, so...


Is an Intel Atom Z3745 (quad core) a sane decision?


Are crosscompilers freely available for it (or is this 
CPU even i386 compatible)

(tablet: Asus MEMO Pad 7(ME176CX))

Thank you very much in advance for any help !

Best regards,
Meino






Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Alexander Kapshuk
On Mon, Jul 13, 2015 at 5:29 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 Did a new install, the new kernel can't load modules:

 # modprobe nfsv3
 modprobe: ERROR: could not insert 'nfsv3': Exec format error

 Odd. Never had this before. The module file itself is a regular 64-bit
 ELF file, just as it should be (compared to a working module on another
 machine)

 gcc is 4.8.4 as supplied by a recent stage3-amd64-20150709.tar.bz2:
 # gcc -v
 Using built-in specs.
 COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4/gcc
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.4/lto-wrapper
 Target: x86_64-pc-linux-gnu
 Configured with:
 /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
 --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/info
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++-v4
 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/python
 --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
 --disable-werror --with-system-zlib --enable-nls
 --without-included-gettext --enable-checking=release
 --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4
 p1.6, pie-0.6.1' --enable-libstdcxx-time --enable-shared
 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
 --enable-multilib --with-multilib-list=m32,m64 --disable-altivec
 --disable-fixed-point --enable-targets=all --disable-libgcj
 --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto
 --without-cloog --enable-libsanitizer
 Thread model: posix
 gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1)

 make.conf seems correct:
 CHOST=x86_64-pc-linux-gnu
 CFLAGS=-march=native -O2 -pipe
 CXXFLAGS=${CFLAGS}
 ACCEPT_KEYWORDS=~amd64

 The kernel loads and runs OK:
 # uname -a
 Linux download 4.1.2-gentoo #1 SMP Mon Jul 13 13:28:40 SAST 2015 x86_64
 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux

 and the kernel was built with gcc auto-detection:
 # grep NATIVE /boot/config-4.1.2-gentoo
 CONFIG_MNATIVE=y

 and the .config was grabbed from a working machine with very similar
 hardware (one minor hardware upgrade ahead)

 I haven't done a full world update yet, most code is still what's in the
 stage3, but always in the past that hasn't been a problem; the stage
 must successfully build a kernel and load the modules.

 Module loading works just fine when booted from the Gentoo minimal
 install image.

 So, what dumbass n00b error did I make today?


 --
 Alan McKinnon
 alan.mckin...@gmail.com



Does 'modprobe -nv' say anything useful?

Anything of interest in '/var/log/dmesg'?



Re: [gentoo-user] Re: Securely deletion of an HDD

2015-07-13 Thread Marc Joliet
Am Mon, 13 Jul 2015 15:03:10 + (UTC)
schrieb Grant Edwards grant.b.edwa...@gmail.com:

 On 2015-07-12, Marc Joliet mar...@gmx.de wrote:
 
  With regards to the other replies: I think physical destruction is
  unnecessary, and I don't really want to go through the trouble.
 
 If it's trouble rather than fun, then you're doing it wrong. :)

OK, you have a point ;-) .

 There's thermite:
 
   
 http://hackaday.com/2008/09/16/how-to-thermite-based-hard-drive-anti-forensic-destruction/
 
 And mechanical shredding:
 
   http://www.youtube.com/watch?v=AZdZGKyu9hc
 
 Others favor a high-powered rifle or an 8lb sledge.

That does look fun!  However, I meant along the lines of destroying the disk
surface, because I want to give the HDDs away for recycling (a computer chain I
occasionally buy from collects old hardware for this purpose).  Good for the
environment and all that :-) .

-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


pgpsxCV8EQGLj.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] xen: How to enable a non-existant USE flag? (xen doesn't work)

2015-07-13 Thread hw


So what happened to the 'hvm' USE flag of the xen-tools package?

http://gentoobrowse.randomdan.homeip.net/package/app-emulation/xen-tools 
says there is such a flag.  However:



moonflo ~ # equery uses xen-tools
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for app-emulation/xen-tools-4.5.1-r1:
 U I
 - - api  : Build the C libxenapi bindings
 - - custom-cflags: Build with user-specified CFLAGS 
(unsupported)
 - - debug: Enable extra debug codepaths, like 
asserts and extra output. If you want to get meaningful backtraces see


https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc  : Add extra documentation (API, Javadoc, 
etc). It is recommended to enable per package instead of globally

 - - flask: Enable the Flask XSM module from NSA
 - - ovmf : Enable support to boot UEFI guest vm, 
needed by hvm

 + + pam  : Enable pam support
 - - pygrub   : Install the pygrub boot loader
 - - python   : Add optional support/bindings for the 
Python language

 + + python_targets_python2_7 : Build with Python 2.7
 - - qemu : Enable IOEMU support via the use of qemu-dm
 - - screen   : Enable support for running domain U 
console in an app-misc/screen session
 - - static-libs  : Build static versions of dynamic 
libraries as well
 - - system-qemu  : Using app-emulation/qemu instead of the 
bundled one
 - - system-seabios   : Using sys-firmware/seabios instead of 
the bundled one

moonflo ~ #


So there is no such flag.  Apparently my installation is missing 
'hvmloader', and I'm guessing that I would have that if I could enable 
the 'hmv' USE flag.


How do I enable a USE flag that doesn't seem to exist?



Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Mick
On Monday 13 Jul 2015 17:42:22 Alexander Kapshuk wrote:
 On Mon, Jul 13, 2015 at 5:29 PM, Alan McKinnon alan.mckin...@gmail.com 
wrote:
  Did a new install, the new kernel can't load modules:
  
  # modprobe nfsv3
  modprobe: ERROR: could not insert 'nfsv3': Exec format error
  
  Odd. Never had this before. The module file itself is a regular 64-bit
  ELF file, just as it should be (compared to a working module on another
  machine)
  
  gcc is 4.8.4 as supplied by a recent stage3-amd64-20150709.tar.bz2:
  # gcc -v
  Using built-in specs.
  COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4/gcc
  COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.4/lto-wrappe
  r Target: x86_64-pc-linux-gnu
  Configured with:
  /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure
  --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
  --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4
  --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include
  --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4
  --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/man
  --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/info
  --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++
  -v4 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/python
  --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
  --disable-werror --with-system-zlib --enable-nls
  --without-included-gettext --enable-checking=release
  --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4
  p1.6, pie-0.6.1' --enable-libstdcxx-time --enable-shared
  --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
  --enable-multilib --with-multilib-list=m32,m64 --disable-altivec
  --disable-fixed-point --enable-targets=all --disable-libgcj
  --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto
  --without-cloog --enable-libsanitizer
  Thread model: posix
  gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1)
  
  make.conf seems correct:
  CHOST=x86_64-pc-linux-gnu
  CFLAGS=-march=native -O2 -pipe
  CXXFLAGS=${CFLAGS}
  ACCEPT_KEYWORDS=~amd64
  
  The kernel loads and runs OK:
  # uname -a
  Linux download 4.1.2-gentoo #1 SMP Mon Jul 13 13:28:40 SAST 2015 x86_64
  Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux
  
  and the kernel was built with gcc auto-detection:
  # grep NATIVE /boot/config-4.1.2-gentoo
  CONFIG_MNATIVE=y
  
  and the .config was grabbed from a working machine with very similar
  hardware (one minor hardware upgrade ahead)
  
  I haven't done a full world update yet, most code is still what's in the
  stage3, but always in the past that hasn't been a problem; the stage
  must successfully build a kernel and load the modules.
  
  Module loading works just fine when booted from the Gentoo minimal
  install image.
  
  So, what dumbass n00b error did I make today?
  
  
  --
  Alan McKinnon
  alan.mckin...@gmail.com
 
 Does 'modprobe -nv' say anything useful?
 
 Anything of interest in '/var/log/dmesg'?


Just in case you missed it on the enthusiasm of a new install, have you set:

CONFIG_MODULES=y

and of course built as modules whatever you're modprobing.

BTW, is the module in question called 'nfsv3', or is it 'nfs'?  I don't use it 
myself to know.

-- 
Regards,
Mick


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


[gentoo-user] Re: [OT} CPU question

2015-07-13 Thread Nikos Chantziaras

On 13/07/15 19:04, meino.cra...@gmx.de wrote:

Are crosscompilers freely available for it (or is this
CPU even i386 compatible)


It's x86 and x86-64 compatible (it's a 64-bit CPU).

With -march=native, GCC will use the most appropriate instruction sets 
for this CPU.





Re: [gentoo-user] xen: How to enable a non-existant USE flag? (xen doesn't work)

2015-07-13 Thread Alan McKinnon
On 13/07/2015 19:22, hw wrote:
 
 So what happened to the 'hvm' USE flag of the xen-tools package?
 
 http://gentoobrowse.randomdan.homeip.net/package/app-emulation/xen-tools
 says there is such a flag.  However:
 
 
 moonflo ~ # equery uses xen-tools
 [ Legend : U - final flag setting for installation]
 [: I - package is installed with flag ]
 [ Colors : set, unset ]
  * Found these USE flags for app-emulation/xen-tools-4.5.1-r1:
  U I
  - - api  : Build the C libxenapi bindings
  - - custom-cflags: Build with user-specified CFLAGS
 (unsupported)
  - - debug: Enable extra debug codepaths, like
 asserts and extra output. If you want to get meaningful backtraces see
 
 https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
  - - doc  : Add extra documentation (API, Javadoc,
 etc). It is recommended to enable per package instead of globally
  - - flask: Enable the Flask XSM module from NSA
  - - ovmf : Enable support to boot UEFI guest vm,
 needed by hvm
  + + pam  : Enable pam support
  - - pygrub   : Install the pygrub boot loader
  - - python   : Add optional support/bindings for the
 Python language
  + + python_targets_python2_7 : Build with Python 2.7
  - - qemu : Enable IOEMU support via the use of qemu-dm
  - - screen   : Enable support for running domain U
 console in an app-misc/screen session
  - - static-libs  : Build static versions of dynamic
 libraries as well
  - - system-qemu  : Using app-emulation/qemu instead of the
 bundled one
  - - system-seabios   : Using sys-firmware/seabios instead of
 the bundled one
 moonflo ~ #
 
 
 So there is no such flag.  Apparently my installation is missing
 'hvmloader', and I'm guessing that I would have that if I could enable
 the 'hmv' USE flag.
 
 How do I enable a USE flag that doesn't seem to exist?
 


You don't enable a USE flag that does not exist. How could you? It's not
there.


A primer on USE flags:

These set *optional* features for build time, usually by setting options
to ./configure at build time (or some equivalent means). If a USE flag
goes away, it usually means the feature is no longer optional but now
permanently enabled (or sometimes not enabled at all). Or perhaps the
upstream build system changed, and USE must correspondingly change.

If something that used to work and now doesn't after USE is modified by
the dev, then that is a bug, so report it. Sometimes an optional feature
that never really worked at all is removed by upstream, which means the
USE flag goes away, and that is a discussion you must have with upstream
if it breaks stuff for you.

Either way, your start point is to touch base with the Gentoo maintainer
of the package.



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Alan McKinnon
On 13/07/2015 18:42, Alexander Kapshuk wrote:
 On Mon, Jul 13, 2015 at 5:29 PM, Alan McKinnon alan.mckin...@gmail.com 
 wrote:
 Did a new install, the new kernel can't load modules:

 # modprobe nfsv3
 modprobe: ERROR: could not insert 'nfsv3': Exec format error

 Odd. Never had this before. The module file itself is a regular 64-bit
 ELF file, just as it should be (compared to a working module on another
 machine)

 gcc is 4.8.4 as supplied by a recent stage3-amd64-20150709.tar.bz2:
 # gcc -v
 Using built-in specs.
 COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4/gcc
 COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.4/lto-wrapper
 Target: x86_64-pc-linux-gnu
 Configured with:
 /var/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/configure
 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
 --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.4
 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include
 --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4
 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/man
 --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/info
 --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/g++-v4
 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.4/python
 --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
 --disable-werror --with-system-zlib --enable-nls
 --without-included-gettext --enable-checking=release
 --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.4
 p1.6, pie-0.6.1' --enable-libstdcxx-time --enable-shared
 --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
 --enable-multilib --with-multilib-list=m32,m64 --disable-altivec
 --disable-fixed-point --enable-targets=all --disable-libgcj
 --enable-libgomp --disable-libmudflap --disable-libssp --enable-lto
 --without-cloog --enable-libsanitizer
 Thread model: posix
 gcc version 4.8.4 (Gentoo 4.8.4 p1.6, pie-0.6.1)

 make.conf seems correct:
 CHOST=x86_64-pc-linux-gnu
 CFLAGS=-march=native -O2 -pipe
 CXXFLAGS=${CFLAGS}
 ACCEPT_KEYWORDS=~amd64

 The kernel loads and runs OK:
 # uname -a
 Linux download 4.1.2-gentoo #1 SMP Mon Jul 13 13:28:40 SAST 2015 x86_64
 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel GNU/Linux

 and the kernel was built with gcc auto-detection:
 # grep NATIVE /boot/config-4.1.2-gentoo
 CONFIG_MNATIVE=y

 and the .config was grabbed from a working machine with very similar
 hardware (one minor hardware upgrade ahead)

 I haven't done a full world update yet, most code is still what's in the
 stage3, but always in the past that hasn't been a problem; the stage
 must successfully build a kernel and load the modules.

 Module loading works just fine when booted from the Gentoo minimal
 install image.

 So, what dumbass n00b error did I make today?


 --
 Alan McKinnon
 alan.mckin...@gmail.com


 
 Does 'modprobe -nv' say anything useful?
 
 Anything of interest in '/var/log/dmesg'?
 




I hang my head in shame (and not for the first time either)

/boot in fstab had option noauto, so all my kernels were installed to
the / volume.

The real /boot volume had a valid kernel on it, from the initial install
with the minimal CD, and the .config was made with localyesconfig. It
was a perfectly valid working kernel, that just happened to NOT match
/lib/modules anymore

Fixing fstab, a few make install  make modules_install lus a
grub-install just for fun fixed the whole lot.

Sorry for the noise



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] xen: How to enable a non-existant USE flag? (xen doesn't work)

2015-07-13 Thread Mike Gilbert
On Mon, Jul 13, 2015 at 1:22 PM, hw h...@gartencenter-vaehning.de wrote:

 So what happened to the 'hvm' USE flag of the xen-tools package?


Something is wrong with your repository. The flag is there.

I would suggest that you start by disabling any overlays, and run emerge --sync.

floppym@naomi ~ % equery uses xen-tools
[ Legend : U - final flag setting for installation]
[: I - package is installed with flag ]
[ Colors : set, unset ]
 * Found these USE flags for app-emulation/xen-tools-4.5.1-r1:
 U I
 - - api  : Build the C libxenapi bindings
 - - custom-cflags: Build with user-specified CFLAGS (unsupported)
 - - debug: Enable extra debug codepaths, like
asserts and extra output. If you
want to get meaningful backtraces see

https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc  : Add extra documentation (API, Javadoc,
etc). It is recommended to
enable per package instead of globally
 - - flask: Enable the Flask XSM module from NSA
 - - hvm  : Enable support for hardware based
virtualization (VT-x,AMD-v)
 - - ocaml: Enable support for the ocaml language
 - - ovmf : Enable support to boot UEFI guest vm,
needed by hvm
 + + pam  : Enable pam support
 - - pygrub   : Install the pygrub boot loader
 - - python   : Add optional support/bindings for the
Python language
 + + python_targets_python2_7 : Build with Python 2.7
 - - qemu : Enable IOEMU support via the use of qemu-dm
 - - screen   : Enable support for running domain U
console in an app-misc/screen
session
 - - static-libs  : Build static versions of dynamic
libraries as well
 - - system-qemu  : Using app-emulation/qemu instead of
the bundled one
 - - system-seabios   : Using sys-firmware/seabios instead of
the bundled one



Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Neil Bothwick
On Mon, 13 Jul 2015 23:02:15 +0100, Mick wrote:

  /boot in fstab had option noauto, so all my kernels were installed
  to the / volume.  
 
 Ahh!  I always mount /boot BEFORE I cd into /usr/src out of habit, to
 avoid such a problem (my /boot is also set to noauto).
 
 If I were 10 years younger I would remember a trick I've read in this
 M/L to have /boot warn you, if it is not mounted.  Hmm ... now, who
 posted this, ... Neil?

The approach I've used is to mount /boot ro. It still protects /boot from
writes, as with noauto, but it shouts at you if you try to writ to /boot
instead of just pretending it succeeded and hiding the files somewhere
else.


-- 
Neil Bothwick

Can vegetarians eat animal crackers?


pgpOvU5krPtyP.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: How to avoid perl harbor (pun intended)

2015-07-13 Thread Neil Bothwick
On Mon, 13 Jul 2015 16:31:18 +0300, Nikos Chantziaras wrote:

  It worked for me after I added --backtrack=30  
 
 That was it. After using that option, it works.
 
 So I guess the default value is not good enough.
 

That explains why I had no problem, I have --backtrack=20 in
EMERGE_DEFAULT_OPTS


-- 
Neil Bothwick

The law of Probability Dispersal decrees that whatever it is that hits
the fan will not be evenly distributed.


pgpdV9MUDCkrC.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Mick
On Monday 13 Jul 2015 20:50:47 Alan McKinnon wrote:

 /boot in fstab had option noauto, so all my kernels were installed to
 the / volume.

Ahh!  I always mount /boot BEFORE I cd into /usr/src out of habit, to avoid 
such a problem (my /boot is also set to noauto).

If I were 10 years younger I would remember a trick I've read in this M/L to 
have /boot warn you, if it is not mounted.  Hmm ... now, who posted this, ... 
Neil?

-- 
Regards,
Mick


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


Re: [gentoo-user] New install, can't load modules

2015-07-13 Thread Alan McKinnon
On 14/07/2015 00:02, Mick wrote:
 On Monday 13 Jul 2015 20:50:47 Alan McKinnon wrote:
 
 /boot in fstab had option noauto, so all my kernels were installed to
 the / volume.
 
 Ahh!  I always mount /boot BEFORE I cd into /usr/src out of habit, to avoid 
 such a problem (my /boot is also set to noauto).
 
 If I were 10 years younger I would remember a trick I've read in this M/L to 
 have /boot warn you, if it is not mounted.  Hmm ... now, who posted this, ... 
 Neil?
 

I usually have /boot mounted - I don't see a threat model for my usage -
and edit fstab with care, but this time I ... forgot :-(

There's an envvar that helps remind you of /boot:
DONT_MOUNT_BOOT
it's mentioned in the elog for grub

-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] Re: How to avoid perl harbor (pun intended) [SOLVED]

2015-07-13 Thread walt
On Mon, 13 Jul 2015 05:19:46 -0700
walt w41...@gmail.com wrote:

 Today's update started as a disaster:  perl wants to upgrade from
 5.20.2 to 5.22.0, but all of my existing perl modules insist on having
 5.20.2 so the perl update blocks and then emerge stopped with an error

The problem was caused by a single perl module:

perl-core/Data-Dumper-2.154.0 (the only version available) clashed with
perl's new requirement for virtual/perl-Data-Dumper-2.158.0 (note the
different version numbers).

Using my advanced WTF-do-I-have-to-lose training I eventually deleted
perl-core/Data-Dumper and then re-emerged virtual/perl-Data-Dumper.

perl-cleaner is now happily doing its shtick :)





[gentoo-user] Re: php (error?)

2015-07-13 Thread James
Michael Orlitzky mjo at gentoo.org writes:

 You can file a bug upstream. They might not know the old name is
 deprecated. Here's the reference:

Yea, ok, I'll get around to this sooner or later.

THX! (to all for info)


   http://lists.gnu.org/archive/html/info-gnu/2013-06/msg9.html

   - Automake 2.0 will drop support for the long-deprecated
   'configure.in' name for the Autoconf input file.  You are advised to
   start using the recommended name 'configure.ac' instead, ASAP.


James




Re: [gentoo-user] zsh: not so bad?

2015-07-13 Thread Alon Bar-Lev
On 13 July 2015 at 04:52, walt w41...@gmail.com wrote:
 Maybe someone here has missed the recent discussion of zsh? ;)

 I just found this website, giving a wonderful primer on how to
 configure zsh:

 http://wiki.redbrick.dcu.ie/mw/Account_Customisation_(zsh)


I also moved to zsh just to check.

So apart of the zsh-newuser-install configuration which was quite
nice, I found the gentoo prompt nice, activate using the following
interface instead of manually set environment:

autoload -U promptinit
promptinit
prompt gentoo

I opened this[1] bug to make it nicer, in the mean time I store it at
~/.zfunc/prompt_alonbl_setup with 's/gentoo/alonbl/' and have in my
~zshrc:
---
fpath=(
~/.zfunc
${fpath}
)
---

Also notice that zsh does not execute ~/.profile, took me a while to
understand where I get errors and such, you need to have ~/.zprofile
with the following content:
---
[[ -e ~/.profile ]]  emulate sh -c '. ~/.profile'
---

Regards,
Alon

[1] https://bugs.gentoo.org/show_bug.cgi?id=554648



[gentoo-user] Re: zsh: not so bad?

2015-07-13 Thread Martin Vaeth
Andrew Tselischev andre...@farlander.net wrote:
 On Sun, Jul 12, 2015 at 06:52:35PM -0700, walt wrote:
[...]
 http://wiki.redbrick.dcu.ie/mw/Account_Customisation_(zsh)

Note that this does not activate all features e.g. concerning
completion: You can have files displayed in your custom ls
colors in the selection list, you can have explanations about
the argument you are about to complete, you can have explanations
about the completing options being displayed in the list, etc.

I once more advertise zshrc-mv ...

Note that this sets the prompt only if you also install set_prompt.

Also zsh-syntax-highlighting and auto-fu-zsh are supported
by zshrc-mv only if the packages are installed, of course:
I really like these features: One displays you commands, options,
strings, files, etc in different colors while typing, the other
auto-completes names for you while typing.
(Note that for combining both, you must install the development
versioen of auto-fu-zsh, since its author apparently does not
want to release non-git versions anymore.)

 I made the change to PS1 permanent

set_prompt from the mv overlay can produce a prompt
for bash as well as for zsh.

In general, the zsh features for PS1 are also more powerful
than those of bash, e.g. it can automatically cut too long
texts. (Although set_prompt does not make use of these features,
becaues currently zsh does not autoamtically change colors in this
case which I wanted to have.)

However, be aware that some PS1 suggestions in the wild
(e.g. from the earlier mentioned oh-my-zsh) can turn out to be
a security risk. For instance, many custom prompts display
information about the git repository (if you are in some)
in an insecure way: I would noot rely that git cannot be
subject to some buffer overflow if e.g. you enter as root
a directory where some malicious user prepared a handcrafted .git ...

 zsh can also auto-complete all sorts of things, including process list
 for `kill' and `pkill', zfs datasets for the zfs and zpool commands...
 you can even write your own completions for any command.

Both is, in principle, also supported by bash, but usually the
zsh completion is better. Moreover, in contrast to bash completion,
it is easily customizable. For instance in the above mentioned
completion list for processes, you can have different colors
in the display for process numbers, tty, time, and name...
You can also select to have certain types being completed differently.
This is important if e.g. you prefer that restricting commands
like e.g. mplayer ... should not only provide the typical extensions
which mplayer is capable to display but really all files...

I write all this, because most of these things you do not know, still,
when you read the zsh manpage...




Re: [gentoo-user] zsh: not so bad?

2015-07-13 Thread Leonardo Guilherme
I moved to zsh and never looked back, like, never.

This is what hooked me: http://ohmyz.sh/
It has been a wonderful experience ever since.

Em seg, 13 de jul de 2015 às 04:14, Alon Bar-Lev alo...@gentoo.org
escreveu:

 On 13 July 2015 at 04:52, walt w41...@gmail.com wrote:
  Maybe someone here has missed the recent discussion of zsh? ;)
 
  I just found this website, giving a wonderful primer on how to
  configure zsh:
 
  http://wiki.redbrick.dcu.ie/mw/Account_Customisation_(zsh)
 

 I also moved to zsh just to check.

 So apart of the zsh-newuser-install configuration which was quite
 nice, I found the gentoo prompt nice, activate using the following
 interface instead of manually set environment:

 autoload -U promptinit
 promptinit
 prompt gentoo

 I opened this[1] bug to make it nicer, in the mean time I store it at
 ~/.zfunc/prompt_alonbl_setup with 's/gentoo/alonbl/' and have in my
 ~zshrc:
 ---
 fpath=(
 ~/.zfunc
 ${fpath}
 )
 ---

 Also notice that zsh does not execute ~/.profile, took me a while to
 understand where I get errors and such, you need to have ~/.zprofile
 with the following content:
 ---
 [[ -e ~/.profile ]]  emulate sh -c '. ~/.profile'
 ---

 Regards,
 Alon

 [1] https://bugs.gentoo.org/show_bug.cgi?id=554648




[gentoo-user] KP_Decimal-Solved

2015-07-13 Thread Roger Cahn

Have you tried another (differnt make/model) keyboard?
If you get the same problem,it is software related,
if it goes away, then you are good to go.

In Parameters Keyboard Settings I found a line with

Command  .   and shortcut  .

I removed it, and now it's ok.

Thank you for your answers
Roger




Re: [gentoo-user] Securely deletion of an HDD

2015-07-13 Thread Volker Armin Hemmann
Am 12.07.2015 um 23:30 schrieb Rich Freeman:
 On Sun, Jul 12, 2015 at 5:20 PM, Volker Armin Hemmann
 volkerar...@googlemail.com wrote:
 read the second link I provided.

 I did.  It contains no theoretical arguments against the possibility

yes it does.

 of data recovery.  Theoretical limits would be ones like the
 uncertainty principle.  If a given amount of matter could only store a
 certain number of bits, and that number of bits is already being
 stored, then it would be clearly impossible to recover more.

 And then google for yourself.
 For what?

 Back then it was very hard. Today it is impossible. You toss a coin for
 every bit. And that is your chance to extract anything.

 Impossible is a pretty bold claim.  You need proof, not evidence that
 a particular recovery technique didn't work.  I can demonstrate very
 clearly that I'm unable to crack DES, but that doesn't make it secure.


they gave you the prove. Others have found the same. If you are unable
to understand what they wrote, just say so.



Re: [gentoo-user] Securely deletion of an HDD

2015-07-13 Thread Volker Armin Hemmann
Am 13.07.2015 um 03:50 schrieb Thomas Mueller:
 All that has been said on this thread supposes that the hard drive is still 
 readable and writable.

 But the original post stated this was a failed drive.

 Then you might not be able to dd if=/dev/zero of=/dev/sdx .. or whatever else.

 You would be stopped by bad sectors.

 Or a hard drive might not be accessible at all through the computer interface.

 I heard something that sounded like a modem dialing, but had no such modem.  

 Going around with my eyes and ears led me to determine that it was a hard 
 drive whining in an external eSATA enclosure, no longer recognized or 
 accessible from the computer.

 That was a Western Digital Green 3 TB hard drive that replaced, under 
 warranty, a WD Green 3 TB hard drive that developed bad sectors.

 Fortunately I had no confidential data on that hard drive.

 So everything in this thread says nothing about if the hard drive failed due 
 to a mechanical problem.

 Then the data could not be overwritten by ordinary means, but could still be 
 read by techniques such as used by Drive Savers.

in case of mechanical failure: open case, rub platters on the carpet. Done.