Re: [gentoo-user] Anyone using www-apps/jekyll?

2021-10-28 Thread Alec Ten Harmsel
On Thu, Oct 28, 2021, at 09:25, Peter Humphrey wrote:
> On Thursday, 28 October 2021 13:34:49 BST Alec Ten Harmsel wrote:
>
>> I got jekyll installed via portage by adding:
>> 
>> dev-ruby/* ~amd64
>> www-apps/jekyll ~amd64
>> www-apps/jekyll-* ~amd64
>> 
>> to package.accept_keywords, and then running `emerge www-apps/jekyll'.
>> This is on stable, with a tree that is a couple weeks old for what it's
>> worth.
>
> This system is ~amd64, so I didn't have to do that.
>
>> Then `jekyll new testsite && bundle exec jekyll serve' works for me.
>
> $ jekyll new myblog && bundle exec jekyll serve
> ...
> [A number of Bundler: Using... messages]
> ...
> New jekyll site installed in /home/prh/myblog. 
> Could not locate Gemfile or .bundle/ directory
>

Oops, I missed a step: `jekyll new myblog && cd $_ && bundle exec jekyll 
serve'. You'll have to change into the `myblog' directory.

Alec



Re: [gentoo-user] Anyone using www-apps/jekyll?

2021-10-28 Thread Alec Ten Harmsel
Hi Peter,

On Wed, Oct 27, 2021, at 09:31, Peter Humphrey wrote:
> On Thursday, 21 October 2021 17:11:27 BST Peter Humphrey wrote:
>> Hello list,
>> 
>> I wanted to try this package to create a small site for myself, but I'm
>> falling at the second hurdle (the first was setting package.env etc to pull
>> in ruby26 as well as the currently installed ruby30).
>> 
>> Does anyone have experience with this builder? I'd like to find out where
>> I'm going wrong first.
>
> I'm still not getting through the installation of jekyll. The website[1] says 
> to follow the instructions for Ubuntu, but something's lacking. For one 
> thing, 
> it says to include ~/gems/bin in my PATH, but there isn't one. I looked for 
> something similar under / but nothing turned up.
>
> I followed the instructions to install jekyll and its dependencies, then:
> $ gem install jekyll bundler
> which went fine, but this failed with a bunch of not-found errors, including 
> jekyll itself:
> $ jekyll new myblog
>
> Am I still missing a component, or something?

I got jekyll installed via portage by adding:

dev-ruby/* ~amd64
www-apps/jekyll ~amd64
www-apps/jekyll-* ~amd64

to package.accept_keywords, and then running `emerge www-apps/jekyll'. This is 
on stable, with a tree that is a couple weeks old for what it's worth. Then 
`jekyll new testsite && bundle exec jekyll serve' works for me.

You could also try using jekyll outside of portage:

mkdir mysite && cd mysite
bundle init
bundle config set path 'vendor/bundle'
bundle add jekyll
bundle exec jekyll new --force .
rm Gemfile.lock
rm -rf ./vendor/bundle
bundle config set path 'vendor/bundle'
bundle install
bundle exec jekyll serve

And then continue following other jekyll instructions as needed. You'll have to 
use `bundle exec jekyll ...' to run jekyll - you won't be able to run jekyll 
directly.

Hope this helps,

Alec



Re: [gentoo-user] Re: --depclean wants to remove openrc. Yikes!

2021-08-03 Thread Alec Ten Harmsel
On Mon, Aug 2, 2021, at 09:33, Dr Rainer Woitok wrote:
> What I'm trying to solve is reading the
> output from "emerge --depclean" one screen full at a time and at the end
> being asked whether or not I really want to unmerge all packages listed.
> And just running
> 
>$ emerge --ask --depclean | less
> 
> did not work when tested with a single package to be removed: the output
> from "emerge" was displayed  on less than a single screen causing "less"
> to just terminate  due to my setting of environment variable "LESS", but
> "emerge" never issued the question whether or not to continue nor did it
> accept an answer.  I had to kill it with "^C" from the shell.
> 

Depending what desktop environment/terminal emulator, there are a few options. 
You could use a terminal like gnome-terminal, konsole, etc. which have scroll 
so you can run `emerge -ca' and scroll to view the results. I run urxvt in i3 
(not sure whether it scrolls or not), and I always run emerge inside of a tmux 
and use tmux's scroll to view all the output before making a decision, so you 
could also use tmux or screen.

Hope this helps,

Alec



Re: [gentoo-user] Strategies for testing an ebuild

2020-10-20 Thread Alec Ten Harmsel
On Tue, Oct 20, 2020, at 14:01, Anton wrote:
> Hi there,
> 
> I am taking on maintaining a package in gentoo-sci overlay. What are 
> good ways to test that my ebuild works before creating a pull request?
> 
> I am thinking to install a Gentoo Prefix, snapshot its "vanilla" state, 
> and run `emerge $mypackage` in the vanilla Prefix as a test. Are there 
> better strategies?

Generally, I just `sudo ebuild  clean install merge'
and test that it works directly on my system. I only proxy-maintain 1 package,
though, so others will probably have much better workflows.

Alec



Re: [gentoo-user] Is Gentoo dead?

2020-04-23 Thread Alec Ten Harmsel
On Thu, Apr 23, 2020, at 14:14, Caveman Al Toraboran wrote:
> On Wednesday, April 22, 2020 9:34 PM, Michael Orlitzky  
> wrote:
> 
> > Dependency resolution is indeed a (formally) hard problem. Solving the
> > traveling salesman problem is also hard. Solving the traveling salesman
> > problem while being punched in the face is even harder. When I complain
> > about portage being slow, what I mean is that I want to stop being
> > punched in the face so that I can concentrate all of my energy on the
> > underlying hard problem.
> 
> any reason why is it a traveling salesman problem,
> and not just a tree walk with heuristics to handle
> exceptions (e.g. cycles)?
> 

If it's so easy, why don't you implement it? /s

Sorry for being a little glib but every couple months I go through this thought 
process:

1. Wow, portage is slow
2. I can make this faster, it can't be that hard
3. ...wow, nevermind, it is really hard
4. Thank you portage maintainers!

> 
> my thought
> --
> 
> my thought is that dep. resolution is like walking
> down a tree, and branch out depending on the USE
> flags -- for this, imo the sympt. run-time
> complexity should be approximately O(log n), where
> n = number of packages in portage.

I don't think it's O(log n). Roughly, for 1 package portage has to make the 
full dep
tree, solve all the constraints to resolve to actual packages that can be 
installed,
and order and merge the tree into a single branch of packages to install. I'm
probably missing some steps and obviously that's not a rigorous explanation but
it's at least O(n) where n is the total number of dependencies.

> except that some of its leaves go back to a branch
> (circular dependencies).  here, we can add
> heuristics/workarounds when cycles are detected.

Cycles make it even more complicated, and I'm not up on the latest algorithms
to resolve these and know how fast they are.

Speeding up portage would be a fun project but it's less important
that portage being correct.

Alec



Re: [gentoo-user] can't paste password from clipboard into ssh login in urxvt

2020-04-16 Thread Alec Ten Harmsel
On Thu, Apr 16, 2020, at 13:51, Caveman Al Toraboran wrote:
> On Thursday, April 16, 2020 8:20 PM,  wrote:
> 
> > I didn't tru that muself, but as far as I could remember,
> > ssh catches the tty so no password will be shown (but processed).
> 
> ya, i know that bit.
> 
> > What happens if you paste the password, ignore, that "nothing" happens
> > and then press  ?
> 
> if i press ctrl+shift+v, followed by enter, then
> not even the enter registers.  if i press the
> enter again, alone, without the preceeding
> ctrl+shift+v, it works but tells me the obvious
> message "permission denied, please try again".

I use urxvt and I've always done Ctrl+Alt+V for paste. If you try that, what 
does it do?

Alec



Re: [gentoo-user] How to disable fuzzy-search in emerge?

2020-04-10 Thread Alec Ten Harmsel
On Fri, Apr 10, 2020, at 12:08, Grant Edwards wrote:
> I really, really hate how emerge now returns bucketfulls of useless,
> unrelated results when you do a search.  WTF is the point of returning
> a bunch of packages that don't contain the search string when there is
> is a package name that match the search string exactly?

This doesn't answer your question, but `eix' is way faster and I've been
using it since I've started using Gentoo.

Alec



Re: [gentoo-user] simple image annotation software

2020-04-01 Thread Alec Ten Harmsel
On Wed, Apr 1, 2020, at 10:42, Grant Edwards wrote:
> What application would people recommed to add some simple annotations
> to image files?  For example, I'd like to add a few arrows, some text,
> and maybe a box or oval or two.  I sometimes do stuff like that from
> the command line using ImageMagick's "convert", but drawing arrows
> with that is pretty painful.

Personally, I use Krita (media-gfx/krita) and really like it. GIMP also works.
If you want to avoid lots of dependencies, not sure what you could use.

Alec



Re: [gentoo-user] zoom?

2020-03-25 Thread Alec Ten Harmsel
On Wed, Mar 25, 2020, at 09:06, Jorge Almeida wrote:
> 
> OK. But it seems to offer limited functionality:
> https://support.zoom.us/hc/en-us/articles/115005666383-Show-a-Join-from-your-browser-Link
>

Right. I've only ever used the desktop application.
 
> (And will it be safer that the application?)
> 

Yes. Browser sandboxing isn't perfect but it's pretty good. I don't know much 
about security-related stuff other than I try to follow best practices, so I'm 
sure someone else can chime in with more knowledge.

Alec



Re: [gentoo-user] zoom?

2020-03-25 Thread Alec Ten Harmsel
On Wed, Mar 25, 2020, at 08:54, Jorge Almeida wrote:
> On Wed, Mar 25, 2020 at 12:42 PM Michael  wrote:
> > Have you looked at using WebRTC with Zoom, rather than installing their code
> > on your PC?
> 
>  The only thing in portage named after webrtc is
> media-libs/webrtc-audio-processing. Is this what you mean?
> 

WebRTC is a web standard. You should be able to use Zoom in-browser, without 
downloading the application.

Alec



Re: [gentoo-user] zoom?

2020-03-25 Thread Alec Ten Harmsel
On Wed, Mar 25, 2020, at 08:04, Michael wrote:
> I have not used Zoom, but the interwebs are screaming about the fly-by 
> malware 
> silent installations that come with it.  I don't know if this applies to 
> Linux 
> too.

My understanding is that it reports running processes and other info about your 
machine back to Zoom. Don't know why. As soon as I'm done with a meeting, I 
stop it so it's not running all the time.

That's why I would move it to a VM - libvirt/KVM/spice seems to have pretty 
phenomenal support for cameras, mics, and other "advanced" features these days.

Alec



Re: [gentoo-user] zoom?

2020-03-25 Thread Alec Ten Harmsel
On Wed, Mar 25, 2020, at 07:51, Jorge Almeida wrote:
> Did someone try to install zoom? (relevant to many people during the
> current crisis)
> 
> https://support.zoom.us/hc/en-us/articles/204206269-Installing-Zoom-on-Linux
> 
> I downloaded an archive (cannot find the URL again; the site is that
> bad) and the directory doesn't even contain a REDME...)
> 
> Jorge Almeida

I've been using Zoom for a few months with the flatpak from flathub 
(https://flathub.org/apps/details/us.zoom.Zoom). Flatpak makes it very easy, 
handles updates, etc. which is why I started running it that way.

Given all the stuff I've heard about Zoom in the past week related to how much 
info it takes from your machine while it's running, I may be moving it into a 
VM pretty soon.

Alec



Re: [gentoo-user] Loading Issue

2020-02-15 Thread Alec Ten Harmsel
On Fri, Feb 14, 2020, at 15:03, Colleen Beamer wrote:
> Hi,
> 
> There seems to be a problem with loading MySQL.  During the boot process 
> when it comes to the loading of MySQL it hangs.  Is there a way to 
> bypass the loading of MySQL so the computer will complete booting and I 
> can make sure I've gotten everything that I want off of it before I wipe it?
> 

Probably the easiest way would be to download the gentoo boot CD or the LiveCD 
of another Linux distro, boot the computer w/ the LiveCD, mount the hard drive, 
and see if there's anything you need that way.

Once you're booted from a LiveCD, you could also chroot into your Gentoo 
install and prevent MySQL starting on boot with OpenRC/systemd if you wanted to 
reboot from Gentoo and look at your files from Gentoo.

Alec



Re: [gentoo-user] how to lbry desktop?

2020-01-16 Thread Alec Ten Harmsel
Hi,

On Thu, Jan 16, 2020, at 13:24, Caveman Al Toraboran wrote:
> thx but, some other error i noticed: says keytar something 127, when running
> `yarn`.
> 

This is not really gentoo-specific, but you're probably missing a dependency 
that's required to build keytar.

Alec



Re: [gentoo-user] how to lbry desktop?

2020-01-16 Thread Alec Ten Harmsel
On Thu, Jan 16, 2020, at 10:27, Caveman Al Toraboran wrote:
> this: 
> https://github.com/lbryio/lbry-desktop#running-from-source
> 
> doesn't work. i did `yarn dev:web` (and without web) and i don't see anything
> usable. with `:web` i get a browser opened, but it doesn't show anything. 
> without `:web` it just says that render compilation complete, and gets stuck
> there. ctrl^c shows `killing threads...`.
> 
> wat's the best way? is there even a best way?
> 
> rgrds,
> cm.

`yarn dev:web-server' works for me.

HTH,

Alec

Re: [gentoo-user] dev-lang/ruby and dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby25] error

2019-07-22 Thread Alec Ten Harmsel



On Mon, Jul 22, 2019, at 06:13, Dale wrote:
> Howdy,
> 
> [snip]
> 
> root@fireball / # emerge -uvaDN world
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> 
> emerge: there are no ebuilds to satisfy
> ">=dev-ruby/xmlrpc-0.3.0[ruby_targets_ruby25]".
> (dependency required by "dev-lang/ruby-2.5.5::gentoo" [ebuild])
> (dependency required by
> "dev-ruby/rake-12.3.2::gentoo[ruby_targets_ruby25]" [ebuild])
> (dependency required by "media-video/mkvtoolnix-35.0.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> root@fireball / #
> 
> [snip]
> 
> Anyone have a clue on this?
>

As far as I can tell, dev-ruby/rake-12.3.2 is ~amd64 - can you try adding 
dev-ruby/rake to your accept_keywords if you haven't already?

hth,

Alec



Re: [gentoo-user] escape from i3lock

2019-07-10 Thread Alec Ten Harmsel
On Wed, Jul 10, 2019 at 09:52:55PM +0100, Neil Bothwick wrote:
> On Wed, 10 Jul 2019 15:23:08 -0400, Alec Ten Harmsel wrote:
> 
> > Which init are you using, what display manager, and how are you
> > launching it? I'm using systemd and sddm, and when I run `i3lock', I
> > cannot switch to different virtual consoles.
> 
> I use slock for this with the same problem. I just tried i3lock, with
> systemd and sddm, and I can still switch to a virtual console.
> 

I just don't know what I'm doing - I can switch virtual consoles too. I
had no idea that I had to press Ctrl + Alt + F[1-9].

Based on a cursory look[1] I'd guess this would be something that
i3lock has to implement. Or just workaround by using tmux or screen
instead of virtual consoles as someone else suggested.

Alec

1. 
https://askubuntu.com/questions/357039/how-do-i-disable-virtual-consoles-tty1-6



Re: [gentoo-user] escape from i3lock

2019-07-10 Thread Alec Ten Harmsel
On Wed, Jul 10, 2019 at 10:03:42AM -0700, Ian Zimmerman wrote:
> Here is my next "low information" question, haha.
> 
> I use i3lock which is like Xscreensaver but much much simpler; it plays
> no movies or games, just blanks the screen with a configured color or
> image.  To unlock it you have to type your password.

Same here, it's simple and just works.

> It bothers me that even when i3lock has locked the X session, I can
> still switch to other Linux virtual consoles with Alt-Control-F ,
> without typing the password.  It so happens that on one of the other
> virtual consoles there is often an interactive root shell :-P
> 
> So, is it possible to prevent virtual console switching while the X
> screen is locked, but still allow it at other times?  Looks like
> something the locker program would have to do, not the X server; but
> again I don't know much about this stuff.

Which init are you using, what display manager, and how are you
launching it? I'm using systemd and sddm, and when I run `i3lock', I
cannot switch to different virtual consoles.

Not sure whether any of that stuff matters, but that was the first thing
I thought of.

Alec



Re: [gentoo-user] Not enough RAM for dev-qt/qtwebengine build

2019-06-15 Thread Alec Ten Harmsel
On Sat, Jun 15, 2019, at 14:19, Walter Dnes wrote:
> On Thu, Jun 13, 2019 at 05:15:41PM +0300, Alexey Eschenko wrote
> > Thank you. Didn't think about that. Don't know why though. My
> > MAKEOPTS was "-j32". Looks like that was too many for package like
> > qtwebengine. Solved the problem with creating specific environment
> > for qtwebengine and setting it up in /etc/portage/package.env/ It was
> > vry long build process but this time it finished successfully. I
> > think I'll try to find more appropriate value for qtwebengine which
> > could be used with 32GB of RAM.
> 
>   Please use plain text, not HTML.
> 
>   According to
> https://blogs.gentoo.org/ago/2013/01/14/makeopts-jcore-1-is-not-the-best-optimization/
> the fastest compiles come with setting MAKEOPTS to the number of cores
> in your machine.  E.g. for a dual core cpu, use "-j2", for a 4 core cpu
> use "-j4", etc.  To check the number of cpus in your machine, execute...
> 
> grep -c ^flags /proc/cpuinfo

That's a good rule but not necessarily always true. My old machine was an 
i7-3930K (6 cores, 12 threads) w/ 32G RAM. I had /var/tmp on tmpfs. I 
benchmarked firefox, chromium, and some other big projects once and -j13 was 
consistently the fastest on that box.

As that blog post says:

> I’m just saying, ${core} + 1 is not the best optimization for me
> and the test confirms the part:“but this guideline isn’t always perfect”

Depends on available RAM, how fast your disk is, etc.

Alec



Re: [gentoo-user] AMD RX GPU in Gentoo

2019-06-11 Thread Alec Ten Harmsel
On Tue, Jun 11, 2019, at 10:56, Emmanuel Vasilakis wrote:
> Hi!
> 
> So, assuming I would get an RX550/560 card, how well do the amdgpu 
> drivers (open source) work? Are they ok for steam games? Do they provide 
> KMS (switching to a Ctrl+Alt+F1 is always garbled now). ? Are they 
> completely tear free?

They work pretty well for me. I have an RX 570 (and a Ryzen 5 1600), works 
great for the most part but in all honesty it did take me a while to find a 
stable kernel. I'm not sure if that's due to the CPU or the GPU, or just me not 
knowing what I'm doing.

All I play is CS:GO, which runs very well. I've played a bit of Rust too, which 
also works well.

> Plus, my current GT730 is passively cooled. Are there any RX cards that 
> at least spin down the fans when I'm working on desktop (no 
> plasma/gnome, simple Openbox with no heavy gpu requirements). I really 
> like silence! :-)

I can't hear mine at all right now.

Hope this helps,

Alec



Re: [gentoo-user] Re: Coming up with a password that is very strong.

2019-02-09 Thread Alec Ten Harmsel
On Sat, Feb 09, 2019 at 04:42:42AM -0600, Dale wrote:
> 
> It seems you just put yours on a stick as plain text.  If you trust your
> safe, that should be fine.  Since I have mine on my system, I encrypt
> it.  It may be easier to do it your way tho.  At least easier for
> whoever comes after me. 

I do the same thing, except mine are printed off and in the safe. IMO it
boils down to what you're trying to defend against; if someone cracks
your safe passwords are probably the last thing to worry about. I'd
imagine by getting into someone's safe you could get enough documents
(birth certificates, passports, etc.) to be able to get through to
customer service and change passwords anyways.

Of course all my passwords that are stored on my computer are encrypted
since only I need to use those :D

Alec



Re: [gentoo-user] Experiences with Flatpak?

2019-01-26 Thread Alec Ten Harmsel
On Fri, Jan 25, 2019 at 01:02:39PM -0600, Canek Peláez Valdés wrote:
> On Fri, Jan 25, 2019 at 12:48 PM Grant Edwards 
> wrote:
> 
> > I'm shopping for an IMAP email client that does a decent job of
> > handling HTML.  After doing a bit of reading I decided the first one
> > to try would be Geary.
> >

I use Thunderbird, it works well.

> >
> > Is it practical to use flatpak apps on Gentoo?
> >
> 
> In my experience is amazing. Gentoo sometimes takes a lot of time to
> stabilize some packages; flatpak usually have them immediately. For nightly
> builds is even better, since you don't need to pollute your stable system.
> 
> I'm using
> 
> git://github.com/fosero/flatpak-overlay.git
> 

Same here - it works great. I run closed-source freeware like steam,
spotify, and discord and don't have any problems.

Alec



Re: [gentoo-user] Re: CPU upgrade and LVM questions.

2018-12-07 Thread Alec Ten Harmsel
On Fri, Dec 07, 2018 at 01:30:48AM -0600, Dale wrote:
> 
> One last question for anyone who has done this recently.  When finished,
> I'll have a FX-8350 CPU with 8 cores at 4.0/4.2GHz, 32GBs of memory all
> on a Gigabyte 970 series mobo.  Would there be any point in upgrading to
> a whole new rig or is what I have about as fast is reasonable to build? 
> I don't do gaming or anything.  Even the GTX 650 video card is likely
> overkill for what I do here.  The older 200 series card is working just
> fine.  On one hand, my current build is several years old.  On the
> other, computers seem to have reached their peak.  I'm sure there is
> more powerful systems out there but would I be any better off with one?
> 
> Thanks to all for the help on this. 
> 
> Dale
> 
> :-)  :-) 
> 

IMO that's totally fine. I just built a new rig to use for programming
and some "light" gaming and it's not even that good. My specs are AMD
Ryzen 5 1600 (6 core, 3.2 GHz) and 16GB RAM.

This replaced a rig that was 7 years old that had a better CPU (Intel
3930K) and more RAM (32GB) :D.

Alec



Re: [gentoo-user] how best to encrypt a file

2018-07-03 Thread Alec Ten Harmsel
On Tue, Jul 03, 2018 at 07:27:35AM -0400, Philip Webb wrote:
> 180703 Alec Ten Harmsel wrote:
> > On Tue, Jul 03, 2018 at 05:47:22AM -0400, Philip Webb wrote:
> >> I have a couple of small files which need to be encrypted :
> >> one is simple text ( .txt ), the other a spreadsheet ( .ods ).
> >> I haven't used encryption like this before : what do others use ?
> > I have used `gpg' to do this before:
> > # Encrypt with a passphrase
> > gpg -c 
> > # Decrypt
> > gpg -d .gpg
> > I do have some files I keep encrypted locally
> > that I use `gpg' to encrypt/decrypt, but with my personal key pair.
> > For that, I use a vim plugin [1] that transparently decrypts to `/tmp',
> > lets me edit and then saves back to the original file.
> > This prevents the decrypted contents from ever being on my hard drive,
> > as I have `/tmp' mounted as tmpfs.
> 
> Thanks, that's very helpful except that you forgot to append [1] (smile).

Ouch. I meant to link to https://github.com/jamessan/vim-gnupg.

> I don't need to encrypt the files locally,
> but do need to when I create copies to up-load as off-site back-ups.

Someone else mentioned duplicity, which I've used in the past. It's
built to do encrypted backups to S3/Dropbox/scp.

Alec



Re: [gentoo-user] how best to encrypt a file

2018-07-03 Thread Alec Ten Harmsel
On Tue, Jul 03, 2018 at 05:47:22AM -0400, Philip Webb wrote:
> I have a couple of small files which need to be encrypted :
> one is simple text ( .txt ), the other a spreadsheet ( .ods ).
> 
> I haven't used encryption like this before : what do others use ?

I have used `gpg' to do this before:

# Encrypt with a passphrase
gpg -c 

# Decrypt
gpg -d .gpg

I do have some files I keep encrypted locally that I use `gpg' to
encrypt/decrypt, but with my personal key pair. For that, I use a vim
plugin[1] that transparently decrypts to `/tmp', lets me edit, and then
saves back to the original file. This prevents the decrypted contents
from ever being on my hard drive, as I have `/tmp' mounted as tmpfs.

Hope this helps,

Alec



Re: [gentoo-user] Recent change in python - some packages are not happy

2018-06-23 Thread Alec Ten Harmsel
On Sat, Jun 23, 2018 at 12:35:32PM +0100, Mick wrote:
> On Saturday, 23 June 2018 11:09:10 BST Alec Ten Harmsel wrote:
> > 
> > How about `emerge --info | grep PYTHON_SINGLE_TARGET'? The problem looks
> > 
> > to be:
> > > PYTHON_SINGLE_TARGET="-python2_7 -python3_4 -python3_5"
> > 
> > At least one PYTHON_SINGLE_TARGET needs to be set. I'd guess that
> > PYTHON_SINGLE_TARGET got updated to 3.6, leaving GDB in its dust.
> > 
> > Alec
> 
> Thanks Alec, yes python-3.6 was moved to the stable tree.  This is what I 
> have:
> 
> PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6"
> 
> -- 
> Regards,
> Mick

I see this at the top of gdb-7.12.1.build:

PYTHON_COMPAT=( python{2_7,3_4,3_5} )

For the mean time, you can either accept the breakage, set
PYTHON_SINGLE_TARGET="python3_5" in /etc/portage/make.conf for now, or run an
unstable gdb.

Alec



Re: [gentoo-user] Recent change in python - some packages are not happy

2018-06-23 Thread Alec Ten Harmsel
On Sat, Jun 23, 2018 at 10:38:35AM +0100, Mick wrote:
> On Saturday, 23 June 2018 10:30:09 BST Neil Bothwick wrote:
> > On 23 June 2018 10:14:31 BST, Mick  wrote:
> > >I came up to this today following a portage sync:
> > >
> > ># emerge -uaNDv world
> > >
> > >
> > >These are the packages that would be merged, in order:
> > >
> > >Calculating dependencies /
> > >
> > >!!! Problem resolving dependencies for sys-devel/gdb from @selected
> > >.. done!
> > >
> > >
> > >!!! The ebuild selected to satisfy "sys-devel/gdb" has unmet
> > >requirements.
> > >- sys-devel/gdb-7.12.1::gentoo USE="client nls python server xml -lzma
> > >-
> > >multitarget -test -vanilla" ABI_X86="(64)"
> > >PYTHON_SINGLE_TARGET="-python2_7 -
> > >python3_4 -python3_5" PYTHON_TARGETS="python2_7 -python3_4 -python3_5"
> > >
> > >  The following REQUIRED_USE flag constraints are unsatisfied:
> > >python? ( exactly-one-of ( python_single_target_python2_7
> > >
> > >python_single_target_python3_4 python_single_target_python3_5 ) )
> > >
> > > ...
> > 
> > Start with "grep - ir python /etc/portage". That found the source of the
> > problem on one of my systems, I was setting PYTHON_SINGLE_TARGET for one
> > package.
> 
> Thanks Neil, I already had a look just in case I had set something up and 
> forgot about it.  This is all it showed:
> 
> # grep -ir python /etc/portage
> /etc/portage/package.use/package.use:=media-libs/lcms-1.19-r1 python   
> 

How about `emerge --info | grep PYTHON_SINGLE_TARGET'? The problem looks
to be:

> PYTHON_SINGLE_TARGET="-python2_7 -python3_4 -python3_5"

At least one PYTHON_SINGLE_TARGET needs to be set. I'd guess that
PYTHON_SINGLE_TARGET got updated to 3.6, leaving GDB in its dust.

Alec



Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Alec Ten Harmsel
On Sun, Apr 22, 2018 at 06:44:03PM -0700, Ian Zimmerman wrote:
> On 2018-04-22 15:08, Alec Ten Harmsel wrote:
> 
> > > * make sure dev-lang/python:3.6 stays in the world file, even if it
> > > is not needed by me directly
> > 
> > No, you shouldn't need any dev-lang/python entries in the world
> > file. I don't have any in my world file, but still have 2.7 and 3.5
> > installed on my system because I have some python programs installed.
> 
> But do you ever --depclean?  Why did portage remove my python-2.5?

Yes, after every world update. I'm not sure why python-3.5 was removed.

Before you set PYTHON_TARGETS in make.conf, had you run an `emerge
--sync' in a while? It's possible the default PYTHON_TARGETS from your
profile did not include python-3.5, so --depclean would have removed it.

Alec



Re: [gentoo-user] Dependencies and PYTHON_TARGETS

2018-04-22 Thread Alec Ten Harmsel
On Sun, Apr 22, 2018 at 11:34:36AM -0700, Ian Zimmerman wrote:
> ...
> 
> This is disappointing.  It looks like I have to do 2 things manually:

Nope, just one.

> * set PYTHON_TARGETS="python2_7 python3_6" - where?  In make.conf?  Will
>   it override the profile setting?

Yes, right in make.conf. It will override the setting in the profile.

> * make sure dev-lang/python:3.6 stays in the world file, even if it is
>   not needed by me directly

No, you shouldn't need any dev-lang/python entries in the world file. I
don't have any in my world file, but still have 2.7 and 3.5 installed on
my system because I have some python programs installed.

Alec



Re: [gentoo-user] Running Gentoo in VirtualBox

2017-12-31 Thread Alec Ten Harmsel
On Sun, Dec 31, 2017 at 12:40:43PM -0700, the...@sys-concept.com wrote:
> I'm using Gentoo as a server (so it runs 24/7) Apache, Asterisk, Hylafax
> etc.
> 
> What are my chances to run Gentoo as a VirtualBox?
> 
> Installing Gentoo takes me 2-3 days (basic setup min., I don't do it
> every month so I have to go through Gentoo handbook); to configure it
> the way I want it takes another week or two.

Instead of running Gentoo with VirtualBox and backing up the image, I'd
recommend storing your configurations in a git repo and using ansible[1]
or salt[2] to deploy them when you need to.

Also, if you ever expand to more than 1 server, these tools make even
more sense. I use salt for my personal setup, which is 1 server and 1
laptop (I have 2-3 more servers that I need to get set up someday...),
but salt is simpler and no less powerful.

Hope this helps,

Alec

1. https://www.ansible.com/
2. https://saltstack.com/



Re: [gentoo-user] [OT] Calculating power consumption of a running program?

2017-08-23 Thread Alec Ten Harmsel
On Wed, Aug 23, 2017 at 05:29:13PM -0500, R0b0t1 wrote:
> As an example, I am interested in characterizing the power consumption
> of rendering a PDF document. I would hopefully only need to run the
> renderer once.

I remember in college some interesting work in security-related stuff
that was about characterizing power draw in order to crack passwords.
Potentially that could be useful, as you could record the waveforms
going into your power supply while rendering a PDF, but it sure sounds
complicated.

> Apparently you can talk to these, but my searches can only find code
> which seems highly experimental. The other replies seem to be for
> embedded Linux systems running on FPGAs and perhaps Cortex-A parts.

Even if you could talk to these, taking periodic measurements of
current and voltage, then integrating over time would probably give
results with large errors.

> If I were using a microcontroller I could get uA or nA draw per MHz
> and I know my operating voltage and operating time. However, desktop
> processors are much more complex, and I am not sure if they have been
> entirely characterized. The most advanced tool I can find is PowerTOP
> and it does not seem very accurate.

Due to modern processors having things like pipelines and all of the
caching and memory pre-fetching going on behind the scenes, it's probably
not easy to measure this with any degree of accuracy.

Have fun,

Alec



Re: [gentoo-user] Re: ruby 22

2017-08-22 Thread Alec Ten Harmsel
On Tue, Aug 22, 2017 at 07:57:39AM -0400, John Covici wrote:
> > 
> > I deleted RUBYTARGETS from make.conf, ran eselect to make ruby22 the
> > default, but when I ran emerge --depclean I still have packages
> > pulling ruby21 as follows:
> > 
> > Calculating dependencies  .. . done!
> >   dev-lang/ruby-2.1.10 pulled in by:
> >   dev-ruby/hoe-3.13.0 requires dev-lang/ruby:2.1
> >   dev-ruby/json-1.8.3 requires dev-lang/ruby:2.1
> >   dev-ruby/json-2.1.0 requires dev-lang/ruby:2.1
> >   dev-ruby/kpeg-1.1.0 requires dev-lang/ruby:2.1
> >   dev-ruby/maruku-0.7.3 requires dev-lang/ruby:2.1
> >   dev-ruby/minitest-5.10.3 requires
> >   dev-lang/ruby:2.1
> >   dev-ruby/net-telnet-0.1.1-r1 requires dev-lang/ruby:2.1
> >   dev-ruby/power_assert-1.0.2 requires dev-lang/ruby:2.1
> >   dev-ruby/racc-1.4.14 requires dev-lang/ruby:2.1
> >   dev-ruby/rake-12.0.0 requires dev-lang/ruby:2.1
> >   dev-ruby/rdoc-5.1.0 requires dev-lang/ruby:2.1
> >   dev-ruby/rubygems-2.6.12 requires
> >   dev-lang/ruby:2.1
> >   dev-ruby/test-unit-3.2.5 requires dev-lang/ruby:2.1
> >   dev-ruby/yard-0.9.8 requires dev-lang/ruby:2.1
> >   virtual/rubygems-13 requires dev-lang/ruby:2.1
> >   virtual/rubygems-7 requires dev-lang/ruby:2.1
> > 
> > I tried a word ld update, but it didn't update any of those packages
> > -- any ideas of how to fix?
> > 
> 
> I use the following arguments when I run updates:
> --update --deep --with-bdeps=y --changed-use --backtrack=120
> --keep-goingworld
> 
> Do I need to use new-use instead?

I'm not sure; I always use new-use. If you haven't synced and updated recently,
you may have issues as the default profiles still had ruby-2.1 listed in
them.

Alec



Re: [gentoo-user] Re: ruby 22

2017-08-21 Thread Alec Ten Harmsel


On 08/21/2017 10:13 AM, allan gottlieb wrote:


I issued emerge --pretend --verbose --depclean =ruby-2.1.9
and the response was

  dev-lang/ruby
 selected: 2.1.9
protected: none
  omitted: 2.2.6

Am I correct in believing it is now safe to issue

   emerge --depclean =ruby-2.1.9

thanks,
allan



Yes, that should be fine. I rarely look at portage output and just run 
`emerge -uDN @world' and `emerge --depclean' right after one another, 
and it always works fine for ruby/python upgrades.


The devs have done such a good job in general that I haven't had any 
problems just running these commands the past couple years.


Alec



Re: [gentoo-user] ruby 22

2017-08-21 Thread Alec Ten Harmsel

TL;DR: re-sync and you should be fine.


On 08/20/2017 12:36 PM, allan gottlieb wrote:


Not sure I understand.

1.  I should have been more complete about the command I run
   
   MAKEOPTS="--jobs=8 --load-average=5"

   emerge --ask --deep --tree --jobs --load-average=5 \
  --update --changed-use --with-bdeps=y @world

2.  I do not have "ruby" or "RUBY" anywhere in the tree rooted
 at /etc/portage


Cool, that makes it easier.



3.  emerge did not offer to upgrade RUBY_TARGETS does
 not seem happy with ruby21 since the emerge output includes
 [ebuild   R]dev-ruby/test-unit-3.1.9  RUBY_TARGETS="(-ruby21%*)"
 [ebuild   R]dev-ruby/rdoc-4.2.0  RUBY_TARGETS="(-ruby21%*)"
 [ebuild   R]dev-ruby/minitest-5.8.4  RUBY_TARGETS="(-ruby21%*)"


RUBY_TARGETS is set in the profiles that are part of the portage tree.



4.  I synced the tree today just before the emerge.  Might I have picked
 up an inconsistent tree and hence should I resync?


Hans de Graaff replied a bit ago; it looks like RUBY_TARGETS in the 
profiles were not updated after ruby-2.1 was masked. If you re-sync, you 
should be able to go forward with the update.






6.  I have NOT done the eselect ruby set ruby 22.

As Hans also mentioned, the upgrade itself will not automatically run 
the eselect command - my bad. Once you do a depclean and ruby-2.1 is 
removed, eselect will be run to set the system ruby version to 2.2.


Alec



Re: [gentoo-user] ruby 22

2017-08-20 Thread Alec Ten Harmsel


On 08/20/2017 08:19 AM, allan gottlieb wrote:

I am currently running ruby21 (ruby-2.1.9).
All such versions of ruby are masked so this is clearly a mistake
on my part.  I was alerted to this error by dev-ruby/rdoc-4.2.0
failing to build on today's emerge --update @world

After I do
   eselect ruby set ruby22
can I simply
   emerge --update @world
or must I explicitly rebuild some ruby packages?


I don't believe that will be enough. You should update RUBY_TARGETS in 
/etc/portage/make.conf if you have it set. If you don't have it set and 
are still getting this error, that's a bug and should be filed on b.g.o. 
I have a custom RUBY_TARGETS as I do some ruby development, so I don't 
have a vanilla system to test this on.


Also, you'll have to run a slightly different command to update (since 
RUBY_TARGETS, PYTHON_TARGETS, etc. are USE flags underneath):


emerge --update --newuse --deep @world

You shouldn't have to 'eselect ruby' either - portage will do this for 
you while updating.


Alec



Re: [gentoo-user] disaster recovery - planning

2017-03-20 Thread Alec Ten Harmsel


El 20/03/2017 a las 05:15 p. m., the...@sys-concept.com escribió:

Besides standard "data" backup, if I was to plan for a disaster
recovery; what to include in a backup system if I was to rebuild a new box?

- /etc
- /var/lib/portage/world
- /usr/src/linux/.config


These three should be pushed out with a configuration management 
tool/system like Salt or Ansible in my opinion and committed in a git 
repo instead of being backed up.



Alec



Re: [gentoo-user] kvm/qemu no-multilib

2017-01-02 Thread Alec Ten Harmsel



El 02/01/2017 a las 12:02 p. m., lee escribió:

Hi,

is it possible to install kvm/qemu (and virsh) on a no-multilib profile?


Yes


I'm hitting the disadvantages of containers too much and would like to
migrate to VMs ...



Which disadvantages? Just curious...

Alec



Re: [gentoo-user] Brother Printer

2016-12-10 Thread Alec Ten Harmsel
On Sat, Dec 10, 2016 at 11:17:55PM +0100, siefke_lis...@web.de wrote:
> On Fri, 09 Dec 2016 16:49:48 +0100
> Nils Freydank  wrote:
> 
> > would need to migrate to an multilib profile - and I don’t know how awful 
> > this 
> > would become.
> 
> I try and this make me more pain. I stopped. GCC, GLIBC and sandbox not
> want compile. Something with blabla.32.h is missing. I find nothing in
> documentation how can switch or im blind. (i wear classes :) 

I believe going from nomultilib to multilib is not officially supported.

I'm on this thread a little late, but does CUPS not work? Every printer
I've set up on a linux box (only a handful, to be fair) has worked out
of the box without extra drivers.

Alec



Re: [gentoo-user] Re: vm still grinding away at compiling webkitgtk-2.14.2

2016-11-20 Thread Alec Ten Harmsel
On Sun, Nov 20, 2016 at 10:32:25AM -0500, Harry Putnam wrote:
> Rich Freeman  writes:
> 
> > Are you building in a tmpfs?  That would perform better than an ssd
> > and would be much less wear on your flash besides.  Of course, some
> > packages do take a while to build.  I don't notice as much now that I
> > do most of my building from cron, but it can be painful when you have
> > dependency chains or soname changes.
> 
> I hope this isn't more low grade density on my part but you do mean a
> tmpfs on the vm right?
> 

I'm not Rich but I'm sure that's what he means. I have an SSD, and using
a tmpfs for building speeds up builds significantly - probably 10-15%.

This will mean that you'll need a significant amount of memory allocated
to the VM. Mounting a tmpfs defaults to half of the memory available to
the machine, which seems like a decent rule of thumb. If you give the VM
8GB of memory, the tmpfs will have 4GB of space.

Alec



Re: [gentoo-user] Doubt about R support in gentoo

2016-11-19 Thread Alec Ten Harmsel



El 19/11/2016 a las 07:47 a. m., Zhu Sha Zang escribió:


Hello everybody...


A single doubt here:


After an upgrade in package dev-libs/icu (from 57.1 to 58.1-r1) i 
tried a package upgrade inside R and got that:



/> update.packages(checkBuilt=TRUE, ask=FALSE, 
repos='http://cran.us.r-project.org')

trying URL 'http://cran.us.r-project.org/src/contrib/knitr_1.15.tar.gz'
Content type 'application/x-gzip' length 1027358 bytes (1003 KB)
==
downloaded 1003 KB

* installing *source* package ‘knitr’ ...
** package ‘knitr’ successfully unpacked and MD5 sums checked
** R
** demo
** inst
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
*unable to load shared object 
'/usr/lib64/R/library/stringi/libs/stringi.so':**
**  libicui18n.so.57: cannot open shared object file: No such file or 
directory*

/



I am not super familiar with R - can you try rebuilding R itself before 
doing the CRAN package installs/upgrades? It looks like the path to ICU 
is hard-coded somehow.




This kind of "bug" can I put inside bugs.gentoo.org or its a cran 
package bug?


It is not the first time and i'm in dout about how to proceed.




If rebuildling R fixes this problem, you can file a bug so that 
developers somehow trigger an R rebuild whenever ICU is updated.


Alec



Re: [gentoo-user] qt-creator (and others) too slow

2016-07-21 Thread Alec Ten Harmsel
On Thu, Jul 21, 2016 at 10:40:18AM -0300, Francisco Ares wrote:
> Thanks Alec.
> 
> No unstable KDE nor Qt.
> 
> From the output of "equery l kde-plasma/plasma*"
> 
> [IP-] [  ] kde-plasma/plasma-desktop-5.5.5-r1:5
> [IP-] [  ] kde-plasma/plasma-mediacenter-5.5.5:5
> [IP-] [  ] kde-plasma/plasma-meta-5.5.5:5
> [IP-] [  ] kde-plasma/plasma-nm-5.5.5:5
> [IP-] [  ] kde-plasma/plasma-pa-5.5.5:5
> [IP-] [  ] kde-plasma/plasma-workspace-5.5.5-r2:5
> [IP-] [  ] kde-plasma/plasma-workspace-wallpapers-5.5.5:5

I have the same versions of plasma, except that I only installed
plasma-desktop and its dependencies. I don't have kmail, kate, or any of
the rest of the KDE applications except konsole.

> ... and from the output of "equery l dev-qt/qtcore"
> 
> [IP-] [  ] dev-qt/qtcore-4.8.6-r2:4
> [IP-] [  ] dev-qt/qtcore-5.5.1-r1:5

I do not have any Qt 4 installed.

> From /etc/portage/package.use :
> 
> dev-qt/qt-creator   -android -cmake -doc subversion valgrind
> -debug python -webkit
> dev-qt/qtcore   icu -debug
> dev-qt/qtgui-debug
> 

Hmm, okay. I have noticed some slowness when baloo is running, as
Fernando mentioned. I turned off file indexing, which does not seem to
have actually done anything.

Anyways, other than that, KDE for me runs very smoothly. Most of the
time, even when baloo is running full out, KDE itself is very
responsive. Qt Creator currently segfaults when I try to create a new
project or open a project, but other than that is generally responsive.

Which version of Qt Creator are you running?

Alec



Re: [gentoo-user] qt-creator (and others) too slow

2016-07-20 Thread Alec Ten Harmsel
On Wed, Jul 20, 2016 at 03:59:27PM -0300, Francisco Ares wrote:
> Hi, all,
> 
> Just upgraded to KDE 5, Qt 5 (as full as possible) and now QtCreator
> frequently uses almost full CPU, a quad-core i5-4430. Any change on the
> IDE, even just passing the mouse cursor over elements of an opened source
> code file, makes the CPU consuption to the high tops.

Which versions of Qt/KDE? I just installed stable KDE 5 on unstable Qt
5, as tiling window managers are not great all the time. I have not
noticed any problems so far related to rendering.

I can test this in a little while, but I'm busy working on some stuff
right now while logged in to i3.

Alec



Re: [gentoo-user] no sound through headphones (still bad)

2016-07-18 Thread Alec Ten Harmsel
On Sun, Jul 17, 2016 at 01:43:29PM -0400, allan gottlieb wrote:
> 
> E7450-wired linux # grep SND_HDA_INTEL .config
> CONFIG_SND_HDA_INTEL=y

This is good, I guess?

> E7450-wired linux # grep 'SND_INTEL*' .config
> # CONFIG_SND_INTEL8X0 is not set
> # CONFIG_SND_INTEL8X0M is not set
> E7450-wired linux # grep 'SND_SOC_INTEL*' .config
> E7450-wired linux # 
> 
> Is this last empty reply significant?

Maybe? You could try reconfiguring your kernel with all of the Intel
audio-related drivers as modules, and see what happens.

> > I'm completely grasping at straws here. Another option may be opening up
> > a terminal and running:
> >
> > pulseaudio --kill
> > pulseaudio --start --daemonize=no --verbose
> >
> > Then try and use audio and see what exactly gets spit out.
> >
> > Audio for me Just Works (tm), so I hope this helps.
> >
> > Alec
> 
> gottlieb@E7450-wired /local/allan/gottlieb $ pulseaudio --kill
> gottlieb@E7450-wired /local/allan/gottlieb $ pulseaudio --start 
> --daemonize=no --verbose
> I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation 
> not permitted
> I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation 
> not permitted
> I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: No 
> such file or directory
> I: [pulseaudio] main.c: This is PulseAudio 8.0
> I: [pulseaudio] main.c: Page size is 4096 bytes
> I: [pulseaudio] main.c: Machine ID is 6089ce1bfebfff5e96a31beb55b51fc9.
> I: [pulseaudio] main.c: Session ID is 1.
> I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
> I: [pulseaudio] main.c: Using state directory /home/gottlieb/.config/pulse.
> I: [pulseaudio] main.c: Using modules directory /usr/lib64/pulse-8.0/modules.
> I: [pulseaudio] main.c: Running in system mode: no
> E: [pulseaudio] pid.c: Daemon already running.
> 
> Starting audio did not cause anything to be printed.

It exited immediately because `pulseaudio --kill' did not actually kill
PulseAudio. Maybe try:

pkill -9 pulseaudio
pulseaudio --start --daemonize=no --verbose

Alec



Re: [gentoo-user] no sound through headphones (still bad)

2016-07-16 Thread Alec Ten Harmsel
On Sat, Jul 16, 2016 at 04:17:04PM -0400, allan gottlieb wrote:
> 
> To answer Alec's questions this is a 3.5mm jack.  Nothing new in dmesg.
> sudo lspci | grep -i audio   shows
> 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
> 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition 
> Audio Controller (rev 03)
> 
> I think/hope we are getting close and thank everyone for their help.
> 
> allan
> 

Just double checking; what is the value of these config keys in your
kernel config?

* SND_HDA_INTEL
* SND_INTEL* (there are a few of these)
* SND_SOC_INTEL* (there are a few of these)

I'm completely grasping at straws here. Another option may be opening up
a terminal and running:

pulseaudio --kill
pulseaudio --start --daemonize=no --verbose

Then try and use audio and see what exactly gets spit out.

Audio for me Just Works (tm), so I hope this helps.

Alec



Re: [gentoo-user] no sound through headphones (still bad)

2016-07-16 Thread Alec Ten Harmsel
Hi,

On Sat, Jul 16, 2016 at 11:24:20AM -0400, allan gottlieb wrote:
> Hardware: Dell Latitude E7450 laptop
> 
> Gentoo essentially all stable
> Gnome / Systemd

This is basically my setup, but I don't run gnome.

> When I play a movie using totem it sounds fine if no headphones are
> plugged it.
> 
> No sound at all with headphones.  I tried a few, one with a microphone
> several without.

USB or 3.5mm jack?

> The gnome sound settings gui recognizes that the headphones are in but
> the sound test is silent.  If, with the phones still in, I select the
> internal speakers, all sounds well.
> 
> I installed pauvcontrol and selected "Output Devices".
> When I selected "Speakers" as the port the volume meter moves around
> normally and the sound is fine.
> When I selected "Headphones (plugged in)" as the port the volume meter
> again moves around normally but there is no sound.
> 
> This laptop dual boots windows.  I played the same movie on windows and
> sound was normal both with the speakers and the headphones.
> 
> What should I try next?
 
What does running `dmesg' output around the time that you plug in and
unplug your headphones? Around the time that you start a movie/music?

What about `lsusb', `lspci', etc?

Alec



Re: [gentoo-user] Re: [OT] How to be a penguin.

2016-05-28 Thread Alec Ten Harmsel
On Sat, May 28, 2016 at 02:05:11PM -0400, Gregory Woodbury wrote:
> Has Alan ever posted his "jackhammer" script for some experts to look at?

Yes. You can probably find it on gmane. It basically consists of running
emerge with --keep-going and --ignore-failures multiple times, running
some depcleans, running revdep-rebuild a few times, and probably doing
all of this a few times.

> I get by really well with a small script that reads the eix outputs, finds
> the "[U]"
> tagged packages, and then runs "emerge -u1" on that list.

That sounds cool. `emerge -uDN --with-bdeps=y @world' should do
approximately the same thing, though.

Alec



Re: [gentoo-user] postgresql 9.5.2 versus Gentoo wiki install instructions?

2016-05-21 Thread Alec Ten Harmsel



On 2016-05-21 07:32, J. Roeleveld wrote:

On Saturday, May 21, 2016 06:51:46 AM Alec Ten Harmsel wrote:


`equery use gnumeric' gives the `libgda' flag, which should pull in
database support. I've never used it, so I don't know whether or not it
works/how well it works. What is in this spreadsheet? If it is financial
stuff, you can use Gnucash, which supports using a database as a backend.

Does this finally work?
Last time I tried this, half the functionality didn't work at all and the
other half was buggy. (This was years ago)


I have no idea, but I'm going to test in a VM because I'm a little 
curious now.



My main problem is that columns of several thousand rows are functions

based on other columns of several thousand rows.  For the time-being,
I've split up the spreadsheet into a few pieces, but a database is the
best solution.  If I could run the calculations in the database, and
pull in the final results as static numbers for graphing, that would
greatly reduce the strain on the spreadsheet.  Or is it possible to
graph directly from postgresql?

Here are my recommendations, in order of "least code" to "most code" (I
don't think postgresql supports graphing):

1. Write some sql scripts that compute the data you need and output CSV,
then import to Gnumeric and do the plots.

For script examples:
http://stackoverflow.com/questions/1517635/save-pl-pgsql-output-from-postgresql-to-a-csv-file


2. Write python script(s) that run SQL commands and plot the data with
matplotlib.
3. Write a webapp so you don't have to run scripts by hand - the plots
are generated by opening a web page.

4. Write it all in C++ :)


Qt and QCustomPlot are nice, but I'm not sure I have quite that much time.


Depending on how much automation you want vs. how much time you want to
spend writing/debugging code, hopefully one of those helps. I help
researchers use a HPC cluster; some are very savvy programmers, some are
not. For working on "big data" projects, some will throw raw data into a
Hadoop cluster and happily do all their work using Hadoop, while some
will put in raw data, clean it up, and then pull it out and use MATLAB,
stata, R, etc., so you just need to find the workflow that works best
for you. I personally would choose option 3, as it involves the least
amount of running scripts over and over, but to each his own.

I have actual free time now (done with school, finally), so I might be
able to help prototype if you would like as well.

Something I could use (and others):
A simple PHP page which I can feed:
- connection parameters to a database
- select-query
- which result-field to use for the horizontal axis
and then plots the remaining fields for the vertical axis.

I haven't checked with google yet, so if there is a decent example, I'd be
interested :)

--
Joost



Google gave me nothing. I have not written PHP for a long time, and I'm 
so unfamiliar with deploying/running PHP that it would take me a long 
time to write this.


Another option is R - I just did some searching, and it supports pulling 
data from a database. R's basic plotting functions are real nice. I 
imagine a script could do some basic queries + plotting in 20-30 lines.


Alec



Re: [gentoo-user] postgresql 9.5.2 versus Gentoo wiki install instructions?

2016-05-21 Thread Alec Ten Harmsel
Joost knows far more about databases than I do, so I mostly commented on 
the workflow part.


On 2016-05-20 22:36, waltd...@waltdnes.org wrote:

   Yes, I did RTFM at https://wiki.gentoo.org/wiki/PostgreSQL/QuickStart
and that's part of my problem.   I figured it would be a simple
search and replace "9.3" ==> "9.5" in the wiki, but...

1) The wiki recommends...
PG_INITDB_OPTS="--locale=en_US.UTF-8"

...but I get...


The database cluster will be initialized with locale "en_US.iso88591".
initdb: "en_US.UTF8" is not a valid server encoding name

"locale -a" returns...
C
POSIX
en_US
en_US.iso88591
en_US.utf8

2) The wiki says...

This time the focus is upon the files in the PGDATA directory,
/etc/postgresql-9.3 , instead with primary focus on the
postgresql.conf and pg_hba.conf files.

"ls /etc/postgresql-9.5/" returns...
postgresql.conf  psqlrc

but postgresql seems to want them in /var/lib instead...


mv: cannot stat '/var/lib/postgresql/9.5/data/pg_hba.conf': No such
file or directory
mv: cannot stat '/var/lib/postgresql/9.5/data/pg_ident.conf': No
such file or directory
mv: cannot stat '/var/lib/postgresql/9.5/data/postgresql.conf':
No such file or directory

   Can somebody please confirm the correct way to go?


I have never run postgresql on gentoo (hopefully soon :D), but on 
Debian-derived distros and RPM-based distros, PGDATA is always somewhere 
in /var. /etc seems wrong.




   Why I want postgresql... I've been keeping a bunch of data in a
spreadsheet, and it's gotten too large.  The spreadsheet locks up my
system when I try to update it.  I've used "top" and watched as
gnumeric's memory consumption grows to eat all available ram.  It locks
up the system so I can't even ssh in.  This is on an X86_64 with 8 gigs
of RAM!  Fortunately, "magic-sysrq" allows a relatively clean shutdown.
While we're at it, is there a way for gnumeric to pull in data directly
from postgresql?  ODBC?  I'm aware of copying from postgresql to a CSV
file and importing that, but it's rather clunky.


`equery use gnumeric' gives the `libgda' flag, which should pull in 
database support. I've never used it, so I don't know whether or not it 
works/how well it works. What is in this spreadsheet? If it is financial 
stuff, you can use Gnucash, which supports using a database as a backend.




   My main problem is that columns of several thousand rows are functions
based on other columns of several thousand rows.  For the time-being,
I've split up the spreadsheet into a few pieces, but a database is the
best solution.  If I could run the calculations in the database, and
pull in the final results as static numbers for graphing, that would
greatly reduce the strain on the spreadsheet.  Or is it possible to
graph directly from postgresql?


Here are my recommendations, in order of "least code" to "most code" (I 
don't think postgresql supports graphing):


1. Write some sql scripts that compute the data you need and output CSV, 
then import to Gnumeric and do the plots.
2. Write python script(s) that run SQL commands and plot the data with 
matplotlib.
3. Write a webapp so you don't have to run scripts by hand - the plots 
are generated by opening a web page.


Depending on how much automation you want vs. how much time you want to 
spend writing/debugging code, hopefully one of those helps. I help 
researchers use a HPC cluster; some are very savvy programmers, some are 
not. For working on "big data" projects, some will throw raw data into a 
Hadoop cluster and happily do all their work using Hadoop, while some 
will put in raw data, clean it up, and then pull it out and use MATLAB, 
stata, R, etc., so you just need to find the workflow that works best 
for you. I personally would choose option 3, as it involves the least 
amount of running scripts over and over, but to each his own.


I have actual free time now (done with school, finally), so I might be 
able to help prototype if you would like as well.


Alec



Re: [gentoo-user] Surviving perl-5.24.0

2016-05-21 Thread Alec Ten Harmsel

On 2016-05-20 19:33, walt wrote:

I spent most of today updating from perl-5.22 to perl-5.24 because so
many packages failed to install.  I ran perl-cleaner about a hundred
times and tried emerge -ac in between, which always failed because it
falsely accused me of not doing emerge -auND.

Finally I got through the perl update and noticed a message saying
'emerge -auND --with-bdeps=y is the ultimate way to update...' so I
added the '--with-bdeps=y' and another twenty perl-related packages got
rebuilt after I thought I was done.

Now I'm really done, I think, but I'm afraid to reboot this machine.


What could possibly go wrong ;)? How important of a machine is this? I 
usually only get worried when rebooting after a kernel upgrade on 
headless machines, but that's just me.


If you have console access to the machine, I think it should be able to 
at least boot without perl, so I'd say go for it.


Alec




Re: [gentoo-user] Getting ki18n to compile

2016-05-18 Thread Alec Ten Harmsel
On Thu, May 19, 2016 at 01:21:20AM +0800, Andrew Lowe wrote:
> Hi all,
>   Doing the usual "emerge -NuD world" and I get hit with:
> 
> 
> 
> Calculating dependencies... done!
> 
> !!! The ebuild selected to satisfy ">=kde-frameworks/ki18n-5.18.0:5" has 
> unmet requirements.
> - kde-frameworks/ki18n-5.22.1::gentoo USE="-debug -doc -test" 
> ABI_X86="64" PYTHON_SINGLE_TARGET="python3_4 -python2_7" 
> PYTHON_TARGETS="python2_7 -python3_4"

PYTHON_SINGLE_TARGET sets the version of python for a package that can
only be installed with a single python. PYTHON_TARGETS sets the versions
of python a python package will be installed to/with for packages that
can be installed to multiple python versions.

You have PYTHON_SINGLE_TARGET=python3_4, but PYTHON_TARGETS does *not*
contain python3_4. This is bad.

>The following REQUIRED_USE flag constraints are unsatisfied:
>  python_single_target_python3_4? ( python_targets_python3_4 )

This is the line that enforces the above (i.e. PYTHON_SINGLE_TARGET must
be in PYTHON_TARGETS).

> 
> 
> kde-frameworks/ki18n python_single_target_python3_4
> 

This is not the problem and can be removed.

> 
> 
>   But the problem persists, nothing has changed. "eselect python list" 
> lists that I've got Python 2.7, 3.4 and 3.5 installed. I've just noticed 
> that doing "emerge --info ki18n" shows:
> 
>   PYTHON SINGLE_TARGET="python3_5"

what?

What do you have PYTHON_TARGETS and PYTHON_SINGLE_TARGET in
/etc/portage/make.conf?

Alec



Re: [gentoo-user] Re: Can't figure out gcc-4.9 blocker

2016-05-13 Thread Alec Ten Harmsel
On Fri, May 13, 2016 at 08:25:14PM +, Grant Edwards wrote:
> 
> So, I uninstalled gcc 4.9 and all older versions except 4.6.
> 
> I then removed 4.6 from the world file (but left it installed).
> 
> emerge is now happy and willing to upgrade gcc from 4.6 to 4.9 -- but
> it can't: now the build of 4.9.3 is failing.

What is the error?

> It appears I can no
> longer build _anything_.

If this is true, that sucks. I have not had a problem upgrading GCC at
all, although I've been rolling with 4.9 for a while I think.

Alec



Re: [gentoo-user] Where is CONFIG_MICROCODE gone in kernel 4.4.6-gentoo?

2016-04-30 Thread Alec Ten Harmsel
On Sat, Apr 30, 2016 at 09:29:08AM +0100, Neil Bothwick wrote:
> On Sat, 30 Apr 2016 09:07:29 +0100, Mick wrote:
> 
> > I seem to have mislaid my microcode somewhere, in the latest stable
> > gentoo kernel:
> > 
> > # grep -i MICROCODE .config
> > #
> 
> Grepping .config is unreliable, and always has been.

I usually use something like:

grep MICROCODE $(find . -name Kconfig)

Alec



Re: [gentoo-user] Re: why emerge sucks nuts:

2016-04-16 Thread Alec Ten Harmsel
On Sat, Apr 16, 2016 at 09:08:41AM -0500, »Q« wrote:
> On Sat, 16 Apr 2016 00:13:27 -0400
> Alan Grimes  wrote:
> 
> > Emerge errors out with this:
> > 
> > "fuck you user, C 1.0 won't work B 2.0"
> 
> I've got the 'offensive' flag set globally, and emerge never talks to
> me that way.  How to fix?
> 

+1

Alec



Re: [gentoo-user] KDE and the new plasma 5 thing

2016-04-13 Thread Alec Ten Harmsel
On Tue, Apr 12, 2016 at 09:55:48PM -0500, Dale wrote:
> 
> If anyone is brave enough to file a bug, I can say that it doesn't focus
> on the password here either.  It selects the user but that's it.  Since
> it works on some themes and not others, makes one wonder if the theme
> has something to do with it. 
> 
> Dale
> 
> :-)  :-) 

I have been writing a lot of Qt'd code recently. If I have time and
remember, I'll fix it. Can't be that hard.

Alec



Re: [gentoo-user] Confessional: how I generally use emerge.

2016-03-19 Thread Alec Ten Harmsel
On Thu, Mar 17, 2016 at 08:18:13PM -0400, Alan Grimes wrote:
> I use two scripts for all emerge use, the goal is to run one command and
> then walk away:
> 
> Standard general update script:
> ###
> tortoise ~ # cat sysupdate
> 
> #they must have moved or removed the logs, might have to track them down
> again...
> #rm /var/log/emerge*
> 
> # cache /usr/portage 
> echo "caching /usr/portage.  This will take a long time."
> time ls -R /usr/portage > /dev/null
> 
> emerge --sync
> layman --sync ALL
> 
> emerge --update --verbose portage

You almost certainly want this to be:

emerge --update --verbose --oneshot portage

"--oneshot" will prevent portage from being added to your @world set.

> emerge --update --newuse --deep --with-bdeps=y system --keep-going

Add "--oneshot", same reasoning as above.

> emerge --update --newuse --deep --with-bdeps=y world --keep-going
> 
> rm -f /var/cache/revdep-rebuild/*.rr

delete the above line

> revdep-rebuild

add "--ignore" to ignore any cached files and fully examine the system.

> emerge --skipfirst --resume
> emerge --skipfirst --resume
> etc-update
> eclean-dist
> 
> 
> The eclean line was added just a few days ago from this thread...
> 
> This one is intended to be a nice gentle update script.
> It caches the portage tree, then syncs everything, then updates
> everything starting with critical system packages, then all world
> packages...
> 
> Then it cleans stuff up, it jcakhammers the revdep-rebuild but not too
> hard

Seeing so much "--resume" and "--skip-first" and "--keep-going"
frightens me.

> This next script is what I use when emerge starts giving me shit:
> 
> ##
> tortoise ~ # cat keepgoing
> emerge --update --newuse --deep --with-bdeps=y system
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> 
> emerge --update --newuse --deep --with-bdeps=y world
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> 
> rm /var/cache/revdep-rebuild/*.rr
> revdep-rebuild
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> emerge --skipfirst --resume --nodeps
> 
> etc-update
> ###
> 
> It's basically the same as the working section of the above but instead
> of letting emerge do it's thing, it jackhammers that bitch as hard as
> possible to get as much updated as possible, but it requires emerge to
> do something and not error out for no good reason... I expect prune and
> depclean to be useless but I kinda need update to basically work every
> time. =\
> Whatever fails on this script, I just live with until next week/month.

Wow. This script makes me cry.

> ###
> tortoise ~ # ./pretendupdate
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies /
> 
> !!! Problem resolving dependencies for sys-apps/util-linux from @system
> ... done!
> 
> !!! The ebuild selected to satisfy "sys-apps/util-linux" has unmet
> requirements.
> - sys-apps/util-linux-2.27.1::gentoo USE="caps cramfs ncurses nls pam
> python readline suid udev unicode -build -fdformat -kill (-selinux)
> -slang -static-libs -systemd -test -tty-helpers" ABI_X86="32 64 -x32"
> PYTHON_SINGLE_TARGET="-python2_7 -python3_3 -python3_4"
> PYTHON_TARGETS="python2_7 python3_4 -python3_3"
> 
>   The following REQUIRED_USE flag constraints are unsatisfied:
> python? ( exactly-one-of ( python_single_target_python2_7
> python_single_target_python3_3 python_single_target_python3_4 ) )
> 
>   The above constraints are a subset of the following complete expression:
> python? ( exactly-one-of ( python_single_target_python2_7
> python_single_target_python3_3 python_single_target_python3_4 )
> python_single_target_python2_7? ( python_targets_python2_7 )
> python_single_target_python3_3? ( python_targets_python3_3 )
> python_single_target_python3_4? ( python_targets_python3_4 ) )
> 
> (dependency required by "@system" [set])
> (dependency required by "@world" [argument])
> 
> tortoise ~ # cat ./pretendupdate
> emerge --update --newuse --deep --with-bdeps=y world --verbose --pretend
> tortoise ~ #
> 
> ###
> 
> Google is not being helpful with this... =(

What have you set PYTHON_SINGLE_TARGET to? It *must* be one of:

* python2_7
* python3_4

Alec



Re: [gentoo-user] Re: Confessional: how I generally use emerge.

2016-03-18 Thread Alec Ten Harmsel
On Fri, Mar 18, 2016 at 01:43:53PM -0500, »Q« wrote:
> On Thu, 17 Mar 2016 20:37:04 -0400
> Alec Ten Harmsel <a...@alectenharmsel.com> wrote:
> 
> > > emerge --update --newuse --deep --with-bdeps=y system --keep-going  
> > 
> > Add "--oneshot", same reasoning as above.
> 
> When the target is a set (in this case @system), does portage ever add
> all of it to @world?
> 

Apparently it does not. I know it does that for individual packages, so
I just assumed it did that for sets as well. I stand corrected.

Alec



Re: [gentoo-user] PYTHON_SINGLE_TARGET & libreoffice

2016-02-27 Thread Alec Ten Harmsel
On Sat, Feb 27, 2016 at 09:40:06PM +0200, Alan McKinnon wrote:
> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all
> seemed to just work so I never looked further. Until now. Of all
> packages, libreoffice seems to want only python3:

I don't know much about them either.

> !!! The ebuild selected to satisfy "app-office/libreoffice" has unmet
> requirements.
> - app-office/libreoffice-5.1.0.3::gentoo USE="bluetooth branding cups
> dbus gstreamer java kde mysql vlc (-aqua) -coinmp -collada -debug -eds
> (-firebird) -gltf -gnome -gtk -gtk3 -jemalloc -libressl -odk -postgres
> (-telepathy) -test" ABI_X86="64" LIBREOFFICE_EXTENSIONS="-nlpsolver
> -scripting-beanshell -scripting-javascript -wiki-publisher"
> PYTHON_SINGLE_TARGET="-python3_4 -python3_5" PYTHON_TARGETS="python3_4
> python3_5"
> 
>   The following REQUIRED_USE flag constraints are unsatisfied:
> exactly-one-of ( python_single_target_python3_4
> python_single_target_python3_5 )
> 
> 
> 
> khamul ~ # emerge --info | grep PYTHON
> PYTHON_SINGLE_TARGET="python2_7"
> PYTHON_TARGETS="python2_7 python3_4"
> Unset:  USE_PYTHON
> 

app-office/libreoffice-5.1.0.3 requires PYTHON_SINGLE_TARGET to be
python3_4 or python3_5. That's the only problem. I would recommend
running stable libreoffice; I would be surprised if emerge would be
happy after you set PYTHON_SINGLE_TARGET="python3_4".

Alec



Re: [gentoo-user] Modern Docker?

2016-02-17 Thread Alec Ten Harmsel
On Wed, Feb 17, 2016 at 11:25:56PM +, Daniel Quinn wrote:
> I tried to run a docker-compose.yaml file and it exploded with a version
> error.  When I asked around about what I did wrong, it turns out that it
> requires docker-compose version 1.6.x and Gentoo doesn't have anything
> newer than 1.5.2.  Is there an official overlay for this sort of thing,
> or do Gentooers do something else with Docker typically?
> 

Until the new version gets added to the tree, I would run docker-compose
out of a virtualenv:

virtualenv ~/docker-compose
source ~/docker-compose/bin/activate
pip install docker-compose

This is not a great solution, but it'll do for the mean time.

Alec



Re: [gentoo-user] java.awt.AWTError

2016-02-03 Thread Alec Ten Harmsel
On Wed, Feb 03, 2016 at 12:44:19PM +0100, Helmut Jarausch wrote:
> Hi,
> 
> when emerging sci-geosciences/josm- I get a Java error :
> 
> 
> java.awt.AWTError: Can't connect to X11 window server using ':0' as the value 
> of the DISPLAY variable.
> 
> 
> This is on a local machine using DISPLAY :0
> 
> Would anybody please shed some light on this error.
> 
> (Emerge version 9060 proceeds just fine)
> 
> Many thanks for a hint,
> Helmut
> 

Sadly, I won't be a whole lot of help. I am experiencing the same thing,
but when I build josm by hand in a docker container or on a headless
server without X installed I can't reproduce this. I think it is a
problem in portage with the environment.

For now, I would recommend checking it out and building by hand.

Alec



Re: [gentoo-user] emerge libxcb fails

2016-01-23 Thread Alec Ten Harmsel
On Sat, Jan 23, 2016 at 09:52:29PM +0100, k...@aspodata.se wrote:
> Karl Hammar:
> > Alec Ten Harmsel:
> > > On Tue, Jan 19, 2016 at 10:05:49PM +0100, k...@aspodata.se wrote:
> > > > Alec: Ten Harmsel:
> > > > > On Tue, Jan 19, 2016 at 08:01:19PM +0100, k...@aspodata.se wrote:
> > > > > >  Makefile:1318: recipe for target 'xinput.c' failed
> > > > > > when emerging x11-libs/libxcb-1.11.1, logs etc.:
> ...
> > > The problem is a python script that runs in the build process has a
> > > KeyError. I did notice that for you, that python script is running on
> > > files in `/usr/local/share/xcb', while it runs on files in
> > > `/usr/share/xcb' on mine. These are a part of the `x11-proto/xcb-proto'
> > > package. Do you have a version of xcb-proto installed in /usr/local? It
> > > is possible that the libxcb configure script is picking an old version
> > > of xcb-proto that is installed in `/usr/local' over the correct version
> > > installed in `/usr'.
> > 
> > Yes, that's probably it, thanks for the look.
> > 
> > > I would recommend removing `/usr/local/share/xcb' and trying to install
> > > libxcb again.
> > 
> > I mv'ed /usr/local/share but it didn't help.
> 
> emerge -C'd x*/* thing, and reemerged, didn't help.
> 
> Restarting the installation of gentoo from the very beginning helped.
> Wasn't aware of that /usr/local could affect installing gentoo 
> packages, havn't had that experience with binary distributions.
> Well, case closed.

Ideally, it shouldn't. However, sometimes configure scripts and/or
portage's environment somehow gets polluted by stuff in `/usr/local'.

Alec



Re: [gentoo-user] emerge libxcb fails

2016-01-19 Thread Alec Ten Harmsel
On Tue, Jan 19, 2016 at 10:05:49PM +0100, k...@aspodata.se wrote:
> Alec: Ten Harmsel:
> > On Tue, Jan 19, 2016 at 08:01:19PM +0100, k...@aspodata.se wrote:
> > > I'm getting
> > > 
> > >  Makefile:1318: recipe for target 'xinput.c' failed
> > > 
> > > when emerging x11-libs/libxcb-1.11.1, logs etc.:
> > > 
> > >  http://turkos.aspodata.se/tmp/gentoo/
> > 
> > I can't read build.log - 403 permission denied.
> 
> Ok, fixed. I did not check emerge's log permission.

In general (someone else, correct me if I'm wrong) this list would much
rather have you attach a compressed build.log when you mail in the
problem. That way, there is no chance of permissions problems, and years
from now, the logs will still be here for posterity.

The problem is a python script that runs in the build process has a
KeyError. I did notice that for you, that python script is running on
files in `/usr/local/share/xcb', while it runs on files in
`/usr/share/xcb' on mine. These are a part of the `x11-proto/xcb-proto'
package. Do you have a version of xcb-proto installed in /usr/local? It
is possible that the libxcb configure script is picking an old version
of xcb-proto that is installed in `/usr/local' over the correct version
installed in `/usr'.

I would recommend removing `/usr/local/share/xcb' and trying to install
libxcb again.

Alec



Re: [gentoo-user] emerge libxcb fails

2016-01-19 Thread Alec Ten Harmsel
On Tue, Jan 19, 2016 at 08:01:19PM +0100, k...@aspodata.se wrote:
> I'm getting
> 
>  Makefile:1318: recipe for target 'xinput.c' failed
> 
> when emerging x11-libs/libxcb-1.11.1, logs etc.:
> 
>  http://turkos.aspodata.se/tmp/gentoo/

I can't read build.log - 403 permission denied.

> I get similar errors with:
> 
>  emerge =libxcb-1.10
>  emerge =libxcb-1.9.1
> 
> Have anyone seen anything similar, maybe there something missing here ?

Nope, installed fine here.

Alec



Re: [gentoo-user] sound stopped working [media-sound/pulseaudio-7.1]

2016-01-19 Thread Alec Ten Harmsel
On Tue, Jan 19, 2016 at 09:57:18PM +0200, Alexander Kapshuk wrote:
> On Tue, Jan 19, 2016 at 7:10 PM, Alec Ten Harmsel <a...@alectenharmsel.com>
> wrote:
> 
> > I use pulseaudio without ALSA, for what it's worth. I also don't use VLC
> > or mplayer.
> >
> 
> That's interesting. I didn't know one could use pulseaudio with ALSA left
> out.

I am not extremely familiar with how sound works, to be honest. I do
have the 'alsa' USE flag set on pulseaudio. Here are the modules I have
loaded in /etc/pulse/default.pa:

module-always-sink
module-augment-properties
module-card-restore
module-default-device-restore
module-detect
module-device-restore
module-filter-apply
module-filter-heuristics
module-intended-roles
module-native-protocol-tcp auth-ip-acl=127.0.0.1
module-native-protocol-unix
module-position-event-sounds
module-rescue-streams
module-role-cork
module-stream-restore
module-suspend-on-idle
module-switch-on-port-available
module-udev-detect

> I set the global USE flag to '-alsa' in '/etc/portage/make.conf' and ran
> 'emerge -aU' to see what would be pulled in/unmerged. Here's a list of
> packages emerge wanted to pull in:
> Calculating dependencies  . ...  done!
> [ebuild  N ] media-plugins/gst-plugins-x-0.10.36-r1
> [ebuild  N ] media-plugins/gst-plugins-xvideo-0.10.36-r1
> [ebuild  N ] media-plugins/gst-plugins-vorbis-0.10.36-r1
> [ebuild  N ] media-plugins/gst-plugins-ogg-0.10.36-r1
> [ebuild  N ] media-libs/gst-plugins-bad-0.10.23-r2  USE="nls orc"
> [ebuild  N ] media-libs/faad2-2.7-r3  USE="-digitalradio -static-libs"
> [ebuild  N ] media-sound/cdparanoia-3.10.2-r6  USE="-static-libs"
> [ebuild   R] net-misc/rdesktop-1.8.3  USE="-alsa*"
> [ebuild  N ] media-libs/gst-plugins-ugly-0.10.19-r1  USE="nls orc"
> [ebuild  N ] media-libs/gst-plugins-good-0.10.31-r1  USE="nls orc"
> [ebuild  N ] media-plugins/gst-plugins-resindvd-0.10.23-r1
> [ebuild  N ] media-plugins/gst-plugins-dts-0.10.23-r1  USE="orc"
> [ebuild  N ] media-plugins/gst-plugins-faad-0.10.23-r2
> [ebuild  N ] media-plugins/gst-plugins-xvid-0.10.23-r1
> [ebuild  N ] media-plugins/gst-plugins-cdparanoia-0.10.36-r1
> [ebuild  N ] media-plugins/gst-plugins-a52dec-0.10.19-r1  USE="orc"
> [ebuild  N ] media-plugins/gst-plugins-x264-0.10.19-r1
> [ebuild  N ] media-plugins/gst-plugins-mad-0.10.19-r1
> [ebuild  N ] media-plugins/gst-plugins-flac-0.10.31-r1
> [ebuild  N ] media-plugins/gst-plugins-dvdread-0.10.19-r1
> [ebuild  N ] media-plugins/gst-plugins-pulse-0.10.31-r1
> [ebuild  N ] media-plugins/gst-plugins-ffmpeg-0.10.13_p201211-r5
> USE="orc -libav"
> [ebuild  N ] media-plugins/gst-plugins-mpeg2dec-0.10.19-r1
> [ebuild   R] media-video/mplayer-1.2_pre20150214-r1  USE="-alsa*"
> [ebuild  N ] media-plugins/gst-plugins-meta-0.10-r10  USE="X a52 aac
> cdda dts dvd ffmpeg flac mp3 mpeg ogg pulseaudio vorbis x264 xv xvid -alsa
> -dv -dvb -http -jack -lame -libass -libvisual -mms -modplug -musepack -opus
> -oss -taglib -theora -v4l -vcd -vpx -wavpack"
> [ebuild   R] xfce-extra/xfce4-mixer-4.11.0  USE="-alsa*"
> [ebuild   R] media-video/vlc-2.2.1-r1  USE="-alsa*"
> 
> Is this what you use, 'media-pugins/gst-plugins'?

Sorry, I misled you. I do not have any software configured to use ALSA
as far as I know, but pulseaudio is configured with the 'alsa' USE flag
as I mentioned above.

> > >
> > > My sound card details are.
> > > lspci -k
> > > ...
> > > 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio
> > > Controller (rev 02)
> > > Subsystem: Gigabyte Technology Co., Ltd 82801I (ICH9 Family) HD Audio
> > > Controller
> > > Kernel driver in use: snd_hda_intel
> > > ...
> >
> > Have you looked at dmesg and/or any ALSA logs to see why ALSA-related
> > stuff can't be initialized? Intel hardware and drivers have always
> > treated me well, so this is strange.
> >
> 
> '/var/log/dmesg' has this:
> [1.361704] ALSA device list:
> [1.361991]   No soundcards found.
> 
> While 'aplay -l | grep HDA' says this:
> card 1: Intel [HDA Intel], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
> card 1: Intel [HDA Intel], device 1: ALC662 rev1 Digital [ALC662 rev1
> Digital]
> 

Hmmm, strange that the model numbers are different between aplay and
lspci. Do any of your other machines have the same hardware, and do
lspci and aplay report the same stuff?

Alec



Re: [gentoo-user] {OT} Allow work from home?

2016-01-19 Thread Alec Ten Harmsel
On Tue, Jan 19, 2016 at 10:56:21PM +0100, lee wrote:
> Alec Ten Harmsel <a...@alectenharmsel.com> writes:
> >
> > Depends on how the load is. Right now I have a 500GB HDD at work. I use
> > VirtualBox and vagrant for testing various software. Every VM in
> > VirtualBox gets a 50GB hard disk, and I generally have 7 or 8 at a time.
> > Add in all the other stuff on my system, which includes a 200GB dataset,
> > and the disk is overcommitted. Of course, none of the VirtualBox disks
> > use anywhere near 50GB.
> 
> True, that's for testing when you do know that the disk space will not
> be used and have no trouble when it is.  When you have the VMs in
> production and users (employees) using them, you don't know when they
> will run out of disk space and trouble ensues.

Almost. Here is an equal example: I am an admin on an HPC cluster. We
have a shared Lustre filesystem that people store work files in while
they are running jobs. It has around 1PB of capacity. As strange as this
may sound, this filesystem is overcommitted (we have 20,000 cores,
that's only 52GB per core, not even close to enough for more than half a
year of data accumulation).  Unused data is deleted after 90 days, which
is why it can be overcommitted.

Extending this to a more realistic example without automatic data
deletion is trivial. Imagine you are a web hosting provider. You allow
each client unlimited disk space, so you're automatically overcommitted.
In the aggregate, even though one client may increase their usage
extremely quickly, total usage rises slowly, giving you more than enough
time to increase the storage capacity of whatever backing filesystem is
hosting their files.

> > All Joost is saying is that most resources can be overcommitted, since
> > all the users will not be using all their resources at the same time.
> 
> How do you overcommit disk space and then shrink the VMs automatically
> when disk usage gets lower again?
> 

Sorry, my previous example was bad, since the normal strategy is to
expand when necessary as far as I know. See above.

Alec



Re: [gentoo-user] Why we no Heroku?

2016-01-19 Thread Alec Ten Harmsel
On Tue, Jan 19, 2016 at 10:44:44PM +, Daniel Quinn wrote:
> I wanted to start fiddling with Heroku , so
> naturally the first thing I tried was
> 
> |$ eix heroku |
> 
> …but alas there was nothing. So I poked around their site to see how one
> might install their client manually and the instructions
> 
> are the typically horrifying:
> 
> |# wget -qO- https://toolbelt.heroku.com/install.sh | sh |
> 
> The thing is, a quick look at what that || sh| is actually doing isn’t
> all that terrifying. Basically it untars a bunch of ruby scripts into a
> directory and then puts the path to the |heroku| “binary” (a ruby
> script) in your $PATH. Surely, this is a good candidate for an ebuild, yes?

Yup, seems pretty good. Probably doable with a very simple ebuild, since
all its dependencies are already in the portage tree.

> So I thought I’d ask: am I missing something, or is this really as easy
> as it looks? Is this just waiting for someone to write an ebuild?

Well, the heroku client seems to be moving in the same direction as
vagrant[1], although hasn't gone nearly as far yet. In the heroku
gemspec, there is a post install message that warns gem install is
deprecated. I'm not terribly familiar with ruby, but it looks like it
should still be installable from source.

> Bugzilla has nothing
>  about it, but I
> can’t believe that Heroku use hasn’t come up before in Gentoo land.

I can. Ruby is not nearly as well supported in Gentoo as python is. An
average ruby developer wanting to use the heroku client would most
likely already be using either rbenv or rvm already, and would probably
run `gem install heroku' without even looking if an ebuild exists. My
roommate certainly would do this; he runs Gentoo, but solely uses
bundler and rbenv to manage ruby stuff (except for installing the
interpreter itself).

Alec

[1] vagrant used to be installable as a gem (and therefore not terrible
to package), but then the authors decided that it would be way to
difficult to support all these people with all these versions of
different libraries, so they would make it difficult to manually package
and only ship installers with bundled deps.



Re: [gentoo-user] Re: *dev-less gentoo

2016-01-19 Thread Alec Ten Harmsel
On Tue, Jan 19, 2016 at 05:51:11PM +0100, k...@aspodata.se wrote:
> James:
> >   aspodata.se> writes:
> > > > > I found a workaround in the sys-fs/static-dev package.
> > 
> > Interesting read :: bgo #107875
> 
> I'm new to gentoo, is there some special semantic to the "bgo #" ?

bgo == https://bugs.gentoo.org

Alec



Re: [gentoo-user] sound stopped working [media-sound/pulseaudio-7.1]

2016-01-19 Thread Alec Ten Harmsel
I use pulseaudio without ALSA, for what it's worth. I also don't use VLC
or mplayer.

On Tue, Jan 19, 2016 at 06:33:41PM +0200, Alexander Kapshuk wrote:
> Recently, sound has stopped working on one of my Gentoo systems. I have
> checked the kernel, package and pulseaudio set-ups across all of my systems
> in an attempt to pin down the problem, but so far to no avail. The sound
> works fine on the other systems I have.

Are they any changes you just made that may have caused the problem? Do
all the systems have the same configuration?

> 
> Having 'alsa-sink' enabled, generates the following output in
> '/var/log/messages'.
> # grep 'Jan 19.*pulseaudio' /var/log/messages
> Jan 19 17:58:23 box1 pulseaudio[3686]: [pulseaudio] module.c: Failed to
> load module "module-alsa-sink" (argument: ""): initialization failed.
> Jan 19 17:58:23 box1 pulseaudio[3686]: [pulseaudio] main.c: Module load
> failed.
> Jan 19 17:58:23 box1 pulseaudio[3686]: [pulseaudio] main.c: Failed to
> initialize daemon.
> Jan 19 17:58:23 box1 pulseaudio[3638]: [pulseaudio] main.c: Daemon startup
> failed.
> Jan 19 17:58:23 box1 pulseaudio[3706]: [pulseaudio] module.c: Failed to
> load module "module-alsa-sink" (argument: ""): initialization failed.
> Jan 19 17:58:23 box1 pulseaudio[3706]: [pulseaudio] main.c: Module load
> failed.
> Jan 19 17:58:23 box1 pulseaudio[3706]: [pulseaudio] main.c: Failed to
> initialize daemon.
> Jan 19 17:58:23 box1 pulseaudio[3703]: [pulseaudio] main.c: Daemon startup
> failed.
> Jan 19 17:58:23 box1 pulseaudio[3719]: [pulseaudio] module.c: Failed to
> load module "module-alsa-sink" (argument: ""): initialization failed.
> Jan 19 17:58:23 box1 pulseaudio[3719]: [pulseaudio] main.c: Module load
> failed.
> Jan 19 17:58:23 box1 pulseaudio[3719]: [pulseaudio] main.c: Failed to
> initialize daemon.
> Jan 19 17:58:23 box1 pulseaudio[3716]: [pulseaudio] main.c: Daemon startup
> failed.
> 
> My sound card details are.
> lspci -k
> ...
> 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio
> Controller (rev 02)
> Subsystem: Gigabyte Technology Co., Ltd 82801I (ICH9 Family) HD Audio
> Controller
> Kernel driver in use: snd_hda_intel
> ...

Have you looked at dmesg and/or any ALSA logs to see why ALSA-related
stuff can't be initialized? Intel hardware and drivers have always
treated me well, so this is strange.

Alec

P.S. Is there a particular reason you are using pulseaudio as a layer
above ALSA? If not, you might just use PA in my opinion.



Re: [gentoo-user] {OT} Allow work from home?

2016-01-18 Thread Alec Ten Harmsel
On Tue, Jan 19, 2016 at 01:46:45AM +0100, lee wrote:
> "J. Roeleveld"  writes:
> 
> > On Monday, January 18, 2016 02:02:27 AM lee wrote:
> >> "J. Roeleveld"  writes:
> >> > On 17 January 2016 18:35:20 CET, Mick  wrote:
> >> > 
> >> > [...]
> >> > 
> >> >>I use the icaclient provided by Citrix to access my virtual desktop at
> >> >>work,
> >> >>but have never tried to set up something similar at home.  What
> >> >>opensource
> >> >>software would I need for this?  Is there a wiki somewhere to follow?
> >> >>
> >> > I'd love to do this myself as well.
> >> > 
> >> > Citrix sells the full package as 'XenDesktop'. To do it yourself you need
> >> > a VMserver (Xen or similar) and a remote desktop tool that hooks into the
> >> > VM display. (Spice or VNC)
> >> > 
> >> > Then you need some way of authenticating users and providing access to 
> >> > the
> >> > client software. [...]
> >> 
> >> You would have a full VM for each user?
> >
> > Yes
> >
> >> That would be a huge waste of resources,
> >
> > Diskspace and CPU can easily be overcommitted.
> 
> Overcommitting disk space sounds like a very bad idea.  Overcommitting
> memory is not possible with xen.
> 

Depends on how the load is. Right now I have a 500GB HDD at work. I use
VirtualBox and vagrant for testing various software. Every VM in
VirtualBox gets a 50GB hard disk, and I generally have 7 or 8 at a time.
Add in all the other stuff on my system, which includes a 200GB dataset,
and the disk is overcommitted. Of course, none of the VirtualBox disks
use anywhere near 50GB.

All Joost is saying is that most resources can be overcommitted, since
all the users will not be using all their resources at the same time.

Alec



Re: [gentoo-user] Python3.4 to python3.5 in ebuilds

2016-01-18 Thread Alec Ten Harmsel
Hi,

On Mon, Jan 18, 2016 at 04:07:03PM +0200, Stanislav Ch. Nikolov wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
> 
> It seems like 3.4 and 3.5 are 100% compatible, and most ebuilds
> involving python in some way tolerate them both:
> (any-of ( python_targets_python3_3 python_targets_python3_4 
> python_targets_python3_5))
>
> Yet there are some that are still unhappy with 3.5. This makes me
> really annoyed and I was wondering if it was possible to write a
> simple script to add python_targets_python3_5 where needed. Would this
> break anything, and if no, why can't the maintainers or some
> portage-tree admin do it?

It probably will not break a whole lot, but python 3.5 is still
relatively new and package maintainers are still catching up.

Alec



Re: [gentoo-user] Kmail2 - I have not given up ... yet

2015-12-29 Thread Alec Ten Harmsel
On Tue, Dec 29, 2015 at 06:40:58PM +, Mick wrote:
> 
> Thank you very much Joost for holding my hand on this.  Last question for the 
> day:  It seems that postgresql wants to install xemacs as a dependency ... o_O
> 
> 
> # emerge -uaDv emerge dev-db/postgresql

emerge is trying to install app-xemacs/emerge, which depends on xemacs
(presumably). Your command is:

emerge [flags] emerge ...

Just a simple typo.

Alec



Re: [gentoo-user] preventing keyboard layout files from being overritten during system upgrades

2015-12-04 Thread Alec Ten Harmsel
On Fri, Dec 04, 2015 at 01:55:30PM +0200, gevisz wrote:
> 
> So, my main question is How can I ensure that the already
> edited /usr/share/X11/xkb/symbols/ru file will not be overwritten
> during the next system update. Thabk you.
> 

Use a configuration management tool like puppet or ansible. It will take
a small amount of initial investment to set up, but then any overwritten
configuration files can be easily added back by running the
configuration management tool.

Alec



Re: [gentoo-user] resolving names of local hosts locally

2015-12-03 Thread Alec Ten Harmsel



On 2015-12-03 17:20, lee wrote:

Alan McKinnon  writes:

Secondly, nothing else on your network can know your auth server is
authoritative without first being informed so by the delegating server.

The name server itself knows this from its configuration, and it's the
only thing that needs to know this because it's the only thing
everything on the network is asking.


Or in other words, if you own example.com and an auth server for
example.com is on your network, you have to first go via .com to know
that. Weird, but that's how it works.

The name server doesn't know what domains it's supposed to give answers
for without asking others first?


If you have a DNS server that is serving DNS info for example.com, it 
*does* know that. However,
what Alan is saying is that none of the resolvers (not even the resolver 
running on your
example.com DNS server) knows which DNS server serves records for 
example.com without

a few more queries.

Assume a resolver (for example, the resolver in glibc) that has no 
cached knowledge. To
look up www.example.com, it first queries for '.com' from the root DNS 
servers. Next, it
queries for 'example' from the '.com' DNS servers. Finally, from the 
'example.com' DNS

server, it can get the IP for www.example.com.




DNS was designed to need a network connection because most of the DNS is
out there somewhere else

Then how do you solve the problem of being unable to even resolve the
names of hosts on the LAN when the connection goes down?


Ideally, your caching name server has cached the record for your domain 
by the time

your connection goes down.

Alec



Re: [gentoo-user] Again a small embedded arch problem with Gentoo

2015-11-29 Thread Alec Ten Harmsel



On 2015-11-29 06:57, meino.cra...@gmx.de wrote:

Hi,

two "identical" (better read: expected to be identical... ;)


Just a quick suggestion - you should use ansible or puppet to keep them 
in sync.



Arietta
G25 tiny embedded systems have a Gentoo installed each. Both are
updated always at the same time.
On both I copied the same source of VIM (git repo) and tried to
update the local repo than.

One said:
Arietta G25 B:CVS-Archive/VIM>./update.sh
Already up-to-date.

(ok, nice and fine)

but the other said:
fatal: unable to access 'https://github.com/vim/vim.git/': SSL certificate 
problem: certificate has expired
[1]1983 exit 1 ./update.sh



What is the date on the board that failed? The only thing I can think of 
is that

the date is incorrect, and far enough off to cause an SSL error.

Alec



Re: [gentoo-user] systemd-logind problem

2015-11-24 Thread Alec Ten Harmsel


On 2015-11-24 13:17, cov...@ccs.covici.com wrote:

I am running systemd-226-r1


There's your problem ;)

I'm really kidding.


and am having some strange problems with
systemd-logind.  It gets into some state where it can take 20 seconds to
login to the box via ssh, if I restart systemd-logind or rather stop and
start -- restart has no effect -- then it works for some unknownperiod,
but then it dies again.  Any way to fix more permanently -- I saw some
discussion a while back, but I never saw a resolution.

Thanks in advance for any ideas.



I did not know sshd used systemd-logind; have run any of these commands?:

journalctl -u systemd-logind
systemctl status systemd-logind

I am not terribly familiar with systemd, but that's the first place I 
would start. You could also try changing the LogLevel parameter in 
'/etc/systemd/system.conf'.


Alec



Re: [gentoo-user] AC WiFi Card

2015-11-12 Thread Alec Ten Harmsel
On Thu, Nov 12, 2015 at 09:05:02AM +0100, Ralf wrote:
> On 11/12/2015 01:08 AM, Alec Ten Harmsel wrote:
> > I do not run any APs, but I manage plenty of laptops with 5GHz Intel
> > chipsets, and never had a problem. Is there any reason you are not
> > using a dedicated AP instead of a wireless card in AP mode?
>
> I also thought so, but according to a friend of mine, running a card in
> AP or monitor mode is quite different as running a card as client.
> Especially if you want to have a dual stack ability.

That makes sense. In my apartment I have a dedicated Netgear router and a
dedicated TP-LINK AP. The AP was around $20, and has fantastic range.
Having a dedicated AP sounds way easier to me than trying to do a
dual-stack thing.

Now that I think a bit more about it, having a wireless AP and a
wireless client on the same chip doesn't sound good, since one MAC
address would be doing two functions. That said, I am not even close to
a networking guru; I hope someone else can chime in.

Alec



Re: [gentoo-user] AC WiFi Card

2015-11-11 Thread Alec Ten Harmsel

On 2015-11-11 11:53, Ralf wrote:

So I was looking for some PCI-E Wifi Card, that supports AC standard. I
was thinking about sth. like this [1]. A friend of mine told me, that I
should take care when buying AC hardware, as there is rare kernel support.


Intel, in general, has great Linux support.


Does anyone of you successfully use AC hardware in AP mode, Dual stack
(5GhZ / 2.4GhZ)?
What kind of hardware would you recommend (and is known to work without
any painful hacks)?



I do not run any APs, but I manage plenty of laptops with 5GHz Intel 
chipsets, and never had a problem. Is there any reason you are not using 
a dedicated AP instead of a wireless card in AP mode?


Alec



Re: [gentoo-user] Better CPU for compiling with gcc

2015-11-10 Thread Alec Ten Harmsel



On 2015-11-10 14:07, Stanislav Nikolov wrote:


On 11/10/2015 08:55 PM, Alan McKinnon wrote:

On 10/11/2015 20:37, Stanislav Nikolov wrote:

On 11/10/2015 08:17 PM, Mick wrote:

On Tuesday 10 Nov 2015 17:47:08 Stanislav Nikolov wrote:

Dear Gentoo users,
I'm building a new PC. I have a budget of ~$550-$650.



The most expensive Intel CPU is the skylake i7-6700k.

Thanks




I can't help but think you are approaching this from the wrong perspective.

Why exactly are you using compile times as your sole criterion? Are you
building a compile farm for Ubuntu? Running continuous integration tests
for LibreOffice [on a $600 budget in a cardboard box :-) ]?

Or do you want emerge world to get it over with quicker?

If the latter, you better rethink your priorities. In computing terms,
compilation is a rare event; launching apps is a common event; and
writing to the disk happens all the time. Optimize for the common case.


In addition, upgrades are something that can be done overnight, or 
really any time you are not using the machine.




A CPU never works in isolation, it is always part of a much larger
system, like disks, RAM and all possible kinds of I/O. The best CPU on
the market plugged into a POS motherboard will perform on emerge world
like a piece of shit - it will follow the weakest link.


This; I have an i7-3930K, which has 6 physical cores at 3.8GHz. I also 
have 32GB of RAM and an SSD. There was a large speedup[1] moving 
portage's workdir from SSD to tmpfs. Compiling is a really balanced 
workload, stressing the disk (multiple small reads), memory, and CPU. 
For fast compilation, emphasize RAM first (compile in tmpfs if 
possible), then CPU, then disk. Like Alan said, though, you should 
really optimize for the average case on not worry about the speed of 
compiling stuff.


Alec

1. It was a long time ago so I don't remember the exact numbers, but my 
firefox compiling time went from ~15 minutes to ~10 minutes after 
switching from SSD to tmpfs for portage's workdir.




Re: [gentoo-user] Can I suppress the bleep when shutting down?

2015-10-20 Thread Alec Ten Harmsel



On 2015-10-20 12:10, Alan Mackenzie wrote:

Hello, Gentoo.

Every time I shut down my gentoo system with "shutdown -h now", it beeps
at me.  This is becoming steadily more irritating as the months go by.
Just what is this beep supposed to be telling me?  I _know_ I'm shutting
the machine down.


Eh, you may not know. What if someone is SSH'd in and shuts it down? 
Anyways, disabling this is always the first thing I do when I boot 
ArchLinux.




Can anybody here tell me how to disable this ing annoyance?


I am unfortunately on a Windows box and do not have access to Linux at 
the moment, but there is a kernel module - pcspkr - that causes this. 
You can remove this from your kernel config to prevent it from ever 
happening again. It is also possible to blacklist it, but I'm not sure 
how to do that since I only build in modules for my kernels that I may 
need/are useful.


To test right now, you can 'rmmod pcspkr' and try shutting down.

Alec



Re: [gentoo-user] pm-suspend problem

2015-10-12 Thread Alec Ten Harmsel
On Mon, Oct 12, 2015 at 05:46:00PM -0400, Philip Webb wrote:
> I want to be able to suspend my machine to RAM overnight or when I'm out.

Just curious, you don't need to answer: why? Why not just power it off
or lock it?

> The pkg to use seems to be Pm-utils, which I've installed.
> 'pm-suspend' does suspend, but only briefly :
> after  5 s , it restarts automatically & everything is back as before.
> The log file shows this happening quite clearly.
> 
> What am I doing wrong ?  Am I using the correct tool ?

What desktop environment are you using? OpenRC or systemd? Lastly, do
you have support for suspending to RAM compiled into the kernel?

If you are using a desktop environment, it should have the suspend
functionality built into it. If you are using systemd, it should be as
simple as a `systemctl suspend`.

Alec



Re: [gentoo-user] kernel panick in 4.2.1 from gentoo-sources

2015-10-08 Thread Alec Ten Harmsel
On Wed, Oct 07, 2015 at 10:12:28PM -0400, cov...@ccs.covici.com wrote:
> Rich Freeman  wrote:
> 
> > Gentoo-sources keywording tends to lag a bit, though I thought they
> > were going to change that.  I tend to just keep my own git clone of
> > the kernel tree and checkout from tags.
> 
> Do you bother with the gentoo patches?

I seem to recall the list having a discussion about gentoo-sources vs.
vanilla-sources a while ago, and I believe Rich doesn't use the gentoo
patches. It doesn't seem like he does, since just above he mentions that
he builds and runs kernels from a checkout of a git repo from
kernel.org.

> I have the kernel tree and none of the tags say longterm, do I have the
> wrong tree or  something?The url I have is
> git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

The stable tree is
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git.
Only X.Y tags go into Linus' git repo, not X.Y.Z. When they switched
from version 2 to version 3, the numbering scheme changed a bit. Any
kernel version with a third version number is either stable or long
term, and if the last number in the version is more than 8 or 10, it is
probably going to be a long term kernel.

This is pretty much the rationale that I use for updating - as soon as a
kernel version higher than the one I'm currently running has the last
number in the version hit 8 or 10, I upgrade.

Alec



Re: [gentoo-user] ffmpeg cpu flags

2015-10-04 Thread Alec Ten Harmsel
On Mon, Oct 05, 2015 at 12:38:15AM +0200, Alan McKinnon wrote:
> On 04/10/2015 22:49, James Cloos wrote:
> > 
> > And is there really any value from micromanaging things like that in an
> > ebuild?
> 
> For ffmpeg? Yes.

Actually, I think modern versions of ffmpeg probably do not benefit as
much anymore. The `cpudetection' USE flag makes me think ffmpeg uses
the CPUID instruction to determine which x86 extensions are available,
and loads the appropriate code. This would enable Ubuntu et. al. to
build ffmpeg with all the high performance code compiled, and still be
compatible with all CPUs. I do not know if that is 100% true, but having
a `cpudetection' USE flag makes me assume that's how it works. More on
this here, which is the top of list when I searched "ffmpeg cpu
detection" [1].

> I imagine users who rely on will be mighty upset if the
> ebuild did not offer those flags. By way of example, many folks here
> have reported their own experience over the years that a given cpu with
> a standard Ubuntu i586 or so install struggles to keep up with a video.
> The same hardware running the same software on Gentoo with sane options
> and USE easily manages. That's the difference between managing and not
> managing such things in areas where it matters.

For plenty of packages, such as fftw, this is a huge benefit. fftw does
not have a `cpudetection' USE flag, so I would assume that sse, avx,
etc. must be determined at build time and can't be changed at runtime.

Alec

1. http://ffmpeg.org/pipermail/ffmpeg-devel/2012-September/131550.html



Re: [gentoo-user] Anyone using kernel 4.1.8 in a virtualbox guest machine?

2015-10-04 Thread Alec Ten Harmsel
On Sun, Oct 04, 2015 at 05:47:37PM -0700, walt wrote:
> (I'm asking this question only because I'm curious about the problem I'm
> about to describe.  I've already worked around it.)
> 
> I updated the kernel in my gentoo virtualbox guest machine to 4.1.8 and
> got a kernel panic after rebooting the guest.  (The panic was in the
> guest machine, not the host machine.  Has anyone noticed how ambiguous
> our English language is?)
> 
> Anyway, I rebooted the guest machine with vmlinuz.old (3.18.21) and
> then updated the guest to vanilla-sources-4.2.3 with no problems.
> 
> (I omit several hours of confused reconfiguring/recompiling/rebooting
> because you really don't want to hear about them.)
> 
> So, what is different or strange about kernel 4.1.8?  Anyone have any
> problems with it on real hardware, or in other virtual environments
> like qemu, vmware, xen, etc?
> 

I am running 4.1.8 on all my machines without any problems. Without
seeing the stack trace and/or other output from the kernel panic, I
would have no idea how to figure out what the problem was. I am also not
a kernel wizard, so I probably wouldn't be much help anyways.

Alec



Re: [gentoo-user] FF increasingly being bundled up

2015-10-03 Thread Alec Ten Harmsel
On Sat, Oct 03, 2015 at 10:57:47AM +0100, Mick wrote:
> 
> Have you found that using local system flags causes rebuilds of FF more 
> often?  
> I seem to build or rebuild FF every couple of weeks, but I would not want to 
> have to rebuild it more often.
> 

I have been using all the system-* flags as long as I can remember. I
can't remember the last time that I rebuilt firefox for a reason other
than a version update or I had directly changed its USE flags. I usually
update weekly, so I see firefox rebuilds probably once a month or a
little less frequently on average.

Alec



Re: [gentoo-user] FF increasingly being bundled up

2015-10-03 Thread Alec Ten Harmsel
On Sat, Oct 03, 2015 at 10:15:08AM +0100, Mick wrote:
> Hi All,
> 
> I happened to notice that Firefox is having more and more USE flags for using 
> system-side rather than bundled in libraries:
> 
> ...
>
> However, such libraries are not enabled by default and FF will be downloading 
> 177,578 KiB of sources.  A couple of questions:
> 
> - Will FF be downloading less if the system side USE flags are enabled?

As far as I can tell, the same tarball is downloaded no matter which
system-* USE flags you set. The ebuild tells the build system to use the
system stuff.

> - What are the benefits or disbenefits of enabling them?

Enabling the use of system libraries could make Firefox unstable, since
the FF developers may have patched the bundled libs. It will also save
compile time, although compared to FF itself, most of the libs that can
be prevented from bundling have short compile times.

For me, personally, disabling those USE flags and using bundled libs
represents some sort of idealogical loss since I view bundling libraries
as a cop out solution. This may or may not matter to you.

Alec



Re: [gentoo-user] update problems

2015-09-28 Thread Alec Ten Harmsel
On Tue, Sep 29, 2015 at 12:52:41AM +0200, lee wrote:
>
> Alan McKinnon  writes:
> 
> > On 27/09/2015 21:17, lee wrote:
> >
> > Fellow, I'm done with you, really.
> >
> > You hold onto your issues with portage like they were some treasured
> > memory of a long-since departed loved one, while all the time apparently
> > ignoring the correct valid solutions offeered by kind folks on this list.
> >
> > Let it go. The devs know about portage output. I don't see you
> > submitting patches though.
> 
> You ran out of arguments and remain at insisting that the problem is
> known and cannot be fixed because it's too complicated while rejecting
> suggestions but asking for patches.  So I have no reason to think that
> patches would be any more welcome than suggestions, and now even if you
> came up with some pointer what to look at (since emerge, for example, is
> a wrapper script from which I couldn't see where to start), I wouldn't
> waste my time with it.  Congratulations.
> 

Someone (I can't remember who, probably Rich Freeman or some other dev)
described a problem with the general process of fixing the portage
output a while ago. I believe the steps went something like this:

1. Think the portage output sucks
2. Learn what the output means
3. Lose all motivation to improve the output because it is no longer
   necessary for you

The portage output is not as good as it could be, but everyone with the
knowledge to fix it doesn't because they neither care (because they
understand it) *nor* are they being paid.

In my opinion, the portage output is not that bad, in the same way that
gcc's error messages are not that bad. They can be difficult to get used
to and some of them are absolutely ridiculous, but after using gcc for a
while they almost always make sense and are precise.

Alec



Re: [gentoo-user] Why ghc-bin is pulled in by portage update?

2015-09-24 Thread Alec Ten Harmsel
On Thu, Sep 24, 2015 at 02:27:43PM +0300, gevisz wrote:
> I have dev-lang/ghc in my world file.
> 
> Today, while updating the system, the portage
> wanted to update it. Ok. But why it pulles in
> ghc-bin-7.8.4-amd64.tbz2?

Like all good language authors, the ghc authors wrote a lot of the
language and toolchain in Haskell, so you need a Haskell compiler to
compile ghc.

> >>> Downloading 
> >>> 'http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2'
> --2015-09-24 14:12:02--
> http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2
> Resolving mirror.netcologne.de... 194.8.197.22, 2001:4dd0:1234:1::deb
> Connecting to mirror.netcologne.de|194.8.197.22|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 100573133 (96M) [application/octet-stream]
> Saving to: '/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2'
> 
> /usr/portage/distfi 100%[=>]  95.91M   193KB/s   in 9m 54s
> 
> 2015-09-24 14:21:56 (165 KB/s) -
> '/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2' saved
> [100573133/100573133]
> 

There is a 'ghcbootstrap' USE flag that you can set to use your locally
installed ghc to build the new ghc.

Alec



Re: [gentoo-user] Re: new machine : case + power

2015-09-17 Thread Alec Ten Harmsel
On Thu, Sep 17, 2015 at 03:36:18PM +0200, Alan McKinnon wrote:
> I have yet to see a computer that draws 350W sustained :-)
> Spikes of brief duration yes, sustained no.[1]

Normal desktops and web servers, sure. We have some GPU boxes at work
that have 8 GPUs apiece[1] in addition to 12-20 cores. They pull just a
bit more than 350W ;).

Alec

[1] http://arc-ts.umich.edu/flux/flux-configuration/#gpus



Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Alec Ten Harmsel
On Thu, Sep 17, 2015 at 09:24:39PM +0200, Alan McKinnon wrote:
> On 17/09/2015 20:50, Michael Orlitzky wrote:
> > On 09/17/2015 10:03 AM, Alan McKinnon wrote:
> >> Anyone here familiar with driving nodejs and npm?
> >>
> >> I'm trying to write an ebuild for a musicbrainz mirror server and "npm
> >> install" keeps erroring out with one of two errors:

Haha, npm. First time I ever ran npm, it required 3 runs before it
actually managed to fetch all the dependencies. Hopefully it's better
now.

> > 
> > 2) The right way to do it is to use an eclass and install all of the
> > dependencies using separate packages. As you can imagine, this is a
> > nightmare if you have more than a few dependencies (looks like you do).
> 
> Errr, no :-)
> 
> g-cpan is bad enough and those ebuilds are mostly template-able. At
> least CPAN modules mostly respond correctly to make && make install.
> That node stuff doesn't look like it will ever package sanely.

Unfortunately, the right way with nodejs/ruby web stuff is to use the
tooling specific to the language. If this[1] is what you're trying to
deploy, I feel sorry.

If I was serious about deploying this, I would:

1. Fork the repo and add a remote on my own server
2. Add your custom configuration
3. Write a small shell script that
  1. Runs `git pull` from your own infrastructure
  2. Installs perl/node deps locally
  3. Runs the gulp build
  4. Runs plackup
4. Add an init script that runs that start script

This sucks, but it seems to be the way a lot of web stuff is deployed
these days.

Hope this helps,

Alec

[1] https://github.com/metabrainz/musicbrainz-server



Re: [gentoo-user] npm: ERR! cb() never called!

2015-09-17 Thread Alec Ten Harmsel
On Thu, Sep 17, 2015 at 11:13:10PM +0200, Alan McKinnon wrote:
> On 17/09/2015 22:53, Alec Ten Harmsel wrote:
> > Unfortunately, the right way with nodejs/ruby web stuff is to use the
> > tooling specific to the language. If this[1] is what you're trying to
> > deploy, I feel sorry.
> 
> Yes, that's the one

Yay, perl, perl6, and JS. All at the same time.

> > 
> > If I was serious about deploying this, I would:
> > 
> > 1. Fork the repo and add a remote on my own server
> > 2. Add your custom configuration
> > 3. Write a small shell script that
> >   1. Runs `git pull` from your own infrastructure
> >   2. Installs perl/node deps locally
> >   3. Runs the gulp build
> >   4. Runs plackup
> > 4. Add an init script that runs that start script
> 
> I followed that mostly except for forking the repo and writing a small
> shell script - I much prefer proper ebuilds to hacky scripts. Even
> though I'm a Linux sysadmin I hate ad-hoc shell scripts with a passion

I am the same way; I do not like shell scripts. Anything longer than 15
lines or so is written in Ruby, other than my firewall setup script.

I'm not proud of myself for suggesting what I did; just trying to
minimize your pain. Another option could be something along the lines
of:

1. ebuild installs files to `/var/musicbrainz` or wherever
2. Add a small shell script to `/var/musicbrainz` or wherever that:
  1. Installs perl/node deps locally
  2. Runs the gulp build
  3. Runs plackup
3. Add an init script that runs that start script

I guess, since you're not developing musicbrainz thingy, that the git
repo was a bit of overkill.

> > This sucks, but it seems to be the way a lot of web stuff is deployed
> > these days.

All these dynamic languages suffer from the fun problem that developers
that don't write enough tests have essentially no guarantee that their
code actually parses. I can't count how many times I've run Ruby,
Python, or Bash scripts only to have 'variable not found' or type
errors; all of the things that compilers do really well[1].

One of the things that results from this (IMO) is that they bundle
deps/enforce strict versions on stuff because they have to just to run
stuff. For example, a while ago www-apps/jekyll was broken because a gem
it depended on happened to be a newer version and changed the API enough
that jekyll broke. To be fair to the Gentoo developers, jekyll is
~amd64, so I didn't really care.

Alec

[1] For example, below are two *valid* files; one Python, one Ruby. Both
would obviously fail to compile if it was transposed to C/C++/Java, for
good reason.

#!/usr/bin/env ruby
if false
  puts hey
else
  puts 'hey'
end


#!/usr/bin/env python
if False:
print(hey)
else:
print('hey')



Re: [gentoo-user] app-office/libreoffice-5.0.1.2 - fails

2015-09-14 Thread Alec Ten Harmsel
On Mon, Sep 14, 2015 at 11:25:52PM +0200, Stefan G. Weichinger wrote:
> 
> can't emerge that new unstable libreoffice
> 
> updated everything(?) possibly needed, used stable gcc ... no way.

Hmm... I don't keep up with LibreOffice development, but I have been
running into problems with gcc 4.8 (on ubuntu/centos) compiling some
code making heavy use of C++11 and C++14. Not sure if LibreOffice uses
C++11/C++14 though.

> I don't want to spam the list with the build.log and I can't find a
> matching bug at b.g.o.

The build log (or at least the relevant portion of it) is pretty
necessary.

Alec



Re: [gentoo-user] audacity-2.0.5 failed to compile

2015-09-03 Thread Alec Ten Harmsel
On Thu, Sep 03, 2015 at 04:27:26PM +0200, Alan McKinnon wrote:
> On 03/09/2015 15:56, the...@sys-concept.com wrote:
> > dev-libs/check
> > dev-libs/libnl
> > dev-libs/openssl
> 
> remove everything in dev-libs

Not necessarily - dev-libs/check is for unit testing. It's not a direct
dependency of any packages (or at least, shouldn't be), but it comes in
useful for developers. It's in my world.

Alec



Re: [gentoo-user] audacity-2.0.5 failed to compile

2015-09-03 Thread Alec Ten Harmsel
On Wed, Sep 02, 2015 at 08:52:22PM +0200, Andreas K. Huettel wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
> 
> On Wednesday 02 September 2015 03:22:44 Alec Ten Harmsel wrote:
> 
> > > This kind of language does not belong here. If you can not refrain
> > > yourself making sarcastic remarks don't make any comments.
> > 
> > This language occasionally belongs on this list.
> > 
> 
> No. 
> 
> I would like to respectfully point you to the Gentoo Code of Conduct:
> https://wiki.gentoo.org/wiki/Project:Council/Code_of_conduct

Interesting, I have never seen that before. Is it possible to get that
linked to on the mailing list page[1]?

Alec

[1] https://gentoo.org/get-involved/mailing-lists/



Re: [gentoo-user] audacity-2.0.5 failed to compile

2015-09-03 Thread Alec Ten Harmsel
On Wed, Sep 02, 2015 at 02:25:47PM -0600, the...@sys-concept.com wrote:
> I've tried to post a "log" file to the http://pastebin.com/ you
> suggested but I can only paste the limited size file (not upload it).
> Since the txt file is 7.4Mb in size, I can not paste it.
> Though, I have compress the file as tar.gz (so it is only 267kB)
> here is the link:
> 
> http://www.sysconcept.ca/audacity_error.tar.gz
> 
> If somebody whats to look at it, I appreciate it.
> Meanwhile, I'll be following other folks suggestion and see if I can get
> a positive result to this error.
> 
> Thelma

I tried to download it but got a 403 Forbidden HTTP error.

This might be a bad suggestion, but if you have a lot of time, it might
be easier to uninstall audacity and any other packages that have been
giving you problems, then `emerge -uDN --with-bdeps=y @world`, then
`emerge --depclean', and then install all the stuff you need.

I believe someone else mentioned checking /var/lib/portage/world and
making sure that it doesn't contain any virtuals - it might also be good
to remove from it any software that you do not directly need.

Alec



Re: [gentoo-user] audacity-2.0.5 failed to compile

2015-09-01 Thread Alec Ten Harmsel
On Tue, Sep 01, 2015 at 05:05:09PM -0600, the...@sys-concept.com wrote:
> On 09/01/2015 04:55 PM, Fernando Rodriguez wrote:
> > Since you're too stupid to follow advice, you need to rebuild *EVERYTHING* 
> > that linked against libjpeg (in this case x11-libs/wxGTK).
> 
> This kind of language does not belong here. If you can not refrain
> yourself making sarcastic remarks don't make any comments.

This language occasionally belongs on this list.

> I would appreciate you stop reading my posts at all.
> I don't belong to Gentoo community.

OK. Maybe we all got off on the wrong foot here. When you ask for help,
can you please provide:

* the *exact* command you ran
* the output of `emerge --info'
* the whole error, not just the part you think is relevant

It is incredibly difficult for us to help when we only get a small piece
of what's going on with your system.

Alec



Re: [gentoo-user] texlive-core - poppler / xpdf missing library

2015-09-01 Thread Alec Ten Harmsel
On Tue, Sep 01, 2015 at 07:47:56AM -0600, the...@sys-concept.com wrote:
> I'm emerging texlive-core and it complains on missing libraries:
>
> 
>
> emerge -1q luatex texlive-core
> [ebuild  N] dev-tex/luatex-0.70.1-r2 
> [ebuild U ] app-text/texlive-core-2014-r4 [2012-r1]
> [blocks B ]  (" [blocks B ] dev-tex/luatex ("dev-tex/luatex" is blocking 
> app-text/texlive-core-2014-r4)

texlive-core needs to be updated, not installed with --oneshot. Can you
try running `emerge --update --newuse --deep --with-bdeps=y @world'?

Alec



Re: [gentoo-user] Failed to set XATTR_PAX markings

2015-08-31 Thread Alec Ten Harmsel
On Mon, Aug 31, 2015 at 10:36:02AM -0600, the...@sys-concept.com wrote:
> While compiling/updating the system I get a few packages with messages:
> 
> LOG: install
> Failed to set XATTR_PAX markings -me 
> /var/tmp/portage/app-emulation/virtualbox-bin-4.3.28.100309/image//opt/VirtualBox/VBoxManage.
> Failed to set XATTR_PAX markings -me 
> /var/tmp/portage/app-emulation/virtualbox-bin-4.3.28.100309/image//opt/VirtualBox/VBoxSVC.
> Failed to set XATTR_PAX markings -me 
> /var/tmp/portage/app-emulation/virtualbox-bin-4.3.28.100309/image//opt/VirtualBox/VBoxXPCOMIPCD.
> Failed to set XATTR_PAX markings -me 
> /var/tmp/portage/app-emulation/virtualbox-bin-4.3.28.100309/image//opt/VirtualBox/VBoxTunctl.
> 
> Failed to set XATTR_PAX markings -me python.
> etc.
> 
> What does it mean?

It looks like you're running Gentoo Hardened. It looks like (from a
cursory read of https://wiki.gentoo.org/wiki/Hardened/PaX_Quickstart)
that your filesystem may not support extended attributes. What type of
filesystem is /var/tmp mounted on?

Other info like the output of `emerge --info', what kernel you're
running, and what profile you're on would be helpful.

I personally do not run Hardened, so take this with a grain of salt.

Alec



Re: [gentoo-user] a few blockers I can't figure out

2015-08-31 Thread Alec Ten Harmsel
On Mon, Aug 31, 2015 at 02:40:02PM +0200, Alan McKinnon wrote:
> On 31/08/2015 13:49, cov...@ccs.covici.com wrote:
> >> A clue is in the ebuilds for systemd:
> >> > 
> >> > sysv-utils? (
> >> > !sys-apps/systemd-sysv-utils
> >> > !sys-apps/sysvinit )
> >> > 
> >> > That's a hard blocker, no way round it. It's in all the systemd ebuilds
> >> > for the current unstable versions.
> >> > 
> >> > Do you have USE="sysv-utils" set for sysvinit?
> >> > 
> >> > If so, to have both sysvinit and systemd, you will have to disable that
> >> > USE flag and see what comes next.
> > I put that use flag in there because I thought it would allow systemd to
> > generate a service from a script in /etc/init.d, but I will see what
> > happens when I remove that flag or maybe if there is another way to
> > accomplish that?
> > Well, that did it!  It still is downgrading systemd, but that's not too
> > bad, thanks guys.
> 
> $ euses -sf sysv-utils
> sys-apps/systemd:sysv-utils - Install sysvinit compatibility symlinks
> and manpages for init, telinit, halt, poweroff, reboot, runlevel, and
> shutdown
> 
> 
> That description is quite vague, and could mean many things. I'm no
> expert on systemd, but I would imagine that it already has it's own
> scripts to deal with those listed functions. I wonder what the use of
> the flag is then? Perhaps an old compatibility layer than is not needed now?

This means that it installs /bin/poweroff, /bin/reboot, etc. and the
relevant manpages. I'm pretty sure that's all it does.

It is not needed at all, as long as you don't mind typing `systemctl
poweroff' instead of `poweroff', and so on and so forth. I guess the
/bin/init symlink would be helpful so that you don't have to add
`init=/usr/lib/systemd/systemd' to the kernel commandline, but whatever.

Alec



Re: [gentoo-user] system uptime

2015-08-30 Thread Alec Ten Harmsel
On Sun, Aug 30, 2015 at 12:04:43AM -0400, Philip Webb wrote:
 How long do desktop users typically leave their systems between reboots ?
 How long between power off/on's ?

I generally power off whenever I won't be using my desktop for more than
7-8 hours, since it has a big CPU, lots of RAM, decent GPU, etc. and
hence draws a lot of idle power. So usually the most uptime I get on it
is around 2 or 3 days.

Alec



Re: [gentoo-user] emerge --oneshot portage - conflict

2015-08-29 Thread Alec Ten Harmsel
On Sat, Aug 29, 2015 at 02:02:29PM -0600, neu pat wrote:
 I emerge python3.4 set as active:
 
 eselect python list
 Available Python interpreters:
   [1]   python2.7
   [2]   python3.3
   [3]   python3.4 *

What is the value of PYTHON_TARGETS? Can you post the output of `emerge
--info'?

 but it still complain
 
 
 [ebuild U  ] sys-apps/portage-2.2.20.1 [2.2.14]
 PYTHON_TARGETS=python3_4* -python3_3*
 
 !!! Multiple package instances within a single package slot have been
 pulled
 !!! into the dependency graph, resulting in a slot conflict:
 
 sys-apps/portage:0
 
   (sys-apps/portage-2.2.20.1:0/0::gentoo, ebuild scheduled for merge)
 pulled in by
 sys-apps/portage (Argument)
 
   (sys-apps/portage-2.2.14:0/0::gentoo, installed) pulled in by
 
 sys-apps/portage[python_targets_python2_7(-)?,python_targets_python3_3(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-)]
 required by (app-admin/webapp-config-1.52-r1:0/0::gentoo, installed)
 
 
 
 
 
 sys-apps/portage[python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)]
 required by (app-portage/gentoolkit-0.3.0.9-r2:0/0::gentoo, installed)
 
 What is it looking for?

It looks like webapp-config is not compatible with python 3.4. As far as
I can tell, here's what's going on:

 sys-apps/portage[python_targets_python2_7(-)?,python_targets_python3_3(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-)]
 required by (app-admin/webapp-config-1.52-r1:0/0::gentoo, installed)

The above shows that webapp-config is pulling in portage built for
python 2.7 and 3.3.

 sys-apps/portage[python_targets_python2_7(-)?,python_targets_python3_3(-)?,python_targets_python3_4(-)?,python_targets_pypy(-)?,-python_single_target_python2_7(-),-python_single_target_python3_3(-),-python_single_target_python3_4(-),-python_single_target_pypy(-)]
 required by (app-portage/gentoolkit-0.3.0.9-r2:0/0::gentoo, installed)

This snippet shows that gentoolkit is pulling in portage built for
python 2.7, 3.3, and 3.4.

Since PYTHON_TARGETS is handled as USE flags, the incompatible sets of
USE flags collide. There are a couple of solutions:

* Set PYTHON_TARGETS=python2_7 python3_3
* Unset PYTHON_TARGETS and let it have its default value (which is the
  above
* Uninstall webapp-config or upgrade to the unstable version, which
  appears to support python 3.4

Alec



Re: [gentoo-user] curses of ncurses :(

2015-08-28 Thread Alec Ten Harmsel
On Fri, Aug 28, 2015 at 12:34:05PM +0300, gevisz wrote:
 Yes, the full system update now proceeded without blocks, however
 with severe warnings while compiling firefox. They are provided below.
 But the issue with ncurces blocks seem to be resolved.
 
 Thank you all who replied to this thread.
 
  Completed installing firefox-38.2.0 into 
  /var/tmp/portage/www-client/firefox-38.2.0/image/
 
  * QA Notice: Package triggers severe warnings which indicate that it
  *may exhibit random runtime failures.
  * 
 /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/intl/icu/source/i18n/ucol_bld.cpp:807:40:
 warning: array subscript is above array bounds [-Warray-bounds]
  * 
 /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/intl/icu/source/i18n/ucol_wgt.cpp:267:57:
 warning: array subscript is below array bounds [-Warray-bounds]
  * 
 /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/intl/icu/source/i18n/ucol_wgt.cpp:267:37:
 warning: array subscript is below array bounds [-Warray-bounds]
  * 
 /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/intl/icu/source/i18n/ucol_wgt.cpp:267:57:
 warning: array subscript is below array bounds [-Warray-bounds]
  * 
 /var/tmp/portage/www-client/firefox-38.2.0/work/mozilla-esr38/intl/icu/source/i18n/ucol_wgt.cpp:267:37:
 warning: array subscript is below array bounds [-Warray-bounds]
 
  * Please do not file a Gentoo bug and instead report the above QA
  * issues directly to the upstream developers of this software.
  * Homepage: http://www.mozilla.com/firefox

This is not a problem related to ncurses - just warnings that gcc
printed during the compile process that developers should actually pay
attention to and fix.

Alec



  1   2   3   >