From 22a2297c712d3b3ca0335197943483218c92ef3e Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Wed, 9 May 2012 11:08:57 -0700 Subject: eglibc: Add patch to fix /var installation location This address the packaging issues since it's installed in the wrong place ERROR: For recipe eglibc-nativesdk, the following files/directories were installed but not shipped in any package: ERROR: /var ERROR: /var/db ERROR: /var/db/Makefile Signed-off-by: Saul Wold --- .../eglibc/eglibc-2.15/add-prefix-to-var.patch | 19 ------------------- .../use-localstatedir-for-vardbdir.patch | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 19 deletions(-) delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/add-prefix-to-var.patch create mode 100644 meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch (limited to 'meta/recipes-core/eglibc/eglibc-2.15') diff --git a/meta/recipes-core/eglibc/eglibc-2.15/add-prefix-to-var.patch b/meta/recipes-core/eglibc/eglibc-2.15/add-prefix-to-var.patch deleted file mode 100644 index 4c83aa25dd..0000000000 --- a/meta/recipes-core/eglibc/eglibc-2.15/add-prefix-to-var.patch +++ /dev/null @@ -1,19 +0,0 @@ - -Upstream-Status: Pending - -Signed-off-by: Saul Wold - - -Index: libc/Makeconfig -=================================================================== ---- libc.orig/Makeconfig -+++ libc/Makeconfig -@@ -293,7 +293,7 @@ inst_sysconfdir = $(install_root)$(sysco - - # Directory for the database files and Makefile for nss_db. - ifndef vardbdir --vardbdir = /var/db -+vardbdir = $(prefix)/var/db - endif - inst_vardbdir = $(install_root)$(vardbdir) - diff --git a/meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch b/meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch new file mode 100644 index 0000000000..8392c1806d --- /dev/null +++ b/meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch @@ -0,0 +1,21 @@ + +localstatedir is set to be the /var directory, so use +it for the base of the vardbdir so it's properly relocatable. + +Upstream-Status: Pending + +Signed-off-by: Saul Wold + +Index: libc/Makeconfig +=================================================================== +--- libc.orig/Makeconfig ++++ libc/Makeconfig +@@ -293,7 +293,7 @@ inst_sysconfdir = $(install_root)$(sysco + + # Directory for the database files and Makefile for nss_db. + ifndef vardbdir +-vardbdir = /var/db ++vardbdir = $(localstatedir)/db + endif + inst_vardbdir = $(install_root)$(vardbdir) + -- cgit 1.2.3-korg