/[gentoo-alt]/trunk/prefix-overlay/app-shells/bash/files/bash-3.0-configs.patch
Gentoo

Contents of /trunk/prefix-overlay/app-shells/bash/files/bash-3.0-configs.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 904 - (show annotations) (download)
Sun Nov 27 21:49:31 2005 UTC (9 years, 7 months ago) by kito
File size: 2642 byte(s)
PATH defaults to prefix, respect sysconfdir for init files.
1 --- bash-3.0/config.h.in
2 +++ bash-3.0/config.h.in
3 @@ -197,7 +197,7 @@
4
5 /* System paths */
6
7 -#define DEFAULT_MAIL_DIRECTORY "/usr/spool/mail"
8 +#define DEFAULT_MAIL_DIRECTORY "@PREFIX@/var/spool/mail"
9
10 /* Characteristics of the system's header files and libraries that affect
11 the compilation environment. */
12 --- bash-3.0/config-bot.h
13 +++ bash-3.0/config-bot.h
14 @@ -178,4 +178,18 @@
15 /******************************************************************/
16
17 /* If you don't want bash to provide a default mail file to check. */
18 -/* #undef DEFAULT_MAIL_DIRECTORY */
19 +/* DP: - don't define a default DEFAULT_MAIL_DIRECTORY, because it
20 + * DP: can cause a timeout on NFS mounts.
21 + */
22 +#undef DEFAULT_MAIL_DIRECTORY
23 +
24 +/* Force pgrp synchronization
25 + * (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=81653)
26 + *
27 + * The session will hang cases where you 'su' (not 'su -') and
28 + * then run a piped command in emacs.
29 + * This problem seem to happen due to scheduler changes kernel
30 + * side - although reproduceble with later 2.4 kernels, it is
31 + * especially easy with 2.6 kernels.
32 + */
33 +#define PGRP_PIPE 1
34 --- bash-3.0/config-top.h
35 +++ bash-3.0/config-top.h
36 @@ -52,14 +52,14 @@
37 /* The default value of the PATH variable. */
38 #ifndef DEFAULT_PATH_VALUE
39 #define DEFAULT_PATH_VALUE \
40 - "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:."
41 + "@PREFIX@/usr/local/sbin:@PREFIX@/usr/local/bin:@PREFIX@/usr/sbin:@PREFIX@/usr/bin:@PREFIX@/sbin:@PREFIX@/bin"
42 #endif
43
44 /* The value for PATH when invoking `command -p'. This is only used when
45 the Posix.2 confstr () function, or CS_PATH define are not present. */
46 #ifndef STANDARD_UTILS_PATH
47 #define STANDARD_UTILS_PATH \
48 - "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
49 + "@PREFIX@/bin:@PREFIX@/usr/bin:@PREFIX@/sbin:@PREFIX@/usr/sbin"
50 #endif
51
52 /* Default primary and secondary prompt strings. */
53 @@ -74,14 +74,16 @@
54
55 /* System-wide .bashrc file for interactive shells. */
56 /* #define SYS_BASHRC "/etc/bash.bashrc" */
57 +#define SYS_BASHRC "@PREFIX@/etc/bash/bashrc" /* #26952 */
58
59 /* System-wide .bash_logout for login shells. */
60 /* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
61 +#define SYS_BASH_LOGOUT "@PREFIX@/etc/bash/bash_logout" /* #90488 */
62
63 /* Define this to make non-interactive shells begun with argv[0][0] == '-'
64 run the startup files when not in posix mode. */
65 -/* #define NON_INTERACTIVE_LOGIN_SHELLS */
66 +#define NON_INTERACTIVE_LOGIN_SHELLS
67
68 /* Define this if you want bash to try to check whether it's being run by
69 sshd and source the .bashrc if so (like the rshd behavior). */
70 -/* #define SSH_SOURCE_BASHRC */
71 +#define SSH_SOURCE_BASHRC /* #24762 */

  ViewVC Help
Powered by ViewVC 1.1.20