Hi,
Update to the latest release on GitHub. Ports changes:
- drop patches included by upstream
- adapt pledge(2) patches after files moved into src/ subdir
- use GitHub variables
- drop uneeded variables after previous
The biggest change which I'm aware from user perspective is author
inversed the behaviour of -N option in version 0.7.0. If you are
using par2cmdline with that option, you should drop it after attached
update. If you want to bring back behaviour of par2cmdline from before
version 0.7.0, then you need to add -N to your scripts or apps. I
personally was relaying on -N, so now I can remove it.
Changes between versions by upstream can be seen at:
https://github.com/Parchive/par2cmdline/releases
I personally didn't had a chance to test this release properly yet, but
posting if someone else is using par2cmdline too.
Regress tests pass on amd64:
# TOTAL: 28
# PASS: 28
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/par2cmdline/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile 26 Jul 2017 22:45:14 -0000 1.16
+++ Makefile 28 Nov 2017 23:16:16 -0000
@@ -2,15 +2,12 @@
COMMENT = command line implementation of the PAR v2.0 specification
-V = 0.6.14
-DISTNAME = par2cmdline-$V
-DISTFILES = ${DISTNAME}{v$V}.tar.gz
-REVISION = 2
+GH_ACCOUNT = BlackIkeEagle
+GH_PROJECT = par2cmdline
+GH_TAGNAME = v0.7.4
CATEGORIES = archivers
-HOMEPAGE = https://github.com/BlackIkeEagle/par2cmdline/
-
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
@@ -19,8 +16,6 @@ WANTLIB = c m ${COMPILER_LIBCXX}
MAINTAINER = Mikolaj Kucharski <mikolaj@kucharski.name>
-MASTER_SITES = ${HOMEPAGE}archive/
-
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
@@ -41,8 +36,5 @@ post-patch:
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/par2cmdline
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/par2cmdline
-
-pre-test:
- sed -i -e 's,^tar -xf,tar -xzf,' ${WRKSRC}/tests/test*
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/archivers/par2cmdline/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- distinfo 5 Oct 2015 16:50:14 -0000 1.6
+++ distinfo 28 Nov 2017 23:16:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (par2cmdline-0.6.14.tar.gz) = L9gxupJNnw7NkkLKRVUbaZXt4e0oGveaow50kNVZbno=
-SIZE (par2cmdline-0.6.14.tar.gz) = 3539262
+SHA256 (par2cmdline-0.7.4.tar.gz) = 6iYPqAS7IFFBI96gagrUBmJgzVx22wh3FUaMp+LUnEc=
+SIZE (par2cmdline-0.7.4.tar.gz) = 3549893
Index: patches/patch-configure_ac
===================================================================
RCS file: /cvs/ports/archivers/par2cmdline/patches/patch-configure_ac,v
retrieving revision 1.1
diff -u -p -r1.1 patch-configure_ac
--- patches/patch-configure_ac 13 Jun 2016 17:32:27 -0000 1.1
+++ patches/patch-configure_ac 28 Nov 2017 23:16:16 -0000
@@ -1,7 +1,8 @@
$OpenBSD: patch-configure_ac,v 1.1 2016/06/13 17:32:27 semarie Exp $
---- configure.ac.orig Wed Jun 8 23:30:46 2016
-+++ configure.ac Wed Jun 8 23:31:20 2016
-@@ -56,6 +56,7 @@ dnl Checks for library functions.
+Index: configure.ac
+--- configure.ac.orig
++++ configure.ac
+@@ -60,6 +60,7 @@ dnl Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([stricmp] [strcasecmp])
AC_CHECK_FUNCS([strchr] [memcpy])
Index: patches/patch-par1repairer_cpp
===================================================================
RCS file: patches/patch-par1repairer_cpp
diff -N patches/patch-par1repairer_cpp
--- patches/patch-par1repairer_cpp 13 Jun 2016 17:32:27 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,25 +0,0 @@
-$OpenBSD: patch-par1repairer_cpp,v 1.3 2016/06/13 17:32:27 semarie Exp $
-
-pledge:
- 'par2 repair' with par1 files - stdio rpath cpath
- once the target files have been opened for writing, wpath is no
- longer required, cpath must be kept to delete partial files in
- case of an error
-
---- par1repairer.cpp.orig Wed Jun 8 23:41:11 2016
-+++ par1repairer.cpp Wed Jun 8 23:42:01 2016
-@@ -157,6 +157,14 @@ Result Par1Repairer::Process(const CommandLine &comman
- if (!CreateTargetFiles())
- return eFileIOError;
-
-+#ifdef HAVE_PLEDGE
-+ if (pledge("stdio rpath cpath", NULL) == -1)
-+ {
-+ cerr << "pledge failed" << endl;
-+ return eLogicError;
-+ }
-+
No comments:
Post a Comment