mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-22 20:41:26 +00:00
Update to 1.23: miscellaneous bug fixes and minor additions.
This commit is contained in:
parent
647b3b80be
commit
2d640b7c88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251743
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= tar
|
||||
PORTVERSION= 1.22
|
||||
PORTREVISION= 3
|
||||
PORTVERSION= 1.23
|
||||
CATEGORIES= archivers sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_GNU}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
@ -16,8 +15,8 @@ PKGNAMEPREFIX= g
|
||||
MAINTAINER= naddy@FreeBSD.org
|
||||
COMMENT= GNU version of the traditional tape archiver
|
||||
|
||||
RUN_DEPENDS= lzop:${PORTSDIR}/archivers/lzop \
|
||||
xz:${PORTSDIR}/archivers/xz
|
||||
# only force dependencies for compressors that have a single-letter option
|
||||
RUN_DEPENDS= xz:${PORTSDIR}/archivers/xz
|
||||
|
||||
INFO= tar
|
||||
|
||||
@ -26,7 +25,8 @@ USE_BZIP2= yes
|
||||
USE_ICONV= yes
|
||||
GNU_CONFIGURE= yes
|
||||
MAKE_JOBS_SAFE= yes
|
||||
CONFIGURE_ARGS= --program-prefix=g
|
||||
CONFIGURE_ARGS= --program-prefix=g \
|
||||
--disable-silent-rules
|
||||
CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include' \
|
||||
LDFLAGS='-L${LOCALBASE}/lib ${LDSTATIC}' \
|
||||
DEFAULT_ARCHIVE=/dev/sa0 \
|
||||
@ -34,6 +34,7 @@ CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include' \
|
||||
|
||||
.if defined(WANT_STATIC)
|
||||
LDSTATIC= -static
|
||||
MAKE_ARGS+= LIBINTL='$$(LTLIBINTL)' LIBICONV='$$(LTLIBICONV)'
|
||||
.else
|
||||
LDSTATIC=
|
||||
.endif
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (tar-1.22.tar.bz2) = 07fa517027f426bb80f5f5ff91b63585
|
||||
SHA256 (tar-1.22.tar.bz2) = 3cefb67f197a3f8f5235999fe749ced0889466a71ddcbc96fddca84e5d53aa4d
|
||||
SIZE (tar-1.22.tar.bz2) = 2094575
|
||||
MD5 (tar-1.23.tar.bz2) = 41e2ca4b924ec7860e51b43ad06cdb7e
|
||||
SHA256 (tar-1.23.tar.bz2) = c9328372db62fbb1d94c9e4e3cefc961111af46de47085b635359c00a0eebe36
|
||||
SIZE (tar-1.23.tar.bz2) = 2189324
|
||||
|
@ -1,23 +0,0 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- configure.orig 2008-12-28 16:50:16.000000000 +0100
|
||||
+++ configure 2008-12-28 16:50:43.000000000 +0100
|
||||
@@ -40829,7 +40829,7 @@
|
||||
NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
|
||||
FLOAT_H!$FLOAT_H$ac_delim
|
||||
FNMATCH_H!$FNMATCH_H$ac_delim
|
||||
-LIBINTL!$LIBINTL$ac_delim
|
||||
+LIBINTL!$LTLIBINTL$ac_delim
|
||||
LTLIBINTL!$LTLIBINTL$ac_delim
|
||||
NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
|
||||
HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
|
||||
@@ -41101,7 +41101,7 @@
|
||||
DEFAULT_ARCHIVE!$DEFAULT_ARCHIVE$ac_delim
|
||||
DEFAULT_BLOCKING!$DEFAULT_BLOCKING$ac_delim
|
||||
DEFAULT_QUOTING_STYLE!$DEFAULT_QUOTING_STYLE$ac_delim
|
||||
-LIBICONV!$LIBICONV$ac_delim
|
||||
+LIBICONV!$LTLIBICONV$ac_delim
|
||||
LTLIBICONV!$LTLIBICONV$ac_delim
|
||||
USE_NLS!$USE_NLS$ac_delim
|
||||
GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
|
15
archivers/gtar/files/patch-gnu_Makefile.in
Normal file
15
archivers/gtar/files/patch-gnu_Makefile.in
Normal file
@ -0,0 +1,15 @@
|
||||
$FreeBSD$
|
||||
|
||||
Don't install lib/charset.alias.
|
||||
|
||||
--- gnu/Makefile.in.orig 2010-03-17 21:55:42.000000000 +0100
|
||||
+++ gnu/Makefile.in 2010-03-17 21:56:32.000000000 +0100
|
||||
@@ -1860,7 +1860,7 @@ langinfo.h: langinfo.in.h $(CXXDEFS_H) $
|
||||
# avoid installing it.
|
||||
|
||||
all-local: charset.alias ref-add.sed ref-del.sed
|
||||
-install-exec-local: install-exec-localcharset
|
||||
+install-exec-local:
|
||||
install-exec-localcharset: all-local
|
||||
if test $(GLIBC21) = no; then \
|
||||
case '$(host_os)' in \
|
16
archivers/gtar/files/patch-gnu_dirent.in.h
Normal file
16
archivers/gtar/files/patch-gnu_dirent.in.h
Normal file
@ -0,0 +1,16 @@
|
||||
$FreeBSD$
|
||||
|
||||
7.x up to 7.3 lacks the fdopendir() prototype in <dirent.h>.
|
||||
|
||||
--- gnu/dirent.in.h.orig 2010-03-29 17:48:45.000000000 +0200
|
||||
+++ gnu/dirent.in.h 2010-03-29 17:49:00.000000000 +0200
|
||||
@@ -79,9 +79,7 @@ _GL_WARN_ON_USE (dirfd, "dirfd is unport
|
||||
_GL_FUNCDECL_RPL (fdopendir, DIR *, (int fd));
|
||||
_GL_CXXALIAS_RPL (fdopendir, DIR *, (int fd));
|
||||
# else
|
||||
-# if !@HAVE_FDOPENDIR@
|
||||
_GL_FUNCDECL_SYS (fdopendir, DIR *, (int fd));
|
||||
-# endif
|
||||
_GL_CXXALIAS_SYS (fdopendir, DIR *, (int fd));
|
||||
# endif
|
||||
_GL_CXXALIASWARN (fdopendir);
|
@ -1,14 +0,0 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- lib/Makefile.in.orig
|
||||
+++ lib/Makefile.in
|
||||
@@ -938,7 +938,7 @@
|
||||
|
||||
install-data-am:
|
||||
|
||||
-install-exec-am: install-exec-local
|
||||
+install-exec-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
@ -1,28 +0,0 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- lib/rtapelib.c.orig
|
||||
+++ lib/rtapelib.c
|
||||
@@ -570,7 +570,8 @@
|
||||
|
||||
sprintf (command_buffer, "R%lu\n", (unsigned long) length);
|
||||
if (do_command (handle, command_buffer) == -1
|
||||
- || (status = get_status (handle)) == SAFE_READ_ERROR)
|
||||
+ || (status = get_status (handle)) == SAFE_READ_ERROR
|
||||
+ || status > length)
|
||||
return SAFE_READ_ERROR;
|
||||
|
||||
for (counter = 0; counter < status; counter += rlen, buffer += rlen)
|
||||
@@ -706,6 +707,12 @@
|
||||
|| (status = get_status (handle), status == -1))
|
||||
return -1;
|
||||
|
||||
+ if (status > sizeof (struct mtop))
|
||||
+ {
|
||||
+ errno = EOVERFLOW;
|
||||
+ return -1;
|
||||
+ }
|
||||
+
|
||||
for (; status > 0; status -= counter, argument += counter)
|
||||
{
|
||||
counter = safe_read (READ_SIDE (handle), argument, status);
|
@ -1,23 +0,0 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- src/incremen.c.orig
|
||||
+++ src/incremen.c
|
||||
@@ -870,7 +870,7 @@
|
||||
time_t sec;
|
||||
long int nsec;
|
||||
char *buf = 0;
|
||||
- size_t bufsize;
|
||||
+ size_t bufsize = 0;
|
||||
char *ebuf;
|
||||
long lineno = 1;
|
||||
|
||||
@@ -1230,7 +1230,7 @@
|
||||
{
|
||||
int fd;
|
||||
char *buf = 0;
|
||||
- size_t bufsize;
|
||||
+ size_t bufsize = 0;
|
||||
|
||||
/* Open the file for both read and write. That way, we can write
|
||||
it later without having to reopen it, and don't have to worry if
|
14
archivers/gtar/files/patch-src_names.c
Normal file
14
archivers/gtar/files/patch-src_names.c
Normal file
@ -0,0 +1,14 @@
|
||||
$FreeBSD$
|
||||
|
||||
Fix an instance of use-after-free(), from upstream.
|
||||
|
||||
--- src/names.c.orig 2010-03-27 21:57:39.000000000 +0100
|
||||
+++ src/names.c 2010-03-27 21:58:02.000000000 +0100
|
||||
@@ -950,6 +950,7 @@ collect_and_sort_names (void)
|
||||
{
|
||||
if (p->child)
|
||||
rebase_child_list (p->child, name);
|
||||
+ hash_delete (nametab, name);
|
||||
/* FIXME: remove_directory (p->caname); ? */
|
||||
remname (p);
|
||||
free_name (p);
|
@ -1,15 +1,15 @@
|
||||
|
||||
$FreeBSD: /tmp/pcvs/ports/archivers/gtar/files/Attic/patch-tests_gzip.at,v 1.1 2008-12-30 17:41:11 naddy Exp $
|
||||
$FreeBSD: /tmp/pcvs/ports/archivers/gtar/files/Attic/patch-tests_gzip.at,v 1.2 2010-03-29 17:36:25 naddy Exp $
|
||||
|
||||
--- tests/gzip.at.orig
|
||||
+++ tests/gzip.at
|
||||
@@ -32,8 +32,7 @@
|
||||
--- tests/gzip.at.orig 2010-01-26 12:30:21.000000000 +0100
|
||||
+++ tests/gzip.at 2010-03-17 21:41:11.000000000 +0100
|
||||
@@ -31,8 +31,7 @@ tar xfvz /dev/null
|
||||
],
|
||||
[0],
|
||||
[2],
|
||||
[],
|
||||
-[
|
||||
-gzip: stdin: unexpected end of file
|
||||
+[gzip: (stdin): unexpected end of file
|
||||
tar: Child returned status 1
|
||||
tar: Error exit delayed from previous errors
|
||||
tar: Error is not recoverable: exiting now
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user