Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Issue 14718016: install-build-deps: Install libudev1 for Ubuntu 13.04 (Closed)

Created:
7 years, 7 months ago by haltonhuo
Modified:
7 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

install-build-deps: Install libudev1 for Ubuntu 13.04 Install libudev1 Ubuntu 13.04, keep libudev0 for other Ubuntu releases. Add 13.04 (racing) codename BUG=240963 TEST=Tested manually Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201259

Patch Set 1 #

Total comments: 1

Patch Set 2 : rewrite with Pawel's comment #

Total comments: 1

Patch Set 3 : use apt-cache instead of lsb_release #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M build/install-build-deps.sh View 1 2 4 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
haltonhuo
hi, anybody could review it?
7 years, 7 months ago (2013-05-17 01:03:01 UTC) #1
Paweł Hajdan Jr.
Thanks a lot for the patch. One small thing. https://codereview.chromium.org/14718016/diff/1/build/install-build-deps.sh File build/install-build-deps.sh (right): https://codereview.chromium.org/14718016/diff/1/build/install-build-deps.sh#newcode131 build/install-build-deps.sh:131: ...
7 years, 7 months ago (2013-05-17 01:17:50 UTC) #2
haltonhuo
> build/install-build-deps.sh:131: # Some package names have changed over time > Please add your logic ...
7 years, 7 months ago (2013-05-17 02:00:17 UTC) #3
Paweł Hajdan Jr.
Please make sure to test on Raring after applying the fix. https://codereview.chromium.org/14718016/diff/5001/build/install-build-deps.sh File build/install-build-deps.sh (right): ...
7 years, 7 months ago (2013-05-17 23:15:09 UTC) #4
haltonhuo
On 2013/05/17 23:15:09, Paweł Hajdan Jr. wrote: > Please make sure to test on Raring ...
7 years, 7 months ago (2013-05-20 02:08:32 UTC) #5
Paweł Hajdan Jr.
LGTM, thanks for the patch!
7 years, 7 months ago (2013-05-20 23:43:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halton.huo@intel.com/14718016/9001
7 years, 7 months ago (2013-05-20 23:44:04 UTC) #7
commit-bot: I haz the power
Change committed as 201259
7 years, 7 months ago (2013-05-21 08:26:45 UTC) #8
haaawk
On 2013/05/21 08:26:45, I haz the power (commit-bot) wrote: > Change committed as 201259 This ...
7 years, 7 months ago (2013-05-21 17:38:59 UTC) #9
haltonhuo
On 2013/05/21 17:38:59, haaawk wrote: > On 2013/05/21 08:26:45, I haz the power (commit-bot) wrote: ...
7 years, 7 months ago (2013-05-22 01:59:10 UTC) #10
haltonhuo
7 years, 7 months ago (2013-05-22 02:14:45 UTC) #11
haltonhuo
On 2013/05/21 17:38:59, haaawk wrote: > On 2013/05/21 08:26:45, I haz the power (commit-bot) wrote: ...
7 years, 7 months ago (2013-05-22 02:16:33 UTC) #12
haaawk
On 2013/05/22 02:16:33, haltonhuo wrote: > On 2013/05/21 17:38:59, haaawk wrote: > > On 2013/05/21 ...
7 years, 7 months ago (2013-05-22 08:41:56 UTC) #13
haaawk
On 2013/05/22 08:41:56, haaawk wrote: > On 2013/05/22 02:16:33, haltonhuo wrote: > > On 2013/05/21 ...
7 years, 7 months ago (2013-05-22 08:46:02 UTC) #14
haltonhuo
On 2013/05/22 08:46:02, haaawk wrote: > ~$apt-cache show libudev1 > N: Can't select versions from ...
7 years, 7 months ago (2013-05-22 09:39:47 UTC) #15
haaawk
On 2013/05/22 09:39:47, haltonhuo wrote: > On 2013/05/22 08:46:02, haaawk wrote: > > ~$apt-cache show ...
7 years, 7 months ago (2013-05-23 08:40:05 UTC) #16
haltonhuo
7 years, 7 months ago (2013-05-23 09:39:36 UTC) #17
Message was sent while issue was closed.
On 2013/05/23 08:40:05, haaawk wrote:
> Well, don't you think that having a repo with libudev1 added is a normal
thing?
Yes, it is normal. Again, I guess your failure case is because you ever install
libudev1 via .deb or repo. That cause "apt-cache show libudev1" return 0. Is
there any problem to install libudev1 on ubuntu 12.10/12.04?

> This script shouldn't depend on such subtle thing. This script is clearly
wrong
> in current version. It tries to install libudev1 instead of libudev0 on
machines
> with version of ubunto lower than 13.04 and some additional repo added.
My old patch set2 ever check the Ubuntu version rather than "apt-cache" logic.
But if you looked at other pkgs that need changed over time like
jpeg-dev/jpeg62-dev. They are use apt-cache way to determine. And I'm persuaded
by Pawel Hajdan that apt-cache is better than hard code ubuntu versions. 

Your failure is general issue not specific to libudev1, but general issue for
all other pkgs that need changed overtime. 

For instance, your default repo contains libjpeg62-dev, but you manually
installed a pkg libjpeg-dev. Thus, libjpeg-dev will be used. 
In this case, if developer really want jpeg62-dev one, he has to cleanup the
cache to allow this script choose it.

If you do not agree "apt-cache" is better than hardcode with ubuntu version.
That is another thing.

Back to your case. It seems to you install a .deb and purge it. Or add a repo
with libudev1 then remove that repo. But the cache keep tracking it and return
0. 

I think we have two ways to fix this senario:
1. Fix apt-cache, return non-zero if purely virtual package.
2. In this script, we track not only the return value but also the message.

Which one do you prefer to go? If goes #2, it is a separate chromium build tool.

Powered by Google App Engine
This is Rietveld 408576698