Re: [gentoo-user] How do I customize x11-terms/xterm?

2018-01-14 Thread Grant Taylor

On 01/09/2018 01:52 AM, Neil Bothwick wrote:
You can usually add extra configure items by creating, in your case 
/etc/portage/env/x11-terms/xterm containing


EXTRA_ECONF="--enable-blah..."


I created the /etc/portage/env/x11-terms directory and added the xterm 
file with the following contents.


EXTRA_ECONF="--enable-regis-graphics --enable-sixel-graphics 
--enable-256-color --enable-screen-dumps"


When I emerged x11-terms/xterm and texted everything worked exactly like 
I wanted it to.



Putting the patch in /etc/portage/patches/x11-xterms/xterm should do it.


I ended up not doing this.  -  I thought I had hacked one of the VT 
terminal types to use more than 16 colors, but my testing worked without 
doing this.  So I'm leaving well enough alone.


Both of these features are on by default in EAPI6, the xterm ebuild uses 
EAPI5 so try it and see.


Thank you again for your help.



--
Grant. . . .
unix || die



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [gentoo-user] emerge error for dev-lisp/clisp-2.49-r9

2018-01-14 Thread Corbin Bird


On 01/14/2018 02:39 PM, Quico Jurado wrote:
> Hello,
>
> After doing doing the upgrade to my 17.0 profile
> (`default/linux/amd64/17.0/desktop'), and recompiling all my packages
> I ran into a problem while installing clisp. Basically is bailing out
> on the configure stage, this is the relevant output of the configure
> script (suppressed some output to reduce the noise):
>
> gcc version 6.4.0 (Gentoo 6.4.0-r1 p1.3)
> configure:3901: $? = 0
> configure:3890: gcc -V >&5
> gcc: error: unrecognized command line option '-V'
> gcc: fatal error: no input files
> compilation terminated.
> configure:3901: $? = 1
> configure:3890: gcc -qversion >&5
> gcc: error: unrecognized command line option '-qversion'; did you mean
> '--v
> ersion'?
> gcc: fatal error: no input files
> compilation terminated.
> configure:3901: $? = 1
> configure:3921: checking whether the C compiler works
> configure:3943: gcc -march=native -O2 -pipe -fno-pie
> -Wa,--noexecstack  -I/usr/include/db4.8 -Wl,-O1 -Wl,--as-needed
> conftest.c  >&5
> configure:3947: $? = 0
> configure:3996: result: yes
> ...
> configure:4062: checking whether we are cross compiling
> configure:4070: gcc -o conftest -march=native -O2 -pipe -fno-pie
> -Wa,--noexecstack  -I/usr/include/db4.8 -Wl,-O1 -Wl,--as-needed
> conftest.c  >&5
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> /var/tmp/portage/dev-lisp/clisp-2.49-r9/temp/ccPeB6Vb.o: relocation
> R_X86_64_32 against `.rodata.str1.1' can not be used when making a
> shared object; recompile with -fPIC
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status
> configure:4074: $? = 1
> configure:4081: ./conftest
> configure: line 4083: ./conftest: No such file or directory
> configure:4085: $? = 127
> ...
> configure:4096: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
>
> Any help to work this out is much appreciated.
>
> Thanks,

>From the ebuild :
>     # Bug 618170. If anyone has a better idea...
>     append-flags -fno-pie

This ebuild is using "EAPI=5".
Looks like it hasn't been updated in a while.

Profile 17 FORCES the use of PIE/PIC.
( -fPIC, -fPIE are appended to the gcc commands )

I suspect that the Profile 17 forced flags would have to be disabled
somehow.
Have no idea if that is possible.

Corbin






[gentoo-user] emerge error for dev-lisp/clisp-2.49-r9

2018-01-14 Thread Quico Jurado
Hello,

After doing doing the upgrade to my 17.0 profile
(`default/linux/amd64/17.0/desktop'), and recompiling all my packages I ran
into a problem while installing clisp. Basically is bailing out on the
configure stage, this is the relevant output of the configure script
(suppressed some output to reduce the noise):

gcc version 6.4.0 (Gentoo 6.4.0-r1 p1.3)
configure:3901: $? = 0
configure:3890: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3890: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--v
ersion'?
gcc: fatal error: no input files
compilation terminated.
configure:3901: $? = 1
configure:3921: checking whether the C compiler works
configure:3943: gcc -march=native -O2 -pipe -fno-pie -Wa,--noexecstack
-I/usr/include/db4.8 -Wl,-O1 -Wl,--as-needed conftest.c  >&5
configure:3947: $? = 0
configure:3996: result: yes
...
configure:4062: checking whether we are cross compiling
configure:4070: gcc -o conftest -march=native -O2 -pipe -fno-pie
-Wa,--noexecstack  -I/usr/include/db4.8 -Wl,-O1 -Wl,--as-needed conftest.c
>&5
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
/var/tmp/portage/dev-lisp/clisp-2.49-r9/temp/ccPeB6Vb.o: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
configure:4074: $? = 1
configure:4081: ./conftest
configure: line 4083: ./conftest: No such file or directory
configure:4085: $? = 127
...
configure:4096: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.

Any help to work this out is much appreciated.

Thanks,


[gentoo-user] Re: Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Ian Zimmerman
On 2018-01-14 18:50, tu...@posteo.de wrote:

> And: I dont want to start a flame war here. Yoy asked and tried
> to give a answer, which may be useful onlu to explain my own point
> of view.

Yes, it is very useful, many thanks.  Exactly what I asked for.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet, fetch the TXT record for the domain.



Re: [gentoo-user] Cannot emerge gnome because openssl's bindist use flag

2018-01-14 Thread Hung Dang
Thank a lot Mike. My problem is resolved after removing bindist use flag.

On Jan 14, 2018 10:47 AM, "Mike Gilbert"  wrote:

> On Sun, Jan 14, 2018 at 9:51 AM, Hung Dang  wrote:
> > I cannot emerge gnome in a fresh build ~amd64 system. Basically, if I
> enable
> > bindist use flag for openssl then emerge will ask me to disable it.
> However,
> > if I disable bindist flag for openssl then it will ask me to enable it.
> How
> > can I break this dependency loop?
>
> Remove USE="bindist" from /etc/portage/make.conf.
>
>


Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Jack

On 2018.01.14 13:23, Neil Bothwick wrote:

On Sun, 14 Jan 2018 13:01:23 -0500, Jack wrote:

> Chromium frequently takes over 24 hours to compile on my system,
> although the last two emerges were about 11 hours each.  My last
> firefox emerge was just under two hours, with the last ten or so all
> taking under three and a half hours.

Is it swapping?


Good call, but only some - I'm pretty sure it's not to the point of  
thrashing.  Even so, with if I had enough RAM to totally avoid  
swapping, I don't think chromium would drop by a factor of 5 or 6.  (I  
don't  generally sit and watch - I generally try to emerge chromium  
overnight.)  However, the few times I've been trying to use the system  
while chromium compiles, it's been slow, but not totally unresponsive.   
In addition - I think the huge memory use is only for a small part of  
the total chromium compile.


Jack


Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Neil Bothwick
On Sun, 14 Jan 2018 13:01:23 -0500, Jack wrote:

> Chromium frequently takes over 24 hours to compile on my system,  
> although the last two emerges were about 11 hours each.  My last  
> firefox emerge was just under two hours, with the last ten or so all  
> taking under three and a half hours.

Is it swapping?


-- 
Neil Bothwick

WWW: World Wide Wait


pgpAbmiA_kujq.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Dale
Rich Freeman wrote:
> On Sun, Jan 14, 2018 at 12:53 PM, Dale  wrote:
>> Yea, keep in mind, I didn't want a init thingy at all.
> Could have fooled us...
>

That's either a touch of sarcasm or you missed my messages.  ;-)

Dale

:-)  :-) 



Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Jack

On 2018.01.14 01:51, victor romanchuk wrote:

On 01/14/2018 07:17 AM, tu...@posteo.de wrote:
Is it posible to use Firefox wihout pulseaudio installed? If "yes"  
-- how can I acchieche this?


Yes it is possible; to achieve that you just have to use  
www-client/firefox, e.g compile it from source


Due to dependencies (now ff is boud with dev-lang/rust which  
subsequently requires llvm and clang) compilation time is comparable  
to chromium


Chromium frequently takes over 24 hours to compile on my system,  
although the last two emerges were about 11 hours each.  My last  
firefox emerge was just under two hours, with the last ten or so all  
taking under three and a half hours.


Jack


Re: [gentoo-user] Re: fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Rich Freeman
On Sun, Jan 14, 2018 at 12:53 PM, Dale  wrote:
>
> Yea, keep in mind, I didn't want a init thingy at all.

Could have fooled us...

-- 
Rich



Re: [gentoo-user] Re: fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Dale
Neil Bothwick wrote:
> On Sat, 13 Jan 2018 20:59:56 -0600, Dale wrote:
>
>> Yea, it used to be recommended and in a way it can still be a good
>> idea.  I use LVM for example and I can increase /usr, /var, /home or
>> whatever without having to redo my drive setup.  The only thing I can't
>> change is / which is a regular file system.  Just have to cross that
>> bridge when I get there.
> You can put / on LVM too, but then you'll need an init-thingy and I don't
> think any of us want to go there ;-)
>
>


Yea, keep in mind, I didn't want a init thingy at all.  Thing is, I had
already set up my partitions when that requirement came along. 

In a way, I'd either like to have everything on LVM or BTRFS or nothing
but /home on one of those.  In other words, if I have to have a init
thingy, everything is where I can shrink/expand as needed or if no init
thingy then all those are on a regular file system.  Likely going with
the later next time around. 

Maybe by then BTRFS will be 100% ready to go then.  ;-) 

Dale

:-)  :-) 



Re: [gentoo-user] Re: Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread tuxic
On 01/14 08:54, Ian Zimmerman wrote:
> On 2018-01-14 05:49, tu...@posteo.de wrote:
> 
> > I tried Palemoon some time ago. I checked its security and privacy
> > feature with certain sites on the internet, which provide such
> > services and found some issues, which I wanted to discuss on their
> > forum. The answer was not to believe such sites and in result security
> > would be a matter of how much I believe in a certain software.
> 
> I am keen to see a link to that discussion.  I searched the forum for
> "meino" and "tuxic" but got no hits for either.  Can you help me?
> 
> -- 
> Please don't Cc: me privately on mailing lists and Usenet,
> if you also post the followup to the list or newsgroup.
> To reply privately _only_ on Usenet, fetch the TXT record for the domain.
> 

Will see, whether it is still there...here it comes:
https://forum.palemoon.org/viewtopic.php?f=37=14531=103898=mcc=9477d72d647e5e361a52372fa5388ced#p103898

Cite:

|  "But as for me, I believe that Pale Moon comes with optimally secure
|  defaults since I have felt little need to change anything in regards
|  to security. If however you do not trust me or Moonchild, the
|  developer of Pale Moon, when we say that Pale Moon is secure enough as
|  is, then you are free to use whichever browser you trust is more
|  secure."


Keywords (more me at least) here were "believe" and "trust"...
Say, I would produce firewall systems professionally and would
"believe", that they are secure and "trust" in my work despite
the fact others has done some tests which render this security
questionable...would I be called a software engineer?
But this is only my point of view and my personal opinion, which
may or mau not be valid for others. No offense intended!
And: I dont want to start a flame war here. Yoy asked and tried
to give a answer, which may be useful onlu to explain my own point
of view.

Cheers
Meino






[gentoo-user] Re: Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Ian Zimmerman
On 2018-01-14 05:49, tu...@posteo.de wrote:

> I tried Palemoon some time ago. I checked its security and privacy
> feature with certain sites on the internet, which provide such
> services and found some issues, which I wanted to discuss on their
> forum. The answer was not to believe such sites and in result security
> would be a matter of how much I believe in a certain software.

I am keen to see a link to that discussion.  I searched the forum for
"meino" and "tuxic" but got no hits for either.  Can you help me?

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet, fetch the TXT record for the domain.



Re: [gentoo-user] Cannot emerge gnome because openssl's bindist use flag

2018-01-14 Thread Mike Gilbert
On Sun, Jan 14, 2018 at 9:51 AM, Hung Dang  wrote:
> I cannot emerge gnome in a fresh build ~amd64 system. Basically, if I enable
> bindist use flag for openssl then emerge will ask me to disable it. However,
> if I disable bindist flag for openssl then it will ask me to enable it. How
> can I break this dependency loop?

Remove USE="bindist" from /etc/portage/make.conf.



[gentoo-user] Cannot emerge gnome because openssl's bindist use flag

2018-01-14 Thread Hung Dang
I cannot emerge gnome in a fresh build ~amd64 system. Basically, if I 
enable bindist use flag for openssl then emerge will ask me to disable 
it. However, if I disable bindist flag for openssl then it will ask me 
to enable it. How can I break this dependency loop?


Thanks,
Hung

Below is the the output of emerge -pv --update --deep --newuse 
--backtrack=100 world


* use gnome/systemd profile

The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by dev-python/m2crypto-0.27.0::gentoo[-libressl]
# required by net-wireless/crda-3.18-r1::gentoo
# required by net-wireless/wpa_supplicant-2.6-r4::gentoo
# required by net-misc/networkmanager-1.10.2::gentoo[wifi]
# required by gnome-base/gnome-control-center-3.24.3::gentoo[networkmanager]
# required by net-libs/gnome-online-accounts-3.24.4::gentoo[gnome]
# required by gnome-base/gvfs-1.32.1-r1::gentoo[google]
# required by sci-geosciences/geocode-glib-3.24.0::gentoo
# required by dev-libs/libgweather-3.24.1::gentoo
# required by gnome-base/gnome-settings-daemon-3.24.3::gentoo
# required by gnome-base/gnome-session-3.24.2::gentoo

=dev-libs/openssl-1.0.2n  -bindist


* In order to avoid wasting time, backtracking has terminated early
* due to the above autounmask change(s). The --autounmask-backtrack=y
* option can be used to force further backtracking, but there is no
* guarantee that it will produce a solution.

* Use >=dev-libs/openssl-1.0.2n -bindist

The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by net-misc/openssh-7.6_p1-r1::gentoo[-libressl,ssl,-static]
# required by gnome-base/gvfs-1.32.1-r1::gentoo
# required by sci-geosciences/geocode-glib-3.24.0::gentoo
# required by dev-libs/libgweather-3.24.1::gentoo
# required by gnome-base/gnome-settings-daemon-3.24.3::gentoo
# required by gnome-base/gnome-control-center-3.24.3::gentoo
# required by net-libs/gnome-online-accounts-3.24.4::gentoo[gnome]
# required by dev-libs/libgdata-0.17.9-r1::gentoo[gnome-online-accounts]

=dev-libs/openssl-1.0.2n  bindist




[gentoo-user] Re: Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Nikos Chantziaras

On 14/01/18 06:17, tu...@posteo.de wrote:

Hi,

Is it posible to use Firefox wihout pulseaudio installed?
If "yes" -- how can I acchieche this?

Thanks a lot for any help in advance!


Add this to /etc/portage/profile/package.provided:

  media-sound/pulseaudio-11.1

This will tell portage to assume that PA is installed, even though it isn't.




Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread David Haller
Hello,

On Sun, 14 Jan 2018, tu...@posteo.de wrote:
>thanks a lot for all the input.
>
>I disabled pulseaudio via USE flag and recompiled the whole stuff.
>And VOILA! : Sound without apulse and pulseaudio! NICE!

BTW: I just rechecked, and it doesn't use an integrated copy too, I
think:

$ cd /usr/lib/firefox
$ nm firefox-bin *.so |grep -i pulse|c++filt 
021d7060 t mozilla::dom::GamepadHapticActuator::Pulse(double, double, mo
05a62c50 d mozilla::dom::GamepadHapticActuatorBinding::pulse_methodinfo
01edb4e0 t 
mozilla::dom::GamepadHapticActuatorBinding::pulse_promiseWrap&)
05aa20b0 d mozilla::sCannotInitializePulseAudio
02f1d6a0 t decode_pulses
02f1de00 t encode_pulses
02f31b80 t silk_decode_pulses
02f32660 t silk_encode_pulses
049a1cd4 r silk_max_pulses_table
049a1b60 r silk_pulses_per_block_BITS_Q5
049a1c20 r silk_pulses_per_block_iCDF

Using strings similiarly yields e.g.:

libpulse.so.0
,libpulse %s
cannot-initialize-pulseaudio
MediaCannotInitializePulseAudio
Linux PulseAudio is *not* supported => ALSA APIs will be utilized instead

and ldd does not show any dep. So at _most_ it might try to dlopen
libpulse and if that fails maybe log the above "error".

Yay!
-dnh

-- 
There is, however, a strange, musty smell in the air that reminds me of
something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
-- Larry Wall in Configure from the perl distribution



Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread tuxic
On 01/14 12:11, Neil Bothwick wrote:
> On Sun, 14 Jan 2018 11:36:23 +, Mick wrote:
> 
> > With each job taking up to 1.2G of RAM you can quickly exhaust
> > available memory on older PCs and swapping can start grinding the box
> > to a halt.  Since the move to profile 17.0 I found my old laptop comes
> > to its knees on compiling larger packages like Chromium.  If you also
> > find swapping starts thrashing your drive and emerge moves nowhere fast
> > as it becomes I/O bound, you should consider reducing the number of
> > jobs with MAKEOPTS="-jX" where X is a lesser number than previously
> > used and also reducing the --load-average to a low(er) number.  
> 
> I have 8GB in this laptop (not expandable) and Chromium is currently
> swapping away with -j4. With -j2 it didn't so I'll try -j3 next time.
> 
> You can set it on a per package basis:
> 
> % cat /etc/portage/package.env/chromium
> www-client/chromium disk-tmpdir.conf j3.conf
> 
> % cat /etc/portage/env/j3.conf
> MAKEOPTS="-j3"
> 
> % cat /etc/portage/env/disk-tmpdir.conf
> PORTAGE_TMPDIR="/mnt/scratch"
> 
> The last one is needed because TMPDIR is on a tmpfs normally.
> 
> 
> -- 
> Neil Bothwick
> 
> If at first you don't suceed, try the switch marked "Power"


Hi,

thanks a lot for all the input.

I disabled pulseaudio via USE flag and recompiled the whole stuff.
And VOILA! : Sound without apulse and pulseaudio! NICE!

Cheers!
Meino






Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Neil Bothwick
On Sun, 14 Jan 2018 11:36:23 +, Mick wrote:

> With each job taking up to 1.2G of RAM you can quickly exhaust
> available memory on older PCs and swapping can start grinding the box
> to a halt.  Since the move to profile 17.0 I found my old laptop comes
> to its knees on compiling larger packages like Chromium.  If you also
> find swapping starts thrashing your drive and emerge moves nowhere fast
> as it becomes I/O bound, you should consider reducing the number of
> jobs with MAKEOPTS="-jX" where X is a lesser number than previously
> used and also reducing the --load-average to a low(er) number.  

I have 8GB in this laptop (not expandable) and Chromium is currently
swapping away with -j4. With -j2 it didn't so I'll try -j3 next time.

You can set it on a per package basis:

% cat /etc/portage/package.env/chromium
www-client/chromium disk-tmpdir.conf j3.conf

% cat /etc/portage/env/j3.conf
MAKEOPTS="-j3"

% cat /etc/portage/env/disk-tmpdir.conf
PORTAGE_TMPDIR="/mnt/scratch"

The last one is needed because TMPDIR is on a tmpfs normally.


-- 
Neil Bothwick

If at first you don't suceed, try the switch marked "Power"


pgp3CKE1VbCIE.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Neil Bothwick
On Sat, 13 Jan 2018 20:59:56 -0600, Dale wrote:

> Yea, it used to be recommended and in a way it can still be a good
> idea.  I use LVM for example and I can increase /usr, /var, /home or
> whatever without having to redo my drive setup.  The only thing I can't
> change is / which is a regular file system.  Just have to cross that
> bridge when I get there.

You can put / on LVM too, but then you'll need an init-thingy and I don't
think any of us want to go there ;-)


-- 
Neil Bothwick

Unsupported service (adj): Broken (see Demon)


pgpFzxN_vNEKI.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Neil Bothwick
On Sun, 14 Jan 2018 11:15:51 +0200, Alan McKinnon wrote:

> > You need an initramfs and a separate /usr to experience this problem.
> > You have neither so you have avoided it twice, well done :-)  
> 
> I'm an engineer, so I don't add unneeded things that serve no purpose
> and no benefit :-)
> 
I'm a geek so I have to ;-)

Actually, I do need an initramfs because I have an encrypted root
partition. I don't use one if it provides no benefit.


-- 
Neil Bothwick

Does someone know the cheats for WindowsXP?


pgpOyOfdvvH2y.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Floyd Anderson

Hi Andrew,

On Sun, 14 Jan 2018 12:06:23 +0100
Andrew Barchuk  wrote:

Thanks everyone, I've nailed it \o/ A more detailed story follows.


Thank you for your conclusion and that you share your solution which 
will certainly have some benefit for future readers.


Well done, keep it up.

--
Regards,
floyd




Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread Mick
On Sunday, 14 January 2018 05:51:57 GMT tu...@posteo.de wrote:
> On 01/13 11:39, Dale wrote:
> > tu...@posteo.de wrote:
> > > Hi Dale,
> > > 
> > > one problem here is, that I am using firefox-bin, because compiling
> > > firefox gave me compile errors in the past.
> > > 
> > > One dependency of firefox-bin ispulseaudio.
> > > 
> > > Currently I am trying to compile firefox and will see how far it
> > > goes...
> > > 
> > > Short question: What timezone you are?
> > > 
> > > Cheers
> > > Meino
> > 
> > I'm on CST here in the USA.  May be around a little longer.  Before you
> > compile Firefox, make sure of your USE flags.  No point compiling that
> > monster and then realizing a USE flag is wrong. 
> > 
> > I suspect you can make this work with a compiled version.  Just a
> > feeling. 
> > 
> > Dale
> > 
> > :-)  :-) 
> 
> Hi Dale,
> 
> I am on UTC+1 here...
> 
> Thanks for the USEful :) hint!
> Will see how far it goes. Currently rust is compiling and is
> periodically
> eating all my memory and my box starts swapping...
> 
> This will take a while.
> As soon I have further results, I will be back!
> 
> Cheers!
> Meino

With each job taking up to 1.2G of RAM you can quickly exhaust available 
memory on older PCs and swapping can start grinding the box to a halt.  Since 
the move to profile 17.0 I found my old laptop comes to its knees on compiling 
larger packages like Chromium.  If you also find swapping starts thrashing 
your drive and emerge moves nowhere fast as it becomes I/O bound, you should 
consider reducing the number of jobs with MAKEOPTS="-jX" where X is a lesser 
number than previously used and also reducing the --load-average to a low(er) 
number.  

-- 
Regards,
Mick

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


Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Andrew Barchuk
Thanks everyone, I've nailed it \o/ A more detailed story follows. 

After taking the approach of offloading / and /usr checks to Dracut I've
disabled fsck for those partitions in /etc/fstab so OpenRC fsck wouldn't
attempt to check /usr (and fail) by setting passno (the last column to
0). It turned out that Dracut honours fstab for fsck too (root get
special treatment and is checked anyways). After enabling fsck in fstab
for / and /usr Dracut started to check /usr - a small win already. No
the only thing left to do was to _not_ check / and /usr by the init fsck
which was natural to do by setting fsck_passno=">1" in /etc/conf.d/fsck.

Now all the filesystems are checked during the boot: the ones having
passno 1 (root and /usr) by the initramfs and passno 2 (/var, /home,
/data) by the init. The relevant excerpts from the final configuration
are below.

/etc/fstab:
/dev/MacVg/gentoo-root  /   ext4defaults0 1
/dev/MacVg/gentoo-usr   /usrext4defaults0 1
/dev/MacVg/gentoo-var   /varext4nodev,nosuid0 2
/dev/MacVg/gentoo-home  /home   ext4nodev,nosuid0 2
/dev/MacVg/data /data   ext4nodev,nosuid,noexec 0 2

/etc/dracut.conf:
hostonly="yes"
use_fstab="yes"
no_fsck="no"

Note that the two latter Dracut options are not required and applied by
default in my installation but showing explicitly what configuration is
used.

/etc/conf.d/fsck:
fsck_passno=">1"

As can be seen from logs / and /usr are checked by Dracut and /var,
/home and /data by OpenRC.

/var/log/dmesg:

[2.607796] dracut: luksOpen /dev/sdb3 
luks-2acb7668-fff1-492d-b46e-f05ead26d153
[5.930575] random: crng init done
[   11.017574] dracut: Scanning devices dm-0  for LVM logical volumes 
MacVg/swap MacVg/gentoo-root MacVg/gentoo-usr
[   11.028712] dracut: inactive '/dev/MacVg/arch-root' [10.00 GiB] inherit
[   11.031019] dracut: inactive '/dev/MacVg/arch-var' [6.00 GiB] inherit
[   11.033121] dracut: inactive '/dev/MacVg/swap' [8.00 GiB] inherit
[   11.035193] dracut: inactive '/dev/MacVg/arch-home' [6.00 GiB] inherit
[   11.037305] dracut: inactive '/dev/MacVg/data' [48.00 GiB] inherit
[   11.039686] dracut: inactive '/dev/MacVg/gentoo-root' [1.00 GiB] inherit
[   11.042072] dracut: inactive '/dev/MacVg/gentoo-var' [1.00 GiB] inherit
[   11.044452] dracut: inactive '/dev/MacVg/gentoo-home' [2.00 GiB] inherit
[   11.046791] dracut: inactive '/dev/MacVg/gentoo-usr' [12.00 GiB] inherit
[   11.131447] dracut: Scanning devices dm-0  for LVM volume groups MacVg
[   11.137382] dracut: Reading all physical volumes. This may take a while...
[   11.146511] dracut: Found volume group "MacVg" using metadata type lvm2
[   11.187955] dracut: 9 logical volume(s) in volume group "MacVg" now active
[   11.198562] PM: Starting manual resume from disk
[   11.200830] PM: Image not found (code -22)
[   11.211669] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: 
data=ordered
[   11.244303] dracut: Checking ext4: 
/dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144
[   11.248218] dracut: issuing e2fsck -a  
/dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144
[   11.264264] dracut: /dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144: 
clean, 2477/65536 files, 33012/262144 blocks
[   11.267463] dracut: Mounting 
/dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144 with -o 
rw,relatime,data=ordered
[   11.278896] EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: 
data=ordered
[   11.286288] dracut: Mounted root filesystem /dev/mapper/MacVg-gentoo--root
[   11.302264] dracut: Checking ext4: /dev/MacVg/gentoo-usr
[   11.305391] dracut: issuing e2fsck -a  /dev/MacVg/gentoo-usr
[   13.144541] dracut: /dev/MacVg/gentoo-usr: recovering journal
[   13.146699] dracut: /dev/MacVg/gentoo-usr: clean, 439895/1572864 files, 
2264868/3145728 blocks
[   13.148865] dracut: Mounting /usr with -o defaults
[   13.167299] EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: 
(null)
[   13.226192] dracut: Switching root

/var/log/rc.log:

* Checking local filesystems [passno >1]  ...
/dev/mapper/MacVg-gentoo--home: clean, 6057/131072 files, 211958/524288 blocks
/dev/mapper/MacVg-data: clean, 5831/3145728 files, 10243129/12582912 blocks
/dev/mapper/MacVg-gentoo--var: clean, 22475/65536 files, 61158/262144 blocks
 [ ok ]

P. S. A bonus point is I no longer have to patch genkernel to support
custom keymaps and fonts.

---
Andrew



Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread Alan McKinnon
On 14/01/2018 01:36, Neil Bothwick wrote:
> On Sat, 13 Jan 2018 23:16:19 +0200, Alan McKinnon wrote:
> 
>> On 13/01/2018 23:16, Neil Bothwick wrote:
>>> On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote:
>>>   
 Shouldn't that be taken care of by the "/etc/fstab" entries?  
>>>
>>> Those say whether the filesystem should be checked, not when.
>>>   
 Obviously, if "/usr" is on a separate partition, it needs to be
 mounted at the time when "/usr/sbin/fsck" is expected to be
 present.  
>>>
>>> fsck is in /sbin, but that's not the point. If you have an initramfs,
>>> fsck should be in it and run before /usr is mounted rw, which means it
>>> has to be done by the initramfs. It's too late to do it when control
>>> has been handed over because then /usr is already mounted rw.  
>>
>>
>> So what does the dirty check and fsck of / ?
> 
> OpenRC AFAIK.
>  
>> I don't have an initramfs, I don't have a separate /usr,
> 
> You need an initramfs and a separate /usr to experience this problem. You
> have neither so you have avoided it twice, well done :-)

I'm an engineer, so I don't add unneeded things that serve no purpose
and no benefit :-)



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




Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-14 Thread David Haller
Hello,

On Sun, 14 Jan 2018, tu...@posteo.de wrote:
>Is it posible to use Firefox wihout pulseaudio installed?
>If "yes" -- how can I acchieche this?

Just compile with USE="-pulseaudio". Apparently, since 57.x, FF can be
built directly against alsa again.

I have neither apulse nor pulseaudio installed and audio e.g. on
youtube "just works".

HTH,
-dnh

-- 
PC's are designed by a committee of people who are in different companies
in different countries and who never talk to each other. -- Derick Siddoway

And nobody speaks the same language and they hate each other... -- Chris Adams



Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-14 Thread David Haller
Hello,

On Sat, 13 Jan 2018, Andrew Barchuk wrote:
[..]
>My fstab:
>
>/dev/MacVg/gentoo-root  /   ext4defaults0 1
>/dev/MacVg/gentoo-usr   /usrext4defaults0 2
[..]
>Any ideas what is going on and how do I make the fsck check succeed?

Try changing the last field for /usr/ to "1", i.e.:

/dev/MacVg/gentoo-usr   /usrext4defaults0 1

HTH,
-dnh

-- 
"Of course it does not work, but look how fast it is!"
 -- Unknown