From 6f60b7afcdcbd255d87de07df8dc26ca390857cc Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sat, 26 Jan 2008 20:07:47 +0000 Subject: [PATCH] uClibc: restore support of shadow passwords, but make it configurable SVN-Revision: 10276 --- toolchain/Config.in | 7 +++++++ toolchain/uClibc/Makefile | 5 +++-- toolchain/uClibc/config/arm | 3 +-- toolchain/uClibc/config/armeb | 3 +-- toolchain/uClibc/config/avr32 | 3 +-- toolchain/uClibc/config/cris | 2 +- toolchain/uClibc/config/i386 | 2 +- toolchain/uClibc/config/i686 | 2 +- toolchain/uClibc/config/mips | 5 ++--- toolchain/uClibc/config/mipsel | 5 ++--- toolchain/uClibc/config/powerpc | 5 ++--- toolchain/uClibc/config/x86_64 | 2 +- 12 files changed, 23 insertions(+), 21 deletions(-) diff --git a/toolchain/Config.in b/toolchain/Config.in index ed5a939787f..a36a0a87f45 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -27,6 +27,13 @@ config LARGEFILE help Enable large file (files > 2 GB) support +config SHADOW_PASSWORDS + bool + prompt "Enable shadow password support?" if TOOLCHAINOPTS + default y + help + Enable shadow password support. + config SOFT_FLOAT bool prompt "Use software floating point by default" if TOOLCHAINOPTS diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile index a9093a96ce0..450fb442d6c 100644 --- a/toolchain/uClibc/Makefile +++ b/toolchain/uClibc/Makefile @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -46,6 +46,7 @@ define Build/Prepare $(SED) 's,^KERNEL_HEADERS=.*,KERNEL_HEADERS=\"$(LINUX_HEADERS_DIR)/include\",g' \ -e 's,.*UCLIBC_HAS_FPU.*,UCLIBC_HAS_FPU=$(if $(CONFIG_SOFT_FLOAT),n\nUCLIBC_HAS_FLOATS=y\nUCLIBC_HAS_SOFT_FLOAT=y,y),g' \ -e 's,^.*UCLIBC_HAS_LFS.*,UCLIBC_HAS_LFS=$(if $(CONFIG_LARGEFILE),y,n),g' \ + -e 's,^.*UCLIBC_HAS_SHADOW.*,UCLIBC_HAS_SHADOW=$(if $(CONFIG_SHADOW_PASSWORDS),y,n),g' \ $(PKG_BUILD_DIR)/.config mkdir -p $(BUILD_DIR_HOST)/uClibc_dev/usr/include mkdir -p $(BUILD_DIR_HOST)/uClibc_dev/usr/lib @@ -90,7 +91,7 @@ UCLIBC_MAKE := PATH=$(TARGET_PATH) $(MAKE) -C $(PKG_BUILD_DIR) \ define Build/Compile $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(PKG_BUILD_DIR)/Rules.mak - $(UCLIBC_MAKE) PREFIX= all + $(UCLIBC_MAKE) PREFIX= all $(UCLIBC_MAKE) PREFIX=$(STAGING_DIR_HOST)/ install_runtime install_dev $(SED) 's,UCLIBC_VERSION=.*,UCLIBC_VERSION=$(PKG_VERSION),' $(TOOLCHAIN_DIR)/info.mk $(SED) 's,UCLIBC_PATCHVER=.*,UCLIBC_PATCHVER=$(PKG_EXTRAVERSION),' $(TOOLCHAIN_DIR)/info.mk diff --git a/toolchain/uClibc/config/arm b/toolchain/uClibc/config/arm index 6051320b3b9..6ec55f7e92c 100644 --- a/toolchain/uClibc/config/arm +++ b/toolchain/uClibc/config/arm @@ -91,11 +91,10 @@ LINUXTHREADS_OLD=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y # UNIX98PTY_ONLY is not set diff --git a/toolchain/uClibc/config/armeb b/toolchain/uClibc/config/armeb index c156125bcd4..d3c5085bf0c 100644 --- a/toolchain/uClibc/config/armeb +++ b/toolchain/uClibc/config/armeb @@ -92,11 +92,10 @@ LINUXTHREADS_OLD=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y # UNIX98PTY_ONLY is not set diff --git a/toolchain/uClibc/config/avr32 b/toolchain/uClibc/config/avr32 index 24340db0b8b..f6b449a61c3 100644 --- a/toolchain/uClibc/config/avr32 +++ b/toolchain/uClibc/config/avr32 @@ -76,11 +76,10 @@ LINUXTHREADS_OLD=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y UNIX98PTY_ONLY=y diff --git a/toolchain/uClibc/config/cris b/toolchain/uClibc/config/cris index 389ba8af9af..f0071dc2b9c 100644 --- a/toolchain/uClibc/config/cris +++ b/toolchain/uClibc/config/cris @@ -69,7 +69,7 @@ UCLIBC_HAS_LFS=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y +UCLIBC_HAS_SHADOW=y # UNIX98PTY_ONLY is not set ASSUME_DEVPTS=y UCLIBC_HAS_TM_EXTENSIONS=y diff --git a/toolchain/uClibc/config/i386 b/toolchain/uClibc/config/i386 index ee215e63a5b..a1a0d3d4c5d 100644 --- a/toolchain/uClibc/config/i386 +++ b/toolchain/uClibc/config/i386 @@ -96,7 +96,7 @@ UCLIBC_DYNAMIC_ATEXIT=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y # UNIX98PTY_ONLY is not set diff --git a/toolchain/uClibc/config/i686 b/toolchain/uClibc/config/i686 index 5b9e047ffa7..84e892e2504 100644 --- a/toolchain/uClibc/config/i686 +++ b/toolchain/uClibc/config/i686 @@ -96,7 +96,7 @@ UCLIBC_DYNAMIC_ATEXIT=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y # UNIX98PTY_ONLY is not set diff --git a/toolchain/uClibc/config/mips b/toolchain/uClibc/config/mips index 09191e56c57..13026be7bc2 100644 --- a/toolchain/uClibc/config/mips +++ b/toolchain/uClibc/config/mips @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -89,11 +89,10 @@ LINUXTHREADS_OLD=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y # UNIX98PTY_ONLY is not set diff --git a/toolchain/uClibc/config/mipsel b/toolchain/uClibc/config/mipsel index 13dd6f90e46..998d2f14230 100644 --- a/toolchain/uClibc/config/mipsel +++ b/toolchain/uClibc/config/mipsel @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -89,11 +89,10 @@ LINUXTHREADS_OLD=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y # UNIX98PTY_ONLY is not set diff --git a/toolchain/uClibc/config/powerpc b/toolchain/uClibc/config/powerpc index f702bad78c9..f0635a337aa 100644 --- a/toolchain/uClibc/config/powerpc +++ b/toolchain/uClibc/config/powerpc @@ -1,4 +1,4 @@ -# +# # Copyright (C) 2006 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. @@ -78,11 +78,10 @@ LINUXTHREADS_OLD=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y COMPAT_ATEXIT=y # UCLIBC_SUSV3_LEGACY is not set UCLIBC_SUSV3_LEGACY_MACROS=y -# UCLIBC_HAS_SHADOW is not set +UCLIBC_HAS_SHADOW=y # UCLIBC_HAS_PROGRAM_INVOCATION_NAME is not set UCLIBC_HAS___PROGNAME=y # UNIX98PTY_ONLY is not set diff --git a/toolchain/uClibc/config/x86_64 b/toolchain/uClibc/config/x86_64 index 27c57a70f46..cb6b0224f2e 100644 --- a/toolchain/uClibc/config/x86_64 +++ b/toolchain/uClibc/config/x86_64 @@ -65,7 +65,7 @@ UCLIBC_HAS_LFS=y MALLOC_STANDARD=y MALLOC_GLIBC_COMPAT=y UCLIBC_DYNAMIC_ATEXIT=y -HAS_SHADOW=y +UCLIBC_HAS_SHADOW=y # UNIX98PTY_ONLY is not set ASSUME_DEVPTS=y UCLIBC_HAS_TM_EXTENSIONS=y -- 2.30.2