!2 update setup to 2.13.7

Merge pull request !2 from linwei9/master
This commit is contained in:
openeuler-ci-bot 2020-07-27 23:00:59 +08:00 committed by Gitee
commit 2cc0a79c82
6 changed files with 10 additions and 193 deletions

View File

@ -1,59 +0,0 @@
From ead65179f83ba4359795055cde76c4f46417951d Mon Sep 17 00:00:00 2001
From: Martin Osvald <mosvald@redhat.com>
Date: Thu, 29 Aug 2019 09:31:31 +0200
Subject: [PATCH 18/23] csh.login: set PATH again (if empty) to prevent
interpreter error (#1744106)
---
csh.login | 36 ++++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 14 deletions(-)
diff --git a/csh.login b/csh.login
index 51902e8..e4b1990 100644
--- a/csh.login
+++ b/csh.login
@@ -2,20 +2,28 @@
# System wide environment and startup programs, for login setup
-#add sbin directories to the path
-foreach p ( /usr/local/sbin /usr/sbin )
- switch (":${PATH}:")
- case "*:${p}:*":
- breaksw
- default:
- if ( $uid == 0 ) then
- set path = ( ${p} ${path:q} )
- else
- set path = ( ${path:q} ${p} )
- endif
- breaksw
- endsw
-end
+if ( ! ${?PATH} ) then
+ if ( $uid == 0 ) then
+ setenv PATH "/usr/local/sbin:/usr/sbin:/usr/local/bin:/usr/bin"
+ else
+ setenv PATH "/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin"
+ endif
+else
+ #add sbin directories to the path
+ foreach p ( /usr/local/sbin /usr/sbin )
+ switch (":${PATH}:")
+ case "*:${p}:*":
+ breaksw
+ default:
+ if ( $uid == 0 ) then
+ set path = ( ${p} ${path:q} )
+ else
+ set path = ( ${path:q} ${p} )
+ endif
+ breaksw
+ endsw
+ end
+endif
setenv HOSTNAME `/usr/bin/hostname`
set history=1000
--
1.8.3.1

View File

@ -1,100 +0,0 @@
From b22cf3a3665fe6a3b05c1188a91db884b5a18c72 Mon Sep 17 00:00:00 2001
From: Martin Osvald <mosvald@redhat.com>
Date: Thu, 29 Aug 2019 12:42:33 +0200
Subject: [PATCH 20/23] lang.csh: fix several variable substitution bugs and
typos (#1746749)
---
lang.csh | 73 ++++++++++++++++++++++++++++----------------------------
1 file changed, 37 insertions(+), 36 deletions(-)
diff --git a/lang.csh b/lang.csh
index c9ed880..d9cdcce 100644
--- a/lang.csh
+++ b/lang.csh
@@ -58,45 +58,46 @@ endif
# The ${LANG} manipulation is necessary only in virtual terminal (a.k.a. console - /dev/tty*):
set in_console=`tty | grep -vc -e '/dev/tty'`
-if (${?LANG} && ${?TERM} == 'linux' && in_console == 0) then
- set utf8_used=`echo ${LANG} | grep --quiet -E -i -e '^.+\.utf-?8$'; echo $?`
+if (${?LANG} && ${?TERM}) then
+ if (${TERM} == 'linux' && $in_console == 0) then
+ set utf8_used=`echo ${LANG} | grep --quiet -E -i -e '^.+\.utf-?8$'; echo $?`
- if (${utf8_used} == 0) then
- switch (${LANG})
- case en_IN*:
- breaksw
+ if (${utf8_used} == 0) then
+ switch (${LANG})
+ case en_IN*:
+ breaksw
+ case ja*:
+ case ko*:
+ case si*:
+ case zh*:
+ case ar*:
+ case fa*:
+ case he*:
+ case *_IN*:
+ setenv LANG en_US.UTF-8
+ breaksw
+ endsw
+ else
+ switch (${LANG})
+ case en_IN*:
+ breaksw
+ case ja*:
+ case ko*:
+ case si*:
+ case zh*:
+ case ar*:
+ case fa*:
+ case he*:
+ case *_IN*:
+ setenv LANG en_US
+ breaksw
+ endsw
+ endif
- case ja*:
- case ko*:
- case si*:
- case zh*:
- case ar*:
- case fa*:
- case he*:
- case *_IN*:
- setenv LANG en_US.UTF-8
- breaksw
- endsw
- else
- switch (${LANG})
- case en_IN*:
- breaksw
- case ja*:
- case ko*:
- case si*:
- case zh*:
- m case ar*:
- case fa*:
- case he*:
- case *_IN*:
- setenv LANG en_US
- breaksw
- endsw
+ # NOTE: We are not exporting the ${LANG} here again on purpose.
+ # If user starts GUI session from console manually, then
+ # the previously set LANG should be okay to use.
endif
-
- # NOTE: We are not exporting the ${LANG} here again on purpose.
- # If user starts GUI session from console manually, then
- # the previously set LANG should be okay to use.
endif
unset in_console utf8_used
--
2.19.1

View File

@ -1,26 +0,0 @@
From ef35ac39f3b280e03590cc13362b1086e843b3ca Mon Sep 17 00:00:00 2001
From: Martin Osvald <mosvald@redhat.com>
Date: Fri, 30 Aug 2019 16:51:35 +0200
Subject: [PATCH 22/23] fix lang.csh script so it doesn't break tcsh -e scripts
(#1620004) II
---
lang.csh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lang.csh b/lang.csh
index 3ebd023..f81de15 100644
--- a/lang.csh
+++ b/lang.csh
@@ -66,7 +66,7 @@ set in_console=`tty | grep -vc -e '/dev/tty'`
if (${?LANG} && ${?TERM}) then
if (${TERM} == 'linux' && $in_console == 0) then
- set utf8_used=`echo ${LANG} | grep --quiet -E -i -e '^.+\.utf-?8$'; echo $?`
+ set utf8_used=`echo ${LANG} | grep -vc -E -i -e '^.+\.utf-?8$'`
if (${utf8_used} == 0) then
switch (${LANG})
--
2.19.1

Binary file not shown.

BIN
setup-2.13.7.tar.bz2 Normal file

Binary file not shown.

View File

@ -1,13 +1,13 @@
Summary: A set of system configuration and setup files
Name: setup
Version: 2.13.3
Release: 4
Version: 2.13.7
Release: 1
License: Public Domain
Group: System Environment/Base
URL: https://pagure.io/setup/
Source0: http://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
Patch9000: support-filesystems-xfs.patch
Patch9001: source-cshlocal-when-login.patch
Patch0: support-filesystems-xfs.patch
Patch1: source-cshlocal-when-login.patch
BuildArch: noarch
BuildRequires: bash tcsh perl-interpreter
#require system release for saner dependency order
@ -15,10 +15,6 @@ Requires: system-release
Conflicts: filesystem < 3
Conflicts: initscripts < 4.26, bash <= 2.0.4-21
Patch6000: 0018-csh.login-set-PATH-again-if-empty-to-prevent-interpr.patch
Patch6001: 0020-lang.csh-fix-several-variable-substitution-bugs-and-.patch
Patch6002: 0022-fix-lang.csh-script-so-it-doesn-t-break-tcsh-e-scrip.patch
%description
The setup package contains a set of important system configuration and
setup files, such as passwd, group, and profile.
@ -120,6 +116,12 @@ end
%{_tmpfilesdir}/%{name}.conf
%changelog
* Mon Jul 27 2020 linwei <linwei54@huawei.com> - 2.13.7-1
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:Update setup to 2.13.7
* Thu Dec 19 2019 jiangchuangang <jiangchuangang@huawei.com> - 2.13.3-4
- Type:enhancement
- ID:NA