svn commit: r477708 - in branches/2018Q3/sysutils/dvd+rw-tools: . files
Kubilay Kocak
koobs at FreeBSD.org
Tue Aug 21 07:18:30 UTC 2018
Author: koobs
Date: Tue Aug 21 07:18:28 2018
New Revision: 477708
URL: https://svnweb.freebsd.org/changeset/ports/477708
Log:
MFH: r476826 sysutils/dvd+rw-tools: Fix issue appending more than 25gb on BD-R DL discs
While burning ISO Multisession BD-R 50G growisofs reports no space left while
24G+ are available.
Backport a fix from Debian [1] to address the issue.
While I'm here, document description and origins of both patches [1][2] that
apply to same source file, for our future selves, and to avoid confusion
as both chunks reference the same variable.
[1] https://bugs.debian.org/615978
[2] https://bugs.debian.org/713016
PR: 230493
Submitted by: Masachika ISHIZUKA <ish amail plala or jp>
Approved by: portmgr (implicit, unmaintained port)
Obtained from: Debian [1]
Approved by: miwi (ports-secteam)
Modified:
branches/2018Q3/sysutils/dvd+rw-tools/Makefile
branches/2018Q3/sysutils/dvd+rw-tools/files/patch-Makefile.m4
branches/2018Q3/sysutils/dvd+rw-tools/files/patch-growisofs__mmc.cpp
branches/2018Q3/sysutils/dvd+rw-tools/files/patch-mp.h
branches/2018Q3/sysutils/dvd+rw-tools/files/patch-transport.hxx
Directory Properties:
branches/2018Q3/ (props changed)
Modified: branches/2018Q3/sysutils/dvd+rw-tools/Makefile
==============================================================================
--- branches/2018Q3/sysutils/dvd+rw-tools/Makefile Tue Aug 21 07:16:14 2018 (r477707)
+++ branches/2018Q3/sysutils/dvd+rw-tools/Makefile Tue Aug 21 07:18:28 2018 (r477708)
@@ -3,7 +3,7 @@
PORTNAME= dvd+rw-tools
PORTVERSION= 7.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://www.pkix.net/mirror/fy.chalmers.se/ \
http://fy.chalmers.se/~appro/linux/DVD+RW/tools/
Modified: branches/2018Q3/sysutils/dvd+rw-tools/files/patch-Makefile.m4
==============================================================================
--- branches/2018Q3/sysutils/dvd+rw-tools/files/patch-Makefile.m4 Tue Aug 21 07:16:14 2018 (r477707)
+++ branches/2018Q3/sysutils/dvd+rw-tools/files/patch-Makefile.m4 Tue Aug 21 07:18:28 2018 (r477708)
@@ -1,6 +1,6 @@
--- Makefile.m4.orig 2008-03-02 17:17:09 UTC
+++ Makefile.m4
-@@ -13,6 +13,7 @@ ifelse(substr(OS,0,7),[CYGWIN_],[define(
+@@ -13,6 +13,7 @@ ifelse(substr(OS,0,7),[CYGWIN_],[define([OS],[MINGW32]
ifelse(substr(OS,0,7),[MINGW32],[define([OS],[MINGW32])])
ifelse(OS,NetBSD,[define([OS],[BSD])CXXFLAGS+=-D__unix])
ifelse(OS,OpenBSD,[define([OS],[BSD])])
Modified: branches/2018Q3/sysutils/dvd+rw-tools/files/patch-growisofs__mmc.cpp
==============================================================================
--- branches/2018Q3/sysutils/dvd+rw-tools/files/patch-growisofs__mmc.cpp Tue Aug 21 07:16:14 2018 (r477707)
+++ branches/2018Q3/sysutils/dvd+rw-tools/files/patch-growisofs__mmc.cpp Tue Aug 21 07:18:28 2018 (r477708)
@@ -1,11 +1,26 @@
+# Cannot append data to BD-R DL used more than 25gb
+# https://bugs.freebsd.org/230493 via http://bugs.debian.org/615978
+#
+# growisofs error: close session failed when burning 25gb blu-ray disc
+# https://bugs.freebsd.org/198991 via http://bugs.debian.org/713016
+
--- growisofs_mmc.cpp.orig 2008-03-04 17:47:49 UTC
+++ growisofs_mmc.cpp
-@@ -756,6 +756,8 @@ static void bd_r_format (Scsi_Command &c
+@@ -410,7 +410,7 @@ static unsigned int get_2k_capacity (Scsi_Command &cmd
+ }
- wait_for_unit (cmd);
+ nwa = 0;
+- if (buf[7]&1 && !bdr_plus_pow) // NWA_V
++ if (buf[7]&1) // NWA_V
+ { nwa = buf[12]<<24;
+ nwa |= buf[13]<<16;
+ nwa |= buf[14]<<8;
+@@ -755,6 +755,8 @@ static void bd_r_format (Scsi_Command &cmd)
+ exit (FATAL_START(errno));
-+ bdr_plus_pow = 1;
+ wait_for_unit (cmd);
+
++ bdr_plus_pow = 1;
+
cmd[0] = 0x35; // FLUSH CACHE
cmd[9] = 0;
- cmd.transport();
Modified: branches/2018Q3/sysutils/dvd+rw-tools/files/patch-mp.h
==============================================================================
--- branches/2018Q3/sysutils/dvd+rw-tools/files/patch-mp.h Tue Aug 21 07:16:14 2018 (r477707)
+++ branches/2018Q3/sysutils/dvd+rw-tools/files/patch-mp.h Tue Aug 21 07:18:28 2018 (r477708)
@@ -1,6 +1,6 @@
--- mp.h.orig 2008-02-24 17:56:07 UTC
+++ mp.h
-@@ -46,7 +46,9 @@ static void *__thread_create(int (*func)
+@@ -46,7 +46,9 @@ static void *__thread_create(int (*func)(void *),void
if (pthread_attr_init(&attr)==0 &&
pthread_attr_setstacksize(&attr,stack_sz)==0 &&
Modified: branches/2018Q3/sysutils/dvd+rw-tools/files/patch-transport.hxx
==============================================================================
--- branches/2018Q3/sysutils/dvd+rw-tools/files/patch-transport.hxx Tue Aug 21 07:16:14 2018 (r477707)
+++ branches/2018Q3/sysutils/dvd+rw-tools/files/patch-transport.hxx Tue Aug 21 07:18:28 2018 (r477708)
@@ -1,6 +1,6 @@
--- transport.hxx.orig 2008-03-01 10:34:43 UTC
+++ transport.hxx
-@@ -483,7 +483,7 @@ public:
+@@ -483,7 +483,7 @@ class Scsi_Command { (public)
{ return 1; }
};
More information about the svn-ports-all
mailing list