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

Issue 2391183002: Add dpkg control files to debian sysroot images (Closed)

Created:
4 years, 2 months ago by Sam Clegg
Modified:
3 years, 9 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, Tom Anderson, Michael Moss, Dirk Pranke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add dpkg control files to debian sysroot images This is useful for running dpkg-shlibdeps against the sysroot image. TEST=build/linux/sysroot_scripts/sysroot-creator-jessie.sh BuildSysrootAll BUG=564904

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M build/linux/sysroot_scripts/sysroot-creator.sh View 1 1 chunk +14 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
Sam Clegg
What do you think of this solution?
4 years, 2 months ago (2016-10-05 00:18:44 UTC) #2
Lei Zhang
This is so we don't have to generate the dpkg admin dir, e.g. with https://codereview.chromium.org/2391573005/, ...
4 years, 2 months ago (2016-10-05 01:21:39 UTC) #3
Sam Clegg
On 2016/10/05 01:21:39, Lei Zhang wrote: > This is so we don't have to generate ...
4 years, 2 months ago (2016-10-05 01:27:45 UTC) #4
Sam Clegg
On 2016/10/05 01:27:45, Sam Clegg wrote: > On 2016/10/05 01:21:39, Lei Zhang wrote: > > ...
4 years, 2 months ago (2016-10-05 01:28:37 UTC) #5
Lei Zhang
On 2016/10/05 01:27:45, Sam Clegg wrote: > On 2016/10/05 01:21:39, Lei Zhang wrote: > > ...
4 years, 2 months ago (2016-10-05 01:34:22 UTC) #6
Sam Clegg
On 2016/10/05 01:34:22, Lei Zhang wrote: > On 2016/10/05 01:27:45, Sam Clegg wrote: > > ...
4 years, 2 months ago (2016-10-05 01:35:50 UTC) #7
Tom (Use chromium acct)
On 2016/10/05 01:35:50, Sam Clegg wrote: > On 2016/10/05 01:34:22, Lei Zhang wrote: > > ...
4 years, 2 months ago (2016-10-05 01:46:27 UTC) #9
Sam Clegg
On 2016/10/05 01:35:50, Sam Clegg wrote: > On 2016/10/05 01:34:22, Lei Zhang wrote: > > ...
4 years, 2 months ago (2016-10-05 01:47:54 UTC) #10
Tom (Use chromium acct)
On 2016/10/05 01:47:54, Sam Clegg wrote: > On 2016/10/05 01:35:50, Sam Clegg wrote: > > ...
4 years, 2 months ago (2016-10-05 01:53:06 UTC) #11
Sam Clegg
On 2016/10/05 01:53:06, Tom Anderson wrote: > On 2016/10/05 01:47:54, Sam Clegg wrote: > > ...
4 years, 2 months ago (2016-10-05 02:20:04 UTC) #12
Lei Zhang
BTW, https://codereview.chromium.org/777533006/ was my other CL from way back when. Hope it's helpful?
4 years, 2 months ago (2016-10-05 08:46:50 UTC) #13
Sam Clegg
4 years, 2 months ago (2016-10-06 21:56:19 UTC) #14
On 2016/10/05 08:46:50, Lei Zhang wrote:
> BTW, https://codereview.chromium.org/777533006/ was my other CL from way back
> when. Hope it's helpful?

I tried adding the hacking a status file together but it didn't solve the
problem.  I ended up with different errors from dpkg-shlibdeps:

```
Using shlibs+objdump for libXss.so.1 (file
/usr/lib/x86_64-linux-gnu/libXss.so.1)
 Looking up shlibs dependency of libXss.so.1 provided by 'libxss1:amd64'
 Found libxss1 in
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot//var/lib/dpkg/info/libxss1.shlibs
Using symbols file
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot//var/lib/dpkg/info/libxrandr2.symbols
for libXrandr.so.2
Using symbols file
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot//var/lib/dpkg/info/libxfixes3.symbols
for libXfixes.so.3
Using symbols file
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot//var/lib/dpkg/info/libasound2.symbols
for libasound.so.2
Using symbols file
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot//var/lib/dpkg/info/libcups2.symbols
for libcups.so.2
Using symbols file
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot//var/lib/dpkg/info/libxi6.symbols
for libXi.so.6
dpkg-query: error: package 'libpangocairo-1.0-0' is not installed
dpkg-shlibdeps: error: dpkg-query --control-path libpangocairo-1.0-0:amd64
symbols gave error exit status 2

```

with LD_LIBRARY_PATH set to point to the sysroot libs:

```
No associated package found for
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
Using shlibs+objdump for libgdk_pixbuf-2.0.so.0 (file
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0)
 Looking up shlibs dependency of libgdk_pixbuf-2.0.so.0 provided by ''
 Found nothing
dpkg-shlibdeps: error: no dependency information found for
/usr/local/google/home/sbc/dev/chromium/src/build/linux/debian_wheezy_amd64-sysroot/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
(used by /usr/local/google/home/sbc/dev/chromium/src/out/Release/chrome)
```

Makes me think perhaps this wouldn't work, even with a genuinely produced
sysroot

Powered by Google App Engine
This is Rietveld 408576698