On 12/31/20 12:33 AM, Jack wrote:
On 2020.12.30 17:17, n952162 wrote:
When I try to restore my pkgs, after the --depclean, the emerge fails.
It seems like there's an error in the pre-inst script of acct-group/lp?
That's need by cups:

1270~/adm/gentoo/emerged>sudo cat
/var/tmp/portage/acct-group/lp-0-r1/temp/build.log
 * Package:    acct-group/lp-0-r1
 * Repository: gentoo
 * Maintainer: syst...@gentoo.org print...@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv
usersandbox
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/acct-group/lp-0-r1/work
>>> Preparing source in /var/tmp/portage/acct-group/lp-0-r1/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/acct-group/lp-0-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/acct-group/lp-0-r1/work ...
>>> Source compiled.
>>> Test phase [not enabled]: acct-group/lp-0-r1

>>> Install acct-group/lp-0-r1 into
/var/tmp/portage/acct-group/lp-0-r1/image
>>> Completed installing acct-group/lp-0-r1 into
/var/tmp/portage/acct-group/lp-0-r1/image

 * Final size of build directory:  4 KiB
 * Final size of installed tree:  20 KiB

 * checking 1 files for package collisions
>>> Merging acct-group/lp-0-r1 to /
error writing group entry: Invalid argument
 * Adding group 'lp' to your system ...
error writing group entry: Invalid argument
 *  - Groupid: 7
groupadd: group 'lp' already exists
This seems to be the basic cause.


Perhaps.  But there are two "invalid argument" error messages before the
"already exists" msg.


However, I have no idea what that emerge should do if the group it
wants to install does already exist.  I can re-emerge this package
with no problems.


That's interesting!  Maybe re-emerge would behave differently from a
de-install/emerge?

In any case though, crashing if the group already exists would be a bug
the developers should be interested in.


Is this a new install or reinstall?  All the logic is in the eclass
which does have the comment "Creates the group if it does not exist."


I was looking for that ... I didn't find groupadd in
/var/db/pkg/acct-group/lp-0.  Where should I look?



What happens if you just run "emerge -1 acct-group/lp"?


Same thing


Have you done a successful "emerge -auDvN @system" ?


Yes


There may well be something else required still missing, but not an
explicit dependency because it is part of @system.



One thing I just re-discovered is --keep-going, which works, thank
goodness, so I'll should have a working system (sometime tomorrow!),
albeit, without cups.



Reply via email to