rpms/ksh/devel dotkshrc, NONE, 1.1 kshrc.rhs, NONE, 1.1 ksh.spec, 1.40, 1.41

Michal Hlavinka mhlavink at fedoraproject.org
Tue Oct 21 17:17:19 UTC 2008


Author: mhlavink

Update of /cvs/extras/rpms/ksh/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2984

Modified Files:
	ksh.spec 
Added Files:
	dotkshrc kshrc.rhs 
Log Message:
fix #467025 -  Ksh fails to initialise environment when login from graphic console



--- NEW FILE dotkshrc ---
# .kshrc

# Source global definitions
if [ -f /etc/kshrc ]; then
	. /etc/kshrc
fi

# User specific aliases and functions


--- NEW FILE kshrc.rhs ---
#
# /etc/kshrc is sourced in interactive shells.  It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#

# Set prompts
#PROMPT='[%n@%m]%~%# '    # default prompt
#RPROMPT=' %~'     # prompt for right side of screen

_src_etc_profile_d()
{
    # from zshrc, with ksh fixes
    if [[ ! -o login ]]; then # We're not a login shell
        for i in /etc/profile.d/*.sh; do
	    if [ -r "$i" ]; then
	        . $i
	    fi
        done
        unset i
    fi
}
_src_etc_profile_d

unset -f _src_etc_profile_d


Index: ksh.spec
===================================================================
RCS file: /cvs/extras/rpms/ksh/devel/ksh.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- ksh.spec	6 Aug 2008 06:43:42 -0000	1.40
+++ ksh.spec	21 Oct 2008 17:16:49 -0000	1.41
@@ -8,10 +8,12 @@
 Group:        System Environment/Shells
 License:      CPL
 Version:      20080725
-Release:      3%{?dist}
+Release:      4%{?dist}
 Source0:      http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
 Source1:      http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
 Source2:      http://www.research.att.com/~gsf/download/tgz/ast-ksh-locale.%{releasedate}.tgz
+Source3:      kshrc.rhs
+Source4:      dotkshrc
 #Patch0:       ksh-20041225-gcc4.patch
 Patch1:       ksh-20070328-uname.patch
 Patch2:       ksh-20070328-useex.patch
@@ -67,6 +69,9 @@
                $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/
 done
 ln -sf /bin/ksh $RPM_BUILD_ROOT/usr/bin/ksh
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel
+install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.kshrc
+install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/kshrc
 
 %post
 if [ ! -f /etc/shells ]; then
@@ -100,11 +105,16 @@
 /usr//bin/ksh
 %{_datadir}/locale/*/LC_MESSAGES/*
 %{_mandir}/man1/*
+%config(noreplace) %{_sysconfdir}/skel/.kshrc
+%config(noreplace) %{_sysconfdir}/kshrc
 
 %clean
     rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Tue Oct 21 2008 Michal Hlavinka <mhlavink at redhat.com> 20080202-4
+- fix #467025 - Ksh fails to initialise environment when login from graphic console
+
 * Wed Aug 06 2008 Tomas Smetana <tsmetana at redhat.com> 20080725-3
 - fix BuildRequires, rebuild
 




More information about the scm-commits mailing list