Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread zless
În ziua de duminică, 18 februarie 2018, la 20:09:33 EET, Neil Bothwick a scris:
> I mount the sysrescd ISO and copy these files to /boot/sysrescd
> 
> initram.igz
> rescue64
> sysrcd.dat
> sysrcd.md5
> version
> 
> The entry for systemd-boot is
> 
> title System Rescue Cd 5.2.0
> version   5.2.0
> linux /sysrescd/rescue64
> options   subdir=sysrescd setkmap=uk rootpass=XXX
> initrd/sysrescd/initram.igz


Wow, thank you or this. I wouldn't have thought to do it.

I was about to give up because I found the culprit: 
full disk encryption (including /boot).

The way I see it: grub will ask for the password and will load the kernel 
but after that the bootup scripts won't account that the iso is hidden inside
a luks container.

On top of that my nvme disk is not seen in the busybox recovery shell 
in order to try to manually mount the encrypted container.
I think the nvme things are modules inside the initrd and 
that doesn't get loaded.

Anyway back to work for another day thanks to your suggestion ;)






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

2018-02-18 Thread thelma
On 02/18/2018 04:04 PM, John Blinka wrote:
> On Sun, Feb 18, 2018 at 2:56 PM Floyd Anderson  wrote:
> 
> I had the same problem, and, after a huge amount of experimenting, found a
> solution that works for me.  I masked =dev-libs/icu-60.2 and then did
> emerge -DuNv @world.  On my systems, that downgrades to icu-58.2-r1, which
> is compatible with webkit-2.4.11-r200
> 
> John

I've tried two patches, did not work.
As you suggested, downgrading to icu-58.2-r1; SOLVED the problem.

Thank you!
--
Thelma




Re: [gentoo-user] webkit-gtk build failure and masking confusion

2018-02-18 Thread allan gottlieb
On Mon, Feb 19 2018, John Blinka wrote:

> On Sun, Feb 18, 2018 at 10:40 AM allan gottlieb  wrote:
>
>> On Sun, Feb 18 2018, Mick wrote:
>>
>> > On Sunday, 18 February 2018 01:09:36 GMT allan gottlieb wrote:
>>
>> Specifically excluding the buggy (old) version of webkit-gtk,
>> portage wants me to merge a newish (testing) version of gnucash that
>> uses a solid new version of webkit-gtk.  I have the new version of
>> webkit-gtk, but really want to delay installing the testing gnucash.
>
>
> Looks like gnucash-2.7.4-r1 is now in the stable branch of portage despite
> gnucash declaring “This release is UNSTABLE and SHOULD NOT BE USED in
> production” (their caps, not mine).  I’ve masked it and reverted to
> icu58.2-r1 by masking icu-60.2.  The older icu allows
> webkit-gtk-2.4.11-r200 to build, and gives me a version of gnucash which
> I’ve used for a long time and trust.  Not going to upgrade irreversibly to
> a version which the authors themselves don’t trust.  My 2 cents.
>
> John

Thanks for the heads up.

I synced this morning and ~2.7.4 was highest number so the stable -r1
must have been today.

I am (I believe like you) running gnucash-2.6.15.

I also am running webkit-gtk 2.4.11-r200.  The failure to build is
a reinstall

  [ebuild  rR] net-libs/webkit-gtk-2.4.11-r200 

presumably due to the upgrade of icu.

I will be on the lookout for the listed-as-stable-declared-unstable
gnucash-2.7.

Thanks again for the heads up.

allan gottlieb



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread R0b0t1
On Sun, Feb 18, 2018 at 10:50 AM, Neil Bothwick  wrote:
> On Sun, 18 Feb 2018 09:55:01 -0600, R0b0t1 wrote:
>
>> >> There's also a way to boot systemrescuecd from a bootloader that
>> >> doesn't support ISO loading, like the systemd UEFI boot manager (aka
>> >> gummiboot).
>> >
>> > I just plug in the SysRescCD USB-3 stick.
>> >
>> > Much less complication  ;)
>> >
>> > --
>> > Regards,
>> > Peter.
>> >
>> >
>>
>> Please be careful, sir! The SysRescCD releases are not signed. The
>> Russians might be able to get you!
>
> That's not really an issue as neither Peter nor I is able to vote in US
> elections ;-)
>

Not to take the joke too far, but they're funding political groups all
over Europe.



Re: [gentoo-user] webkit-gtk build failure and masking confusion

2018-02-18 Thread John Blinka
On Sun, Feb 18, 2018 at 10:40 AM allan gottlieb  wrote:

> On Sun, Feb 18 2018, Mick wrote:
>
> > On Sunday, 18 February 2018 01:09:36 GMT allan gottlieb wrote:
>
> Specifically excluding the buggy (old) version of webkit-gtk,
> portage wants me to merge a newish (testing) version of gnucash that
> uses a solid new version of webkit-gtk.  I have the new version of
> webkit-gtk, but really want to delay installing the testing gnucash.


Looks like gnucash-2.7.4-r1 is now in the stable branch of portage despite
gnucash declaring “This release is UNSTABLE and SHOULD NOT BE USED in
production” (their caps, not mine).  I’ve masked it and reverted to
icu58.2-r1 by masking icu-60.2.  The older icu allows
webkit-gtk-2.4.11-r200 to build, and gives me a version of gnucash which
I’ve used for a long time and trust.  Not going to upgrade irreversibly to
a version which the authors themselves don’t trust.  My 2 cents.

John


Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Peter Humphrey
On Sunday, 18 February 2018 15:13:52 GMT Neil Bothwick wrote:
> On Sun, 18 Feb 2018 14:32:54 +, Peter Humphrey wrote:
> > > You can also add extra boot options, like setting the keymap to avoid
> > > the boot process pausing to ask for your choice.
> > > 
> > > There's also a way to boot systemrescuecd from a bootloader that
> > > doesn't support ISO loading, like the systemd UEFI boot manager (aka
> > > gummiboot).
> > 
> > I just plug in the SysRescCD USB-3 stick.
> > 
> > Much less complication  ;)
> 
> If you can find the USB stick when you need it. This way sysrescd is
> always available without having to sift through all the rubbish on my
> desk.
> 
> And yes, I prefer a scripted solution to actually tidying my desk ;-)

I get my desk tidied for me every fortnight, like it or not, when my cleaner 
organises me. Ir seems not to have occurred to her that the reason that 
everything is always in the same place when she comes it that that's where I 
want it.   :)

-- 
Regards,
Peter.




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

2018-02-18 Thread Neil Bothwick
On Sun, 18 Feb 2018 16:05:41 -0700, the...@sys-concept.com wrote:

> > The patch is to be applied to the source files, not the ebuild
> > 
> > mkdir /etc/portage/patches/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200 
> > then copy the patch file to that directory and portage will apply it
> > to the source after unpacking.  
> 
> Did not work.
> ll /etc/portage/patches/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200
> total 4
> -rw-r--r-- 1 thelma thelma 525 Feb 18 10:54 patch.patch
> 
> emerge webkit-gtk
> produces same error message.
> 
> make[1]: Leaving directory
> '/var/tmp/portage/net-libs/webkit-gtk-2.4.11-r200/work/webkitgtk-2.4.11'
> make: *** [GNUmakefile:25837: all] Error 2
>  * ERROR: net-libs/webkit-gtk-2.4.11-r200::gentoo failed (compile
> phase):
>  *   emake failed

So it got to the compile phase, which means the patch was applied,
otherwise it would have failed at the prepare phase. So the patch is not
the solution to your problem.


-- 
Neil Bothwick

We are sorry, but the number you have dialed is imaginary.
Please rotate your phone 90 degrees and try again.


pgpEgZR9QeoE5.pgp
Description: OpenPGP digital signature


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

2018-02-18 Thread thelma
On 02/18/2018 12:14 PM, Neil Bothwick wrote:
> On Sun, 18 Feb 2018 12:01:54 -0700, the...@sys-concept.com wrote:
> 
>> I've tried this propose patch. 
>> https://621532.bugs.gentoo.org/attachment.cgi?id=511304
>>
>> save it to a file patch.patch
>> went to directory:
>> cd /usr/portage/net-libs/webkit-gtk/
>> patch -p0 < patch.patch
>>
>> It ask me what file I want to patch, I entered: 
>> JSStringRef.h
>>
>> run:
>> ebuild /usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild
>> digest
>>
>> But it still fails to compile.
>> Am I applying patch the same way.
> 
> The patch is to be applied to the source files, not the ebuild
> 
> mkdir /etc/portage/patches/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200 
> then copy the patch file to that directory and portage will apply it to
> the source after unpacking.

Did not work.
ll /etc/portage/patches/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200
total 4
-rw-r--r-- 1 thelma thelma 525 Feb 18 10:54 patch.patch

emerge webkit-gtk
produces same error message.

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

Thelma



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

2018-02-18 Thread John Blinka
On Sun, Feb 18, 2018 at 2:56 PM Floyd Anderson  wrote:

I had the same problem, and, after a huge amount of experimenting, found a
solution that works for me.  I masked =dev-libs/icu-60.2 and then did
emerge -DuNv @world.  On my systems, that downgrades to icu-58.2-r1, which
is compatible with webkit-2.4.11-r200

John


Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Neil Bothwick
On Sun, 18 Feb 2018 11:10:38 -0800, Daniel Frey wrote:

> I started moving away from Grub2 mostly because on my EFI computers it
> was booting in blind mode so you couldn't see what was going on while
> booting.

I moved away from it on my EFI computers simply because I could!
 
> The thing I hate is that the grub2 configuration generator generates
> 5000 line config files and if it doesn't do exactly what you want it's a
> real pain in the arse to do something simple like rename a loader entry.

> So I've been making my own config files that are much more brief.

The generators are only shell scripts. I wrote my own which generate
much shorter configs that do what I want, and removed the executable bit
on the original scripts.
 

-- 
Neil Bothwick

The dark ages were caused by the Y1K problem.


pgpYOsgjRuuwe.pgp
Description: OpenPGP digital signature


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

2018-02-18 Thread Floyd Anderson

Hi Thelma,

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

I'm getting an error.

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

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

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

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

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

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



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


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

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

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

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


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

for the patch file [1].

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

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

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


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



References:
  - [1] 


--
Regards,
floyd




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

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

> I've tried this propose patch. 
> https://621532.bugs.gentoo.org/attachment.cgi?id=511304
> 
> save it to a file patch.patch
> went to directory:
> cd /usr/portage/net-libs/webkit-gtk/
> patch -p0 < patch.patch
> 
> It ask me what file I want to patch, I entered: 
> JSStringRef.h
> 
> run:
> ebuild /usr/portage/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild
> digest
> 
> But it still fails to compile.
> Am I applying patch the same way.

The patch is to be applied to the source files, not the ebuild

mkdir /etc/portage/patches/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200 
then copy the patch file to that directory and portage will apply it to
the source after unpacking.


-- 
Neil Bothwick

Where do forest rangers go to "get away from it all?"


pgp7HFx9JU0aV.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Daniel Frey
On 02/18/18 10:09, Neil Bothwick wrote:
> On Sun, 18 Feb 2018 09:54:07 -0800, Daniel Frey wrote:
> 
>> I'd also tried getting the Gentoo LiveCD to boot via grub (although this
>> was almost two years ago) and never got it to boot. I don't remember if
>> I tried to get SysRescueCD to work either... on my newer EFI machines
>> I've been ditching Grub2 for refind.
> 
> I used the systemd bootloader but I did try with refind, and it turns out
> I still have it installed. Here is the sysrescd.conf that I include from
> refind.conf
> 
> menuentry "System Rescue Cd" {
>   icon EFI/refind/icons/os_sysrescd.png
>   loader /sysrescd/rescue64
>   initrd /sysrescd/initram.igz
>   options "subdir=sysrescd setkmap=uk rootpass=XXX"
> }
> 
> I mount the sysrescd ISO and copy these files to /boot/sysrescd
> 
> initram.igz
> rescue64
> sysrcd.dat
> sysrcd.md5
> version
> 
> The entry for systemd-boot is
> 
> title System Rescue Cd 5.2.0
> version   5.2.0
> linux /sysrescd/rescue64
> options   subdir=sysrescd setkmap=uk rootpass=XXX
> initrd/sysrescd/initram.igz
> 
> 

Thanks for the tips.

I started moving away from Grub2 mostly because on my EFI computers it
was booting in blind mode so you couldn't see what was going on while
booting.

After messing with that now for an hour or so I've resolved that (on my
new laptop which I hadn't bothered moving to refind yet. So maybe I'll
go back to grub2.

The thing I hate is that the grub2 configuration generator generates
5000 line config files and if it doesn't do exactly what you want it's a
real pain in the arse to do something simple like rename a loader entry.

So I've been making my own config files that are much more brief. Now
that I've addressed the video problem (and I've also managed to boot
Windows 7 installed as EFI on a separate nvme drive with a manual
config) I'll mess with the booting from ISO again.

I wonder if I left enough in my /boot partition to do this, though...

Dan



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

2018-02-18 Thread thelma
I'm getting an error.

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

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

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

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

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

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



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Neil Bothwick
On Sun, 18 Feb 2018 09:54:07 -0800, Daniel Frey wrote:

> I'd also tried getting the Gentoo LiveCD to boot via grub (although this
> was almost two years ago) and never got it to boot. I don't remember if
> I tried to get SysRescueCD to work either... on my newer EFI machines
> I've been ditching Grub2 for refind.

I used the systemd bootloader but I did try with refind, and it turns out
I still have it installed. Here is the sysrescd.conf that I include from
refind.conf

menuentry "System Rescue Cd" {
icon EFI/refind/icons/os_sysrescd.png
loader /sysrescd/rescue64
initrd /sysrescd/initram.igz
options "subdir=sysrescd setkmap=uk rootpass=XXX"
}

I mount the sysrescd ISO and copy these files to /boot/sysrescd

initram.igz
rescue64
sysrcd.dat
sysrcd.md5
version

The entry for systemd-boot is

title   System Rescue Cd 5.2.0
version 5.2.0
linux   /sysrescd/rescue64
options subdir=sysrescd setkmap=uk rootpass=XXX
initrd  /sysrescd/initram.igz


-- 
Neil Bothwick

It's not a bug, it's tradition!


pgpYr_pCAp0zd.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Daniel Frey
On 02/18/18 08:50, Neil Bothwick wrote:
> On Sun, 18 Feb 2018 09:55:01 -0600, R0b0t1 wrote:
> 
 There's also a way to boot systemrescuecd from a bootloader that
 doesn't support ISO loading, like the systemd UEFI boot manager (aka
 gummiboot).  
>>>
>>> I just plug in the SysRescCD USB-3 stick.
>>>
>>> Much less complication  ;)
>>>
>>> --
>>> Regards,
>>> Peter.
>>>
>>>  
>>
>> Please be careful, sir! The SysRescCD releases are not signed. The
>> Russians might be able to get you!
> 
> That's not really an issue as neither Peter nor I is able to vote in US
> elections ;-)
> 
> 

I nearly spit out my tea this morning after reading this, thanks for the
morning humour!

I'd also tried getting the Gentoo LiveCD to boot via grub (although this
was almost two years ago) and never got it to boot. I don't remember if
I tried to get SysRescueCD to work either... on my newer EFI machines
I've been ditching Grub2 for refind.

Dan



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

2018-02-18 Thread Floyd Anderson

Hi David,

On Sun, 18 Feb 2018 17:34:21 +0100
David Haller  wrote:

Hello,

On Sun, 18 Feb 2018, Floyd Anderson wrote:

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

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

[..]

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

[..]

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

[..]

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

[..]

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


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


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

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

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


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


I have no idea if:

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

is possible instead.


--
Regards,
floyd




Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Neil Bothwick
On Sun, 18 Feb 2018 09:55:01 -0600, R0b0t1 wrote:

> >> There's also a way to boot systemrescuecd from a bootloader that
> >> doesn't support ISO loading, like the systemd UEFI boot manager (aka
> >> gummiboot).  
> >
> > I just plug in the SysRescCD USB-3 stick.
> >
> > Much less complication  ;)
> >
> > --
> > Regards,
> > Peter.
> >
> >  
> 
> Please be careful, sir! The SysRescCD releases are not signed. The
> Russians might be able to get you!

That's not really an issue as neither Peter nor I is able to vote in US
elections ;-)


-- 
Neil Bothwick

Q. Why do women have orgasms?
A: It gives them one extra reason to moan.


pgp4BaR1NfjKb.pgp
Description: OpenPGP digital signature


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

2018-02-18 Thread David Haller
Hello,

On Sun, 18 Feb 2018, Floyd Anderson wrote:
>On Sun, 18 Feb 2018 14:44:24 +0100
>tu...@posteo.de wrote:
>> On 02/18 01:55, Floyd Anderson wrote:
>> > On Sun, 18 Feb 2018 13:07:33 +0100
>> > tu...@posteo.de wrote:
>> > > On 02/18 11:38, Stroller wrote:
[..]
>> > > > I think:
>> > > >
>> > > >   tmpfile=/tmp/foo-$RANDOM
>> > > >   touch -r "$file" "$tmpfile"
>> > > >   detox "$file"
>> > > >   touch -r "$tmpfile "$file"
>> > > >   rm "$tmpfile"
[..]
>> > > I like to wrap detox with a script, which will do you magic trick.
>> > > Since I want to get rid of those evil characters (...) in the filename,
>> > > which normally intercept shell processing, I want to use detox,
>> > > which in turn will be called by a shell script in turn, to do the
>> > > time machine magic. To do so, I need detox, to sanitize the
>> > > filenames from the evil characters, which normally intercept.
>> > > .stack overflowrecursion depth failure.process killed.
[..]
>So you have to figure out why detox, that I doesn't know and thus never have
>been used, does not rename those files. Maybe because the new file (after
>file name translation) already exists in directory as mentioned in the BUGS
>section of the manual page. So you must ensure that all resulting file names
>are unique.
[..]
>> And the circle starts right from the beginning.
>> The problem arises at that moment, where I need to feed the name
>> of a single file what program ever, since first there is the shell...
>> even when calling other programs.
>
>Here comes escaping and/or quoting into play but the glob `detox *`, you've
>specified, should work. Can you share a sample file name with funny
>characters in it?

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

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

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

$ bash t.sh *
$ ls -lb
-rw-r--r-- 1 dh dh   0 Feb 18 17:23 a\ "\ b\ '\ c\ #\ d
-rw-r--r-- 1 dh dh   0 Feb 18 17:27 a"b\ c
-rw-r--r-- 1 dh dh   0 Feb 18 17:26 a'b
-rw-r--r-- 1 dh dh   0 Feb 18 17:26 a_b
-rw-r--r-- 1 dh dh   0 Feb 18 17:27 a_b_c
-rw-r--r-- 1 dh dh   0 Feb 18 17:23 a_b_c_#_d
-rw-r- 1 dh dh 163 Feb 18 17:28 t.sh
$ rm *_*
$ zsh t.sh *
$ ls -lb
total 4
-rw-r--r-- 1 dh dh   0 Feb 18 17:23 a\ "\ b\ '\ c\ #\ d
-rw-r--r-- 1 dh dh   0 Feb 18 17:27 a"b\ c
-rw-r--r-- 1 dh dh   0 Feb 18 17:26 a'b
-rw-r--r-- 1 dh dh   0 Feb 18 17:26 a_b
-rw-r--r-- 1 dh dh   0 Feb 18 17:27 a_b_c
-rw-r--r-- 1 dh dh   0 Feb 18 17:23 a_b_c_#_d
-rw-r- 1 dh dh 163 Feb 18 17:28 t.sh

So, zsh can do it too. And pdksh.

HTH,
-dnh

-- 
printk("you lose buddy boy...\n");
linux-2.6.6/arch/sparc/kernel/traps.c



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread R0b0t1
On Sun, Feb 18, 2018 at 8:32 AM, Peter Humphrey  wrote:
> On Sunday, 18 February 2018 02:10:46 GMT Neil Bothwick wrote:
>> On Sun, 18 Feb 2018 00:44:05 +0200, zless wrote:
>> > I've grown a bit tired by this already. Before I will try your and
>> > Neil's suggestions I will test my luck with the Sysrescuecd iso.
>> > It seems that more people are interested in this and are reporting
>> > success.
>>
>> submenu "SystemRescueCd 64 bit options" {
>> menuentry "SystemRescueCd with default options" {
>> linux (loop)/isolinux/rescue64 isoloop=$isofile
>> initrd (loop)/isolinux/initram.igz
>> }
>>
>> menuentry "SystemRescueCd with all files cached to memory" {
>> linux (loop)/isolinux/rescue64 isoloop=$isofile docache
>> initrd (loop)/isolinux/initram.igz
>> }
>> }
>>
>> You can also add extra boot options, like setting the keymap to avoid the
>> boot process pausing to ask for your choice.
>>
>> There's also a way to boot systemrescuecd from a bootloader that doesn't
>> support ISO loading, like the systemd UEFI boot manager (aka gummiboot).
>
> I just plug in the SysRescCD USB-3 stick.
>
> Much less complication  ;)
>
> --
> Regards,
> Peter.
>
>

Please be careful, sir! The SysRescCD releases are not signed. The
Russians might be able to get you!



Re: [gentoo-user] webkit-gtk build failure and masking confusion

2018-02-18 Thread allan gottlieb
On Sun, Feb 18 2018, Neil Bothwick wrote:

> On Sun, 18 Feb 2018 08:51:35 +, Mick wrote:
>
>> > What I do in the meantime is
>> > 
>> >emerge --update --pretend @world
>> > 
>> > and then manually
>> > 
>> >emerge -1 all packages mentioned except webkit-gtk
>> > 
>> > I do a similar procedure for
>> > 
>> >emerge @preserved rebuild
>> > 
>> > allan  
>> 
>> It is probably easier to just run:
>> 
>> emerge --update --pretend --exclude webkit-gtk @world
>
> And even easier if you use --ask instead of --pretend, dependency
> calculation seems to take a lot longer these days.

I do use --ask.  I just wrote --pretend thinking (clearly incorrectly)
that it would make the specific point clearer.

allan



Re: [gentoo-user] webkit-gtk build failure and masking confusion

2018-02-18 Thread allan gottlieb
On Sun, Feb 18 2018, Mick wrote:

> On Sunday, 18 February 2018 01:09:36 GMT allan gottlieb wrote:
>  
>> What I do in the meantime is
>> 
>>emerge --update --pretend @world
>> 
>> and then manually
>> 
>>emerge -1 all packages mentioned except webkit-gtk
>> 
>> I do a similar procedure for
>> 
>>emerge @preserved rebuild
>> 
>> allan
>
> It is probably easier to just run:
>
> emerge --update --pretend --exclude webkit-gtk @world

That was mentioned last week.  I responded

I tried that a while ago.  The problem is that then portage believe
those packages aren't on my stable system and says that I must merge
an unstable package.

Specifically excluding the buggy (old) version of webkit-gtk,
portage wants me to merge a newish (testing) version of gnucash that
uses a solid new version of webkit-gtk.  I have the new version of
webkit-gtk, but really want to delay installing the testing gnucash.

allan



Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Neil Bothwick
On Sun, 18 Feb 2018 14:32:54 +, Peter Humphrey wrote:

> > You can also add extra boot options, like setting the keymap to avoid
> > the boot process pausing to ask for your choice.
> > 
> > There's also a way to boot systemrescuecd from a bootloader that
> > doesn't support ISO loading, like the systemd UEFI boot manager (aka
> > gummiboot).  
> 
> I just plug in the SysRescCD USB-3 stick.
> 
> Much less complication  ;)

If you can find the USB stick when you need it. This way sysrescd is
always available without having to sift through all the rubbish on my
desk.

And yes, I prefer a scripted solution to actually tidying my desk ;-)


-- 
Neil Bothwick

Frog philosophy: Time's fun when you're having flies.


pgpQqaCJG9JPq.pgp
Description: OpenPGP digital signature


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

2018-02-18 Thread Floyd Anderson

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

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

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

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

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

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


References:
 - [1] 


--
Regards,
floyd




Hi Floyd,

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


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


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



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


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



References:
  - [1] 


--
Regards,
floyd




Re: [gentoo-user] Boot Gentoo live iso from grub

2018-02-18 Thread Peter Humphrey
On Sunday, 18 February 2018 02:10:46 GMT Neil Bothwick wrote:
> On Sun, 18 Feb 2018 00:44:05 +0200, zless wrote:
> > I've grown a bit tired by this already. Before I will try your and
> > Neil's suggestions I will test my luck with the Sysrescuecd iso.
> > It seems that more people are interested in this and are reporting
> > success.
> 
> submenu "SystemRescueCd 64 bit options" {
> menuentry "SystemRescueCd with default options" {
> linux (loop)/isolinux/rescue64 isoloop=$isofile
> initrd (loop)/isolinux/initram.igz
> }
> 
> menuentry "SystemRescueCd with all files cached to memory" {
> linux (loop)/isolinux/rescue64 isoloop=$isofile docache
> initrd (loop)/isolinux/initram.igz
> }
> }
> 
> You can also add extra boot options, like setting the keymap to avoid the
> boot process pausing to ask for your choice.
> 
> There's also a way to boot systemrescuecd from a bootloader that doesn't
> support ISO loading, like the systemd UEFI boot manager (aka gummiboot).

I just plug in the SysRescCD USB-3 stick.

Much less complication  ;)

-- 
Regards,
Peter.




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

2018-02-18 Thread tuxic
On 02/18 01:55, Floyd Anderson wrote:
> On Sun, 18 Feb 2018 13:07:33 +0100
> tu...@posteo.de wrote:
> > On 02/18 11:38, Stroller wrote:
> > > 
> > > > On 18 Feb 2018, at 08:21, tu...@posteo.de wrote:
> > > >
> > > > when downloading files from non-UNIX sites, they often contain
> > > > "poisonoys" characters like '#', ' ', ''' or that alike.
> > > >
> > > > With the tool 'detox' those filenames could be fixed.
> > > >
> > > > But detox changes the time stamp of the files, which
> > > > filenames are altered (not all files, which are examined).
> > > >
> > > > Is there a way to either get detox not to alter the time stamp
> > > 
> > > I think:
> > > 
> > >   tmpfile=/tmp/foo-$RANDOM
> > >   touch -r "$file" "$tmpfile"
> > >   detox "$file"
> > >   touch -r "$tmpfile "$file"
> > >   rm "$tmpfile"
> > > 
> > > It should be trivial to patch detox to do this itself.
> > > 
> > > Stroller
> > > 
> > > 
> > > 
> > 
> > Hi Stroller,
> > 
> > this seems to be an egg<->chicken problem.
> > 
> > I like to wrap detox with a script, which will do you magic trick.
> > Since I want to get rid of those evil characters (...) in the filename,
> > which normally intercept shell processing, I want to use detox,
> > which in turn will be called by a shell script in turn, to do the
> > time machine magic. To do so, I need detox, to sanitize the
> > filenames from the evil characters, which normally intercept.
> > .stack overflowrecursion depth failure.process killed.
> > 
> > You know
> > 
> > I am using zsh...
> > 
> > Any idea to get a chicken OR an egg instead of an scrambled egg with
> > feathers??? ;)
> 
> Go back one step and reread the manual page. It seems to be there is an
> option ‘--dry-run’ (implies ‘--verbose’) that can probably be used to store
> a list of the final new file names. Afterwards you can traverse this list
> with Stroller’s suggestion (slightly adopted of course).
> 
> Or you can try other tools which doesn’t use function rename() [1], e.g.
> perl-rename, and therefore don’t change the last modification time.
> 
> Or you can go two steps back and save the file(s) to your like when you
> download it, e.g. with curl (maybe your’re also interested in its
> ‘--remote-time’ option).
> 
> 
> References:
>  - [1] 
> 
> 
> -- 
> Regards,
> floyd
> 
> 

Hi Floyd,

the unrenamed files are the only ones with the correct timestamp.
Therefore 'touch' has to access them.
But their filenames contain the poisonous characters.
And the circle starts right from the beginning.
The problem arises at that moment, where I need to feed the name
of a single file what program ever, since first there is the shell...
even when calling other programs.

Cheers
Meino





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

2018-02-18 Thread Floyd Anderson

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

On 02/18 11:38, Stroller wrote:


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

I think:

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

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

Stroller





Hi Stroller,

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

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

You know

I am using zsh...

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


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


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


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



References:
 - [1] 


--
Regards,
floyd




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

2018-02-18 Thread tuxic
On 02/18 11:38, Stroller wrote:
> 
> > On 18 Feb 2018, at 08:21, tu...@posteo.de wrote:
> > 
> > when downloading files from non-UNIX sites, they often contain
> > "poisonoys" characters like '#', ' ', ''' or that alike.
> > 
> > With the tool 'detox' those filenames could be fixed.
> > 
> > But detox changes the time stamp of the files, which 
> > filenames are altered (not all files, which are examined).
> > 
> > Is there a way to either get detox not to alter the time stamp 
> 
> I think:
> 
>   tmpfile=/tmp/foo-$RANDOM
>   touch -r "$file" "$tmpfile"
>   detox "$file" 
>   touch -r "$tmpfile "$file"
>   rm "$tmpfile"
> 
> It should be trivial to patch detox to do this itself.
> 
> Stroller
> 
> 
> 

Hi Stroller,

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

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

You know

I am using zsh...

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

Cheers
Meino






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

2018-02-18 Thread tuxic
On 02/18 11:38, Stroller wrote:
> 
> > On 18 Feb 2018, at 08:21, tu...@posteo.de wrote:
> > 
> > when downloading files from non-UNIX sites, they often contain
> > "poisonoys" characters like '#', ' ', ''' or that alike.
> > 
> > With the tool 'detox' those filenames could be fixed.
> > 
> > But detox changes the time stamp of the files, which 
> > filenames are altered (not all files, which are examined).
> > 
> > Is there a way to either get detox not to alter the time stamp 
> 
> I think:
> 
>   tmpfile=/tmp/foo-$RANDOM
>   touch -r "$file" "$tmpfile"
>   detox "$file" 
>   touch -r "$tmpfile "$file"
>   rm "$tmpfile"
> 
> It should be trivial to patch detox to do this itself.
> 
> Stroller
> 
> 
> 

Hi Stroller,

will try that ! Thanks a lot!

Cheers!
Meino




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

2018-02-18 Thread Stroller

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

I think:

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

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

Stroller





Re: [gentoo-user] webkit-gtk build failure and masking confusion

2018-02-18 Thread Neil Bothwick
On Sat, 17 Feb 2018 23:07:46 -0500, Jack wrote:

> > I no longer use Gnucash, having switched to KMyMoney a few years
> > ago. Now that's just jumped a major version and I had to mask it
> > because of missing features... so much for progress.  

> What missing features?  There are some bugs in KMM 5.0, but I don't  
> know of anything totally missing (that was present in 4.x)  If you  
> found a bug or regression not already reported, please do report it.

It's annoying things like not remember the directory for loading account
files but always taking me back to ~/Documents. The really annoying one
is that it no longer offers previous transaction with the payee to
select from, so I have to enter all the details every time.


-- 
Neil Bothwick

Copy from another: plagiarism. Copy from many: research.


pgpwNgNOa5pxl.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] webkit-gtk build failure and masking confusion

2018-02-18 Thread Neil Bothwick
On Sun, 18 Feb 2018 08:51:35 +, Mick wrote:

> > What I do in the meantime is
> > 
> >emerge --update --pretend @world
> > 
> > and then manually
> > 
> >emerge -1 all packages mentioned except webkit-gtk
> > 
> > I do a similar procedure for
> > 
> >emerge @preserved rebuild
> > 
> > allan  
> 
> It is probably easier to just run:
> 
> emerge --update --pretend --exclude webkit-gtk @world

And even easier if you use --ask instead of --pretend, dependency
calculation seems to take a lot longer these days.


-- 
Neil Bothwick

WinErr 01B: Illegal error - You are not allowed to get this error.
Next time you will get a penalty for that.


pgpfrFgTpKsOg.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] webkit-gtk build failure and masking confusion

2018-02-18 Thread Mick
On Sunday, 18 February 2018 01:09:36 GMT allan gottlieb wrote:
 
> What I do in the meantime is
> 
>emerge --update --pretend @world
> 
> and then manually
> 
>emerge -1 all packages mentioned except webkit-gtk
> 
> I do a similar procedure for
> 
>emerge @preserved rebuild
> 
> allan

It is probably easier to just run:

emerge --update --pretend --exclude webkit-gtk @world

-- 
Regards,
Mick

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


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

2018-02-18 Thread tuxic
Hi,

when downloading files from non-UNIX sites, they often contain
"poisonoys" characters like '#', ' ', ''' or that alike.

With the tool 'detox' those filenames could be fixed.

But detox changes the time stamp of the files, which 
filenames are altered (not all files, which are examined).

Therefore a 'detox *' in a directory will completly shuffle
the file order when listed via 'ls -rtl' (RTL is a TV broadcaster,
but this is another story... ;) )

Is there a way to either get detox not to alter the time stamp (I
looked into the manpage but found nothing) or any other neat trick
to restore the time stamp afterwards?

Thanks for any in advanced for saveing my time(stamps!) :)

Cheers
Meino