util-linux: flat: Add patch to avoid creating dynamic libraries.
PATCH 1/1 util-linux: flat: Add patch to avoid creating dynamic libraries.
From: Sonic Zhang <[email protected]>
Signed-off-by Sonic Zhang <[email protected]>
--- package/util-linux/util-linux-flat.patch | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/util-linux/util-linux-flat.patch
package/util-linux/util-linux-flat.patch new file +39 -0
@@ -0,0 +1,39 @@ +diff -urN util-linux-2.23.2.old/libblkid/src/Makemodule.am util-linux-2.23.2/libblkid/src/Makemodule.am +--- util-linux-2.23.2.old/libblkid/src/Makemodule.am 2013-07-15 16:25:46.281049040 +0800 ++++ util-linux-2.23.2/libblkid/src/Makemodule.am 2013-11-11 16:28:19.956656546 +0800 +@@ -220,7 +220,8 @@ + + # move lib from $(usrlib_execdir) to $(libdir) if needed + install-exec-hook-libblkid: +- if test "$(usrlib_execdir)" != "$(libdir)"; then \ ++ ls $(DESTDIR)$(usrlib_execdir)/libblkid.so.*; \ ++ if $? == 0 && 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); \ +diff -urN util-linux-2.23.2.old/libmount/src/Makemodule.am util-linux-2.23.2/libmount/src/Makemodule.am +--- util-linux-2.23.2.old/libmount/src/Makemodule.am 2013-02-28 00:46:29.874020654 +0800 ++++ util-linux-2.23.2/libmount/src/Makemodule.am 2013-11-11 16:29:37.366370584 +0800 +@@ -120,7 +120,8 @@ + + # move lib from $(usrlib_execdir) to $(libdir) if needed + install-exec-hook-libmount: +- if test "$(usrlib_execdir)" != "$(libdir)"; then \ ++ ls $(DESTDIR)$(usrlib_execdir)/libmount.so.*; \ ++ if $? == 0 && 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); \ +diff -urN util-linux-2.23.2.old/libuuid/src/Makemodule.am util-linux-2.23.2/libuuid/src/Makemodule.am +--- util-linux-2.23.2.old/libuuid/src/Makemodule.am 2013-02-28 00:46:29.882020725 +0800 ++++ util-linux-2.23.2/libuuid/src/Makemodule.am 2013-11-11 16:29:00.700507322 +0800 +@@ -39,7 +39,8 @@ + + # move lib from $(usrlib_execdir) to $(libdir) if needed + install-exec-hook-libuuid: +- if test "$(usrlib_execdir)" != "$(libdir)"; then \ ++ ls $(DESTDIR)$(usrlib_execdir)/libuuid.so.*; \ ++ if $? == 0 && 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); \
Signature · 1 line
1.8.2.3
PATCH 1/1 util-linux: flat: Add patch to avoid creating dynamic libraries.
Quoted 7 lines · On Fri, Nov 15, 2013 at 9:33 AM, <[email protected]> wrote:
From: Sonic Zhang <[email protected]>
Signed-off-by Sonic Zhang <[email protected]>--- package/util-linux/util-linux-flat.patch | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/util-linux/util-linux-flat.patch
Same comment regarding patch name and patch header.
Best regards,
Thomas