Commit Graph

2466 Commits

Author SHA1 Message Date
rocky
a9e96b4713 Typo 2008-09-22 21:21:29 +00:00
rocky
c02aa93af6 Nuke cddb disc ID if --no-cddb option is given. 2008-09-09 14:44:25 +00:00
rocky
d38c6ce8c1 Output changed when --no-cddb option added. 2008-09-09 14:10:24 +00:00
rocky
1185f7d0f4 Allow compiling cd-info without cddb. Patch thanks to Fabrice Ménard. 2008-09-08 14:45:07 +00:00
rocky
275703a5d6 Remove stray @ character in Makefile.am. Thanks yet again to Steve
Schultz for finding/fixing.
2008-08-31 22:22:56 +00:00
flameeyes
a4b1427fe9 Use the LTLIBICONV variable rather than LIBICONV.
With this change, instead of using the fully qualified path to the
shared object (or the one that the configure think is the fully
qualified path), the path where the library is found will be added to
the search path and just a generic -liconv will be used.

The old variable would be fooled up when /usr/lib/libiconv.so is an LD
script that redirects to /lib/libiconv.so, causing failures with some
linkers.

Also, replace @LIBICONV@ for libcdio itself also with $(LTLIBICONV) or
it will fail to link against on uClibc.
2008-08-31 13:38:21 +00:00
rocky
3d106b4568 Free memory when recovering from errors. 2008-08-30 06:55:50 +00:00
rocky
5254ca152d Pass additional autogen.sh options to configure. 2008-07-27 01:51:21 +00:00
pjcreath
65de180497 Replaced old, messy autogen.sh with a call to autoreconf.
(empty config.rpath added for automake 1.10 compatibility)
2008-07-27 01:26:18 +00:00
rocky
8af60f3dce Another small tweak - make sure macro is undefine'd first. 2008-07-16 00:28:54 +00:00
rocky
29cea5c023 Undefine ISODCL and note where this comes from. 2008-07-15 13:37:30 +00:00
rocky
fd6bb03037 Remove cdrtools GPL "v2 only" pollution. iso9660.h is from Eric Youngdale's 1993 GPL v2 or later header from mkisofs 2008-07-15 12:00:54 +00:00
rocky
82c7c09a97 Fixes for Mingw+MSYS and DLL support from Carlo Bramini
* configure.ac: Added AC_LIBTOOL_WIN32_DLL for enabling the creation of shared libraries.
* configure.ac: Added -I$(top_srcdir)/include to LIBCDIO_CFLAGS, it allows to build outside the source tree.
* configure.ac: Added LT_NO_UNDEFINED for adding '-no-undefined' switch to libtool when building win32 shared libraries.
* configure.ac: Check for Windows.h presence if under Mingw (included for using Sleep() function).
* configure.ac: Check for more missing functions: setenv(), unsetenv(), sleep(), gmtime_r(), localtime_r().

* example/cdchange.c: If sleep() function does not exist, it tries to emulate it with a similar code (require inclusion of Windows.h)

* src/cddb.c:
* lib/cdda_interface/scsi_interface.c: Compilation fails because u_int32_t is undefined. It has been changed to uint32_t to be compliant to all other parts of the libraries.
* lib/cdda_interface/Makefile.am:
* lib/iso9660/Makefile.am:
* lib/cdio++/Makefile.am:
* lib/paranoia/Makefile.am:
* lib/udf/Makefile.am:
* lib/driver/Makefile.am: added LT_NO_UNDEFINED to libtool flags.
* lib/iso9660/iso9660.c: Added replacements for setenv(), unsetenv(), gmtime_r\
(), localtime_r().
2008-06-25 08:01:53 +00:00
rocky
9c32ef00a0 Was accessing outside of check2list causing wild looping. Turn all
sprintf's to snprintf's and check the return.

Turn check1list and check2list looping into a fixed constant number of
iterations rather than rely on a sentinal.
2008-06-25 07:46:20 +00:00
flameeyes
3685c0d78e Mark variables and constant as static in source tools, examples and tests. Also replace some char pointers with char arrays. 2008-06-19 15:44:10 +00:00
flameeyes
5d2dc434e3 Fix AC_ARG_WITH and AC_ARG_ENABLE call to use the un-translated option name (that is, using dash rather than underscore). 2008-06-19 13:41:40 +00:00
flameeyes
2453159ffc Make cdtext_keywords a static array of arrays. 2008-06-16 22:41:44 +00:00
flameeyes
b179815ce2 Ignore a few more scripts created by autoreconf -i. 2008-06-16 22:38:45 +00:00
flameeyes
1865995df6 Ignore the m4 macro files created by libtool 2.2. 2008-06-16 22:37:11 +00:00
flameeyes
97831db455 Put all macros in the m4 directory, this avoids cluttering the main directory with libtool 2.2 (that split the macros in multiple files). 2008-06-16 22:36:09 +00:00
flameeyes
2c48f4be66 Replace character pointers with character arrays, mark constants as
static as they are not used outside this translation unit (and some
not at all).
2008-06-16 19:45:44 +00:00
flameeyes
a1d1797d3b Replace character pointers in signature_t with properly-sized
character arrays.

The size of sigs has increased a bit but now the sigs array can stay
entirely in .rodata section, with no runtime relocations.

Having 128 bytes sized elements also allows for direct random access
on the array without multiplications.
2008-06-16 19:39:30 +00:00
rocky
3709aca31e --disable-example-progs help text wording change
Ignore test/testpregap.c since that's now derived testpregap.c.in
2008-06-14 22:41:29 +00:00
flameeyes
4410f8dd39 Check in the missing file. 2008-06-14 10:36:49 +00:00
flameeyes
fe433594d4 Make testdefault an extra program, so that it's only built explicitly and not during make all. 2008-06-14 08:27:20 +00:00
flameeyes
e4afadf511 Make checklists fit entirely in .rodata sections, by marking them constant and using an array of characters rather than a pointer to character. 2008-06-13 19:33:13 +00:00
flameeyes
35692e9e83 Make drive exceptions non-static objects that are shared between multiple units.
Also replace the three Dummy functions wth dummy_exception (also common).

Bump the revision.

This reduces the memory footprint of libcdda_interface of about 200 bytes.
2008-06-13 19:26:22 +00:00
flameeyes
fb85aa1533 Cleanup includes, don't include <cstdlib> twice, and include <cstring> rather than <string.h>. 2008-06-13 15:58:50 +00:00
flameeyes
44979ac0f2 Remove trailing backslash. 2008-06-13 15:54:49 +00:00
flameeyes
a25ab3f917 Only install libcdio++ and libiso9660++ pkg-config files if C++ bindings are being built and installed. 2008-06-13 14:29:08 +00:00
pjcreath
233affcfee Fix for automake 1.10 and removal of unnecessary m4. 2008-06-10 02:48:20 +00:00
pjcreath
dde50ca547 Fixed pregap regression failure on non-Intel architectures, removed warnings 2008-06-10 00:45:08 +00:00
rocky
16bf6fccc0 Copies of distribution m4 macros included to avoid extra installation on OSX.
Patch from Peter Creath.
2008-06-09 02:40:33 +00:00
rocky
71b5f6e14a More time setting/getting patches - the last of the patches from N. Boullis.
Make testiso9660 more stringent now that bugs have been removed.
2008-06-03 08:40:14 +00:00
rocky
a8e617dc7d Replace last vestige of non-reentrant gmtime with timegm. Problem
determination and fix again from Nicolas Boullis.
2008-05-31 12:18:33 +00:00
rocky
f03aa75458 iso9660_get_ltime: the TZ environment variable was set using a local
buffer that disappears when the function terminates. This might lead
to segmentation faults. Reset to the old TZ value (if any) or unset
the variable if it was previously not set. Problem noted and fixed by
Nicolas Boullis.
2008-05-31 11:59:06 +00:00
rocky
d60a120854 iso9660.c: On some architectures (like my powerpc), char is unsigned. So when
libcdio tries to adjust "converted ISO9660 timezones" in iso9660_set_ltime
on such architectures, it would replace legitimate negative values with
52.

Cast &_pv_date[16] to "iso712_t *" and then dereference.

Patch from Nicolas Boullis:

doc: small spelling typos.
2008-05-29 02:28:27 +00:00
rocky
7036d8d951 iso9660.h: parameter name change to match implementation.
iso9660.c: use reentrant version of localtime and gettime (most of the time)
Patch from Nicolas Boullis.

testiso9660.c: Change a memcmp for a test_compare which gives more detailed
information on failure.
2008-05-28 01:48:37 +00:00
rocky
e6a0e3e84e Fix prototype mismatch. Savannah Bug #23228 2008-05-11 09:50:54 +00:00
edsdead
c7d17c3fdc don't shift read_sector_type into reserved field of read cd cdb (resulting in every call being treated as CDIO_MMC_READ_TYPE_ANY) 2008-05-09 09:54:39 +00:00
edsdead
58b9aee8e5 fix incorrect behavior and potential buffer overrun in mmc_read_cd when i_blocks exceeds MAX_CD_READ_BLOCKS 2008-05-09 06:43:53 +00:00
edsdead
b07d491fcd fix up return type of mmc_run_cmd and mmc_run_cmd_len 2008-05-09 06:13:32 +00:00
rocky
3f266b669b Changes to testpregap.c to allow to build outside of the source tree. 2008-05-05 23:58:28 +00:00
rocky
49defd1cdc restore tab which got lost in cut-and-past. -- A pox on "make".
Thanks to Steve Schultz again for keeping us (more) honest.
2008-04-26 15:16:06 +00:00
rocky
62d7731703 Patch from Peter Hartley to allow Cross-compiling to mingw32:
- MinGW doesn't have struct timespec, so udf_time.c doesn't compile
   (changes lib/udf/udf_time.c, configure.ac, config.h.in)

 - The configure test for bitfield ordering uses AC_TRY_RUN and thus
   doesn't work when cross-compiling; use sneakiness to try and
   determine it at compile time, falling back to the existing runtime
   check if the sneakiness doesn't work
   (changes configure.ac; tested on x86_64-linux-gnu and i586-mingw32
   which are bf_lsbf=1, plus sparc64-linux-gnu which is bf_lsbf=0)

 - The configure test for "extern long timezone" needlessly uses
   AC_TRY_RUN when in fact AC_LINK_IFELSE is all we need to know, and
   that latter works when cross-compiling
   (changes configure.ac)

 - MinGW sys/stat.h doesn't have the *GRP or *OTH macros, nor S_IFLNK
   or S_IFSOCK, nor S_ISUID etc
   (changes lib/udf/udf.c and lib/iso9660/xa.c)

 - MinGW doesn't have <sys/wait.h>, so even the header-inclusion bit
   of the Linux driver doesn't compile unless it's moved inside the
   "ifdef HAVE_LINUX_CDROM"
   (changes lib/driver/gnu_linux.c)

 - Because the man pages cd-info.1 etc depend on the binaries themselves
   (for help2man reasons), the configure options --without-cd-info etc
   don't actually stop them being compiled. Fixed by only depending on
   man pages for programs that are actually built, which also stops
   the installation of man pages of programs which aren't themselves
   installed
   (changes src/Makefile.am)
2008-04-24 07:28:00 +00:00
karl
8deec6fcc9 gplv3+ 2008-04-22 15:29:11 +00:00
karl
aac7795576 gplv3+ 2008-04-21 18:30:19 +00:00
karl
2328a4872c gplv3+ 2008-04-20 13:44:31 +00:00
karl
2d05460780 gplv3+ 2008-04-18 16:02:09 +00:00
karl
0e61f3de1a gplv3+ 2008-04-17 17:39:47 +00:00