|
|
DescriptionAdd gcc_target_rpath gn arg
Allow a user to make a Chromium build where binaries and shared
libraries are meant to be installed into separate directories, like
/usr/bin/chromium and /usr/lib/chromium for instance. It is useful
when a build system that generates a whole target root filesystem
(like Yocto) is used on top of gn, especially when cross-compiling.
Note: this gn arg is similar to gyp target_rpath generator flag.
BUG=none
Committed: https://crrev.com/5bd06e2b5019b1ab0337083a926a8f672255e065
Cr-Commit-Position: refs/heads/master@{#441344}
Patch Set 1 #Patch Set 2 : Address comment #Messages
Total messages: 24 (12 generated)
jbriance@cisco.com changed reviewers: + brettw@chromium.org, dpranke@google.com
Note: gyp generator flag was added in https://codereview.chromium.org/1813053003
Description was changed from ========== Add gcc_target_rpath gn arg Allow a user to put shared libraries a in specific directory for component builds. This gn arg is similar to gyp target_rpath generator flag. BUG=none ========== to ========== Add gcc_target_rpath gn arg Allow a user to put shared libraries a in specific directory for component builds. This gn arg is similar to gyp target_rpath generator flag. BUG=none ==========
jbriance@cisco.com changed reviewers: + dpranke@chromium.org - dpranke@google.com
Can you add something indicating why this is needed, or at least useful?
On 2016/12/27 21:08:57, Dirk Pranke wrote: > Can you add something indicating why this is needed, or at least useful? To me, it is useful when using a build system that generates a whole target root filesystem, like Yocto (especially when you cross-compile). With this patch, you can easily make a component build and install libraries in /usr/lib/chromium for instance whereas binaries are in /usr/bin/chromium. Of course you could also put everything in /usr/bin/chromium, but in this case you'll have to disable sanity checks, like "do not install shared libraries in a directory supposed to contain only binaries". As far as I know, component builds are available for debug purposes, so I will fully understand if you find this kind of patch not relevant. On my side, I can easily maintain such a patch downstream. I just wanted to check if it would be of interest to others :)
On 2016/12/27 22:27:54, jbriance wrote: > On 2016/12/27 21:08:57, Dirk Pranke wrote: > > Can you add something indicating why this is needed, or at least useful? > > To me, it is useful when using a build system that generates a whole target root > filesystem, like Yocto (especially when you cross-compile). > With this patch, you can easily make a component build and install libraries in > /usr/lib/chromium for instance whereas binaries are in /usr/bin/chromium. > Of course you could also put everything in /usr/bin/chromium, but in this case > you'll have to disable sanity checks, like "do not install shared libraries in a > directory supposed to contain only binaries". > > As far as I know, component builds are available for debug purposes, so I will > fully understand if you find this kind of patch not relevant. > On my side, I can easily maintain such a patch downstream. I just wanted to > check if it would be of interest to others :) I'm sorry, I wasn't clear. The idea behind the patch is fine, I just wanted you to either add more to the comment in the file, or update the CL description to describe why this was useful. What you wrote above would be fine. lgtm otherwise.
Description was changed from ========== Add gcc_target_rpath gn arg Allow a user to put shared libraries a in specific directory for component builds. This gn arg is similar to gyp target_rpath generator flag. BUG=none ========== to ========== Add gcc_target_rpath gn arg Allow a user to make a Chromium build where binaries and shared libraries are meant to be installed into separate directories, like /usr/bin/chromium and /usr/lib/chromium for instance. It is useful when a build system that generates a whole target root filesystem (like Yocto) is used on top of gn, especially when cross-compiling. Note: this gn arg is similar to gyp target_rpath generator flag. BUG=none ==========
The CQ bit was checked by jbriance@cisco.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.
Allright. Could you please take another look dpranke@ ? If patch set 2 is fine for you I'll send it to CQ.
Ping dpranke@
lgtm, thanks! And sorry for the delay ...
On 2017/01/04 03:00:58, Dirk Pranke wrote: > lgtm, thanks! And sorry for the delay ... No problem at all, I am not in a hurry :)
The CQ bit was checked by jbriance@cisco.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 20001, "attempt_start_ts": 1483517117260060, "parent_rev": "c11821d2e816e13dd0272161a5ae89339306f20b", "commit_rev": "c506ec4be09b2bf115066921cd66b97a06c641b6"}
Message was sent while issue was closed.
Description was changed from ========== Add gcc_target_rpath gn arg Allow a user to make a Chromium build where binaries and shared libraries are meant to be installed into separate directories, like /usr/bin/chromium and /usr/lib/chromium for instance. It is useful when a build system that generates a whole target root filesystem (like Yocto) is used on top of gn, especially when cross-compiling. Note: this gn arg is similar to gyp target_rpath generator flag. BUG=none ========== to ========== Add gcc_target_rpath gn arg Allow a user to make a Chromium build where binaries and shared libraries are meant to be installed into separate directories, like /usr/bin/chromium and /usr/lib/chromium for instance. It is useful when a build system that generates a whole target root filesystem (like Yocto) is used on top of gn, especially when cross-compiling. Note: this gn arg is similar to gyp target_rpath generator flag. BUG=none Review-Url: https://codereview.chromium.org/2605673002 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Add gcc_target_rpath gn arg Allow a user to make a Chromium build where binaries and shared libraries are meant to be installed into separate directories, like /usr/bin/chromium and /usr/lib/chromium for instance. It is useful when a build system that generates a whole target root filesystem (like Yocto) is used on top of gn, especially when cross-compiling. Note: this gn arg is similar to gyp target_rpath generator flag. BUG=none Review-Url: https://codereview.chromium.org/2605673002 ========== to ========== Add gcc_target_rpath gn arg Allow a user to make a Chromium build where binaries and shared libraries are meant to be installed into separate directories, like /usr/bin/chromium and /usr/lib/chromium for instance. It is useful when a build system that generates a whole target root filesystem (like Yocto) is used on top of gn, especially when cross-compiling. Note: this gn arg is similar to gyp target_rpath generator flag. BUG=none Committed: https://crrev.com/5bd06e2b5019b1ab0337083a926a8f672255e065 Cr-Commit-Position: refs/heads/master@{#441344} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/5bd06e2b5019b1ab0337083a926a8f672255e065 Cr-Commit-Position: refs/heads/master@{#441344} |