diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2014-04-11 15:37:57 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-04-20 11:19:09 +0200 |
commit | b0a2b9011ba72eec5897841b94d68ba93cd15450 (patch) | |
tree | e2de2445af21e4430077c708d703455fee4bbf19 /meta-oe | |
parent | 42caea1d67c320c3e2b6622fe3b4de49763095e6 (diff) | |
download | meta-openembedded-b0a2b9011ba72eec5897841b94d68ba93cd15450.tar.gz |
liblockfile: set default mailgroup and install libnfslock
* Set the default mailgroup to 'mail' or it will use 'root'.
* Set --with-libnfslock so it builds and install libnfslock.
* The patch is to fix nfslib build failure and add missing soname lib.
* No need to override the do_install, set EXTRA_OEMAKE instead.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r-- | meta-oe/recipes-extended/liblockfile/liblockfile-1.09/liblockfile-fix-nfslib-and-soname.patch | 54 | ||||
-rw-r--r-- | meta-oe/recipes-extended/liblockfile/liblockfile_1.09.bb | 15 |
2 files changed, 65 insertions, 4 deletions
diff --git a/meta-oe/recipes-extended/liblockfile/liblockfile-1.09/liblockfile-fix-nfslib-and-soname.patch b/meta-oe/recipes-extended/liblockfile/liblockfile-1.09/liblockfile-fix-nfslib-and-soname.patch new file mode 100644 index 000000000..ffd7a40fa --- /dev/null +++ b/meta-oe/recipes-extended/liblockfile/liblockfile-1.09/liblockfile-fix-nfslib-and-soname.patch | |||
@@ -0,0 +1,54 @@ | |||
1 | Upstream-Status: Inappropriate [no upstream] | ||
2 | |||
3 | * nfslib should use NVER instead of VER | ||
4 | * install the missing soname library | ||
5 | |||
6 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | ||
7 | --- | ||
8 | Makefile.in | 9 ++++++--- | ||
9 | 1 files changed, 5 insertions(+), 3 deletions(-) | ||
10 | |||
11 | diff --git a/Makefile.in b/Makefile.in | ||
12 | index 836ca9b..a589fb8 100644 | ||
13 | --- a/Makefile.in | ||
14 | +++ b/Makefile.in | ||
15 | @@ -27,7 +27,7 @@ install: @INSTALL_TARGETS@ | ||
16 | |||
17 | static: liblockfile.a dotlockfile | ||
18 | shared: liblockfile.so dotlockfile | ||
19 | -nfslib: nfslock.so.$(VER) | ||
20 | +nfslib: nfslock.so.$(NVER) | ||
21 | |||
22 | liblockfile.a: lockfile.o | ||
23 | $(AR) rv liblockfile.a lockfile.o | ||
24 | @@ -36,7 +36,7 @@ liblockfile.so: liblockfile.a | ||
25 | $(CC) -fPIC -shared -Wl,-soname,liblockfile.so.1 \ | ||
26 | -o liblockfile.so lockfile.o $(LDFLAGS) -lc | ||
27 | |||
28 | -nfslock.so.$(VER): nfslock.o | ||
29 | +nfslock.so.$(NVER): nfslock.o | ||
30 | $(CC) -fPIC -shared -Wl,-soname,nfslock.so.0 \ | ||
31 | -o nfslock.so.$(NVER) nfslock.o $(LDFLAGS) | ||
32 | |||
33 | @@ -59,6 +59,7 @@ install_shared: shared install_common | ||
34 | install -m 755 liblockfile.so \ | ||
35 | $(ROOT)$(libdir)/liblockfile.so.$(VER) | ||
36 | ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so | ||
37 | + ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so.1 | ||
38 | if test "$(ROOT)" = ""; then @LDCONFIG@; fi | ||
39 | |||
40 | install_common: | ||
41 | @@ -72,7 +73,9 @@ install_common: | ||
42 | |||
43 | install_nfslib: nfslib | ||
44 | install -d $(ROOT)$(nfslockdir) | ||
45 | - install -m 755 nfslock.so.$(VER) $(ROOT)$(nfslockdir) | ||
46 | + install -m 755 nfslock.so.$(NVER) $(ROOT)$(nfslockdir) | ||
47 | + ln -sf nfslock.so.$(NVER) $(ROOT)$(libdir)/nfslock.so | ||
48 | + ln -sf nfslock.so.$(NVER) $(ROOT)$(libdir)/nfslock.so.0 | ||
49 | if test "$(ROOT)" = ""; then @LDCONFIG@; fi | ||
50 | |||
51 | clean: | ||
52 | -- | ||
53 | 1.7.9.5 | ||
54 | |||
diff --git a/meta-oe/recipes-extended/liblockfile/liblockfile_1.09.bb b/meta-oe/recipes-extended/liblockfile/liblockfile_1.09.bb index 3ef52cf67..fa68fd061 100644 --- a/meta-oe/recipes-extended/liblockfile/liblockfile_1.09.bb +++ b/meta-oe/recipes-extended/liblockfile/liblockfile_1.09.bb | |||
@@ -7,6 +7,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/libl/liblockfile/liblockfile_1.09.orig.tar.gz \ | |||
7 | file://install.patch \ | 7 | file://install.patch \ |
8 | file://configure.patch \ | 8 | file://configure.patch \ |
9 | file://ldflags.patch \ | 9 | file://ldflags.patch \ |
10 | file://liblockfile-fix-nfslib-and-soname.patch \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | SRC_URI[md5sum] = "2aa269e4405ee8235ff17d1b357c6ae8" | 13 | SRC_URI[md5sum] = "2aa269e4405ee8235ff17d1b357c6ae8" |
@@ -14,9 +15,15 @@ SRC_URI[sha256sum] = "16979eba05396365e1d6af7100431ae9d32f9bc063930d1de66298a069 | |||
14 | 15 | ||
15 | inherit autotools | 16 | inherit autotools |
16 | 17 | ||
17 | EXTRA_OECONF = "--enable-shared --enable-static" | 18 | # set default mailgroup to mail |
19 | # --with-libnfslock specify where to install nfslock.so.NVER | ||
20 | EXTRA_OECONF = "--enable-shared --enable-static \ | ||
21 | --with-mailgroup=mail \ | ||
22 | --with-libnfslock=${libdir} \ | ||
23 | " | ||
18 | 24 | ||
19 | do_install () { | 25 | # Makefile using ROOT not DESTDIR |
20 | oe_runmake 'ROOT=${D}' INSTGRP='' install | 26 | EXTRA_OEMAKE += "ROOT=${D}" |
21 | } | ||
22 | 27 | ||
28 | FILES_${PN} += "${libdir}/nfslock.so.*" | ||
29 | FILES_${PN}-dev += "${libdir}/nfslock.so" | ||