New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 835616 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug
Build-Toolchain



Sign in to add a comment

chromiumos-sdk builder failing when building mariadb

Project Member Reported by manojgupta@chromium.org, Apr 22 2018

Issue description

https://uberchromegw.corp.google.com/i/chromiumos/builders/chromiumos-sdk/builds/8715

mariadb-5.5.32-r10: >>> Installing (1 of 1) dev-db/mariadb-5.5.32-r10::chromiumos
mariadb-5.5.32-r10:  * Adding group 'mysql' to your system ...
mariadb-5.5.32-r10:  * 60 conflicts with provided 245!
mariadb-5.5.32-r10:  * ERROR: dev-db/mariadb-5.5.32-r10::chromiumos failed (preinst phase):
mariadb-5.5.32-r10:  *   60 conflicts with provided 245!
mariadb-5.5.32-r10:  * 
mariadb-5.5.32-r10:  * Call stack:
mariadb-5.5.32-r10:  *     ebuild.sh, line  133:  Called pkg_preinst
mariadb-5.5.32-r10:  *   environment, line 4277:  Called mysql-v2_pkg_preinst
mariadb-5.5.32-r10:  *   environment, line 4008:  Called enewgroup 'mysql' '60'
mariadb-5.5.32-r10:  *   environment, line 1984:  Called die
mariadb-5.5.32-r10:  * The specific snippet of code:
mariadb-5.5.32-r10:  *               die "${egid} conflicts with provided ${provided_gid}!";
 
Project Member

Comment 1 by bugdroid1@chromium.org, Apr 22 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/eclass-overlay/+/03e44fde2b50b9be9cd7c0b7c39ea7abf5543f88

commit 03e44fde2b50b9be9cd7c0b7c39ea7abf5543f88
Author: Manoj Gupta <manojgupta@chromium.org>
Date: Sun Apr 22 10:54:35 2018

Revert "Skip checks for user/group existence in user.eclass"

This reverts commit e53449ac8dd22ac152661751546834fa146298e2.

Reason for revert: Breaking chromiumos-sdk builder.
https://uberchromegw.corp.google.com/i/chromiumos/builders/chromiumos-sdk/builds/8715

BUG= chromium:835616 

Original change's description:
> Skip checks for user/group existence in user.eclass
>
> These checks cause enewuser/enewgroup calls to fail if the user/group
> already exists in the board sysroot but not in the sdk root. Sometimes
> users/groups need to be created in the sdk root when they already exist
> in the board sysroot. For example, in order to chown a file to user
> 'shill' in the ebuild for strongswan, 'shill' group needs to be created
> in the sdk root at the same time that it already exists in the board
> sysroot. This situation arises because the shill ebuild creates the
> shill user/group during pkg_preinst() (so they are created in the board
> sysroot only) but the strongswan ebuild needs to create the shill
> group during pkg_setup() (which creates the group in the sdk root as
> well).
>
> _write_entry_to_db() checks whether entries in the group or passwd file
> exists before adding the entries, so these checks are not necessary in
> the first place.
>
> BUG= chromium:834445 
> TEST=before: cannot reference shill group in ebuild for strongswan, even
> after calling enewgroup, after: can reference shill group
>
> Change-Id: I2f1f9400ab8d9be615bdb56279ebddf4926b2557
> Reviewed-on: https://chromium-review.googlesource.com/1017860
> Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
> Tested-by: Micah Morton <mortonm@chromium.org>
> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
> Reviewed-by: Mike Frysinger <vapier@chromium.org>

Bug:  chromium:834445 
Change-Id: Id6e5ba1da72b16f7258ad486c335b7fed4c00327
Reviewed-on: https://chromium-review.googlesource.com/1023163
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>

[modify] https://crrev.com/03e44fde2b50b9be9cd7c0b7c39ea7abf5543f88/eclass/user.eclass

Components: Tools>ChromeOS-Toolchain
Owner: manojgupta@chromium.org
Status: Verified (was: Untriaged)
Fixed https://uberchromegw.corp.google.com/i/chromiumos/builders/chromiumos-sdk/builds/8729

Sign in to add a comment