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

Issue 722063 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: May 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug

Blocking:
issue 723145



Sign in to add a comment

chromiumos-sdk build fails in InitSDK - perl / perl dependency issue

Project Member Reported by benchan@chromium.org, May 13 2017

Issue description

https://luci-milo.appspot.com/buildbot/chromiumos/chromiumos-sdk/

chromiumos-sdk build started failing since build #7861

emerge: there are no ebuilds to satisfy "dev-lang/perl:0/5.18=[-build(-)]".
(dependency required by "dev-perl/XML-Parser-2.410.0-r2::gentoo" [installed])
(dependency required by "dev-util/intltool-0.50.2-r2" [ebuild])
(dependency required by "x11-misc/shared-mime-info-1.3" [ebuild])
(dependency required by "dev-libs/glib-2.36.4-r2::chromiumos[mime]" [ebuild])
(dependency required by "dev-util/pkgconfig-0.28-r2[-internal-glib]" [ebuild])
(dependency required by "virtual/pkgconfig-0-r1" [ebuild])
(dependency required by "dev-util/gtk-doc-am-1.20::gentoo" [installed])
(dependency required by "dev-libs/libxml2-2.9.4" [ebuild])
(dependency required by "sys-devel/gettext-0.19.7" [ebuild])
(dependency required by "sys-apps/sed-4.2.2[nls]" [ebuild])
(dependency required by "app-admin/eselect-1.4.3" [ebuild])
(dependency required by "app-admin/eselect-python-20140125" [ebuild])
(dependency required by "dev-lang/python-2.7.10::chromiumos" [installed])
(dependency required by "sys-apps/file-5.22[python,python_targets_python2_7]" [ebuild])
ERROR   : Sat May 13 00:26:05 PDT 2017
ERROR   :  PGID  PPID   PID     ELAPSED     TIME %CPU COMMAND
ERROR   : Arguments of 27820:  '--skip_toolchain_update' '--nousepkg'
ERROR   : Backtrace:  (most recent call is last)
ERROR   :  update_chroot:118:main(), called: die_err_trap  
ERROR   : 
ERROR   : Command failed:
ERROR   :   Command 'sudo -E ${EMERGE_CMD} ${EMERGE_FLAGS} virtual/target-sdk world' exited with nonzero code: 1
Running ['/b/cbuild/repository/src/scripts/sdk_lib/make_chroot.sh', '--stage3_path', '/b/cbuild/repository/.cache/sdks/stage3-amd64-2014.09.18.tar.xz', '--chroot', '/b/cbuild/repository/chroot', '--cache_dir', '/b/cbuild/repository/.cache', '--nousepkg'] failed!
00:26:05: ERROR: 
return code: 1; command: /b/cbuild/repository/chromite/bin/cros_sdk --buildbot-log-version --bootstrap --replace '--chrome_root=/b/cbuild/repository/.cache/distfiles/target-master/chrome-src'
cmd=['/b/cbuild/repository/chromite/bin/cros_sdk', '--buildbot-log-version', '--bootstrap', '--replace', '--chrome_root=/b/cbuild/repository/.cache/distfiles/target-master/chrome-src'], cwd=/b/cbuild/repository, extra env={'FEATURES': 'separatedebug', 'CHROME_ORIGIN': 'LOCAL_SOURCE'}

 

Comment 1 by vapier@chromium.org, May 13 2017

in the commit list, the only two that look suspicious are:
  https://chromium-review.googlesource.com/505258
  https://chromium-review.googlesource.com/505452

but those are prob just breaking things by accident.

looking earlier, we update perl and a bunch of its deps incidentally as part of the toolchain update.  but that doesn't rebuild XML-Parser.  instead, that gets rebuilt incidentally as part of the large world update:
 Building package virtual/target-sdk world on root

which started off with us breaking a lot of circular deps by hand.

we probably should extract the perl rebuild logic that's at the end of update_chroot into a build_library/perl-rebuild.sh file, and then have update_chroot use that, and have sdk_lib/make_chroot.sh run that manually before we do the update_chroot script.
Cc: llozano@chromium.org davidri...@chromium.org kyan@chromium.org

Comment 3 Deleted

Comment 4 Deleted

Comment 5 Deleted

Comment 6 Deleted

Summary: chromiumos-sdk build fails in InitSDK - perl / perl dependency issue (was: chromiumos-sdk build fails in InitSDK)
Updated the bug summary to reflect the potential cause suggested by comment #1

Comment 8 Deleted

Comment 9 Deleted

Comment 10 Deleted

Comment 11 Deleted

Comment 12 Deleted

Comment 13 Deleted

Owner: kyan@chromium.org
kyan: Can you take a look at this?
Ping?  Is anyone actually looking at this?
Owner: benchan@chromium.org
Ben has posted CLs already
Status: Started (was: Available)
Working on it. The Perl dependency issue seems to be addressed by the solution that vapier suggested in #1.  There are other unsatisfied dependencies that I'm looking into.

Comment 18 by kyan@google.com, May 16 2017

The changes pointed out in comment #1 looks like the cause, I am trying to make a test build with the CL reverted.

I am testing CL:506432 and CL:503620 on chromiumos-sdk bot, which hopefully address the issue.
Verified on chromiumos-sdk trybot that the issue can be resolved by CL:506432 and CL:503620:

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

However, I'd probably need to chump in CL:503620 as CL:503620 won't pass CQ until a successful chromiumos-sdk build publishing a new sdk.
chumping wouldn't help.  sdk incremental updates has to work all the time.

you can address it by adding a blocker or by adding a chroot upgrade hook that manually unmerges the old package.
Blocking: 723145
Please fix this issue ASAP. blocking creating of SDK to fix 723145
Project Member

Comment 25 by bugdroid1@chromium.org, May 18 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/bb6ebbe9fd074b34ddd15e19c724804288b0a4da

commit bb6ebbe9fd074b34ddd15e19c724804288b0a4da
Author: Ben Chan <benchan@chromium.org>
Date: Thu May 18 02:06:13 2017

update_hooks: remove eselect-bashcomp in chroot

CL:503619 removed app-admin/eselect-bashcomp in preparation for
upgrading app-shells/bash-completion, but the existing chroot may still
it. This CL adds an update hook to remove eselect-bashcomp from the
chroot.

BUG= chromium:721785 
BUG= chromium:722063 
CQ-DEPEND=CL:503620
TEST=Remote trybot runs on paladin and chromiumos-sdk builders.

Change-Id: Ie96a2d2905681851e0d5f6ff4eec4af17affd536
Reviewed-on: https://chromium-review.googlesource.com/507668
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[add] https://crrev.com/bb6ebbe9fd074b34ddd15e19c724804288b0a4da/chroot_version_hooks.d/148_remove_eselect_bashcomp

Project Member

Comment 26 by bugdroid1@chromium.org, May 18 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/crosutils/+/bb6ebbe9fd074b34ddd15e19c724804288b0a4da

commit bb6ebbe9fd074b34ddd15e19c724804288b0a4da
Author: Ben Chan <benchan@chromium.org>
Date: Thu May 18 02:06:13 2017

update_hooks: remove eselect-bashcomp in chroot

CL:503619 removed app-admin/eselect-bashcomp in preparation for
upgrading app-shells/bash-completion, but the existing chroot may still
it. This CL adds an update hook to remove eselect-bashcomp from the
chroot.

BUG= chromium:721785 
BUG= chromium:722063 
CQ-DEPEND=CL:503620
TEST=Remote trybot runs on paladin and chromiumos-sdk builders.

Change-Id: Ie96a2d2905681851e0d5f6ff4eec4af17affd536
Reviewed-on: https://chromium-review.googlesource.com/507668
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[add] https://crrev.com/bb6ebbe9fd074b34ddd15e19c724804288b0a4da/chroot_version_hooks.d/148_remove_eselect_bashcomp

Status: Fixed (was: Started)
The necessary changes already landed, so we're just waiting for chromiumos-sdk to cycle green and publish a new sdk rev.
Labels: VerifyIn-61

Comment 29 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment