All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] liblockfile: set default mailgroup and install libnfslock
Date: Sun, 20 Apr 2014 11:16:53 +0200	[thread overview]
Message-ID: <20140420091653.GX2486@jama> (raw)
In-Reply-To: <1397201877-5932-1-git-send-email-jackie.huang@windriver.com>

[-- Attachment #1: Type: text/plain, Size: 4688 bytes --]

On Fri, Apr 11, 2014 at 03:37:57PM +0800, jackie.huang@windriver.com wrote:
> From: Jackie Huang <jackie.huang@windriver.com>

Merged, thanks.

> 
> * 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>
> ---
>  .../liblockfile-fix-nfslib-and-soname.patch        |   54 ++++++++++++++++++++
>  .../liblockfile/liblockfile_1.09.bb                |   15 ++++--
>  2 files changed, 65 insertions(+), 4 deletions(-)
>  create mode 100644 meta-oe/recipes-extended/liblockfile/liblockfile-1.09/liblockfile-fix-nfslib-and-soname.patch
> 
> 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 0000000..ffd7a40
> --- /dev/null
> +++ b/meta-oe/recipes-extended/liblockfile/liblockfile-1.09/liblockfile-fix-nfslib-and-soname.patch
> @@ -0,0 +1,54 @@
> +Upstream-Status: Inappropriate [no upstream]
> +
> +* nfslib should use NVER instead of VER
> +* install the missing soname library
> +
> +Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
> +---
> + Makefile.in         |    9 ++++++---
> + 1 files changed, 5 insertions(+), 3 deletions(-)
> +
> +diff --git a/Makefile.in b/Makefile.in
> +index 836ca9b..a589fb8 100644
> +--- a/Makefile.in
> ++++ b/Makefile.in
> +@@ -27,7 +27,7 @@ install:	@INSTALL_TARGETS@
> + 
> + static:		liblockfile.a dotlockfile
> + shared:		liblockfile.so dotlockfile
> +-nfslib:		nfslock.so.$(VER)
> ++nfslib:		nfslock.so.$(NVER)
> + 
> + liblockfile.a:	lockfile.o
> + 		$(AR) rv liblockfile.a lockfile.o
> +@@ -36,7 +36,7 @@ liblockfile.so: liblockfile.a
> + 		$(CC) -fPIC -shared -Wl,-soname,liblockfile.so.1 \
> + 			-o liblockfile.so lockfile.o $(LDFLAGS) -lc
> + 
> +-nfslock.so.$(VER):	nfslock.o
> ++nfslock.so.$(NVER):	nfslock.o
> + 		$(CC) -fPIC -shared -Wl,-soname,nfslock.so.0 \
> + 			-o nfslock.so.$(NVER) nfslock.o $(LDFLAGS)
> + 
> +@@ -59,6 +59,7 @@ install_shared:	shared install_common
> + 		install -m 755 liblockfile.so \
> + 			$(ROOT)$(libdir)/liblockfile.so.$(VER)
> + 		ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so
> ++		ln -s liblockfile.so.$(VER) $(ROOT)$(libdir)/liblockfile.so.1
> + 		if test "$(ROOT)" = ""; then @LDCONFIG@; fi
> + 
> + install_common:
> +@@ -72,7 +73,9 @@ install_common:
> + 
> + install_nfslib:	nfslib
> + 		install -d $(ROOT)$(nfslockdir)
> +-		install -m 755 nfslock.so.$(VER) $(ROOT)$(nfslockdir)
> ++		install -m 755 nfslock.so.$(NVER) $(ROOT)$(nfslockdir)
> ++		ln -sf nfslock.so.$(NVER) $(ROOT)$(libdir)/nfslock.so
> ++		ln -sf nfslock.so.$(NVER) $(ROOT)$(libdir)/nfslock.so.0
> + 		if test "$(ROOT)" = ""; then @LDCONFIG@; fi
> + 
> + clean:
> +-- 
> +1.7.9.5
> +
> diff --git a/meta-oe/recipes-extended/liblockfile/liblockfile_1.09.bb b/meta-oe/recipes-extended/liblockfile/liblockfile_1.09.bb
> index 3ef52cf..fa68fd0 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 \
>      file://install.patch \
>      file://configure.patch \
>      file://ldflags.patch \
> +    file://liblockfile-fix-nfslib-and-soname.patch \
>  "
>  
>  SRC_URI[md5sum] = "2aa269e4405ee8235ff17d1b357c6ae8"
> @@ -14,9 +15,15 @@ SRC_URI[sha256sum] = "16979eba05396365e1d6af7100431ae9d32f9bc063930d1de66298a069
>  
>  inherit autotools
>  
> -EXTRA_OECONF = "--enable-shared --enable-static"
> +# set default mailgroup to mail
> +# --with-libnfslock specify where to install nfslock.so.NVER
> +EXTRA_OECONF = "--enable-shared --enable-static \
> +                --with-mailgroup=mail \
> +                --with-libnfslock=${libdir} \
> +"
>  
> -do_install () {
> -    oe_runmake 'ROOT=${D}' INSTGRP='' install
> -}
> +# Makefile using ROOT not DESTDIR
> +EXTRA_OEMAKE += "ROOT=${D}"
>  
> +FILES_${PN} += "${libdir}/nfslock.so.*"
> +FILES_${PN}-dev += "${libdir}/nfslock.so"
> -- 
> 1.7.9.5
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

      reply	other threads:[~2014-04-20  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-11  7:37 [meta-oe][PATCH] liblockfile: set default mailgroup and install libnfslock jackie.huang
2014-04-20  9:16 ` Martin Jansa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140420091653.GX2486@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.