Update to nano-7.2.

This commit is contained in:
Jonas 'Sortie' Termansen 2024-01-27 21:32:21 +01:00
parent b2e2ffdb9d
commit 8a4d002ecd
2 changed files with 13 additions and 12 deletions

View File

@ -1,18 +1,19 @@
diff -Paur --no-dereference -- nano.upstream/configure nano/configure
--- nano.upstream/configure
+++ nano/configure
@@ -43510,6 +43510,7 @@
@@ -41989,6 +41989,8 @@
# Extract the first word of "${ac_tool_prefix}ncursesw5-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}ncursesw5-config; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+# PATCH: pkg-config must be used instead of the cross unsafe ncursesw5-config.
+ac_cv_prog_NCURSESW_CONFIG=false
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_NCURSESW_CONFIG+y}
then :
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_NCURSESW_CONFIG+:} false; then :
$as_echo_n "(cached) " >&6
diff -Paur --no-dereference -- nano.upstream/src/files.c nano/src/files.c
--- nano.upstream/src/files.c
+++ nano/src/files.c
@@ -1422,8 +1422,10 @@
@@ -1455,8 +1455,10 @@
if (env_dir != NULL)
tempdir = check_writable_directory(env_dir);
@ -35,7 +36,7 @@ diff -Paur --no-dereference -- nano.upstream/src/nano.c nano/src/nano.c
} else
plainname = copy_of(filename);
@@ -2076,8 +2076,7 @@
@@ -2105,8 +2105,7 @@
}
/* Curses needs TERM; if it is unset, try falling back to a VT220. */
@ -48,7 +49,7 @@ diff -Paur --no-dereference -- nano.upstream/src/nano.c nano/src/nano.c
diff -Paur --no-dereference -- nano.upstream/src/rcfile.c nano/src/rcfile.c
--- nano.upstream/src/rcfile.c
+++ nano/src/rcfile.c
@@ -577,6 +577,11 @@
@@ -575,6 +575,11 @@
* null-terminate it, and return a pointer to the succeeding text. */
char *parse_next_regex(char *ptr)
{
@ -60,7 +61,7 @@ diff -Paur --no-dereference -- nano.upstream/src/rcfile.c nano/src/rcfile.c
char *starting_point = ptr;
if (*(ptr - 1) != '"') {
@@ -584,11 +589,28 @@
@@ -582,11 +587,28 @@
return NULL;
}
@ -93,7 +94,7 @@ diff -Paur --no-dereference -- nano.upstream/src/rcfile.c nano/src/rcfile.c
if (*ptr == '\0') {
jot_error(N_("Regex strings must begin and end with a \" character"));
@@ -601,7 +623,8 @@
@@ -599,7 +621,8 @@
}
/* Null-terminate the regex and skip until the next non-blank. */

View File

@ -1,10 +1,10 @@
NAME=nano
BUILD_LIBRARIES='libiconv? libintl? libcurses libmagic? libz?'
VERSION=6.3
VERSION=7.2
DISTNAME=$NAME-$VERSION
COMPRESSION=tar.xz
ARCHIVE=$DISTNAME.$COMPRESSION
SHA256SUM=eb532da4985672730b500f685dbaab885a466d08fbbf7415832b95805e6f8687
SHA256SUM=86f3442768bd2873cec693f83cdf80b4b444ad3cc14760b74361474fc87a4526
UPSTREAM_SITE=https://ftp.gnu.org/gnu/nano
UPSTREAM_ARCHIVE=$ARCHIVE
LICENSE=GPL-3.0-or-later