forked from pool/glibc
Accepting request 113387 from home:a_jaeger:my-factory-packages
Cleanup of patches. OBS-URL: https://build.opensuse.org/request/show/113387 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=164
This commit is contained in:
41
nss-db-path.patch
Normal file
41
nss-db-path.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
Use /var/db for nss_db
|
||||
|
||||
Index: glibc-2.15/nss/db-Makefile
|
||||
===================================================================
|
||||
--- glibc-2.15.orig/nss/db-Makefile
|
||||
+++ glibc-2.15/nss/db-Makefile
|
||||
@@ -23,7 +23,7 @@ DATABASES = $(wildcard /etc/passwd /etc/
|
||||
/etc/rpc /etc/services /etc/shadow /etc/gshadow \
|
||||
/etc/netgroup)
|
||||
|
||||
-VAR_DB = /var/db
|
||||
+VAR_DB = /var/lib/misc
|
||||
|
||||
AWK = awk
|
||||
MAKEDB = makedb --quiet
|
||||
Index: glibc-2.15/sysdeps/unix/sysv/linux/paths.h
|
||||
===================================================================
|
||||
--- glibc-2.15.orig/sysdeps/unix/sysv/linux/paths.h
|
||||
+++ glibc-2.15/sysdeps/unix/sysv/linux/paths.h
|
||||
@@ -68,7 +68,7 @@
|
||||
/* Provide trailing slash, since mostly used for building pathnames. */
|
||||
#define _PATH_DEV "/dev/"
|
||||
#define _PATH_TMP "/tmp/"
|
||||
-#define _PATH_VARDB "/var/db/"
|
||||
+#define _PATH_VARDB "/var/lib/misc/"
|
||||
#define _PATH_VARRUN "/var/run/"
|
||||
#define _PATH_VARTMP "/var/tmp/"
|
||||
|
||||
Index: glibc-2.15/Makeconfig
|
||||
===================================================================
|
||||
--- glibc-2.15.orig/Makeconfig
|
||||
+++ glibc-2.15/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 = /var/lib/misc
|
||||
endif
|
||||
inst_vardbdir = $(install_root)$(vardbdir)
|
||||
|
Reference in New Issue
Block a user