Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c033af094b !14 Update setup to 2.13.9.1
From: @jlwwlsqc
Reviewed-by: @licunlong,@openeuler-basic
Signed-off-by: @licunlong,@openeuler-basic
2021-12-07 06:27:01 +00:00
renmingshuai
d8c0eaeda5 Update setup to 2.13.9.1 2021-11-30 15:19:53 +08:00
openeuler-ci-bot
e35e1ff6fc !13 Update setup to 2.13.8
From: @zou_lin77
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-06-29 06:50:28 +00:00
zou_lin77
1a99bc83a2 Update setup to 2.13.8 2021-06-26 11:55:11 +08:00
openeuler-ci-bot
1471461763 !9 Add systemd to BuildRequires to use _tmpfilesdir macro
From: @panxh_purple
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-05-28 17:01:55 +08:00
panxiaohe
c5b3a18bf2 Add systemd to BuildRequires to use _tmpfilesdir macro 2021-05-28 15:05:14 +08:00
openeuler-ci-bot
ae1c4061e8 !6 Add bc and systemd to BuildRequires
From: @panxh_purple
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-05-27 18:51:02 +08:00
panxiaohe
6e0a3d9241 Add bc and systemd to BuildRequires 2021-05-27 17:34:06 +08:00
openeuler-ci-bot
2cc0a79c82 !2 update setup to 2.13.7
Merge pull request !2 from linwei9/master
2020-07-27 23:00:59 +08:00
linwei9
15aa79155f update setup to 2.13.7 2020-07-27 17:02:07 +08:00
6 changed files with 26 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.9.1.tar.bz2 Normal file

Binary file not shown.

View File

@ -1,24 +1,21 @@
Summary: A set of system configuration and setup files
Name: setup
Version: 2.13.3
Release: 4
Version: 2.13.9.1
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: systemd
BuildRequires: bash tcsh perl-interpreter
#require system release for saner dependency order
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 +117,27 @@ end
%{_tmpfilesdir}/%{name}.conf
%changelog
* Tue Nov 30 2021 wangjie <wangjie375@huawei.com> - 2.13.9.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Update setup to 2.13.9.1
* Sat Jun 26 2021 zoulin <zoulin13@huawei.com> - 2.13.8-1
- Type:enhancement
- ID:NA
- SUG:restart
- DESC:Update setup to 2.13.8
* Fri May 28 2021 panxiaohe <panxiaohe@huawei.com> - 2.13.7-2
- Add systemd to BuildRequires to use _tmpfilesdir macro
* 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