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

Issue 706678 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Factory: Change pbzip2 to lbzip2

Project Member Reported by hungte@chromium.org, Mar 30 2017

Issue description

Currently factory server docker image needs to get pre-built pbzip2 that alpine does not have. However, alpine does have lbzip2. And in fact lbzip2 is directly supported by GNU tar, if bzip2 is not found on system.

Maybe we should consider either one of the solution below:
 1. always use lbzip2 in factory code
 2. find lbzip2 and fallback to pbzip2
 3. contribute to alpine and add a pbzip2 package

 

Comment 1 by hungte@chromium.org, Mar 30 2017

moreover, lbzip2 has fewer dependency, no libstdc++.

Comment 2 by hungte@chromium.org, Mar 30 2017

or, symlink lbzip2 as pbzip2 in docker image <evil>.
Project Member

Comment 3 by bugdroid1@chromium.org, Mar 30 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/80e2302ac029d6b9e90752ea81a393107849ee0e

commit 80e2302ac029d6b9e90752ea81a393107849ee0e
Author: Hung-Te Lin <hungte@chromium.org>
Date: Thu Mar 30 06:42:30 2017

docker: Use lbzip2 package to replace "pbzip2 from source".

lbzip2 and pbzip2 are most identical (in how we use it) that we can just
use a symlink and get rid of dirty build hacks.

BUG= chromium:706678 
TEST=./cros_docker.sh build; # launch dome to start a new umpire instance
     ./cros_docker.sh umpire shell
     # lbzip2; pbzip2; # both works

Change-Id: If45c2399bc4dcfc84df0a3379123aa9fc5469101
Reviewed-on: https://chromium-review.googlesource.com/462876
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Queue: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Trybot-Ready: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/80e2302ac029d6b9e90752ea81a393107849ee0e/py/umpire/docker/Dockerfile.deps
[modify] https://crrev.com/80e2302ac029d6b9e90752ea81a393107849ee0e/setup/Dockerfile
[modify] https://crrev.com/80e2302ac029d6b9e90752ea81a393107849ee0e/setup/cros_docker.sh

Comment 4 by hungte@chromium.org, Mar 30 2017

Status: Fixed (was: Untriaged)
symlink is good enough :)

Comment 5 by dchan@google.com, May 30 2017

Labels: VerifyIn-60

Comment 6 by dchan@chromium.org, Aug 1 2017

Labels: VerifyIn-61

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

Status: Archived (was: Fixed)

Sign in to add a comment