pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/pear lang/pear: fix broken package with previous ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/199368cbd010
branches: trunk
changeset: 329440:199368cbd010
user: taca <taca%pkgsrc.org@localhost>
date: Thu Feb 07 13:40:57 2019 +0000
description:
lang/pear: fix broken package with previous commit
Fix broken package with previous commit.
* Make Archive_Tar to 1.4.5 which I have the distfile.
* Upload Archive_Tar-1.4.5.tgz to MASTER_SITE_LOCAL.
* Add patch to update Archive/Tar.php to 1.4.6 from GitHub.
No PKGREVISION bump since it was broken.
diffstat:
lang/pear/Makefile | 4 +-
lang/pear/distinfo | 3 +-
lang/pear/patches/patch-.._Archive__Tar-1.4.5_Archive_Tar.php | 20 +++++++++++
3 files changed, 24 insertions(+), 3 deletions(-)
diffs (56 lines):
diff -r 242306936e88 -r 199368cbd010 lang/pear/Makefile
--- a/lang/pear/Makefile Thu Feb 07 12:59:05 2019 +0000
+++ b/lang/pear/Makefile Thu Feb 07 13:40:57 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2019/02/03 14:06:58 taca Exp $
+# $NetBSD: Makefile,v 1.46 2019/02/07 13:40:57 taca Exp $
#
DISTNAME= PEAR-1.10.7
@@ -34,7 +34,7 @@
DISTFILES+= ${PEAR_SRCS}
EXTRACT_ONLY+= ${PEAR_SRCS}
-ARCHIVE_SRCS= Archive_Tar-1.4.6${EXTRACT_SUFX}
+ARCHIVE_SRCS= Archive_Tar-1.4.5${EXTRACT_SUFX}
ARCHIVE_WRKSRC= ${WRKDIR}/${ARCHIVE_SRCS:S/${EXTRACT_SUFX}//}
DISTFILES+= ${ARCHIVE_SRCS}
EXTRACT_ONLY+= ${ARCHIVE_SRCS}
diff -r 242306936e88 -r 199368cbd010 lang/pear/distinfo
--- a/lang/pear/distinfo Thu Feb 07 12:59:05 2019 +0000
+++ b/lang/pear/distinfo Thu Feb 07 13:40:57 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2019/02/03 14:06:58 taca Exp $
+$NetBSD: distinfo,v 1.33 2019/02/07 13:40:57 taca Exp $
SHA1 (pear20151210/Archive_Tar-1.4.5.tgz) = 1697a5baa9666174b64c48fcdd1b9c4d311100fa
RMD160 (pear20151210/Archive_Tar-1.4.5.tgz) = c2a81c901a4b38f46d7035f3b169296f9969b592
@@ -20,3 +20,4 @@
RMD160 (pear20151210/XML_Util-1.4.3.tgz) = 55308486e8a32d7bcb775c286d487b1db4a3f00b
SHA512 (pear20151210/XML_Util-1.4.3.tgz) = c21a7cef90743e124c4bc8e0453b634de8f6a6b0aac060acc1a17f481a2eb8757d322b05c69151280b7651cea927b2c64b7d49b9fd815dcdc606d0472d967310
Size (pear20151210/XML_Util-1.4.3.tgz) = 18842 bytes
+SHA1 (patch-.._Archive__Tar-1.4.5_Archive_Tar.php) = fa693b0c8d89b550952fc4a43a7319b87053c821
diff -r 242306936e88 -r 199368cbd010 lang/pear/patches/patch-.._Archive__Tar-1.4.5_Archive_Tar.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/pear/patches/patch-.._Archive__Tar-1.4.5_Archive_Tar.php Thu Feb 07 13:40:57 2019 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-.._Archive__Tar-1.4.5_Archive_Tar.php,v 1.1 2019/02/07 13:40:57 taca Exp $
+
+* Fix from Archive_Tar-1.4.6.
+
+--- ../Archive_Tar-1.4.5/Archive/Tar.php.orig 2019-01-02 21:45:20.000000000 +0000
++++ ../Archive_Tar-1.4.5/Archive/Tar.php
+@@ -1770,11 +1770,8 @@ class Archive_Tar extends PEAR
+ if (strpos($file, 'phar://') === 0) {
+ return true;
+ }
+- if (strpos($file, DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR) !== false) {
+- return true;
+- }
+- if (strpos($file, '..' . DIRECTORY_SEPARATOR) === 0) {
+- return true;
++ if (strpos($file, '../') !== false || strpos($file, '..\\') !== false) {
++ return true;
+ }
+ return false;
+ }
Home |
Main Index |
Thread Index |
Old Index