Merge lp:~mvo/snappy/snappy-binary-ld-library-path-wrapper into lp:~snappy-dev/snappy/snappy-moved-to-github

Proposed by Michael Vogt
Status: Work in progress
Proposed branch: lp:~mvo/snappy/snappy-binary-ld-library-path-wrapper
Merge into: lp:~snappy-dev/snappy/snappy-moved-to-github
Diff against target: 40 lines (+8/-1)
2 files modified
snappy/click.go (+5/-1)
snappy/click_test.go (+3/-0)
To merge this branch: bzr merge lp:~mvo/snappy/snappy-binary-ld-library-path-wrapper
Reviewer Review Type Date Requested Status
Sergio Schvezov Needs Information
Review via email: mp+252560@code.launchpad.net

Description of the change

A small branch that sets up the LD_LIBRARY_PATH in the wrapper to make
it easier for the developer

To post a comment you must log in.
Revision history for this message
Sergio Schvezov (sergiusens) :
review: Needs Information

Unmerged revisions

228. By Michael Vogt

use the bin-path instead of the pkgpath in the LD_LIBRARY_PATH wrapper

227. By Michael Vogt

setup LD_LIBRARY_PATH in the wrapper

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'snappy/click.go'
2--- snappy/click.go 2015-03-10 13:31:42 +0000
3+++ snappy/click.go 2015-03-11 11:09:28 +0000
4@@ -353,6 +353,9 @@
5 fi
6 export HOME="$SNAP_APP_USER_DATA_PATH"
7
8+# convinience for the developer
9+LD_LIRARY_PATH=$LD_LIBRARY_PATH:{{.BinPath}}:{{.Path}}lib/$SNAPPY_APP_ARCH
10+
11 # export old pwd
12 export SNAP_OLD_PWD="$(pwd)"
13 cd {{.Path}}
14@@ -365,10 +368,11 @@
15 wrapperData := struct {
16 packageYaml
17 Target string
18+ BinPath string
19 Path string
20 AaProfile string
21 }{
22- *m, actualBinPath, pkgPath, aaProfile,
23+ *m, actualBinPath, filepath.Dir(actualBinPath), pkgPath, aaProfile,
24 }
25 t.Execute(&templateOut, wrapperData)
26
27
28=== modified file 'snappy/click_test.go'
29--- snappy/click_test.go 2015-03-10 07:41:06 +0000
30+++ snappy/click_test.go 2015-03-11 11:09:28 +0000
31@@ -352,6 +352,9 @@
32 fi
33 export HOME="$SNAP_APP_USER_DATA_PATH"
34
35+# convinience for the developer
36+LD_LIRARY_PATH=$LD_LIBRARY_PATH:/apps/pastebinit.mvo/1.4.0.0.1/bin:/apps/pastebinit.mvo/1.4.0.0.1/lib/$SNAPPY_APP_ARCH
37+
38 # export old pwd
39 export SNAP_OLD_PWD="$(pwd)"
40 cd /apps/pastebinit.mvo/1.4.0.0.1/

Subscribers

People subscribed via source and target branches