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

Issue 749300 link

Starred by 0 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 6
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

cros-go.eclass: src_install should verify that all dependencies CROS_GO_PACKAGES are installed

Project Member Reported by rahulchaudhry@chromium.org, Jul 26 2017

Issue description

cros-go_src_install installs the Go packages listed in CROS_GO_PACKAGES to the system-wide GOPATH (/usr/lib/gopath).

It does not verify that any dependencies of those packages are also installed. It can cause confusion when a package "a" is in CROS_GO_PACKAGES, but its dependency "b" is not. src_install succeeds without detecting this. When another package (from a different ebuild) imports "a", this missing dependency is detected and results in a compile error.

See https://chromium-review.googlesource.com/#/c/577959 for example.

 
Project Member

Comment 1 by bugdroid1@chromium.org, Jul 29 2017

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

commit dccf2cd307c72ec713360a0fa88c7dd066428f77
Author: Rahul Chaudhry <rahulchaudhry@chromium.org>
Date: Sat Jul 29 07:57:01 2017

cros-go.eclass: sanity check installed packages.

After installing all packages listed in CROS_GO_PACKAGES,
check that there are no missing dependencies.

BUG= chromium:749300 
TEST='sudo emerge <all ebuilds in chromiumos-overlay that inherit cros-go>'

Change-Id: I24a1bf2c670d8dd9a8271c65613394fc682047b6
Reviewed-on: https://chromium-review.googlesource.com/589808
Commit-Ready: Rahul Chaudhry <rahulchaudhry@chromium.org>
Tested-by: Rahul Chaudhry <rahulchaudhry@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/dccf2cd307c72ec713360a0fa88c7dd066428f77/eclass/cros-go.eclass

Status: Fixed (was: Assigned)
Status: Verified (was: Fixed)
Closing. Please reopen it if its not fixed. Thanks!
Status: Assigned (was: Verified)
Reopening due to https://bugs.chromium.org/p/chromium/issues/detail?id=811542

Will disable the dependency checking as a workaround shortly.
Components: Tools>ChromeOS-Toolchain
Project Member

Comment 6 by bugdroid1@chromium.org, Feb 21 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/9eb388ebf3e16a1e7c318877acdf9f3def4aff29

commit 9eb388ebf3e16a1e7c318877acdf9f3def4aff29
Author: Allen Li <ayatane@chromium.org>
Date: Wed Feb 21 04:31:33 2018

cros-go: Disable dependency checking to work around bug

BUG= chromium:749300 
BUG= chromium:811542 
TEST=None

Change-Id: I2c3aa51acdda2f8eac11e0b768927008b5ab8e09
Reviewed-on: https://chromium-review.googlesource.com/924601
Commit-Ready: Allen Li <ayatane@chromium.org>
Tested-by: Allen Li <ayatane@chromium.org>
Reviewed-by: Rahul Chaudhry <rahulchaudhry@chromium.org>

[modify] https://crrev.com/9eb388ebf3e16a1e7c318877acdf9f3def4aff29/eclass/cros-go.eclass

Project Member

Comment 7 by bugdroid1@chromium.org, Jul 5

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/9e1773bfe328a505b61f3cb5bc297d4d3b2e759d

commit 9e1773bfe328a505b61f3cb5bc297d4d3b2e759d
Author: Rahul Chaudhry <rahulchaudhry@chromium.org>
Date: Thu Jul 05 01:24:27 2018

cros-go.eclass: check for missing dependencies of installed packages.

Moved dependency checking to pkg_postinst stage.

BUG= chromium:749300 
BUG= chromium:811542 
TEST='sudo emerge dev-go/grpc-credentials-oauth' works.
TEST=Emerged dev-go/* (50 ebuilds).

Change-Id: Idd9182c40da5dedb9741c081dc2c7c58171e13a9
Reviewed-on: https://chromium-review.googlesource.com/1124668
Commit-Ready: Rahul Chaudhry <rahulchaudhry@chromium.org>
Tested-by: Rahul Chaudhry <rahulchaudhry@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Rahul Chaudhry <rahulchaudhry@chromium.org>

[modify] https://crrev.com/9e1773bfe328a505b61f3cb5bc297d4d3b2e759d/eclass/cros-go.eclass

Status: Fixed (was: Assigned)

Sign in to add a comment