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"  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




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"  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: 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 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] Blocked packages

2014-05-22 Thread Zoltán Kócsi
On Thu, 22 May 2014 10:30:39 +0100
Neil Bothwick  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



Re: [gentoo-user] Blocked packages

2014-05-22 Thread Zoltán Kócsi
On Thu, 22 May 2014 17:29:26 +0800
Amankwah  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] 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 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"  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/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 Zoltán Kócsi
On Thu, 22 May 2014 10:23:27 +0200
"J. Roeleveld"  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/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



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



Re: [gentoo-user] blocked packages both required by the system sys-apps/openrc vs. sys-apps/net-tools?

2012-11-27 Thread Pascal J. Bourguignon


Matthias Hanft  wrote:

> Pascal J. Bourguignon wrote:
> >
> > I just emerged --sync and now when I try to update world, I get this
> > conflict: [...]
> 
> I had the same problem.  Since openrc was not in my world file (pulled in
> automatically), it was not scheduled for update.  The solution was to use
> "emerge -Duv world" including "deep" dependencies.  This caused updating
> net-tools and openrc at the *same* time without any errors.

Indeed, I was doing emerge --update expecting the behavior of 
emerge -Du.  The later works much better.


Thank you (and all others who replied).
-- 
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.



Re: [gentoo-user] blocked packages both required by the system sys-apps/openrc vs. sys-apps/net-tools?

2012-11-27 Thread Matthias Hanft

Pascal J. Bourguignon wrote:


I just emerged --sync and now when I try to update world, I get this
conflict: [...]


I had the same problem.  Since openrc was not in my world file (pulled in
automatically), it was not scheduled for update.  The solution was to use
"emerge -Duv world" including "deep" dependencies.  This caused updating
net-tools and openrc at the *same* time without any errors.

-Matt




Re: [gentoo-user] blocked packages both required by the system sys-apps/openrc vs. sys-apps/net-tools?

2012-11-26 Thread jens wefer
Am Mon, 26 Nov 2012 23:55:50 +0100
schrieb "Pascal J. Bourguignon" :

> 
> I just emerged --sync and now when I try to update world, I get this
> conflict:
> 
> [...]

first update openrc, then world

emerge --update openrc
emerge --update world




Re: [gentoo-user] blocked packages both required by the system sys-apps/openrc vs. sys-apps/net-tools?

2012-11-26 Thread Hinnerk van Bruinehsen
On Mon, Nov 26, 2012 at 11:55:50PM +0100, Pascal J. Bourguignon wrote:
> 
> I just emerged --sync and now when I try to update world, I get this
> conflict:
> 
 
> where both sys-apps/net-tools and  sys-apps/baselayout-2.1-r1 therefore
> sys-apps/openrc are required by the system.
> 
> What can I do to resolve this conflict?
> 
> Why does gentoo want to install conflicting packages at the same time on
> my system?

> [ebuild  N ]  net-misc/vde-2.2.2 
> [nomerge   ] app-emulation/wine-1.4.1 
> [ebuild  N ]  app-emulation/emul-linux-x86-baselibs-20121028  
> USE="-development" 
> [ebuild U  ] sys-devel/gnuconfig-20120818 [20120116]
> [ebuild U  ] dev-libs/expat-2.1.0-r2 [2.1.0]
> [ebuild U  ] media-libs/libpng-1.5.13-r1 [1.5.10]
> [blocks B  ]  blocking sys-apps/net-tools-1.60_p20120127084908)
> 
>  * Error: The above package list contains packages which cannot be
>  * installed at the same time on the same system.
> 
>   (sys-apps/net-tools-1.60_p20120127084908::gentoo, ebuild scheduled for 
> merge) pulled in by
> sys-apps/net-tools required by @system
> 
>   (sys-apps/openrc-0.9.8.4::gentoo, installed) pulled in by
> sys-apps/openrc required by 
> (dev-db/mysql-init-scripts-2.0_pre1-r2::gentoo, ebuild scheduled for merge)
> sys-apps/openrc required by (sys-apps/baselayout-2.1-r1::gentoo, 
> installed)
> 

net-tools needs an openrc version newer than 0.9.9.3. According to eix
on my system 11.5 should be stable (correct me, if I'm wrong). Try to
update openrc first (e.g. emerge -v1 openrc) and check, which version is
being pulled in. If it's still 0.9.8.4 check, if you have masked newer
versions yourself and -if so - remove the mask.

WKR
Hinnerk
 



Re: [gentoo-user] blocked packages both required by the system sys-apps/openrc vs. sys-apps/net-tools?

2012-11-26 Thread John Campbell

On 11/26/2012 02:55 PM, Pascal J. Bourguignon wrote:


[blocks B  ] 

net-tools requires openrc >= 0.9.9.3.  Your installed openrc, and 
proposed update, is too old.


Upgrade to openrc-0.11.5...  It came online on Saturday.