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

Issue 174369: Linux: fix a couple problems that Lintian reports for the .deb file:... (Closed)

Created:
11 years, 4 months ago by Tristan Schmelcher
Modified:
9 years, 7 months ago
Reviewers:
Antoine Labour, piman, noah
CC:
o3d-review_googlegroups.com
Visibility:
Public.

Description

Linux: fix a couple problems that Lintian reports for the .deb file: - Eliminate useless call to ldconfig (see Debian bug #364436) - Eliminate spurious rpath. We were setting the rpath equal to the build output directory for libs, which is wrong. The rpath is the _run-time_ library search path for the resulting binary, i.e. the one used by ld.so at load time. Setting it equal to the path to build output on the build machine is nonsense. Also: - Use new-found knowledge of rpath to eliminate the need to symlink into /usr/lib(32) by instead setting rpath to /opt/google/o3d/lib and putting our three dependent libs there. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24250

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -47 lines) Patch
M installer/linux/build.scons View 2 chunks +2 lines, -2 lines 0 comments Download
M installer/linux/debian_amd64/google-o3d.install View 1 chunk +3 lines, -3 lines 0 comments Download
D installer/linux/debian_amd64/links View 1 chunk +0 lines, -10 lines 0 comments Download
M installer/linux/debian_amd64/rules View 1 chunk +3 lines, -0 lines 0 comments Download
A + installer/linux/debian_common/links View 0 chunks +-1 lines, --1 lines 0 comments Download
D installer/linux/debian_i386/links View 1 chunk +0 lines, -7 lines 0 comments Download
M installer/linux/generic/setup.sh View 3 chunks +4 lines, -25 lines 0 comments Download
M plugin/build.scons View 1 1 chunk +4 lines, -0 lines 0 comments Download
M site_scons/site_tools/component_builders.py View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Tristan Schmelcher
11 years, 4 months ago (2009-08-25 00:08:38 UTC) #1
piman
LGTM http://codereview.chromium.org/174369/diff/1/2 File plugin/build.scons (right): http://codereview.chromium.org/174369/diff/1/2#newcode248 Line 248: env.Append(RPATH=['/opt/google/o3d/lib']) Could you add a comment describing ...
11 years, 4 months ago (2009-08-25 01:17:36 UTC) #2
noah
LGTM
11 years, 4 months ago (2009-08-25 15:25:50 UTC) #3
Tristan Schmelcher
11 years, 4 months ago (2009-08-25 17:12:16 UTC) #4
Yay, I can update issues again!

http://codereview.chromium.org/174369/diff/1/2
File plugin/build.scons (right):

http://codereview.chromium.org/174369/diff/1/2#newcode248
Line 248: env.Append(RPATH=['/opt/google/o3d/lib'])
On 2009/08/25 01:17:36, piman wrote:
> Could you add a comment describing what this does ? I just read on it, good
> find.
> 
> I'm not 100% comfortable hard-coding that path at build time (I can see this
> biting us later for local development if say we want to update versions of
these
> libs), but I guess it can't be worse than what was there already.

Done.

I briefly considered making this overridable with a command-line option, but
it's dirt simple to just run "sudo dpkg -i" on the built .deb file to test it,
so there's no need really.

Powered by Google App Engine
This is Rietveld 408576698