shithub: libdvdcss

Download patch

ref: 677d07cc4a8db65add1de6ca2750bec98db1b92b
parent: a8cdb36570a3b28e116c75c3a5bd38d71a6f2ccc
author: Sam Hocevar <sam@videolan.org>
date: Mon Jan 27 20:17:02 EST 2003

* updated ChangeLog.
  * updated version numbers and timestamps everywhere.
  * created NEWS file.
  * ./configure.ac: BSD/OS compilation fix when a local copy of libdvd is
    found on the system, thanks to Steven M. Schultz.


--- a/ChangeLog
+++ b/ChangeLog
@@ -2,8 +2,36 @@
 # ChangeLog for libdvdcss #
 #=========================#
 
-HEAD
+1.2.5
+Tue, 28 Jan 2003 01:24:15 +0100
 
+  * ./configure.ac: BSD/OS compilation fix when a local copy of libdvd is
+    found on the system.
+  * ./test/csstest.c: we align our read buffer in case of raw device access.
+  * ./src/libdvdcss.c: updated documentation about raw devices.
+  * ./src/libdvdcss.c: disabled key cache when reading VOBs.
+  * ./src/ioctl.c, ./src/ioctl.h: removed minor gcc-isms.
+  * ./libdvdcss.spec: macros to fix build on Red Hat systems. Set %define
+    redhat80 to 1.
+  * ./src/device.c: seek() calls don't do anything if we're already at the
+    right position.
+  * ./src/device.c: we now handle partial reads.
+  * ./src/device.c: dvdcss->i_pos now gets updated on each seek and each
+    read. Partial reads are not handled yet, but it's a step.
+  * ./src/bsdi_ioctl.c, ./src/bsdi_dvd.h: updated the bsdi libdvd with
+    Steven M. Schultz's latest changes.
+  * ALL: ported the library build to Cygwin.
+  * ./msvc/*: MS VC++ project files.
+  * ./src/libdvdcss.c: fixed Win32 mkdir() call.
+  * ALL: removed trailing spaces in files.
+  * ALL: moved everything to C99 integer types.
+  * ./bootstrap: we also look for glibtoolize (Closes: #37).
+  * ./src/device.h: FreeBSD compile fix.
+  * ./test/dvd_region.c: enabled set_region.
+  * ./src/css.c, ./src/libdvdcss.c: applied a patch from the MPlayer folks
+    to cache title keys on disk.
+  * ./debian/control: set the package sections to libs and devel instead of
+    graphics.
   * ./src/ioctl.[ch]: Implemented ioctl_SendRPC.
 
 1.2.4
--- /dev/null
+++ b/NEWS
@@ -1,0 +1,76 @@
+$Id: NEWS,v 1.3 2003/01/28 01:17:02 sam Exp $
+
+Changes between 1.2.4 and 1.2.5:
+--------------------------------
+
+  * key cache support
+  * improved robustness in case of read errors
+  * now builds under Cygwin
+  * now builds under Microsoft Visual C++
+
+Changes between 1.2.3 and 1.2.4:
+--------------------------------
+
+  * administrator rights are no longer required under Windows NT/2000/XP 
+
+Changes between 1.2.2 and 1.2.3:
+--------------------------------
+
+  * many Windows bugfixes
+  * workaround for drives which prevent key decryption
+
+Changes between 1.2.1 and 1.2.2:
+--------------------------------
+
+  * fix for the "ioctl_ReadTitleKey failed" bug on RPC2 drives
+  * better error checking
+  * improved documentation
+  * OS/2 port
+
+Changes between 1.2.0 and 1.2.1:
+--------------------------------
+
+  * fix for discs with a mismatched region
+  * QNX port
+
+Changes between 1.1.1 and 1.2.0:
+--------------------------------
+
+  * fix for a crash when an unencrypted sector is found on a scrambled disc
+  * stability enhancements
+
+Changes between 1.1.0 and 1.1.1:
+--------------------------------
+
+  * compilation fixes for BeOS, IRIX, OpenBSD
+
+Changes between 1.0.0 and 1.1.0:
+--------------------------------
+
+  * merged all patches from the Ogle group
+  * lots of bugfixes
+  * HP-UX port
+  * better error recovery
+  * third descrambling implementation
+
+Changes between 0.0.3 and 1.0.0:
+--------------------------------
+
+  * stable API
+  * OpenBSD port
+  * NetBSD port
+  * Mac OS X port
+
+Changes between 0.0.2 and 0.0.3:
+--------------------------------
+
+  * fix to access the whole device under Win32
+  * BSD/OS port
+  * Solaris port
+
+Changes between 0.0.1 and 0.0.2:
+--------------------------------
+
+  * internal key cache mechanism
+  * stability fixes
+
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
 AC_CANONICAL_SYSTEM
 AC_CONFIG_AUX_DIR(.)
 
-AM_INIT_AUTOMAKE(libdvdcss, 1.2.4)
+AM_INIT_AUTOMAKE(libdvdcss, 1.2.5)
 AM_CONFIG_HEADER(config.h)
 
 AC_PROG_CC
@@ -92,11 +92,12 @@
     LINUX_DVD_STRUCT=1
   ])
   dnl
-  dnl BSDI: dvd.h
+  dnl BSDI: dvd.h - may require -ldvd IF a local copy of libdvd is installed
   dnl
   AC_EGREP_HEADER(dvd_struct,dvd.h,[
     AC_DEFINE(DVD_STRUCT_IN_DVD_H, 1,
               Define if <dvd.h> defines DVD_STRUCT.)
+    SYS_BSDI_LIBDVD=1
     LINUX_DVD_STRUCT=1
   ],[
     dnl
@@ -177,8 +178,9 @@
 dnl
 CFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DDVDCSS_DIST ${CFLAGS}"
 
-AM_CONDITIONAL(SYS_BSDI, test "x$SYS_BSDI" = "x1")
-AM_CONDITIONAL(SYS_MSVC, test "x$SYS_MSVC" = "x1")
+AM_CONDITIONAL(SYS_BSDI, test "${SYS_BSDI}" = "1")
+AM_CONDITIONAL(SYS_BSDI_LIBDVD, test "${SYS_BSDI_LIBDVD}" = "1")
+AM_CONDITIONAL(SYS_MSVC, test "${SYS_MSVC}" = "1")
 
 AC_OUTPUT([Makefile src/Makefile src/dvdcss/Makefile test/Makefile debian/Makefile doc/Makefile])
 
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libdvdcss (1.2.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Samuel Hocevar <sam@zoy.org>  Tue, 28 Jan 2003 01:24:15 +0100
+
 libdvdcss (1.2.4-1) unstable; urgency=low
 
   * New upstream release.
--- a/debian/rules
+++ b/debian/rules
@@ -53,7 +53,7 @@
 	dh_testdir
 	dh_testroot
 #	dh_installdebconf	
-	dh_installdocs AUTHORS README
+	dh_installdocs AUTHORS NEWS README
 #	dh_installexamples
 #	dh_installmenu
 #	dh_installemacsen
--- a/doc/doxygen.cfg
+++ b/doc/doxygen.cfg
@@ -1,7 +1,7 @@
 # Doxyfile 1.2.14
 
 PROJECT_NAME           = libdvdcss
-PROJECT_NUMBER         = 1.2.2
+PROJECT_NUMBER         = 1.2.5
 OUTPUT_DIRECTORY       = .
 OUTPUT_LANGUAGE        = English
 
--- a/libdvdcss.spec
+++ b/libdvdcss.spec
@@ -1,5 +1,5 @@
 %define name 	libdvdcss
-%define version	1.2.4
+%define version	1.2.5
 %define release	2
 
 %define major  	2
@@ -91,7 +91,7 @@
 
 %files -n %{libname}
 %defattr(-,root,root)
-%doc AUTHORS COPYING
+%doc AUTHORS COPYING NEWS
 %{_libdir}/*.so.*
 
 %files -n %{libname}-devel
@@ -103,7 +103,11 @@
 %{_includedir}/*
 
 %changelog
-- add more macros to fix RedHat build.
+* Tue Jan 28 2003 Samuel Hocevar <sam@zoy.org> 1.2.5-1
+- new upstream release
+- improved robustness in case of read errors
+- key cache support
+- added more macros to fix RedHat build
 
 * Mon Nov 18 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-2
 - Changes in .spec file for RedHat and RPM 4.1
@@ -111,10 +115,6 @@
 * Thu Nov 14 2002 Alexis de Lattre <alexis@videolan.org> 1.2.4-1
 - new upstream release
 - fixes for Win32
-
-* Sun Oct 13 2002 Samuel Hocevar <sam@zoy.org> 1.2.3-1
-- new upstream release
-- fix for drives not allowing to read their disc key
 
 * Sun Oct 13 2002 Samuel Hocevar <sam@zoy.org> 1.2.3-1
 - new upstream release
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -15,12 +15,15 @@
 	$(bsdi_extras)
 
 libdvdcss_la_LIBADD = $(bsdi_libadd)
-libdvdcss_la_LDFLAGS = -version-info 2:3:0 $(libtool_flags)
+libdvdcss_la_LDFLAGS = -version-info 2:4:0 $(libtool_flags)
 
 bsdi_extras = bsdi_ioctl.c bsdi_dvd.h
 
 if SYS_BSDI
 bsdi_sources = $(bsdi_extras)
+endif
+
+if SYS_BSDI_LIBDVD
 bsdi_libadd = -ldvd
 endif
 
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -2,9 +2,14 @@
 noinst_PROGRAMS = csstest #dvd_region
 
 csstest_SOURCES = csstest.c
-csstest_LDADD = $(top_builddir)/src/libdvdcss.la
+csstest_LDADD = $(top_builddir)/src/libdvdcss.la $(bsdi_libadd)
 csstest_CFLAGS = -I$(top_srcdir)/src
 
 #dvd_region_SOURCES = dvd_region.c
 #dvd_region_LDADD = $(top_builddir)/src/libdvdcss.la
 #dvd_region_CFLAGS = -I$(top_srcdir)/src
+
+if SYS_BSDI_LIBDVD
+bsdi_libadd = -ldvd
+endif
+