[gentoo-user] Blocked packages

2014-05-22 Thread Zoltán Kócsi
Hi,

I'm fairly new to Gentoo and I have a blocking issue which I don't
really understand.

I want to install some packages with docs but emerge tells me that it
can't do that. Quite interestingly it complains about blocked packages.

One of them is openrc and the other is linux-util. I don't want to
delete either one, and wisely so, because even emerge tells me that
they are part of my system profile and should not be deleted.

Now the actual questions I have are the following:

- Why does emerge complain about blocking packages when I want to
  recompile a few *other* packages, already on the system and all I
  want is their documentation created?

- If those two packages do indeed block each other, why are they in my
  system profile, which was set up by Gentoo itself when I installed
  the system?

- If they block each other, how did both get installed on the machine?

- Why do they block each other? As far as I could see, they are not
  clashing, one is a SysV type init scripts and the 'rc' binary and the
  other is all sorts of utilities and system management stuff.

Thanks,

Zoltan



Re: [gentoo-user] maintenance

2014-05-22 Thread Tuomo Hartikainen
On 140522 0851, William Kenworthy wrote:
 Last year there was an enormous thread on how to maintain  gentoo system
 (portage tools etc) - was this ever summarised anywhere?
 
 BillK

Was it this one? http://thread.gmane.org/gmane.linux.gentoo.user/261836
-- 
Tuomo Hartikainen


signature.asc
Description: Digital signature


Re: [gentoo-user] Use Flags and Updating

2014-05-22 Thread Marc Joliet
Am Wed, 21 May 2014 23:11:02 -0400
schrieb Rich Freeman ri...@gentoo.org:

 On Wed, May 21, 2014 at 10:10 PM,  ny6...@gmail.com wrote:
  I run a script that syncs portage, updates @world, depcleans, revdep-rebuild
  and finally runs dispatch-conf -- about once weekly. Keeps my system in fine
  trim. :)
 
 This one is a gem - I forget where I saw it (likely planet, but maybe
 it was on a list).  Stick it in your crontab.  I will warn you that
 sometimes it chokes on its own output and obviously it can't build
 binpkgs for anything more than one step down the dependency tree.
 However, when my weekly chromium build runs at 2AM and I can just
 install it (with -k) the next morning it is a nice thing indeed.  You
 still get full control over USE flags/etc, but most of the convenience
 of a binary distro.
 
 #!/bin/sh
 
 LIST=$(mktemp);
 
 emerge -puD --changed-use --color=n --columns --quiet=y --with-bdeps=y
 world | awk '{print $2}'  ${LIST};
 
 for PACKAGE in $(cat ${LIST});
 do
   printf Building binary package for ${PACKAGE}... 
   emerge -uN --quiet-build --quiet=y --buildpkgonly ${PACKAGE};
   if [[ $? -eq 0 ]];
   then
 echo ok;
   else
 echo failed;
   fi
 done

I think nowadays one would prefer --keep-going, which automatically resumes on
failure (and recomputes the dependency tree!), and prints a list of failed
packages when it's finished. However its output is more verbose than just ok
and failed (it'll print the build.log if it's only one package, IIRC).

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


signature.asc
Description: PGP signature


Re: [gentoo-user] Only 4 of 8 GB usable

2014-05-22 Thread covici
Dale rdalek1...@gmail.com wrote:

 wraeth wrote:
 
 
  On 22/05/14 07:37, Alex Schuster wrote:
   Does this ring any bells? I'm out of ideas. Except than pulling out
 the 4
   GB, or trying another mainboard.
 
  Just a quick suggestion to help rule it out: try booting a LiveCD or other
  one-size-fits-most medium and seeing if your full memory is registering
  there. If it is, then it's not a hardware malfunction; if it doesn't, then
  either you've got bad hardware or a configuration issue in your BIOS.
 
  cheers
  wraeth
 
 
 Isn't there a kernel setting that cuts off after 4GBs or something?  I
 seem to recall having to turn that on at some point.  I would think this
 would be on by default but . . . .

Make sure you are really running a 64-bit kernel!  Sure seems like you
are not to me, but there may be other things.


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Only 4 of 8 GB usable

2014-05-22 Thread Daniel Troeder
Am 21.05.2014 23:37, schrieb Alex Schuster:
 Hi there!
 
 So I installed another 4 GiB RAM into a Gentoo amd64 system that had 4 GiB
 already. But it still sees only 4 GiB, not 8 GiB:
 
 leela ~ # uname -a
 Linux leela 3.6.11-gentoo #3 SMP Mon Feb 4 15:37:48 CET 2013 x86_64 AMD
 A6-3500 APU with Radeon(tm) HD Graphics AuthenticAMD GNU/Linux 
 
 leela ~ #
 free -m total   used   free sharedbuffers cached
 Mem:  3688   3269419  0108   1050
 -/+ buffers/cache:   2110   1577
 Swap: 2047 54   1993
 
 Huh? Any idea why this is? The BIOS shows the full 8GiB, and lshw finds
 it. dmidecode shows that 8G should work:
 
 leela ~ # dmidecode -t 16
 # dmidecode 2.11
 SMBIOS 2.7 present.
 
 Handle 0x0008, DMI type 16, 23 bytes
 Physical Memory Array
 Location: System Board Or Motherboard
 Use: System Memory
 Error Correction Type: None
 Maximum Capacity: 8 GB
 Error Information Handle: Not Provided
 Number Of Devices: 2
 
 In case this helps, I uploaded the outputs of dmesg [1], lshw -c memory
 [2] and full dmidecode output [3]. The dmesg output is somewhat weird
 though, it has several 'vmalloc: allocation failure: 0 bytes' entries. I
 suspected those were causing the problem, but I found that I needed to
 activate CONFIG_KALLSYMS=y, and they are gone. But still only 4 GiB RAM.
 The system is using an old kernel right now, so I cannot get the current
 dmesg, sorry for this.
 
 Probably related: Since I inserted this 2nd RAM module, wakeup
 from hibernate-ram does no longer work.
 
 Does this ring any bells? I'm out of ideas. Except than pulling out the 4
 GB, or trying another mainboard.
 
 [1] http://www.wonkology.org/tmp/lshw.txt
 [2] http://www.wonkology.org/tmp/dmesg.txt
 [3] http://www.wonkology.org/tmp/dmidecode.txt
 
   Wonko
 
To be sure, that the new RAM isn't broken, try booting with only the new
RAM inserted in the 1st slot. If it works, insert the old RAM into the
2nd slot and see if the problem persists.

Good luck
Daniel


-- 
Get my PGP key at:
*
http://keyserver.ubuntu.com:11371/pks/lookup?op=getsearch=0x837FB8B5BB9D4887
* $ gpg --recv-keys --keyserver keyserver.ubuntu.com 0xBB9D4887



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Blocked packages

2014-05-22 Thread J. Roeleveld
On Thursday, May 22, 2014 05:08:17 PM Zoltán Kócsi wrote:
 Hi,
 
 I'm fairly new to Gentoo and I have a blocking issue which I don't
 really understand.
 
 I want to install some packages with docs but emerge tells me that it
 can't do that. Quite interestingly it complains about blocked packages.
 
 One of them is openrc and the other is linux-util. I don't want to
 delete either one, and wisely so, because even emerge tells me that
 they are part of my system profile and should not be deleted.
 
 Now the actual questions I have are the following:
 
 - Why does emerge complain about blocking packages when I want to
   recompile a few *other* packages, already on the system and all I
   want is their documentation created?
 
 - If those two packages do indeed block each other, why are they in my
   system profile, which was set up by Gentoo itself when I installed
   the system?
 
 - If they block each other, how did both get installed on the machine?
 
 - Why do they block each other? As far as I could see, they are not
   clashing, one is a SysV type init scripts and the 'rc' binary and the
   other is all sorts of utilities and system management stuff.
 
 Thanks,
 
 Zoltan

Can you send the actual emerge-output you are seeing along with the full 
emerge-command you are issuing?

Many thanks,

Joost



[gentoo-user] systemd seems to have broken logwatch

2014-05-22 Thread covici
Hi.  I am having a strange problem running under systemd since Monday.
I use logwatch to get nice summaries of things going on in the system,
it gives me once a day summaries of such things.  When running under
openrc, I used to get a summary of sshd activity, so I could see the
failed logins and the users that actually logged in via ssh.  I was
using the sysklogd package and am still using it, although I had to
listen on a different socket.  But now the sshd entries are totally gone
and I wonder how to get them back?For instance, I am no longer
getting the accepted public key messages anywhere.

Thanks in advance for any suggestions.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Only 4 of 8 GB usable

2014-05-22 Thread Neil Bothwick
On Wed, 21 May 2014 20:38:15 -0500, Dale wrote:

 Isn't there a kernel setting that cuts off after 4GBs or something?  I
 seem to recall having to turn that on at some point.  I would think this
 would be on by default but . . . .

That's only in 32 bit kernels AFAIR. The live CD idea is a good one, also
run memtest86+ to make sure the RAM is not only seen but working.


-- 
Neil Bothwick

I have seen things you lusers would not believe.
I've seen Sun monitors on fire off the side of the multimedia lab.
I've seen NTU lights glitter in the dark near the Mail Gate.
All these things will be lost in time, like the root partition last week.
Time to die.


signature.asc
Description: PGP signature


Re: [gentoo-user] systemd seems to have broken logwatch

2014-05-22 Thread Neil Bothwick
On Thu, 22 May 2014 04:54:45 -0400, cov...@ccs.covici.com wrote:

 Hi.  I am having a strange problem running under systemd since Monday.
 I use logwatch to get nice summaries of things going on in the system,
 it gives me once a day summaries of such things.  When running under
 openrc, I used to get a summary of sshd activity, so I could see the
 failed logins and the users that actually logged in via ssh.  I was
 using the sysklogd package and am still using it, although I had to
 listen on a different socket.  But now the sshd entries are totally gone
 and I wonder how to get them back?For instance, I am no longer
 getting the accepted public key messages anywhere.

I use syslog-ng with systemd and logcheck still show reports for sshd, so
this may be specific to sysklogd.


-- 
Neil Bothwick

Electricians DO IT until it Hz...


signature.asc
Description: PGP signature


Re: [gentoo-user] Only 4 of 8 GB usable

2014-05-22 Thread Dale
Neil Bothwick wrote:
 On Wed, 21 May 2014 20:38:15 -0500, Dale wrote:

 Isn't there a kernel setting that cuts off after 4GBs or something?  I
 seem to recall having to turn that on at some point.  I would think this
 would be on by default but . . . .
 That's only in 32 bit kernels AFAIR. The live CD idea is a good one, also
 run memtest86+ to make sure the RAM is not only seen but working.




Could be.  I can't recall if it was on my new rig or my older rig that I
had to do that on.  Old age and got to much stuff going on. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Blocked packages

2014-05-22 Thread Amankwah
On Thu, May 22, 2014 at 07:10:40PM +1000, Zoltán Kócsi wrote:
 On Thu, 22 May 2014 10:23:27 +0200
 J. Roeleveld jo...@antarean.org wrote:
 
   I want to install some packages with docs but emerge tells me that
   it can't do that. Quite interestingly it complains about blocked
   packages.
   [...]
  
  Can you send the actual emerge-output you are seeing along with the
  full emerge-command you are issuing?
 
 No problem. Background:
 
 Empty machine, Gentoo installed from CD and stage3 tarball. It will be
 a server, so the 'hardened' profile was selected from the offered
 choices. A few packages (mailserver, bind, webserver, iptables etc) got
 installed. I want their documentation, so I added doc to their
 package specific USE flags in package.use.
 
 The USE in make.conf is
 
 USE=berkdb crypt ssl -ipv6
 
 and in package.use contains postfix, iptables, iproute2 and a few
 other similar packages, with the 'doc' flag and whatever else they
 needed for their actual function (e.g. postfix gets 'sasl' and 'mbox').
 
 Then, the command and the response:
 ---
 ~ # emerge --pretend --newuse @world
 
 These are the packages that would be merged, in order:
 
 Calculating dependencies... done!
 [ebuild  N ] sys-apps/paxctl-0.7-r2 
 [ebuild   R] net-misc/iputils-20121221  USE=-ipv6* 
 [ebuild   R] sys-process/psmisc-22.20  USE=-ipv6* 
 [ebuild   R] sys-devel/gcc-4.7.3-r1  USE=hardened* -fortran* 
 [ebuild   R] app-arch/gzip-1.5  USE=pic* 
 [ebuild   R] sys-apps/busybox-1.21.0  USE=-ipv6* 
 [ebuild  N ] dev-python/pypax-0.8.4  USE=ptpax xtpax
 PYTHON_TARGETS=python2_7 python3_3 (-pypy) (-python2_6)
 -python3_2 [ebuild  N ] sys-apps/elfix-0.8.4  USE=ptpax
 xtpax [ebuild   R] dev-tcltk/expect-5.44.1.15  USE=doc* [ebuild
 NS] sys-boot/grub-2.00_p5107-r2 [0.97-r12] USE=multislot nls
 -custom-cflags -debug -device-mapper -doc -efiemu (-libzfs) -mount -sdl
 -static {-test} -truetype GRUB_PLATFORMS=-coreboot -efi-32 -efi-64
 -emu -ieee1275 -multiboot -pc -qemu -qemu-mips -yeeloong [ebuild
 U  ] sys-apps/util-linux-2.24.1-r2 [2.22.2] USE=pam%*
 -bash-completion% -caps% -cytune% -fdformat% -python% -tty-helpers%
 PYTHON_SINGLE_TARGET=python2_7%* -python3_2% -python3_3% (-python3_4)
 PYTHON_TARGETS=python2_7%* python3_3%* -python3_2%
 (-python3_4) [ebuild   R] net-misc/rsync-3.0.9-r3
 USE=-ipv6* [ebuild   R] net-misc/wget-1.14
 USE=-ipv6* [ebuild   R] net-libs/gnutls-2.12.23-r4
 USE=-bindist* [ebuild   R] app-admin/syslog-ng-3.4.7
 USE=-ipv6* [ebuild   R] net-misc/dhcpcd-6.2.0-r1
 USE=-ipv6* [blocks B  ] sys-apps/sysvinit-2.88-r7
 (sys-apps/sysvinit-2.88-r7 is blocking
 sys-apps/util-linux-2.24.1-r2) [blocks B  ]
 =sys-apps/util-linux-2.23 (=sys-apps/util-linux-2.23 is blocking
 sys-apps/sysvinit-2.88-r4)
 
  * Error: The above package list contains packages which cannot be
  * installed at the same time on the same system.
 
   (sys-apps/sysvinit-2.88-r4::gentoo, installed) pulled in by
 =sys-apps/sysvinit-2.86-r6 required by
   (sys-apps/openrc-0.12.4::gentoo, installed)
 
   (sys-apps/util-linux-2.24.1-r2::gentoo, ebuild scheduled for merge)
   pulled in by =sys-apps/util-linux-2.20 required by
   (sys-fs/udev-208::gentoo, installed) =sys-apps/util-linux-2.16
   required by (sys-fs/e2fsprogs-1.42.7::gentoo, installed)
   =sys-apps/util-linux-2.16 required by (x11-libs/libSM-1.2.2::gentoo,
   installed) sys-apps/util-linux required by @system
 
 
 For more information about Blocked Packages, please refer to the
 following section of the Gentoo Linux x86 Handbook (architecture is
 irrelevant):
 
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
 
 
  * IMPORTANT: 1 news items need reading for repository 'gentoo'.
  * Use eselect news to read news items.
 
 ---
 
 It is entirely possible that I'm, being a complete newbie on Gentoo
 made something stupid thing, so I'm not blaming the system, just looking
 for an explanation and possibly a solution.
 
 Thanks,
 
 Zoltan
 

*DO NOT* add the USE flag doc into you /etc/make.conf, That may cause
many unexpected conflict. Somebody had told me this several years
before.

If you need doc for any package, just add this flag int file
/etc/portage/package.use for the certain package.



Re: [gentoo-user] Blocked packages

2014-05-22 Thread Neil Bothwick
On Thu, 22 May 2014 19:10:40 +1000, Zoltán Kócsi wrote:

 Empty machine, Gentoo installed from CD and stage3 tarball. It will be
 a server, so the 'hardened' profile was selected from the offered
 choices. A few packages (mailserver, bind, webserver, iptables etc) got
 installed. I want their documentation, so I added doc to their
 package specific USE flags in package.use.

Atandard documentation: READMEs, manpages, info pages, is installed by
default. The doc flag enables extra documentation for developers. This
often needs to be built from the sources, and thus requires extra tools.
These often cause blocks, however, it does not appear that the doc flag
is at fault here. You have changed other flags, such as ipv6, so the
advice is to make such sweeping USE flag changes one at a time. This
often avoids the problem and otherwise makes it easier to see.

the output you posted is hard to read because your mailer wrapped it but
it may be that updating sysvinit manually first will clear it.

emerge -1a sysvinit


-- 
Neil Bothwick

I used to live in the real world, but I got evicted.


signature.asc
Description: PGP signature


Re: [gentoo-user] Blocked packages

2014-05-22 Thread Zoltán Kócsi
On Thu, 22 May 2014 17:29:26 +0800
Amankwah amankw...@gmail.com wrote:

 *DO NOT* add the USE flag doc into you /etc/make.conf, That may
 cause many unexpected conflict. Somebody had told me this several
 years before.
 
 If you need doc for any package, just add this flag int file
 /etc/portage/package.use for the certain package.

That's exactly what I've done. I do *not* have 'doc' in make.conf, I
have it in package.use for a handful of packages.

Zoltan



Re: [gentoo-user] Use Flags and Updating

2014-05-22 Thread Neil Bothwick
On Wed, 21 May 2014 23:11:02 -0400, Rich Freeman wrote:

 This one is a gem - I forget where I saw it (likely planet, but maybe
 it was on a list).  Stick it in your crontab.  I will warn you that
 sometimes it chokes on its own output and obviously it can't build
 binpkgs for anything more than one step down the dependency tree.
 However, when my weekly chromium build runs at 2AM and I can just
 install it (with -k) the next morning it is a nice thing indeed.  You
 still get full control over USE flags/etc, but most of the convenience
 of a binary distro.
 
 #!/bin/sh
 
 LIST=$(mktemp);
 
 emerge -puD --changed-use --color=n --columns --quiet=y --with-bdeps=y
 world | awk '{print $2}'  ${LIST};

One slight problem, it ignores slotted packages. I realise this is not a
big issue as you are simply trying to get the big packages built in
advance, If you drop the --columns and replace the awk call with

sed 's/.*\] \(\S*\).*/=\1/'

you will get properly versioned atoms.

Or you could try --keep-going as suggested by Marc - I've no idea whether
that will play nicely with --buildpkgonly.

Either way, it's an excellent idea and one for the GMN tips thread.


-- 
Neil Bothwick

Top Oxymorons Number 14: Temporary tax increase


signature.asc
Description: PGP signature


Re: [gentoo-user] Blocked packages

2014-05-22 Thread Zoltán Kócsi
On Thu, 22 May 2014 10:30:39 +0100
Neil Bothwick n...@digimed.co.uk wrote:

 doc flag is at fault here. You have changed other flags, such as
 ipv6, so the advice is to make such sweeping USE flag changes one at
 a time. This often avoids the problem and otherwise makes it easier
 to see.

Point taken, thanks.
 
 the output you posted is hard to read because your mailer wrapped it
 but it may be that updating sysvinit manually first will clear it.
 
 emerge -1a sysvinit

It did it indeed, so the immediate problem is solved, thanks a lot for
that.

However, I'd be obliged if you could tell me what was wrong and why an
update cleared it? I genuinely don't understand what goes on and I'd be
keen to learn about how Gentoo manages dependencies.

Thanks,

Zoltan



[gentoo-user] Re: May GMN Tips and Tricks

2014-05-22 Thread »Q«
On Thu, 22 May 2014 00:45:44 +0200
Alan McKinnon alan.mckin...@gmail.com wrote:

 On 22/05/2014 00:41, David Abbott wrote:
  Hi Everyone,
  We are putting together this months GMN [1] Looking for some content
  to add to the Tip of the month section.
  Regards
  David
  
  [1] http://blogs.gentoo.org/news
 
 This month has been a treasure trove of such things here on
 gentoo-user.
 
 If you have the time, trawl the systemd and grub2 threads for some
 amazing tips.

I skipped those threads because I don't use systemd and I'm having no
trouble with grub, but now I've marked them to go back to when I have
time.  So thanks for pointing me (and GMN and everyone) to them!




Re: [gentoo-user] Blocked packages

2014-05-22 Thread Neil Bothwick
On Thu, 22 May 2014 19:40:51 +1000, Zoltán Kócsi wrote:

  the output you posted is hard to read because your mailer wrapped it
  but it may be that updating sysvinit manually first will clear it.
  
  emerge -1a sysvinit  
 
 It did it indeed, so the immediate problem is solved, thanks a lot for
 that.
 
 However, I'd be obliged if you could tell me what was wrong and why an
 update cleared it? I genuinely don't understand what goes on and I'd be
 keen to learn about how Gentoo manages dependencies.

To be honest, it was a bit of a guess, because I had so much trouble
parsing the wrapped emerge output. The basic problem is that you have a
package that portage wants to update, but another package wants to keep
it at the same version. This is generally solved by either updating
individual packages manually or unmerging the package causing the
problem and then letting portage pull in the correct versions.

In most cases, portage can now handle these things automatically but
there are time it cannot. This may well have been caused by the various
USE flag changes in your situation. If you make massive changes to your
USE flags after installing from a stage 3, you can often see this sort of
behaviour. The solution is generally to take small steps, change a few
flags at a time.


-- 
Neil Bothwick

Always be sincere... whether you mean it or not!


signature.asc
Description: PGP signature


Re: [gentoo-user] systemd seems to have broken logwatch

2014-05-22 Thread J. Roeleveld
On Thursday, May 22, 2014 04:54:45 AM cov...@ccs.covici.com wrote:
 Hi.  I am having a strange problem running under systemd since Monday.
 I use logwatch to get nice summaries of things going on in the system,
 it gives me once a day summaries of such things.  When running under
 openrc, I used to get a summary of sshd activity, so I could see the
 failed logins and the users that actually logged in via ssh.  I was
 using the sysklogd package and am still using it, although I had to
 listen on a different socket.  But now the sshd entries are totally gone
 and I wonder how to get them back?For instance, I am no longer
 getting the accepted public key messages anywhere.
 
 Thanks in advance for any suggestions.

Did you configure logwatch to read from systemd (not sure if this is possible) 
or systemd to write the logs to sysklogd?

Systemd uses it's own binary format for the logging by default.

--
Joost



Re: [gentoo-user] Use Flags and Updating

2014-05-22 Thread J. Roeleveld
On Wednesday, May 21, 2014 11:11:02 PM Rich Freeman wrote:
 On Wed, May 21, 2014 at 10:10 PM,  ny6...@gmail.com wrote:
  I run a script that syncs portage, updates @world, depcleans,
  revdep-rebuild and finally runs dispatch-conf -- about once weekly. Keeps
  my system in fine trim. :)
 
 This one is a gem - I forget where I saw it (likely planet, but maybe
 it was on a list).  Stick it in your crontab.  I will warn you that
 sometimes it chokes on its own output and obviously it can't build
 binpkgs for anything more than one step down the dependency tree.
 However, when my weekly chromium build runs at 2AM and I can just
 install it (with -k) the next morning it is a nice thing indeed.  You
 still get full control over USE flags/etc, but most of the convenience
 of a binary distro.
 
 #!/bin/sh
 
 LIST=$(mktemp);
 
 emerge -puD --changed-use --color=n --columns --quiet=y --with-bdeps=y
 world | awk '{print $2}'  ${LIST};
 
 for PACKAGE in $(cat ${LIST});
 do
   printf Building binary package for ${PACKAGE}... 
   emerge -uN --quiet-build --quiet=y --buildpkgonly ${PACKAGE};
   if [[ $? -eq 0 ]];
   then
 echo ok;
   else
 echo failed;
   fi
 done

Alternatively, set up a chroot to build the binpackages.
I do that for all my machines at home. That runs weekly.

--
Joost



Re: [gentoo-user] systemd seems to have broken logwatch

2014-05-22 Thread covici
J. Roeleveld jo...@antarean.org wrote:

 On Thursday, May 22, 2014 04:54:45 AM cov...@ccs.covici.com wrote:
  Hi.  I am having a strange problem running under systemd since Monday.
  I use logwatch to get nice summaries of things going on in the system,
  it gives me once a day summaries of such things.  When running under
  openrc, I used to get a summary of sshd activity, so I could see the
  failed logins and the users that actually logged in via ssh.  I was
  using the sysklogd package and am still using it, although I had to
  listen on a different socket.  But now the sshd entries are totally gone
  and I wonder how to get them back?For instance, I am no longer
  getting the accepted public key messages anywhere.
  
  Thanks in advance for any suggestions.
 
 Did you configure logwatch to read from systemd (not sure if this is 
 possible) 
 or systemd to write the logs to sysklogd?
 
 Systemd uses it's own binary format for the logging by default.
I have sysklogd and friends listen on the journal socket rather on the
original socket which systemd has taken over.  Strange but someone told
me that they were getting those messages with syslogng (name may be not
correct), but it still does not make sense to me.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] systemd seems to have broken logwatch

2014-05-22 Thread J. Roeleveld
On Thursday, May 22, 2014 08:31:12 AM cov...@ccs.covici.com wrote:
 J. Roeleveld jo...@antarean.org wrote:
  On Thursday, May 22, 2014 04:54:45 AM cov...@ccs.covici.com wrote:
   Hi.  I am having a strange problem running under systemd since Monday.
   I use logwatch to get nice summaries of things going on in the system,
   it gives me once a day summaries of such things.  When running under
   openrc, I used to get a summary of sshd activity, so I could see the
   failed logins and the users that actually logged in via ssh.  I was
   using the sysklogd package and am still using it, although I had to
   listen on a different socket.  But now the sshd entries are totally gone
   and I wonder how to get them back?For instance, I am no longer
   getting the accepted public key messages anywhere.
   
   Thanks in advance for any suggestions.
  
  Did you configure logwatch to read from systemd (not sure if this is
  possible) or systemd to write the logs to sysklogd?
  
  Systemd uses it's own binary format for the logging by default.
 
 I have sysklogd and friends listen on the journal socket rather on the
 original socket which systemd has taken over.  Strange but someone told
 me that they were getting those messages with syslogng (name may be not
 correct), but it still does not make sense to me.

syslogng != sysklogd.
Both are different packages. It could be that sysklogd does not work well with 
systemd.

--
Joost



Re: [gentoo-user] Filesystem doesn't mount automatically after unclean shutdown

2014-05-22 Thread J. Roeleveld
On Friday, May 16, 2014 01:12:52 PM Peter Humphrey wrote:
 On Wednesday 14 May 2014 22:29:46 Nikos Chantziaras wrote:
  I have this weird problem where a filesystem (Ext4) refuses to mount
  automatically after something like a power loss or forced shutdown.
  
  The fstab entry for it is:
 LABEL=Data /mnt/Data ext4 defaults,relatime,exec 0 2
  
  During boot, this is what OpenRC tells me:
 Root: clean, 805088/6553600 files, 9129899/26214400 blocks
 Data: recovering journal
 Data: clean, 364344/61546496 files, 137312260/246156800 blocks  [ ok ]
 * Mounting local filesystems ...[ ok ]
 * Remounting root filesystem read/write ... [ ok ]
 * Remounting filesystems ...[ ok ]
 * Updating /etc/mtab ...[ ok ]
  
  If I reboot the system again, then all works fine and the FS is mounted
  automatically. So this is a one-time thingy, happening only on the first
  boot after an unclean power-off.
  
  It would seem that I've stumbled across an OpenRC bug? There's no errors
  anywhere to be seem. According to the log output above, everything
  should be fine. I suspect that the recovering journal step is what
  causes this, but I don't know why.
  
  Anyone else encountered this?
 
 No, I can't say I have. I do occasionally have to use the reset button to
 reboot (because the KDM shutdown process had hung), and the system just
 restarts as Mick says.
 
 This is my root fstab entry:
 
   /dev/md5/   ext4relatime1 1
 
 The other partitions are similar except for being mounted from /dev/md7.

My (2.5 y/o) daughter occasionally presses the reset-button while sitting on 
my chair... (yes, the button is on a really bad location on the case). So it 
gets reset unintentionally regularly.
Using 2 disks with 2 partitions. 1 with RAID-1 for /boot and the other with 
RAID-0 with LVM ontop where all the other partitions are inside LVM. Not had a 
bad start in a very long time.
Last time it stopped for a manual fix was after the reset happened during a big 
emerge-session.

--

Joost



Re: [gentoo-user] May GMN Tips and Tricks

2014-05-22 Thread Alex Schuster
Alan McKinnon writes:

 This month has been a treasure trove of such things here on
 gentoo-user.

Oh my, an I have some 6500 unread e-mails... that's hard to catch up.
But I'll have a look into this month then :)

Wonko



Re: Re: [gentoo-user] Blocked packages

2014-05-22 Thread Andreas K. Huettel
Am Donnerstag 22 Mai 2014, 19:10:40 schrieb Zoltán Kócsi:

 
 Then, the command and the response:
 ---
 ~ # emerge --pretend --newuse @world
 

Hi Zoltan, 

if you run into issues like this, first try something like 

emerge -uDNav world

(--update --deep --newuse --ask --verbose; note the deep)
(afaik this is the recommended way to update your system anyway)

If this doesnt help, you can try giving portage more time to backtrack, add 
e.g. the following option (warning this may take a while):

--backtrack=1000

Cheers, Andreas

-- 
Andreas K. Huettel
Gentoo Linux developer
kde, council




Re: [gentoo-user] Blocked packages

2014-05-22 Thread Zoltán Kócsi
On Thu, 22 May 2014 15:42:09 +0200
Andreas K. Huettel dilfri...@gentoo.org wrote:

 if you run into issues like this, first try something like 
 
 emerge -uDNav world
 
 (--update --deep --newuse --ask --verbose; note the deep)
 (afaik this is the recommended way to update your system anyway)
 
 If this doesnt help, you can try giving portage more time to
 backtrack, add e.g. the following option (warning this may take a
 while):
 
 --backtrack=1000

Thanks, will do that.

Is there a comprehensive manual about portage and the related tools?
I mean one which explains how the whole thing works, what are atoms and
sets and slots and masks; how dependencies work and how the magic USE
keywords get translated to actual configure parameters, so basically
the whole logic behind it? Then, with all that basic knowledge how
emerge et al work on that info and what they actually do?

As a developer probably it's all obvious if not trivial to you, but to
the uninitiated it looks a bit of black magic. I went to the Wiki and
went through the handbook, but I couldn't find anything which explained
the actual concepts and implementation of the whole portage system,
just practical snippets of actual tool usage rather than the
foundations. Any pointers to the relevant literature would be most
appreciated.

Thanks,

Zoltan



Re: [gentoo-user] May GMN Tips and Tricks

2014-05-22 Thread Tom Wijsman
On Wed, 21 May 2014 18:41:28 -0400
David Abbott dabb...@gentoo.org wrote:

 Hi Everyone,
 We are putting together this months GMN [1] Looking for some content
 to add to the Tip of the month section.
 Regards
 David
 
 [1] http://blogs.gentoo.org/news

You can create a simple shell function like this:

whymask() {
find /usr/portage/profiles/ -name '*.mask' -exec \
awk -vRS= /${*/\//.}/ {
print \ \ FILENAME \:\, \\n\ \\n\ \$0 \\n\
} {} + | less
}

You can do `whymask sys-kernel/gentoo-sources` to get reasons as to why
a particular package is masked; very handy to quickly check something
up, especially for USE flag masks which Portage doesn't explain.

You can do `whymask Gnome 3.12` to get the entire GNOME 3.12 mask,
piping it to `grep -v mask:  /etc/portage/package.unmask/gnome3` then
allows you to quickly update your GNOME 3.12 unmask; if you want this to
happen on sync, you can put this line in /etc/portage/postsync.d/gnome3
and make it executable such that it'll be ran after every sync.

The magic trick here is that awk -vRS= /.../ matches paragraphs; as
the record separator is empty, it takes the blank lines.

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D


signature.asc
Description: PGP signature


[gentoo-user] Organising btrfs subvolumes

2014-05-22 Thread Neil Bothwick
I'm working on this btrfs malarkey and have a question about best
practice. It is recommended to leave the root volume empty and create a
subvolume for the root filesystem which is set with btrfs subvolume
set-default, which I have done.

What is the recommended way to create subvolumes that are mounted further
down the filesystem? Let's say I was usr and var on their own subvolumes.
Do I create them in the btrfs root, which means they have to be mounted
from /etc/fstab - or do I create hem below the subvolume called root?

That raises another question. Assuming I've done it wrong (well, my wife
always does) is there an equivalent to the zfs rename command to move or
rename a subvolume?


-- 
Neil Bothwick

Unsupported service (adj): Broken (see Demon)


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Having Trouble with Wireless Interface

2014-05-22 Thread Alexander Kapshuk
On 05/22/2014 06:34 AM, Jonathan Callen wrote:
 On 05/21/2014 01:56 PM, Alexander Kapshuk wrote:
  Thanks for the explanation.

  Just to double check I understood it correctly, there's no need to put
  the list of kernel modules into /etc/conf.d/modules any longer, because
  udev is aware of the modules that have been built and will load them by
  consulting /lib/modules/$(uname -r)/modules.alias. Is that correct?

  Thanks.



 You only need to list the modules in /etc/conf.d/modules (for OpenRC) or
 /etc/modules-load.d/*.conf (for systemd) if they would not otherwise be
 loaded.  Just about any module that provides a driver for hardware that
 can be autodetected (that is, PCI, USB, etc.) will be auto-loaded by
 udev.  Modules used to provide filters, etc. for iptables are autoloaded
 by iptables itself as needed.  Some modules do not have anything that
 would cause them to be autoloaded (such as the vbox-* modules from
 VirtualBox), in which case you *would* need to explicitly load them.


Understood. Thanks to all those who did respond to my query.





Re: [gentoo-user] Organising btrfs subvolumes

2014-05-22 Thread Stefan G. Weichinger
Am 22.05.2014 18:12, schrieb Neil Bothwick:
 I'm working on this btrfs malarkey and have a question about best 
 practice. It is recommended to leave the root volume empty and
 create a subvolume for the root filesystem which is set with btrfs
 subvolume set-default, which I have done.

Alternative: mount the subvol via option subvolid etc in fstab  if
you plan to mount different snapshots, for example.

 What is the recommended way to create subvolumes that are mounted
 further down the filesystem? Let's say I was usr and var on their
 own subvolumes. Do I create them in the btrfs root, which means
 they have to be mounted from /etc/fstab - or do I create hem below
 the subvolume called root?


I saw more examples mounting every dir via a
separate line in fstab (which also adds the choice to mount them with
different options, think compression etc).

My understanding is:

* create and use subvols for entities you want to be able to snapshot
and rollback individually.

* create and use subvols for entities you want to apply special
options to: compression, (no)COW, quota ...

I would mount each subvol via extra line and create them in parallel ...

 That raises another question. Assuming I've done it wrong (well, my
 wife always does) is there an equivalent to the zfs rename command
 to move or rename a subvolume?

As far as I understand you are allowed to mount the root volume (or
academic: any subvol in a higher level) and use plain mv to rename
the subvols as if you renamed sub-dirs.

Stefan



Re: [gentoo-user] Blocked packages

2014-05-22 Thread Alan McKinnon
On 22/05/2014 16:32, Zoltán Kócsi wrote:
 On Thu, 22 May 2014 15:42:09 +0200
 Andreas K. Huettel dilfri...@gentoo.org wrote:
 
 if you run into issues like this, first try something like 

 emerge -uDNav world

 (--update --deep --newuse --ask --verbose; note the deep)
 (afaik this is the recommended way to update your system anyway)

 If this doesnt help, you can try giving portage more time to
 backtrack, add e.g. the following option (warning this may take a
 while):

 --backtrack=1000
 
 Thanks, will do that.
 
 Is there a comprehensive manual about portage and the related tools?
 I mean one which explains how the whole thing works, what are atoms and
 sets and slots and masks; how dependencies work and how the magic USE
 keywords get translated to actual configure parameters, so basically
 the whole logic behind it? Then, with all that basic knowledge how
 emerge et al work on that info and what they actually do?
 
 As a developer probably it's all obvious if not trivial to you, but to
 the uninitiated it looks a bit of black magic. I went to the Wiki and
 went through the handbook, but I couldn't find anything which explained
 the actual concepts and implementation of the whole portage system,
 just practical snippets of actual tool usage rather than the
 foundations. Any pointers to the relevant literature would be most
 appreciated.


Portage man pages are fairly complete (maybe not so much for very new
features). The trick is to find the man pages :-)

equery files portage | grep /man/

These are the man pages I rate most useful (there are plenty more)

emerge(1)
portage(5)
ebuild(1)
ebuild(5)


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