diff --git a/screen-4.0.3-configh.patch b/screen-4.0.3-configh.patch new file mode 100644 index 0000000..5f46385 --- /dev/null +++ b/screen-4.0.3-configh.patch @@ -0,0 +1,20 @@ +diff -up screen-4.0.3/config.h.in.configh screen-4.0.3/config.h.in +--- screen-4.0.3/config.h.in.configh 2006-10-23 15:06:32.000000000 +0200 ++++ screen-4.0.3/config.h.in 2008-05-19 15:47:19.000000000 +0200 +@@ -291,7 +291,7 @@ + * Define USE_LOCALE if you want screen to use the locale names + * for the name of the month and day of the week. + */ +-#define USE_LOCALE ++#undef USE_LOCALE + + /* + * Define USE_PAM if your system supports PAM (Pluggable Authentication +@@ -563,7 +563,6 @@ + * If you are on a SYS V machine that restricts filename length to 14 + * characters, you may need to enforce that by setting NAME_MAX to 14 + */ +-#undef NAME_MAX /* KEEP_UNDEF_HERE override system value */ + #undef NAME_MAX + + /* diff --git a/screen.spec b/screen.spec index e6dabd4..5c50c47 100644 --- a/screen.spec +++ b/screen.spec @@ -19,6 +19,7 @@ Source1: screen.pam Patch1: screen-4.0.3-libs.patch # Some tweaks of the default screenrc Patch2: screen-4.0.2-screenrc.patch +Patch3: screen-4.0.3-configh.patch Patch4: screen-4.0.3-stropts.patch # Fixes potential buffer overflow when > 2^31 semicolons are passed. Patch7: screen-4.0.1-args.patch @@ -39,6 +40,7 @@ support multiple logins on one terminal. %setup -q %patch1 -p1 -b .libs %patch2 -p1 -b .screenrc +%patch3 -p1 -b .configh %patch4 -p1 -b .stropts %patch7 -p0 -b .args %patch11 -p1 -b .maxstr @@ -51,7 +53,7 @@ autoconf --enable-pam \ --enable-colors256 \ --enable-rxvt_osc \ - --enable-locale \ + --enable-use-locale \ --enable-telnet \ --with-pty-mode=0620 \ --with-pty-group=$(getent group tty | cut -d : -f 3) \ @@ -115,6 +117,7 @@ fi %changelog * Fri May 16 2008 Miroslav Lichvar - 4.0.3-12 - fix multiuser support (#446049) +- fix building with new autoconf * Mon Apr 07 2008 Miroslav Lichvar - 4.0.3-11 - don't include stropts.h (#440803)