|
|
Created:
4 years, 2 months ago by Tom (Use chromium acct) Modified:
4 years, 2 months ago CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionBuild: Extract debian control files to sysroots
Adapted from sbc@'s CL https://codereview.chromium.org/2391183002/
R=thestig@chromium.org,sbc@chromium.org
BUG=564904
Committed: https://crrev.com/58974f62d368d3d6dc2f58fe80741804d2147675
Cr-Commit-Position: refs/heads/master@{#424641}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Add comment #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 21 (10 generated)
I finally figured out how to get dpkg-shlibdeps working with the sysroot. Basically we just take advantage of the debian/ dir and make sure to use -l/path/to/sysroot/libs with dpkg-shlibdeps
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... File build/linux/sysroot_scripts/sysroot-creator.sh (right): https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... build/linux/sysroot_scripts/sysroot-creator.sh:379: touch ${INSTALL_ROOT}/debian/control Why make an empty control file here? https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... build/linux/sysroot_scripts/sysroot-creator.sh:404: mkdir -p ${INSTALL_ROOT}/debian/${base_package}/DEBIAN How are these "/debian" directories then passed to dpkg-shlibdeps? It seems a little strange to put all this stuff under /debian in the sysroot. If it works I don't argue, but hopefully we can switch to more real sysroots built with debbootstrap soon.
https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... File build/linux/sysroot_scripts/sysroot-creator.sh (right): https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... build/linux/sysroot_scripts/sysroot-creator.sh:379: touch ${INSTALL_ROOT}/debian/control On 2016/10/11 03:06:46, Sam Clegg wrote: > Why make an empty control file here? you need it to run dpkg-shlibdeps https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... build/linux/sysroot_scripts/sysroot-creator.sh:404: mkdir -p ${INSTALL_ROOT}/debian/${base_package}/DEBIAN On 2016/10/11 03:06:46, Sam Clegg wrote: > How are these "/debian" directories then passed to dpkg-shlibdeps? > you cd to the dir containing debian/ and then run dpkg-shlibdeps > It seems a little strange to put all this stuff under /debian in the sysroot. > yeah it's not standard :( but I needed some place to stuff the control files. It doesn't have to be at the root, but the directory needs to be named debian. Maybe /impl/debian would be better?? > If it works I don't argue, but hopefully we can switch to more real sysroots > built with debbootstrap soon.
pinging Lei
Oh, I figured you two can work this out without me. https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... File build/linux/sysroot_scripts/sysroot-creator.sh (right): https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... build/linux/sysroot_scripts/sysroot-creator.sh:379: touch ${INSTALL_ROOT}/debian/control On 2016/10/11 05:33:55, Tom Anderson wrote: > On 2016/10/11 03:06:46, Sam Clegg wrote: > > Why make an empty control file here? > > you need it to run dpkg-shlibdeps Maybe just add a brief comment to explain why it exists.
On 2016/10/12 01:15:48, Lei Zhang wrote: > Oh, I figured you two can work this out without me. I need you for your OWNERS powers :) https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... File build/linux/sysroot_scripts/sysroot-creator.sh (right): https://codereview.chromium.org/2405073002/diff/1/build/linux/sysroot_scripts... build/linux/sysroot_scripts/sysroot-creator.sh:379: touch ${INSTALL_ROOT}/debian/control On 2016/10/12 01:15:47, Lei Zhang wrote: > On 2016/10/11 05:33:55, Tom Anderson wrote: > > On 2016/10/11 03:06:46, Sam Clegg wrote: > > > Why make an empty control file here? > > > > you need it to run dpkg-shlibdeps > > Maybe just add a brief comment to explain why it exists. Done.
The CQ bit was checked by thomasanderson@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm https://codereview.chromium.org/2405073002/diff/20001/build/linux/sysroot_scr... File build/linux/sysroot_scripts/sysroot-creator.sh (right): https://codereview.chromium.org/2405073002/diff/20001/build/linux/sysroot_scr... build/linux/sysroot_scripts/sysroot-creator.sh:378: # The /debian directory is an implementation detail that's used to cd into Also, I'm fine with this, but if you think "debian" in the root dir is confusing, you can do chromium/debian?
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by thomasanderson@google.com
https://codereview.chromium.org/2405073002/diff/20001/build/linux/sysroot_scr... File build/linux/sysroot_scripts/sysroot-creator.sh (right): https://codereview.chromium.org/2405073002/diff/20001/build/linux/sysroot_scr... build/linux/sysroot_scripts/sysroot-creator.sh:378: # The /debian directory is an implementation detail that's used to cd into On 2016/10/12 01:30:01, Lei Zhang wrote: > Also, I'm fine with this, but if you think "debian" in the root dir is > confusing, you can do chromium/debian? Acknowledged.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Build: Extract debian control files to sysroots Adapted from sbc@'s CL https://codereview.chromium.org/2391183002/ R=thestig@chromium.org,sbc@chromium.org BUG=564904 ========== to ========== Build: Extract debian control files to sysroots Adapted from sbc@'s CL https://codereview.chromium.org/2391183002/ R=thestig@chromium.org,sbc@chromium.org BUG=564904 Committed: https://crrev.com/58974f62d368d3d6dc2f58fe80741804d2147675 Cr-Commit-Position: refs/heads/master@{#424641} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/58974f62d368d3d6dc2f58fe80741804d2147675 Cr-Commit-Position: refs/heads/master@{#424641} |