From: zhangxiao <xiao.zhang@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] util-linux: replace package files
Date: Thu, 16 May 2013 17:59:41 +0800 [thread overview]
Message-ID: <5194AE0D.8030508@windriver.com> (raw)
In-Reply-To: <1368689187-4714-2-git-send-email-xiao.zhang@windriver.com>
And, another method lies on meta/recipes-core/util-linux/util-linux.inc:
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -69,11 +69,11 @@ FILES_util-linux-uuidd = "${sbindir}/uuidd"
FILES_util-linux-reset = "${base_bindir}/reset"
FILES_util-linux-libblkid = "${base_libdir}/libblkid.so.*"
-FILES_util-linux-libblkid-dev = "${base_libdir}/libblkid.so
${base_libdir}/libblkid.la ${includedir}/blkid ${libdir}/pkgconfig/blkid.pc"
+FILES_util-linux-libblkid-dev = "${libdir}/libblkid.so
${base_libdir}/libblkid.la ${includedir}/blkid ${libdir}/pkgconfig/blkid.pc"
FILES_util-linux-libmount = "${base_libdir}/libmount.so.*"
-FILES_util-linux-libmount-dev = "${base_libdir}/libmount.so
${base_libdir}/libmount.la ${includedir}/libmount
${libdir}/pkgconfig/mount.pc"
+FILES_util-linux-libmount-dev = "${libdir}/libmount.so
${base_libdir}/libmount.la ${includedir}/libmount
${libdir}/pkgconfig/mount.pc"
FILES_util-linux-libuuid = "${base_libdir}/libuuid.so.*"
-FILES_util-linux-libuuid-dev = "${base_libdir}/libuuid.so
${base_libdir}/libuuid.la ${includedir}/uuid ${libdir}/pkgconfig/uuid.pc"
+FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so
${base_libdir}/libuuid.la ${includedir}/uuid ${libdir}/pkgconfig/uuid.pc"
FILES_util-linux-lscpu = "${bindir}/lscpu"
FILES_util-linux-fsck = "${base_sbindir}/fsck*"
Which one is better?
Thanks
Xiao
On 2013年05月16日 15:26, Zhang Xiao wrote:
> Move libuuid.so, libmount.so and libblkid.so from util-linux's dev RPM
> package to related library's dev RPM packages.
>
> [YOCTO #4500]
> [CQID: WIND00412705]
>
> Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
> ---
> .../util-linux-replace-package-files.patch | 56 ++++++++++++++++++++
> meta/recipes-core/util-linux/util-linux_2.22.2.bb | 1 +
> 2 files changed, 57 insertions(+), 0 deletions(-)
> create mode 100644 meta/recipes-core/util-linux/util-linux/util-linux-replace-package-files.patch
>
> diff --git a/meta/recipes-core/util-linux/util-linux/util-linux-replace-package-files.patch b/meta/recipes-core/util-linux/util-linux/util-linux-replace-package-files.patch
> new file mode 100644
> index 0000000..32868cc
> --- /dev/null
> +++ b/meta/recipes-core/util-linux/util-linux/util-linux-replace-package-files.patch
> @@ -0,0 +1,56 @@
> +Upstream-Status: Pending
> +Signed-off-by: Zhang Xiao <xiao.zhang@windriver.com>
> +
> +Move libuuid.so, libmount.so and libblkid.so from util-linux's dev RPM
> +package to related library's dev RPM packages.
> +---
> + libblkid/src/Makemodule.am | 6 +-----
> + libmount/src/Makemodule.am | 6 +-----
> + libuuid/src/Makemodule.am | 6 +-----
> + 3 files changed, 3 insertions(+), 15 deletions(-)
> +
> +--- util-linux-2.22.2/libuuid/src/Makemodule.am.orig
> ++++ util-linux-2.22.2/libuuid/src/Makemodule.am
> +@@ -42,11 +42,7 @@ install-exec-hook-libuuid:
> + if test "$(usrlib_execdir)" != "$(libdir)"; then \
> + mkdir -p $(DESTDIR)$(libdir); \
> + mv $(DESTDIR)$(usrlib_execdir)/libuuid.so.* $(DESTDIR)$(libdir); \
> +- so_img_name=$$(readlink $(DESTDIR)$(usrlib_execdir)/libuuid.so); \
> +- so_img_rel_target=$$(echo $(usrlib_execdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
> +- (cd $(DESTDIR)$(usrlib_execdir) && \
> +- rm -f libuuid.so && \
> +- $(LN_S) $$so_img_rel_target$(libdir)/$$so_img_name libuuid.so); \
> ++ mv $(DESTDIR)$(usrlib_execdir)/libuuid.so $(DESTDIR)$(libdir); \
> + fi
> +
> + uninstall-hook-libuuid:
> +--- util-linux-2.22.2/libmount/src/Makemodule.am.orig
> ++++ util-linux-2.22.2/libmount/src/Makemodule.am
> +@@ -123,11 +123,7 @@ install-exec-hook-libmount:
> + if test "$(usrlib_execdir)" != "$(libdir)"; then \
> + mkdir -p $(DESTDIR)$(libdir); \
> + mv $(DESTDIR)$(usrlib_execdir)/libmount.so.* $(DESTDIR)$(libdir); \
> +- so_img_name=$$(readlink $(DESTDIR)$(usrlib_execdir)/libmount.so); \
> +- so_img_rel_target=$$(echo $(usrlib_execdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
> +- (cd $(DESTDIR)$(usrlib_execdir) && \
> +- rm -f libmount.so && \
> +- $(LN_S) $$so_img_rel_target$(libdir)/$$so_img_name libmount.so); \
> ++ mv $(DESTDIR)$(usrlib_execdir)/libmount.so $(DESTDIR)$(libdir); \
> + fi
> +
> + uninstall-hook-libmount:
> +--- util-linux-2.22.2/libblkid/src/Makemodule.am.orig
> ++++ util-linux-2.22.2/libblkid/src/Makemodule.am
> +@@ -219,11 +219,7 @@ install-exec-hook-libblkid:
> + if test "$(usrlib_execdir)" != "$(libdir)"; then \
> + mkdir -p $(DESTDIR)$(libdir); \
> + mv $(DESTDIR)$(usrlib_execdir)/libblkid.so.* $(DESTDIR)$(libdir); \
> +- so_img_name=$$(readlink $(DESTDIR)$(usrlib_execdir)/libblkid.so); \
> +- so_img_rel_target=$$(echo $(usrlib_execdir) | sed 's,\(^/\|\)[^/][^/]*,..,g'); \
> +- (cd $(DESTDIR)$(usrlib_execdir) && \
> +- rm -f libblkid.so && \
> +- $(LN_S) $$so_img_rel_target$(libdir)/$$so_img_name libblkid.so); \
> ++ mv $(DESTDIR)$(usrlib_execdir)/libblkid.so $(DESTDIR)$(libdir); \
> + fi
> +
> + uninstall-hook-libblkid:
> diff --git a/meta/recipes-core/util-linux/util-linux_2.22.2.bb b/meta/recipes-core/util-linux/util-linux_2.22.2.bb
> index 43a55a6..526308d 100644
> --- a/meta/recipes-core/util-linux/util-linux_2.22.2.bb
> +++ b/meta/recipes-core/util-linux/util-linux_2.22.2.bb
> @@ -8,6 +8,7 @@ SRC_URI += "file://util-linux-ng-replace-siginterrupt.patch \
> file://configure-sbindir.patch \
> file://fix-configure.patch \
> file://mbsalign-license.patch \
> + file://util-linux-replace-package-files.patch \
> "
>
> SRC_URI[md5sum] = "3e379b4d8b9693948d751c154614c73e"
>
next prev parent reply other threads:[~2013-05-16 10:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 7:26 [PATCH] util-linux: replace package files Zhang Xiao
2013-05-16 7:26 ` Zhang Xiao
2013-05-16 9:59 ` zhangxiao [this message]
2013-05-17 7:04 ` Saul Wold
2013-05-17 9:43 ` package_write_ipk somehow looks into the wrong path Mike Looijmans
2013-05-17 10:15 ` Martin Jansa
2013-05-17 10:51 ` Mike Looijmans
2013-05-17 11:04 ` Mike Looijmans
2013-05-17 13:23 ` Martin Jansa
2013-05-17 11:11 ` Mike Looijmans
2013-05-17 11:13 ` Mike Looijmans
2013-05-17 11:39 ` Mike Looijmans
2013-05-21 1:44 ` [PATCH] util-linux: replace package files zhangxiao
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=5194AE0D.8030508@windriver.com \
--to=xiao.zhang@windriver.com \
--cc=openembedded-core@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.