]> code.ossystems Code Review - openembedded-core.git/commitdiff
eglibc: Add patch to fix /var installation location
authorSaul Wold <sgw@linux.intel.com>
Wed, 9 May 2012 18:08:57 +0000 (11:08 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 May 2012 16:50:03 +0000 (17:50 +0100)
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 <sgw@linux.intel.com>
meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch [moved from meta/recipes-core/eglibc/eglibc-2.15/add-prefix-to-var.patch with 74% similarity]
meta/recipes-core/eglibc/eglibc_2.15.bb

similarity index 74%
rename from meta/recipes-core/eglibc/eglibc-2.15/add-prefix-to-var.patch
rename to meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch
index 4c83aa25dd8c01ecd4a9b06140e1cb91809f34b4..8392c1806d72be8ea271d56e326fdfe918ef1309 100644 (file)
@@ -1,9 +1,11 @@
 
+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 <sgw@linux.intel.com>
 
-
 Index: libc/Makeconfig
 ===================================================================
 --- libc.orig/Makeconfig
@@ -13,7 +15,7 @@ Index: libc/Makeconfig
  # Directory for the database files and Makefile for nss_db.
  ifndef vardbdir
 -vardbdir = /var/db
-+vardbdir = $(prefix)/var/db
++vardbdir = $(localstatedir)/db
  endif
  inst_vardbdir = $(install_root)$(vardbdir)
  
index e61816d884ebc1aeb62184dec63010363a9ae7a5..65ce9d3cbc75addfbe83dfb97624e1d63cfbc933 100644 (file)
@@ -3,7 +3,7 @@ require eglibc.inc
 SRCREV = "17386"
 
 DEPENDS += "gperf-native"
-PR = "r8"
+PR = "r9"
 PR_append = "+svnr${SRCPV}"
 
 EGLIBC_BRANCH="eglibc-2_15"
@@ -23,7 +23,7 @@ SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};proto=http
            file://ppc-sqrt_finite.patch \
            file://GLRO_dl_debug_mask.patch \
            file://initgroups_keys.patch \
-           file://add-prefix-to-var.patch \
+           file://use-localstatedir-for-vardbdir.patch \
           "
 LIC_FILES_CHKSUM = "file://LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9 \
       file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \